@rnacanvas/forms.edit 16.0.0 → 16.0.1
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/dist/index.js.LICENSE.txt +3 -3
- package/package.json +2 -2
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={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 h=t[a],u=r.base?h[0]+r.base:h[0],l=s[u]||0,c="".concat(u," ").concat(l);s[u]=l+1;var f=n(c),d={css:h[1],media:h[2],sourceMap:h[3],supports:h[4],layer:h[5]};if(-1!==f)e[f].references++,e[f].updater(d);else{var p=i(d,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 h=r(t,i),u=0;u<s.length;u++){var l=n(s[u]);0===e[l].references&&(e[l].updater(),e.splice(l,1))}s=h}}},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))}}},127(t){var e;e=()=>(()=>{var t={369:function(t){var e;e=()=>(()=>{var t={854: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){return"number"==typeof t}function r(t){return n(t)&&Number.isFinite(t)}function i(t){return n(t)&&!Number.isFinite(t)}function s(t){return r(t)&&t>0}function o(t){return r(t)&&t>=0}function a(t){return"string"==typeof t}function h(t){return null==t}function u(t){return"object"==typeof t&&null!==t}function l(t){return Array.isArray(t)}function c(t){return l(t)&&0==t.length}function f(t){return l(t)&&t.length>0}function d(t){return l(t)&&t.every(n)}function p(t){return d(t)&&t.length>0}function m(t){return l(t)&&t.every(r)}function g(t){return l(t)&&t.every(i)}function y(t){return l(t)&&t.every(a)}function v(t){return y(t)&&t.length>0}return t.r(e),t.d(e,{isArray:()=>l,isEmptyArray:()=>c,isFiniteNumber:()=>r,isFiniteNumbersArray:()=>m,isNonEmptyArray:()=>f,isNonEmptyNumbersArray:()=>p,isNonEmptyStringsArray:()=>v,isNonFiniteNumber:()=>i,isNonFiniteNumbersArray:()=>g,isNonNegativeFiniteNumber:()=>o,isNonNullObject:()=>u,isNullish:()=>h,isNumber:()=>n,isNumbersArray:()=>d,isPositiveFiniteNumber:()=>s,isString:()=>a,isStringsArray:()=>y}),e})()},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,clamp:()=>f,degrees:()=>g,flipAway:()=>w,isBetween:()=>l,isBetweenExclusive:()=>c,isBetweenInclusive:()=>l,max:()=>u,mean:()=>r,median:()=>a,min:()=>h,normalizeAngle:()=>v,radians:()=>y,sortNumbers:()=>i,sortNumbersAscending:()=>i,sortNumbersDescending:()=>p,sortedNumbers:()=>o,sortedNumbersAscending:()=>o,sortedNumbersDescending:()=>m,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 h(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 u(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 f(t,e,n){return t<e?e:t>n?n:t}function d(t,e,n){return Math.abs(t-e)<=n}function p(t){i(t),t.reverse()}function m(t){var e=o(t);return e.reverse(),e}function g(t){return t*(180/Math.PI)}function y(t){return t*(Math.PI/180)}function v(t,e){void 0===e&&(e=-Math.PI);var n=t-e;return e+((n%=2*Math.PI)>=0?n:n+2*Math.PI)}function w(t,e){var n=(e=v(e,t))-t;return(n<Math.PI/2||n>3*Math.PI/2)&&(t+=Math.PI),t}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";n.r(r),n.d(r,{Linkers:()=>g,Stems:()=>m,areConflicting:()=>u,areCrossing:()=>f,areEqual:()=>a,areKnotless:()=>c,areStacked:()=>h,basePairs:()=>w,deepCopy:()=>i,knotless:()=>d,mountainPlotTraversal:()=>y,parseDotBracket:()=>v,radializable:()=>p,sorted:()=>o});var t=n(854),e=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 i(n){return(0,t.isNumbersArray)(n)?e([],n,!0):n.map(function(t){return e([],t,!0)})}var s=n(986);function o(t){var e=i(t);return e.forEach(s.sortNumbers),e.sort(function(t,e){return t[0]-e[0]}),e}function a(t,e){var n=i(t),r=i(e);return(0,s.sortNumbers)(n),(0,s.sortNumbers)(r),[0,1].every(function(t){return n[t]==r[t]})}function h(t,e){var n=o([t,e]);return n[0][0]==n[1][0]-1&&n[0][1]==n[1][1]+1}function u(t,e){return(0,s.min)(t)==(0,s.min)(e)&&(0,s.max)(t)!=(0,s.max)(e)||(0,s.min)(t)!=(0,s.min)(e)&&(0,s.max)(t)==(0,s.max)(e)}function l(t){if(0==t.length)return[];for(var e=[],n=0;n<(0,s.max)(t.flat());n++)e.push(void 0);return t.forEach(function(t){e[t[0]-1]=t[1],e[t[1]-1]=t[0]}),e}function c(t){var e=l(t),n=[],r=!1;return e.forEach(function(t,e){var i=e+1;null==t||(i<t?n.push(i):i==t||n.pop()!=t&&(r=!0))}),!r}function f(t,e){return!c([t,e])}function d(t){var e=[],n=i(t);n.sort(function(t,e){return Math.abs(t[0]-t[1])-Math.abs(e[0]-e[1])});var r=[];return n.forEach(function(t){var n=[t[0]-1,t[1]-1],i=(0,s.min)(n),o=(0,s.max)(n);if(!r[i]&&!r[o]){e.push(t);for(var a=i;a<=o;a++)r[a]=!0}}),e}function p(t){var e=i(t);e.sort(function(t,e){var n=t[0],r=t[1],i=e[0],s=e[1];return Math.abs(n-r)-Math.abs(i-s)});var n=[],r=[];return e.forEach(function(t){var e=t[0],i=t[1];e==i||null!=r[e-1]||null!=r[i-1]||(n.push([e,i]),r[e-1]=i,r[i-1]=e)}),d(n)}var m=function(){function t(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this.targetStructure=t}return t.prototype.get=function(){var t=this.targetStructure[1];if(0==t.length)return[];var e=o(t),n=[],r=[];return e.forEach(function(t){var e=0==r.length?null:r[r.length-1];!e||h(e,t)?r.push(t):(n.push(r),r=[t])}),n.push(r),n},t}(),g=function(){function t(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this.targetStructure=t}return t.prototype.get=function(){var t=(new(m.bind.apply(m,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))}([void 0],this.targetStructure,!1)))).get().flatMap(function(t){return[t.map(s.min),t.map(s.max)]});t.forEach(s.sortNumbers),t.sort(function(t,e){return(0,s.min)(t)-(0,s.min)(e)});for(var e=[],n=t.shift(),r=t.shift();n&&r;){for(var i=[],o=(0,s.max)(n),a=(0,s.min)(r),h=o;h<=a;h++)i.push(h);e.push(i),n=r,r=t.shift()}return e},t}();function y(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=t[0],r=t[1],i=l(r);if(!c(r))throw new Error("Pseudoknot(s) encountered.");var s=[],o=0;return n.forEach(function(t,e){var n=e+1,r=i[e];null==r?s.push(o):n<r?(s.push(o),o++):(n==r||o--,s.push(o))}),s}function v(t){var e=t.split(""),n=[".","(",")"];e.forEach(function(t){if(!n.includes(t))throw new Error('Unrecognized character in dot-bracket notation: "'.concat(t,'".'))});var r=[],i=[];if(e.forEach(function(t,e){var n=e+1;if("("==t)i.push(n);else if(")"==t){var s=i.pop();if("number"!=typeof s)throw new Error("Unmatched downstream partner(s) in dot-bracket notation.");r.push([s,n])}}),i.length>0)throw new Error("Unmatched upstream partner(s) in dot-bracket notation.");return o(r)}function w(t,e){return e.forEach(function(e){e.forEach(function(e){if(e<1)throw new Error("Sequence positions must be positive.");if(e>t.length)throw new Error("Position out of sequence range.")})}),e.map(function(e){return[t[e[0]-1],t[e[1]-1]]})}})(),r})(),t.exports=e()},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,clamp:()=>f,degrees:()=>y,flipAway:()=>b,isBetween:()=>l,isBetweenExclusive:()=>c,isBetweenInclusive:()=>l,max:()=>u,mean:()=>r,median:()=>a,min:()=>h,normalizeAngle:()=>w,radians:()=>v,round:()=>g,sortNumbers:()=>i,sortNumbersAscending:()=>i,sortNumbersDescending:()=>p,sortedNumbers:()=>o,sortedNumbersAscending:()=>o,sortedNumbersDescending:()=>m,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 h(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 u(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 f(t,e,n){return t<e?e:t>n?n:t}function d(t,e,n){return Math.abs(t-e)<=n}function p(t){i(t),t.reverse()}function m(t){var e=o(t);return e.reverse(),e}function g(t,e){return Number.parseFloat(t.toFixed(null!=e?e:0))}function y(t){return t*(180/Math.PI)}function v(t){return t*(Math.PI/180)}function w(t,e){void 0===e&&(e=-Math.PI);var n=t-e;return e+((n%=2*Math.PI)>=0?n:n+2*Math.PI)}function b(t,e){var n=(e=w(e,t))-t;return(n<Math.PI/2||n>3*Math.PI/2)&&(t+=Math.PI),t}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,e){return t[0]===e[0]&&t[1]===e[1]||t[0]===e[1]&&t[1]===e[0]}function e(t,e){if(!e.includes(t))throw new Error("The given base is not present in the provided base-pair.");return t===e[0]?e[1]:e[0]}n.r(r),n.d(r,{FirstPairedBase:()=>s,LastPairedBase:()=>a,LeadingDanglingBases:()=>h,Linkers:()=>f,PositionPairs:()=>i,Stems:()=>c,TrailingDanglingBases:()=>u,antiParallelPairs:()=>w,areEqual:()=>t,consecutivePairs:()=>y,knotless:()=>d,missing:()=>b,mountainPlotTraversal:()=>m,other:()=>e,parallelPairs:()=>v,parseDotBracket:()=>g,radializable:()=>p});class i{constructor(...t){this.targetStructure=t}get(){let t=this.targetStructure[0];return this.targetStructure[1].map(e=>[t.indexOf(e[0])+1,t.indexOf(e[1])+1])}}class s{constructor(...t){this.targetStructure=t}get(){let t=this.targetStructure[0],e=this.targetStructure[1];if(0==e.length)throw new Error("There are no paired bases.");let n=e.flat(),r=t.findIndex(t=>n.includes(t));if(r<0)throw new Error("No paired bases present in sequence.");return t[r]}}var o=n(986);class a{constructor(...t){this.targetStructure=t}get(){let t=this.targetStructure[0],e=this.targetStructure[1];if(0==e.length)throw new Error("There are no paired bases.");let n=e.flat().map(e=>t.indexOf(e));if((0,o.max)(n)<0)throw new Error("No paired bases present in sequence.");return t[(0,o.max)(n)]}}class h{constructor(...t){this.targetStructure=t}get(){let t=this.targetStructure[0];if(0==this.targetStructure[1].length)throw new Error("There are no paired bases.");let e=new s(...this.targetStructure).get(),n=t.indexOf(e);if(n<0)throw new Error("No paired bases present in sequence.");return t.slice(0,n)}}class u{constructor(...t){this.targetStructure=t}get(){let t=this.targetStructure[0];if(0==this.targetStructure[1].length)throw new Error("There are no paired bases.");let e=new a(...this.targetStructure).get(),n=t.indexOf(e);if(n<0)throw new Error("No paired bases present in sequence.");return t.slice(n+1)}}var l=n(369);class c{constructor(...t){this.targetStructure=t}get(){let t=this.targetStructure[0],e=new i(...this.targetStructure).get();return new l.Stems(t,e).get().map(e=>e.map(e=>[t[e[0]-1],t[e[1]-1]]))}}class f{constructor(...t){this.targetStructure=t}get(){let t=this.targetStructure[0],e=new i(...this.targetStructure).get();return new l.Linkers(t,e).get().map(e=>e.map(e=>t[e-1]))}}function d(...t){let[e,n]=t,r=new i(...t).get();(0,l.areKnotless)(r)||(r=(0,l.knotless)(r));let s=r.map(t=>[e[t[0]-1],e[t[1]-1]]);return[[...e],s]}function p(...t){let[e,n]=t,r=new i(...t).get();return[[...e],(0,l.radializable)(r).map(([t,n])=>[e[t-1],e[n-1]])]}function m(...t){let[e,n]=t,r=new i(...t).get();return(0,l.mountainPlotTraversal)(e,r)}function g(t,e){if(e.length>t.length)throw new Error("Dot-bracket notation is longer than the sequence.");return[...(0,l.parseDotBracket)(e)].map(e=>{let n=e[0],r=e[1];return[t[n-1],t[r-1]]})}function y(t){return t.length<2?[]:t.slice(0,-1).map((e,n)=>[t[n],t[n+1]])}function v(t){let e=[],n=Math.floor(t.length/2)-1,r=Math.ceil(t.length/2);for(let i=0;i<=n;i++){let n=t[i],s=t[r+i];e.push([n,s])}return e}function w(t){let e=[];for(let n=0;n<Math.floor(t.length/2);n++){let r=t[n],i=t[t.length-n-1];e.push([r,i])}return e}function b(e,n){return n.filter(n=>!e.find(e=>t(n,e))).map(t=>[...t])}})(),r})(),t.exports=e()},139(t){var e;e=()=>(()=>{"use strict";var t={826:(t,e,n)=>{n.d(e,{A:()=>h,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 h=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 h=this[a][0];null!=h&&(o[h]=!0)}for(var u=0;u<t.length;u++){var l=[].concat(t[u]);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 h=t[a],u=r.base?h[0]+r.base:h[0],l=s[u]||0,c="".concat(u," ").concat(l);s[u]=l+1;var f=n(c),d={css:h[1],media:h[2],sourceMap:h[3],supports:h[4],layer:h[5]};if(-1!==f)e[f].references++,e[f].updater(d);else{var p=i(d,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 h=r(t,i),u=0;u<s.length;u++){var l=n(s[u]);0===e[l].references&&(e[l].updater(),e.splice(l,1))}s=h}}},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),h=n(659),u=n.n(h),l=n(56),c=n.n(l),f=n(540),d=n.n(f),p=n(113),m=n.n(p),g=n(826),y={};y.styleTagTransform=m(),y.setAttributes=c(),y.insert=u().bind(null,"head"),y.domAPI=a(),y.insertStyleElement=d(),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(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,clamp:()=>f,degrees:()=>y,flipAway:()=>b,isBetween:()=>l,isBetweenExclusive:()=>c,isBetweenInclusive:()=>l,max:()=>u,mean:()=>r,median:()=>a,min:()=>h,normalizeAngle:()=>w,radians:()=>v,round:()=>g,sortNumbers:()=>i,sortNumbersAscending:()=>i,sortNumbersDescending:()=>p,sortedNumbers:()=>o,sortedNumbersAscending:()=>o,sortedNumbersDescending:()=>m,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 h(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 u(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 f(t,e,n){return t<e?e:t>n?n:t}function d(t,e,n){return Math.abs(t-e)<=n}function p(t){i(t),t.reverse()}function m(t){var e=o(t);return e.reverse(),e}function g(t,e){return Number.parseFloat(t.toFixed(null!=e?e:0))}function y(t){return t*(180/Math.PI)}function v(t){return t*(Math.PI/180)}function w(t,e){void 0===e&&(e=-Math.PI);var n=t-e;return e+((n%=2*Math.PI)>=0?n:n+2*Math.PI)}function b(t,e){var n=(e=w(e,t))-t;return(n<Math.PI/2||n>3*Math.PI/2)&&(t+=Math.PI),t}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,{consensusNumber:()=>i,consensusValue:()=>t,mostCommonValue:()=>o});var e=n(986);function i(n,r){return t(void 0===r?n:n.map(t=>(0,e.round)(t,r)))}class s{static of(t){return{in:e=>{let n=new Set([t]);return e.filter(t=>n.has(t))}}}}function o(t){if(0==t.length)throw new Error("The array of values is empty.");let n=[...new Set(t)],r=n.map(e=>s.of(e).in(t).length),i=(0,e.max)(r),o=n.findIndex(e=>s.of(e).in(t).length==i);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:()=>h,_:()=>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: #ffaeae;\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: #302b2b;\n}\n\n.kcto2iumhdvv3MluNmLw:active {\n background-color: #474040;\n}\n',""]);var a="kcto2iumhdvv3MluNmLw";const h=o},313(t,e,n){"use strict";n.d(e,{Ay:()=>g,HS:()=>a,KI:()=>f,Ol:()=>p,Qs:()=>h,m2:()=>m,vM:()=>l,vw:()=>c,y1:()=>d,yZ:()=>u});var r=n(601),i=n.n(r),s=n(314),o=n.n(s)()(i());o.push([t.id,'.a6ORYgMQABEHR6aBTOyH {\n margin-top: 39px;\n\n display: flex;\n flex-direction: column;\n}\n\n.AlufD9RFKRiHPBf1_E_0 {\n margin: 11px 0px 0px 12px;\n\n display: flex;\n flex-direction: column;\n}\n\n.OJg1zcUAnASkF64IFOL6 .AlufD9RFKRiHPBf1_E_0 {\n display: none;\n}\n\n.xhlascYysfqr4snya6ak {\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: white;\n\n user-select: none;\n -webkit-user-select: none;\n\n pointer-events: none;\n}\n\n.TVzAna464XABORuzvUtf {\n margin-top: 20px;\n\n display: flex;\n flex-direction: row;\n align-items: center;\n}\n\n.aTWqhpXD94HnLgUeWRUu {\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: white;\n\n user-select: none;\n -webkit-user-select: none;\n\n pointer-events: none;\n}\n\n._8rBW8W6lwJb5IOiKXf4 {\n display: none;\n flex-direction: column;\n}\n\n.Gk0MbTyHyoFcln1qcKfL {\n margin-top: 29px;\n\n display: flex;\n flex-direction: column;\n}\n\n.YNSQDwnkP1fInYpWodH8 {\n margin-top: 29px;\n\n display: flex;\n flex-direction: column;\n}\n\n\n',""]);var a="a6ORYgMQABEHR6aBTOyH",h="AlufD9RFKRiHPBf1_E_0",u="OJg1zcUAnASkF64IFOL6",l="xhlascYysfqr4snya6ak",c="TVzAna464XABORuzvUtf",f="aTWqhpXD94HnLgUeWRUu",d="_8rBW8W6lwJb5IOiKXf4",p="Gk0MbTyHyoFcln1qcKfL",m="YNSQDwnkP1fInYpWodH8";const g=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 h=this[a][0];null!=h&&(o[h]=!0)}for(var u=0;u<t.length;u++){var l=[].concat(t[u]);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}},358(t){var e;e=()=>(()=>{var t={726:function(t){var e;e=()=>(()=>{var t={854: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){return"number"==typeof t}function r(t){return n(t)&&Number.isFinite(t)}function i(t){return n(t)&&!Number.isFinite(t)}function s(t){return r(t)&&t>0}function o(t){return r(t)&&t>=0}function a(t){return"string"==typeof t}function h(t){return null==t}function u(t){return"object"==typeof t&&null!==t}function l(t){return Array.isArray(t)}function c(t){return l(t)&&0==t.length}function f(t){return l(t)&&t.length>0}function d(t){return l(t)&&t.every(n)}function p(t){return d(t)&&t.length>0}function m(t){return l(t)&&t.every(r)}function g(t){return l(t)&&t.every(i)}function y(t){return l(t)&&t.every(a)}function v(t){return y(t)&&t.length>0}return t.r(e),t.d(e,{isArray:()=>l,isEmptyArray:()=>c,isFiniteNumber:()=>r,isFiniteNumbersArray:()=>m,isNonEmptyArray:()=>f,isNonEmptyNumbersArray:()=>p,isNonEmptyStringsArray:()=>v,isNonFiniteNumber:()=>i,isNonFiniteNumbersArray:()=>g,isNonNegativeFiniteNumber:()=>o,isNonNullObject:()=>u,isNullish:()=>h,isNumber:()=>n,isNumbersArray:()=>d,isPositiveFiniteNumber:()=>s,isString:()=>a,isStringsArray:()=>y}),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,e){for(let[n,r]of Object.entries(e))t.setAttribute(n,r)}n.r(r),n.d(r,{CoordinateSystem:()=>c,HorizontalClientScaling:()=>d,InnerXML:()=>w,OuterXML:()=>_,Scaling:()=>f,VerticalClientScaling:()=>p,assignUUID:()=>l,bringToFront:()=>m,isSVGGraphicsElement:()=>N,isSVGGraphicsElementsArray:()=>S,sendToBack:()=>g,setAttributes:()=>t});const e={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};var i,s=new Uint8Array(16);function o(){if(!i&&!(i="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return i(s)}for(var a=[],h=0;h<256;++h)a.push((h+256).toString(16).slice(1));const u=function(t,n,r){if(e.randomUUID&&!n&&!t)return e.randomUUID();var i=(t=t||{}).random||(t.rng||o)();if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,n){r=r||0;for(var s=0;s<16;++s)n[r+s]=i[s];return n}return function(t,e=0){return(a[t[e+0]]+a[t[e+1]]+a[t[e+2]]+a[t[e+3]]+"-"+a[t[e+4]]+a[t[e+5]]+"-"+a[t[e+6]]+a[t[e+7]]+"-"+a[t[e+8]]+a[t[e+9]]+"-"+a[t[e+10]]+a[t[e+11]]+a[t[e+12]]+a[t[e+13]]+a[t[e+14]]+a[t[e+15]]).toLowerCase()}(i)};function l(t){t.id="uuid-"+u()}class c{constructor(t){this.targetSVGDoc=t}get width(){return this.targetSVGDoc.viewBox.baseVal.width}get height(){return this.targetSVGDoc.viewBox.baseVal.height}get minX(){return this.targetSVGDoc.viewBox.baseVal.x}get maxX(){return this.minX+this.width}get minY(){return this.targetSVGDoc.viewBox.baseVal.y}get maxY(){return this.minY+this.height}get horizontalScaling(){return this.targetSVGDoc.width.baseVal.value/this.width}get verticalScaling(){return this.targetSVGDoc.height.baseVal.value/this.height}setScaling(t){this.targetSVGDoc.setAttribute("width",""+t*this.width),this.targetSVGDoc.setAttribute("height",""+t*this.height)}get clientWidth(){return this.targetSVGDoc.getBoundingClientRect().width}get clientHeight(){return this.targetSVGDoc.getBoundingClientRect().height}get horizontalClientScaling(){return this.clientWidth/this.width}get verticalClientScaling(){return this.clientHeight/this.height}get minClientX(){return this.targetSVGDoc.getBoundingClientRect().x}get minClientY(){return this.targetSVGDoc.getBoundingClientRect().y}fromClientX(t){return this.minX+(t-this.minClientX)/this.horizontalClientScaling}fromClientY(t){return this.minY+(t-this.minClientY)/this.verticalClientScaling}fromClientCoordinates(t,e){return[this.fromClientX(t),this.fromClientY(e)]}fromClientPoint(t){return{x:this.fromClientX(t.x),y:this.fromClientY(t.y)}}toClientX(t){return this.minClientX+this.horizontalClientScaling*(t-this.minX)}toClientY(t){return this.minClientY+this.verticalClientScaling*(t-this.minY)}toClientCoordinates(t,e){return[this.toClientX(t),this.toClientY(e)]}toClientPoint(t){return{x:this.toClientX(t.x),y:this.toClientY(t.y)}}}class f{constructor(t){this.targetSVGDoc=t}set(t){let e=this.targetSVGDoc.viewBox.baseVal;this.targetSVGDoc.setAttribute("width",t*e.width+"px"),this.targetSVGDoc.setAttribute("height",t*e.height+"px")}}class d{constructor(t){this.targetSVGDoc=t}get(){let t=this.targetSVGDoc.getBoundingClientRect(),e=this.targetSVGDoc.viewBox.baseVal;return t.width/e.width}}class p{constructor(t){this.targetSVGDoc=t}get(){let t=this.targetSVGDoc.getBoundingClientRect(),e=this.targetSVGDoc.viewBox.baseVal;return t.height/e.height}}function m(t){let e=t.parentNode;e&&e.appendChild(t)}function g(t){let e=t.parentNode;e&&e.prepend(t)}var y,v=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){y.set(this,void 0),function(t,e,n){if("function"==typeof e||!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");e.set(t,n)}(this,y,t)}toString(){return v(this,y,"f").innerHTML}set(t){v(this,y,"f").innerHTML=t}}y=new WeakMap;var b,x=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 _{constructor(t){b.set(this,void 0),function(t,e,n){if("function"==typeof e||!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");e.set(t,n)}(this,b,t)}toString(){return x(this,b,"f").outerHTML}set(t){let e=document.createElementNS("http://www.w3.org/2000/svg","svg");if(e.style.height="0px",document.body.append(e),e.innerHTML=t,!e.firstElementChild)throw new Error("Outer XML must encode an SVG element.");if(e.childNodes.length>1)throw new Error("Outer XML cannot encode multiple DOM nodes.");if(e.firstElementChild.tagName.toLowerCase()!=x(this,b,"f").tagName.toLowerCase())throw new Error("Outer XML must specify an SVG element with the same tag name as the target SVG element.");[...x(this,b,"f").attributes].forEach(t=>x(this,b,"f").removeAttribute(t.name)),[...e.firstElementChild.attributes].forEach(t=>x(this,b,"f").setAttribute(t.name,t.value)),x(this,b,"f").innerHTML=e.firstElementChild.innerHTML,e.remove()}}function N(t){return t instanceof SVGGraphicsElement}b=new WeakMap;var k=n(854);function S(t){return(0,k.isArray)(t)&&t.every(N)}})(),r})(),t.exports=e()},731:function(t){var e;e=()=>(()=>{"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={};t.r(e),t.d(e,{CenterPoint:()=>u});var n,r,i,s,o,a=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},h=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 u{constructor(t){n.add(this),r.set(this,void 0),i.set(this,{move:[]}),s.set(this,void 0),a(this,r,t,"f"),a(this,s,new MutationObserver(()=>h(this,n,"m",o).call(this,"move")),"f"),h(this,s,"f").observe(t,{attributes:!0,childList:!0,characterData:!0,subtree:!0})}get x(){let t=h(this,r,"f").getBBox();return t.x+t.width/2}set x(t){let e=this.x,n=[...h(this,r,"f").x.baseVal].map(t=>t.value);0!=n.length||n.push(0),n=n.map(n=>n+(t-e)),h(this,r,"f").setAttribute("x",n.join(", "))}get y(){let t=h(this,r,"f").getBBox();return t.y+t.height/2}set y(t){let e=this.y,n=[...h(this,r,"f").y.baseVal].map(t=>t.value);0!=n.length||n.push(0),n=n.map(n=>n+(t-e)),h(this,r,"f").setAttribute("y",n.join(", "))}addEventListener(t,e){h(this,i,"f")[t].push(e)}removeEventListener(t,e){h(this,i,"f")[t]=h(this,i,"f")[t].filter(t=>t!==e)}}return r=new WeakMap,i=new WeakMap,s=new WeakMap,n=new WeakSet,o=function(t){h(this,i,"f")[t].forEach(t=>t())},e})(),t.exports=e()},854: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){return"number"==typeof t}function r(t){return n(t)&&Number.isFinite(t)}function i(t){return n(t)&&!Number.isFinite(t)}function s(t){return r(t)&&t>0}function o(t){return r(t)&&t>=0}function a(t){return"string"==typeof t}function h(t){return null==t}function u(t){return"object"==typeof t&&null!==t}function l(t){return Array.isArray(t)}function c(t){return l(t)&&0==t.length}function f(t){return l(t)&&t.length>0}function d(t){return l(t)&&t.every(n)}function p(t){return d(t)&&t.length>0}function m(t){return l(t)&&t.every(r)}function g(t){return l(t)&&t.every(i)}function y(t){return l(t)&&t.every(a)}function v(t){return y(t)&&t.length>0}return t.r(e),t.d(e,{isArray:()=>l,isEmptyArray:()=>c,isFiniteNumber:()=>r,isFiniteNumbersArray:()=>m,isNonEmptyArray:()=>f,isNonEmptyNumbersArray:()=>p,isNonEmptyStringsArray:()=>v,isNonFiniteNumber:()=>i,isNonFiniteNumbersArray:()=>g,isNonNegativeFiniteNumber:()=>o,isNonNullObject:()=>u,isNullish:()=>h,isNumber:()=>n,isNumbersArray:()=>d,isPositiveFiniteNumber:()=>s,isString:()=>a,isStringsArray:()=>y}),e})()},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,clamp:()=>f,degrees:()=>g,flipAway:()=>w,isBetween:()=>l,isBetweenExclusive:()=>c,isBetweenInclusive:()=>l,max:()=>u,mean:()=>r,median:()=>a,min:()=>h,normalizeAngle:()=>v,radians:()=>y,sortNumbers:()=>i,sortNumbersAscending:()=>i,sortNumbersDescending:()=>p,sortedNumbers:()=>o,sortedNumbersAscending:()=>o,sortedNumbersDescending:()=>m,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 h(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 u(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 f(t,e,n){return t<e?e:t>n?n:t}function d(t,e,n){return Math.abs(t-e)<=n}function p(t){i(t),t.reverse()}function m(t){var e=o(t);return e.reverse(),e}function g(t){return t*(180/Math.PI)}function y(t){return t*(Math.PI/180)}function v(t,e){void 0===e&&(e=-Math.PI);var n=t-e;return e+((n%=2*Math.PI)>=0?n:n+2*Math.PI)}function w(t,e){var n=(e=v(e,t))-t;return(n<Math.PI/2||n>3*Math.PI/2)&&(t+=Math.PI),t}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";n.r(r),n.d(r,{BasePair:()=>Pn,Nucleobase:()=>jn,seqSorted:()=>Dn});var t={};n.r(t),n.d(t,{cx:()=>Dt,cy:()=>Bt,height:()=>Rt,rx:()=>Wt,ry:()=>Lt,width:()=>It,x:()=>jt,y:()=>Pt});var e={};n.r(e),n.d(e,{from:()=>Ut,to:()=>Vt});var i={};n.r(i),n.d(i,{MorphArray:()=>Qt,height:()=>te,width:()=>Kt,x:()=>Zt,y:()=>Jt});var s={};n.r(s),n.d(s,{array:()=>Ee,clear:()=>Ce,move:()=>Te,plot:()=>Oe,size:()=>We});var o={};n.r(o),n.d(o,{amove:()=>an,ax:()=>sn,ay:()=>on,build:()=>hn,center:()=>rn,cx:()=>en,cy:()=>nn,length:()=>Ze,move:()=>tn,plain:()=>Qe,x:()=>Je,y:()=>Ke});var a={};n.r(a),n.d(a,{dmove:()=>pn,dx:()=>mn,dy:()=>gn,height:()=>yn,move:()=>vn,size:()=>wn,width:()=>bn,x:()=>xn,y:()=>_n});const h={},u=[];function l(t,e){if(Array.isArray(t))for(const n of t)l(n,e);else if("object"!=typeof t)f(Object.getOwnPropertyNames(e)),h[t]=Object.assign(h[t]||{},e);else for(const e in t)l(e,t[e])}function c(t){return h[t]||{}}function f(t){u.push(...t)}function d(t,e){let n;const r=t.length,i=[];for(n=0;n<r;n++)i.push(e(t[n]));return i}function p(t){return t%360*Math.PI/180}function m(t){return t.charAt(0).toUpperCase()+t.slice(1)}function g(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 y(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:h}=e.bbox();s&&(r=r.includes("left")?a:r.includes("right")?a+n:a+n/2),o&&(i=i.includes("top")?h:i.includes("bottom")?h+t:h+t/2)}return[r,i]}const v=new Set(["desc","metadata","title"]),w=t=>v.has(t.nodeName),b=(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"))},x="http://www.w3.org/2000/svg",_="http://www.w3.org/2000/xmlns/",N="http://www.w3.org/1999/xlink",k={window:"undefined"==typeof window?null:window,document:"undefined"==typeof document?null:document};class S{}const M={},A="___SYMBOL___ROOT___";function E(t,e=x){return k.document.createElementNS(e,t)}function C(t,e=!1){if(t instanceof S)return t;if("object"==typeof t)return W(t);if(null==t)return new M[A];if("string"==typeof t&&"<"!==t.charAt(0))return W(k.document.querySelector(t));const n=e?k.document.createElement("div"):E("svg");return n.innerHTML=t,t=W(n.firstChild),n.removeChild(n.firstChild),t}function T(t,e){return e&&(e instanceof k.window.Node||e.ownerDocument&&e instanceof e.ownerDocument.defaultView.Node)?e:E(t)}function O(t){if(!t)return null;if(t.instance instanceof S)return t.instance;if("#document-fragment"===t.nodeName)return new M.Fragment(t);let e=m(t.nodeName||"Dom");return"LinearGradient"===e||"RadialGradient"===e?e="Gradient":M[e]||(e="Dom"),new M[e](t)}let W=O;function L(t,e=t.name,n=!1){return M[e]=t,n&&(M[A]=t),f(Object.getOwnPropertyNames(t.prototype)),t}let j=1e3;function P(t){return"Svgjs"+m(t)+j++}function D(t){for(let e=t.children.length-1;e>=0;e--)D(t.children[e]);return t.id?(t.id=P(t.nodeName),t):t}function B(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 I(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)}}l("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=C(t)).remove();const e=this.position();return this.parent().add(t,e),this},after:function(t){(t=C(t)).remove();const e=this.position();return this.parent().add(t,e+1),this},insertBefore:function(t){return(t=C(t)).before(this),this},insertAfter:function(t){return(t=C(t)).after(this),this}});const R=/^([+-]?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?)([a-z%]*)$/i,z=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i,F=/rgb\((\d+),(\d+),(\d+)\)/,q=/(#[a-z_][a-z0-9\-_]*)/i,U=/\)\s*,?\s*/,V=/\s/g,G=/^#[a-f0-9]{3}$|^#[a-f0-9]{6}$/i,H=/^rgb\(/,X=/^(\s+)?$/,Y=/^[+-]?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,$=/\.(jpg|jpeg|png|gif|svg)(\?[^=]+.*)?/i,Q=/[\s,]+/,Z=/[MLHVCSQTAZ]/i;function J(t){const e=Math.round(t),n=Math.max(0,Math.min(255,e)).toString(16);return 1===n.length?"0"+n:n}function K(t,e){for(let n=e.length;n--;)if(null==t[e[n]])return!1;return!0}function tt(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}l("Dom",{classes:function(){const t=this.attr("class");return null==t?[]:t.trim().split(Q)},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)}}),l("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]||X.test(t[e])?"":t[e])}return 2===arguments.length&&this.node.style.setProperty(t,null==e||X.test(e)?"":e),this},show:function(){return this.css("display","")},hide:function(){return this.css("display","none")},visible:function(){return"none"!==this.css("display")}}),l("Dom",{data:function(t,e,n){if(null==t)return this.data(d(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}}),l("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 et{constructor(...t){this.init(...t)}static isColor(t){return t&&(t instanceof et||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 et(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 et(t,o,a)}if("pastel"===t){const t=8*n()+86,e=17*n()+9,r=360*n();return new et(t,e,r,"lch")}if("dark"===t){const t=10+10*n(),e=50*n()+86,r=360*n();return new et(t,e,r,"lch")}if("rgb"===t){const t=255*n(),e=255*n(),r=255*n();return new et(t,e,r)}if("lab"===t){const t=100*n(),e=256*n()-128,r=256*n()-128;return new et(t,e,r,"lab")}if("grey"===t){const t=255*n();return new et(t,t,t)}throw new Error("Unsupported random color mode")}static test(t){return"string"==typeof t&&(G.test(t)||H.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 et(0,0,0,1,"cmyk"):new et((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),h=(o+a)/2,u=o===a,l=o-a;return new et(360*(u?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*(u?0:h>.5?l/(2-o-a):l/(o+a)),100*h,"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=K(t,"rgb")?{_a:t.r,_b:t.g,_c:t.b,_d:0,space:"rgb"}:K(t,"xyz")?{_a:t.x,_b:t.y,_c:t.z,_d:0,space:"xyz"}:K(t,"hsl")?{_a:t.h,_b:t.s,_c:t.l,_d:0,space:"hsl"}:K(t,"lab")?{_a:t.l,_b:t.a,_c:t.b,_d:0,space:"lab"}:K(t,"lch")?{_a:t.l,_b:t.c,_c:t.h,_d:0,space:"lch"}:K(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(H.test(t)){const e=t.replace(V,""),[n,r,i]=F.exec(e).slice(1,4).map(t=>parseInt(t));Object.assign(this,{_a:n,_b:r,_c:i,_d:0,space:"rgb"})}else{if(!G.test(t))throw Error("Unsupported string format, can't construct Color");{const e=t=>parseInt(t,16),[,n,r,i]=z.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:h}=this,u="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:h}:{};Object.assign(this,u)}lab(){const{x:t,y:e,z:n}=this.xyz();return new et(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 et(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,h=o-s/200,u=16/116,l=.008856,c=7.787;t=.95047*(a**3>l?a**3:(a-u)/c),e=1*(o**3>l?o**3:(o-u)/c),n=1.08883*(h**3>l?h**3:(h-u)/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,h=r>a?1.055*o(r,1/2.4)-.055:12.92*r,u=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 et(255*h,255*u,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 et(n,n,n);const r=n<.5?n*(1+e):n+e-n*e,i=2*n-r,s=255*tt(i,r,t+1/3),o=255*tt(i,r,t),a=255*tt(i,r,t-1/3);return new et(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 et(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(J);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,h=s>.04045?Math.pow((s+.055)/1.055,2.4):s/12.92,u=(.4124*o+.3576*a+.1805*h)/.95047,l=(.2126*o+.7152*a+.0722*h)/1,c=(.0193*o+.1192*a+.9505*h)/1.08883,f=u>.008856?Math.pow(u,1/3):7.787*u+16/116,d=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 et(f,d,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 nt{constructor(...t){this.init(...t)}clone(){return new nt(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){it.isMatrixLike(t)||(t=new it(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 rt(t,e,n){return Math.abs(e-t)<(n||1e-6)}class it{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,h=t.shear||0,u=t.rotate||t.theta||0,l=new nt(t.origin||t.around||t.ox||t.originX,t.oy||t.originY),c=l.x,f=l.y,d=new nt(t.position||t.px||t.positionX||NaN,t.py||t.positionY||NaN),p=d.x,m=d.y,g=new nt(t.translate||t.tx||t.translateX,t.ty||t.translateY),y=g.x,v=g.y,w=new nt(t.relative||t.rx||t.relativeX,t.ry||t.relativeY);return{scaleX:o,scaleY:a,skewX:i,skewY:s,shear:h,theta:u,rx:w.x,ry:w.y,tx:y,ty:v,ox:c,oy:f,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,h=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=h,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 it(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,h=n*s-r*i,u=h>0?1:-1,l=u*Math.sqrt(n*n+r*r),c=Math.atan2(u*r,u*n),f=180/Math.PI*c,d=Math.cos(c),p=Math.sin(c),m=(n*i+r*s)/h,g=i*l/(m*n-r)||s*l/(m*r+n);return{scaleX:l,scaleY:g,shear:m,rotate:f,translateX:o-t+t*d*l+e*(m*d*l-p*g),translateY:a-e+t*p*l+e*(m*p*l+d*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 it(t);return rt(this.a,e.a)&&rt(this.b,e.b)&&rt(this.c,e.c)&&rt(this.d,e.d)&&rt(this.e,e.e)&&rt(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=it.fromArray([1,0,0,1,0,0]);return t=t instanceof At?t.matrixify():"string"==typeof t?it.fromArray(t.split(Q).map(parseFloat)):Array.isArray(t)?it.fromArray(t):"object"==typeof t&&it.isMatrixLike(t)?t:"object"==typeof t?(new it).transform(t):6===arguments.length?it.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,h=-e/o,u=-n/o,l=t/o,c=-(a*i+u*s),f=-(h*i+l*s);return this.a=a,this.b=h,this.c=u,this.d=l,this.e=c,this.f=f,this}lmultiply(t){return this.clone().lmultiplyO(t)}lmultiplyO(t){const e=t instanceof it?t:new it(t);return it.matrixMultiply(e,this,this)}multiply(t){return this.clone().multiplyO(t)}multiplyO(t){const e=t instanceof it?t:new it(t);return it.matrixMultiply(this,e,this)}rotate(t,e,n){return this.clone().rotateO(t,e,n)}rotateO(t,e=0,n=0){t=p(t);const r=Math.cos(t),i=Math.sin(t),{a:s,b:o,c:a,d:h,e:u,f:l}=this;return this.a=s*r-o*i,this.b=o*r+s*i,this.c=a*r-h*i,this.d=h*r+a*i,this.e=u*r-l*i+n*i-e*r+e,this.f=l*r+u*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:h,f:u}=this;return this.a=i*t,this.b=s*e,this.c=o*t,this.d=a*e,this.e=h*t-n*t+n,this.f=u*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:h}=this;return this.a=r+i*t,this.c=s+o*t,this.e=a+h*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=p(t),e=p(e);const i=Math.tan(t),s=Math.tan(e),{a:o,b:a,c:h,d:u,e:l,f:c}=this;return this.a=o+a*i,this.b=a+o*s,this.c=h+u*i,this.d=u+h*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(it.isMatrixLike(t))return new it(t).multiplyO(this);const e=it.formatTransforms(t),{x:n,y:r}=new nt(e.ox,e.oy).transform(this),i=(new it).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 nt(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 st(){if(!st.nodes){const t=C().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;st.nodes={svg:t,path:e}}if(!st.nodes.svg.node.parentNode){const t=k.document.body||k.document.documentElement;st.nodes.svg.addTo(t)}return st.nodes}function ot(t){return!(t.width||t.height||t.x||t.y)}L(it,"Matrix");class at{constructor(...t){this.init(...t)}addOffset(){return this.x+=k.window.pageXOffset,this.y+=k.window.pageYOffset,new at(this)}init(t){return t="string"==typeof t?t.split(Q).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 ot(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 at(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 it||(t=new it(t));let e=1/0,n=-1/0,r=1/0,i=-1/0;return[new nt(this.x,this.y),new nt(this.x2,this.y),new nt(this.x,this.y2),new nt(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 at(e,r,n-e,i-r)}}function ht(t,e,n){let r;try{if(r=e(t.node),ot(r)&&(i=t.node)!==k.document&&!(k.document.documentElement.contains||function(t){for(;t.parentNode;)t=t.parentNode;return t===k.document}).call(k.document.documentElement,i))throw new Error("Element not in the dom")}catch(e){r=n(t)}var i;return r}l({viewbox:{viewbox(t,e,n,r){return null==t?new at(this.attr("viewBox")):this.attr("viewBox",new at(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 h=a/t;h===1/0&&(h=Number.MAX_SAFE_INTEGER/100),e=e||new nt(n/2/s+i.x,r/2/o+i.y);const u=new at(i).transform(new it({scale:h,origin:e}));return this.viewbox(u)}}}),L(at,"Box");class ut extends Array{constructor(t=[],...e){if(super(t,...e),"number"==typeof t)return this;this.length=0,this.push(...t)}}const lt=ut;B([ut],{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 ct=["toArray","constructor","each"];function ft(t,e){return new lt(d((e||k.document).querySelectorAll(t),function(t){return O(t)}))}ut.extend=function(t){t=t.reduce((t,e)=>(ct.includes(e)||"_"===e[0]||(e in Array.prototype&&(t["$"+e]=Array.prototype[e]),t[e]=function(...t){return this.each(e,...t)}),t),{}),B([ut],t)};let dt=0;const pt={};function mt(t){let e=t.getEventHolder();return e===k.window&&(e=pt),e.events||(e.events={}),e.events}function gt(t){return t.getEventTarget()}function yt(t,e,n,r,i){const s=n.bind(r||t),o=C(t),a=mt(o),h=gt(o);e=Array.isArray(e)?e:e.split(Q),n._svgjsListenerId||(n._svgjsListenerId=++dt),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,h.addEventListener(e,s,i||!1)})}function vt(t,e,n,r){const i=C(t),s=mt(i),o=gt(i);("function"!=typeof n||(n=n._svgjsListenerId))&&(e=Array.isArray(e)?e:(e||"").split(Q)).forEach(function(t){const e=t&&t.split(".")[0],a=t&&t.split(".")[1];let h,u;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(u in s[e][a])vt(o,[e,a].join("."),u);delete s[e][a]}}else if(a)for(t in s)for(h in s[t])a===h&&vt(o,[t,a].join("."));else if(e){if(s[e]){for(h in s[e])vt(o,[e,h].join("."));delete s[e]}}else{for(t in s)vt(o,t);!function(t){let e=t.getEventHolder();e===k.window&&(e=pt),e.events&&(e.events={})}(i)}})}class wt extends S{addEventListener(){}dispatch(t,e,n){return function(t,e,n,r){const i=gt(t);return e instanceof k.window.Event||(e=new k.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 vt(this,t,e,n),this}on(t,e,n,r){return yt(this,t,e,n,r),this}removeEventListener(){}}function bt(){}L(wt,"EventTarget");const xt={"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 _t 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(Q).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 Nt{constructor(...t){this.init(...t)}convert(t){return new Nt(this.value,t)}divide(t){return t=new Nt(t),new Nt(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(R))&&(this.value=parseFloat(e[1]),"%"===e[5]?this.value/=100:"s"===e[5]&&(this.value*=1e3),this.unit=e[5]):t instanceof Nt&&(this.value=t.valueOf(),this.unit=t.unit),this}minus(t){return t=new Nt(t),new Nt(this-t,this.unit||t.unit)}plus(t){return t=new Nt(t),new Nt(this+t,this.unit||t.unit)}times(t){return t=new Nt(t),new Nt(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 kt=new Set(["fill","stroke","color","bgcolor","stop-color","flood-color","lighting-color"]),St=[];class Mt extends wt{constructor(t,e){super(),this.node=t,this.type=t.nodeName,e&&t!==e&&this.attr(e)}add(t,e){return(t=C(t)).removeNamespace&&this.node instanceof k.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 C(t).put(this,e)}children(){return new lt(d(this.node.children,function(t){return O(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=D(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 Mt(E(t),e))}first(){return O(this.node.firstChild)}get(t){return O(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=P(this.type)),this.attr("id",t)}index(t){return[].slice.call(this.node.childNodes).indexOf(t.node)}last(){return O(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=O(e.node.parentNode),!t)return e;do{if("string"==typeof t?e.matches(t):e instanceof t)return e}while(e=O(e.node.parentNode));return e}put(t,e){return t=C(t),this.add(t,e),t}putIn(t,e){return C(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=C(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,x)}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=O(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=E("wrapper",n),i=k.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)}}B(Mt,{attr:function(t,e,n){if(null==t){t={},e=this.node.attributes;for(const n of e)t[n.nodeName]=Y.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))?xt[t]:Y.test(e)?parseFloat(e):e;"number"==typeof(e=St.reduce((e,n)=>n(t,e,this),e))?e=new Nt(e):kt.has(t)&&et.isColor(e)?e=new et(e):e.constructor===Array&&(e=new _t(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 ft(t,this.node)},findOne:function(t){return O(this.node.querySelector(t))}}),L(Mt,"Dom");class At extends Mt{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 Nt(t).plus(this.x()))}dy(t=0){return this.y(new Nt(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=C(t));const n=new lt;let r=this;for(;(r=r.parent())&&r.node!==k.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(q);return e?C(e[1]):null}root(){const t=this.parent(M[A]);return t&&t.root()}setData(t){return this.dom=t,this}size(t,e){const n=g(this,t,e);return this.width(new Nt(n.width)).height(new Nt(n.height))}width(t){return this.attr("width",t)}writeDataToDom(){return b(this,this.dom),super.writeDataToDom()}x(t){return this.attr("x",t)}y(t){return this.attr("y",t)}}B(At,{bbox:function(){const t=ht(this,t=>t.getBBox(),t=>{try{const e=t.clone().addTo(st().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 at(t)},rbox:function(t){const e=ht(this,t=>t.getBoundingClientRect(),t=>{throw new Error(`Getting rbox of element "${t.node.nodeName}" is not possible`)}),n=new at(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 nt(t,e).transformO(this.screenCTM().inverseO())},ctm:function(){return new it(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 it(e)}return new it(this.node.getScreenCTM())}catch(t){return console.warn(`Cannot get CTM from SVG node ${this.node.nodeName}. Is the element rendered?`),new it}}}),L(At,"Element");const Et={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 et||et.isRgb(e)||e instanceof At)this.attr(t,e);else for(n=Et[t].length-1;n>=0;n--)null!=e[Et[t][n]]&&this.attr(Et.prefix(t,Et[t][n]),e[Et[t][n]]);return this},l(["Element","Runner"],e)}),l(["Element","Runner"],{matrix:function(t,e,n,r,i,s){return null==t?new it(this):this.attr("transform",new it(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)}}),l("radius",{radius:function(t,e=t){return"radialGradient"===(this._element||this).type?this.attr("r",new Nt(t)):this.rx(t).ry(e)}}),l("Path",{length:function(){return this.node.getTotalLength()},pointAt:function(t){return new nt(this.node.getPointAtLength(t))}}),l(["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)}}),l("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},{})),l("Element",{untransform:function(){return this.attr("transform",null)},matrixify:function(){return(this.attr("transform")||"").split(U).slice(0,-1).map(function(t){const e=t.trim().split("(");return[e[0],e[1].split(Q).map(function(t){return parseFloat(t)})]}).reverse().reduce(function(t,e){return"matrix"===e[0]?t.lmultiply(it.fromArray(e[1])):t[e[0]].apply(t,e[1])},new it)},toParent:function(t,e){if(this===t)return this;if(w(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 it(this).decompose();return null==t?e:e[t]}it.isMatrixLike(t)||(t={...t,origin:y(t,this)});const n=new it(!0===e?this:e||!1).transform(t);return this.attr("transform",n)}});class Ct extends At{flatten(){return this.each(function(){if(this instanceof Ct)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()}}L(Ct,"Container");class Tt extends Ct{constructor(t,e=t){super(T("defs",t),e)}flatten(){return this}ungroup(){return this}}L(Tt,"Defs");class Ot extends At{}function Wt(t){return this.attr("rx",t)}function Lt(t){return this.attr("ry",t)}function jt(t){return null==t?this.cx()-this.rx():this.cx(t+this.rx())}function Pt(t){return null==t?this.cy()-this.ry():this.cy(t+this.ry())}function Dt(t){return this.attr("cx",t)}function Bt(t){return this.attr("cy",t)}function It(t){return null==t?2*this.rx():this.rx(new Nt(t).divide(2))}function Rt(t){return null==t?2*this.ry():this.ry(new Nt(t).divide(2))}L(Ot,"Shape");class zt extends Ot{constructor(t,e=t){super(T("ellipse",t),e)}size(t,e){const n=g(this,t,e);return this.rx(new Nt(n.width).divide(2)).ry(new Nt(n.height).divide(2))}}B(zt,t),l("Container",{ellipse:I(function(t=0,e=t){return this.put(new zt).size(t,e).move(0,0)})}),L(zt,"Ellipse");class Ft extends Mt{constructor(t=k.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 Mt(E("wrapper",n));return t.add(this.node.cloneNode(!0)),t.xml(!1,n)}return super.xml(t,!1,n)}}L(Ft,"Fragment");const qt=Ft;function Ut(t,e){return"radialGradient"===(this._element||this).type?this.attr({fx:new Nt(t),fy:new Nt(e)}):this.attr({x1:new Nt(t),y1:new Nt(e)})}function Vt(t,e){return"radialGradient"===(this._element||this).type?this.attr({cx:new Nt(t),cy:new Nt(e)}):this.attr({x2:new Nt(t),y2:new Nt(e)})}class Gt extends Ct{constructor(t,e){super(T(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 at}targets(){return ft("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()+")"}}B(Gt,e),l({Container:{gradient(...t){return this.defs().gradient(...t)}},Defs:{gradient:I(function(t,e){return this.put(new Gt(t)).update(e)})}}),L(Gt,"Gradient");class Ht extends Ct{constructor(t,e=t){super(T("pattern",t),e)}attr(t,e,n){return"transform"===t&&(t="patternTransform"),super.attr(t,e,n)}bbox(){return new at}targets(){return ft("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()+")"}}l({Container:{pattern(...t){return this.defs().pattern(...t)}},Defs:{pattern:I(function(t,e,n){return this.put(new Ht).update(n).attr({x:0,y:0,width:t,height:e,patternUnits:"userSpaceOnUse"})})}}),L(Ht,"Pattern");class Xt extends Ot{constructor(t,e=t){super(T("image",t),e)}load(t,e){if(!t)return this;const n=new k.window.Image;return yt(n,"load",function(t){const r=this.parent(Ht);0===this.width()&&0===this.height()&&this.size(n.width,n.height),r instanceof Ht&&0===r.width()&&0===r.height()&&r.size(this.width(),this.height()),"function"==typeof e&&e.call(this,t)},this),yt(n,"load error",function(){vt(n)}),this.attr("href",n.src=t,N)}}var Yt;Yt=function(t,e,n){return"fill"!==t&&"stroke"!==t||$.test(e)&&(e=n.root().defs().image(e)),e instanceof Xt&&(e=n.root().defs().pattern(0,0,t=>{t.add(e)})),e},St.push(Yt),l({Container:{image:I(function(t,e){return this.put(new Xt).size(0,0).load(t,e)})}}),L(Xt,"Image");class $t extends _t{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 at(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(Q).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){it.isMatrixLike(t)||(t=new it(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 Qt=$t;function Zt(t){return null==t?this.bbox().x:this.move(t,this.bbox().y)}function Jt(t){return null==t?this.bbox().y:this.move(this.bbox().x,t)}function Kt(t){const e=this.bbox();return null==t?e.width:this.size(t,e.height)}function te(t){const e=this.bbox();return null==t?e.height:this.size(e.width,t)}class ee extends Ot{constructor(t,e=t){super(T("line",t),e)}array(){return new $t([[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 $t(t).toLine(),this.attr(t))}size(t,e){const n=g(this,t,e);return this.attr(this.array().size(n.width,n.height).toLine())}}B(ee,i),l({Container:{line:I(function(...t){return ee.prototype.plot.apply(this.put(new ee),null!=t[0]?t:[0,0,0,0])})}}),L(ee,"Line");class ne extends Ct{constructor(t,e=t){super(T("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 re(t,e){return function(n){return null==n?this[t]:(this[t]=n,e&&e.call(this),this)}}l({Container:{marker(...t){return this.defs().marker(...t)}},Defs:{marker:I(function(t,e,n){return this.put(new ne).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 ne?arguments[1]:this.defs().marker(e,n,r),this.attr(i,t)}}}),L(ne,"Marker");const ie={"-":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 se{done(){return!1}}class oe extends se{constructor(t=">"){super(),this.ease=ie[t]||t}step(t,e,n){return"number"!=typeof t?n<1?t:e:t+(e-t)*this.ease(n)}}class ae extends se{constructor(t){super(),this.stepper=t}done(t){return t.done}step(t,e,n,r){return this.stepper(t,e,n,r)}}function he(){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}B(class extends ae{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:re("_duration",he),overshoot:re("_overshoot",he)}),B(class extends ae{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:re("_windup"),p:re("P"),i:re("I"),d:re("D")});const ue={M:2,L:2,H:1,V:1,C:6,S:4,Q:4,T:2,A:7,Z:0},le={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]]}},ce="mlhvqtcsaz".split("");for(let t=0,e=ce.length;t<e;++t)le[ce[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 le[t](e,n,r)}}(ce[t].toUpperCase());function fe(t){return t.segment.length&&t.segment.length-1===ue[t.segment[0].toUpperCase()]}function de(t,e){t.inNumber&&pe(t,!1);const n=Z.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 pe(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,fe(t)&&me(t)}function me(t){t.inSegment=!1,t.absolute&&(t.segment=function(t){const e=t.segment[0];return le[e](t.segment.slice(1),t.p,t.p0)}(t)),t.segments.push(t.segment)}function ge(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 ye(t){return"E"===t.lastToken.toUpperCase()}const ve=new Set([" ",",","\t","\n","\r","\f"]);class we extends _t{bbox(){return st().path.setAttribute("d",this.toString()),new at(st.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 nt,p:new nt};for(;i.lastToken=r,r=t.charAt(n++);)if(i.inSegment||!de(i,r))if("."!==r)if(isNaN(parseInt(r)))if(ve.has(r))i.inNumber&&pe(i,!1);else if("-"!==r&&"+"!==r)if("E"!==r.toUpperCase()){if(Z.test(r)){if(i.inNumber)pe(i,!1);else{if(!fe(i))throw new Error("parser Error");me(i)}--n}}else i.number+=r,i.hasExponent=!0;else{if(i.inNumber&&!ye(i)){pe(i,!1),--n;continue}i.number+=r,i.inNumber=!0}else{if("0"===i.number||ge(i)){i.inNumber=!0,i.number=r,pe(i,!0);continue}i.inNumber=!0,i.number+=r}else{if(i.pointSeen||i.hasExponent){pe(i,!1),--n;continue}i.inNumber=!0,i.pointSeen=!0,i.number+=r}return i.inNumber&&pe(i,!1),i.inSegment&&fe(i)&&me(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 be=t=>{const e=typeof t;return"number"===e?Nt:"string"===e?et.isColor(t)?et:Q.test(t)?Z.test(t)?we:_t:R.test(t)?Nt:_e:Me.indexOf(t.constructor)>-1?t.constructor:Array.isArray(t)?_t:"object"===e?Se:_e};class xe{constructor(t){this._stepper=t||new oe("-"),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(be(t));let e=new this._type(t);return this._type===et&&(e=this._to?e[this._to[4]]():this._from?e[this._from[4]]():e),this._type===Se&&(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 _e{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 Ne{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,Ne.defaults,t),this}toArray(){const t=this;return[t.scaleX,t.scaleY,t.shear,t.rotate,t.translateX,t.translateY,t.originX,t.originY]}}Ne.defaults={scaleX:1,scaleY:1,shear:0,rotate:0,translateX:0,translateY:0,originX:0,originY:0};const ke=(t,e)=>t[0]<e[0]?-1:t[0]>e[0]?1:0;class Se{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]===et&&t[n+7]!==e[n+7]){const e=t[n+7],r=new et(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=be(t[n]),i=new r(t[n]).toArray();e.push([n,r,i.length,...i])}return e.sort(ke),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 Me=[_e,Ne,Se];class Ae extends Ot{constructor(t,e=t){super(T("path",t),e)}array(){return this._array||(this._array=new we(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 we(t))}size(t,e){const n=g(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 Ee(){return this._array||(this._array=new $t(this.attr("points")))}function Ce(){return delete this._array,this}function Te(t,e){return this.attr("points",this.array().move(t,e))}function Oe(t){return null==t?this.array():this.clear().attr("points","string"==typeof t?t:this._array=new $t(t))}function We(t,e){const n=g(this,t,e);return this.attr("points",this.array().size(n.width,n.height))}Ae.prototype.MorphArray=we,l({Container:{path:I(function(t){return this.put(new Ae).plot(t||new we)})}}),L(Ae,"Path");class Le extends Ot{constructor(t,e=t){super(T("polygon",t),e)}}l({Container:{polygon:I(function(t){return this.put(new Le).plot(t||new $t)})}}),B(Le,i),B(Le,s),L(Le,"Polygon");class je extends Ot{constructor(t,e=t){super(T("polyline",t),e)}}l({Container:{polyline:I(function(t){return this.put(new je).plot(t||new $t)})}}),B(je,i),B(je,s),L(je,"Polyline");class Pe extends Ot{constructor(t,e=t){super(T("rect",t),e)}}B(Pe,{rx:Wt,ry:Lt}),l({Container:{rect:I(function(t,e){return this.put(new Pe).size(t,e)})}}),L(Pe,"Rect");class De{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 Be={nextDraw:null,frames:new De,timeouts:new De,immediates:new De,timer:()=>k.window.performance||k.window.Date,transforms:[],frame(t){const e=Be.frames.push({run:t});return null===Be.nextDraw&&(Be.nextDraw=k.window.requestAnimationFrame(Be._draw)),e},timeout(t,e){e=e||0;const n=Be.timer().now()+e,r=Be.timeouts.push({run:t,time:n});return null===Be.nextDraw&&(Be.nextDraw=k.window.requestAnimationFrame(Be._draw)),r},immediate(t){const e=Be.immediates.push(t);return null===Be.nextDraw&&(Be.nextDraw=k.window.requestAnimationFrame(Be._draw)),e},cancelFrame(t){null!=t&&Be.frames.remove(t)},clearTimeout(t){null!=t&&Be.timeouts.remove(t)},cancelImmediate(t){null!=t&&Be.immediates.remove(t)},_draw(t){let e=null;const n=Be.timeouts.last();for(;(e=Be.timeouts.shift())&&(t>=e.time?e.run():Be.timeouts.push(e),e!==n););let r=null;const i=Be.frames.last();for(;r!==i&&(r=Be.frames.shift());)r.run(t);let s=null;for(;s=Be.immediates.shift();)s();Be.nextDraw=Be.timeouts.first()||Be.frames.first()?k.window.requestAnimationFrame(Be._draw):null}},Ie=Be,Re=function(t){const e=t.start,n=t.runner.duration();return{start:e,duration:n,end:e+n,runner:t.runner}},ze=function(){const t=k.window;return(t.performance||t.Date).now()};class Fe extends wt{constructor(t=ze){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(Re);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 Ie.cancelFrame(this._nextFrame),this._nextFrame=null,t?this._stepImmediate():(this._paused||(this._nextFrame=Ie.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)}}l({Element:{timeline:function(t){return null==t?(this._timeline=this._timeline||new Fe,this._timeline):(this._timeline=t,this)}}});class qe extends wt{constructor(t){super(),this.id=qe.id++,t="function"==typeof(t=null==t?400:t)?new ae(t):t,this._element=null,this._timeline=null,this.done=!1,this._queue=[],this._duration="number"==typeof t&&t,this._isDeclarative=t instanceof ae,this._stepper=this._isDeclarative?t:new oe,this._history={},this.enabled=!0,this._time=0,this._lastTime=0,this._reseted=!0,this.transforms=new it,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 se||(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=qe.sanitise(t,e,n),i=new qe(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 it,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 oe(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)},h=i*(r+n)-r;return a=e<=0?Math.round(t(1e-5)):e<h?t(e):Math.round(t(h-1e-5)),a}const h=Math.floor(this.loops()),u=s&&h%2==0;return a=h+(u&&!o||o&&u?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||bt,runner:e||bt,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 Fe||(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 it,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}}qe.id=0;class Ue{constructor(t=new it,e=-1,n=!0){this.transforms=t,this.id=e,this.done=n}clearTransformsFromQueue(){}}B([qe,Ue],{mergeWith(t){return new Ue(t.transforms.lmultiply(this.transforms),t.id)}});const Ve=(t,e)=>t.lmultiplyO(e),Ge=t=>t.transforms;function He(){const t=this._transformationRunners.runners.map(Ge).reduce(Ve,new it);this.transform(t),this._transformationRunners.merge(),1===this._transformationRunners.length()&&(this._frameId=null)}class Xe{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 Ue).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}}l({Element:{animate(t,e,n){const r=qe.sanitise(t,e,n),i=this.timeline();return new qe(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(Ge).reduce(Ve,new it)},_addRunner(t){this._transformationRunners.add(t),Ie.cancelImmediate(this._frameId),this._frameId=Ie.immediate(He.bind(this))},_prepareRunner(){null==this._frameId&&(this._transformationRunners=(new Xe).add(new Ue(new it(this))))}}}),B(qe,{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 xe(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 Se(i.from()).valueOf();Object.assign(n,e),i.from(n)}const h=new Se(i.to()).valueOf();Object.assign(h,e),i.to(h),s=n,r=e}),this._rememberMorpher(t,i),this},zoom(t,e){if(this._tryRetarget("zoom",t,e))return this;let n=new xe(this._stepper).to(new Nt(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=it.isMatrixLike(t);n=null!=t.affine?t.affine:null!=n?n:!r;const i=new xe(this._stepper).type(n?Ne:it);let s,o,a,h,u;return this.queue(function(){o=o||this.element(),s=s||y(t,o),u=new it(e?void 0:o),o._addRunner(this),e||o._clearTransformRunnersBefore(this)},function(l){e||this.clearTransform();const{x:c,y:f}=new nt(s).transform(o._currentTransform(this));let d=new it({...t,origin:[c,f]}),p=this._isDeclarative&&a?a:u;if(n){d=d.decompose(c,f),p=p.decompose(c,f);const t=d.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);d.rotate=n[s]}e&&(r||(d.rotate=t.rotate||0),this._isDeclarative&&h&&(p.rotate=h)),i.from(p),i.to(d);const m=i.at(l);return h=m.rotate,a=new it(m),this.addTransform(a),o._addRunner(this),i.done()},function(e){(e.origin||"center").toString()!==(t.origin||"center").toString()&&(s=y(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 Nt(e),this._tryRetarget(t,e))return this;const n=new xe(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 Nt(t))}),this._rememberMorpher(t,n),this},_queueObject(t,e){if(this._tryRetarget(t,e))return this;const n=new xe(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 Nt(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 xe(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 at(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)}}),B(qe,{rx:Wt,ry:Lt,from:Ut,to:Vt}),L(qe,"Runner");class Ye extends Ct{constructor(t,e=t){super(T("svg",t),e),this.namespace()}defs(){return this.isRoot()?O(this.node.querySelector("defs"))||this.put(new Tt):this.root().defs()}isRoot(){return!this.node.parentNode||!(this.node.parentNode instanceof k.window.SVGElement)&&"#document-fragment"!==this.node.parentNode.nodeName}namespace(){return this.isRoot()?this.attr({xmlns:x,version:"1.1"}).attr("xmlns:xlink",N,_):this.root().namespace()}removeNamespace(){return this.attr({xmlns:null,version:null}).attr("xmlns:xlink",null,_).attr("xmlns:svgjs",null,_)}root(){return this.isRoot()?this:super.root()}}l({Container:{nested:I(function(){return this.put(new Ye)})}}),L(Ye,"Svg",!0);class $e extends Ct{constructor(t,e=t){super(T("symbol",t),e)}}function Qe(t){return!1===this._build&&this.clear(),this.node.appendChild(k.document.createTextNode(t)),this}function Ze(){return this.node.getComputedTextLength()}function Je(t,e=this.bbox()){return null==t?e.x:this.attr("x",this.attr("x")+t-e.x)}function Ke(t,e=this.bbox()){return null==t?e.y:this.attr("y",this.attr("y")+t-e.y)}function tn(t,e,n=this.bbox()){return this.x(t,n).y(e,n)}function en(t,e=this.bbox()){return null==t?e.cx:this.attr("x",this.attr("x")+t-e.cx)}function nn(t,e=this.bbox()){return null==t?e.cy:this.attr("y",this.attr("y")+t-e.cy)}function rn(t,e,n=this.bbox()){return this.cx(t,n).cy(e,n)}function sn(t){return this.attr("x",t)}function on(t){return this.attr("y",t)}function an(t,e){return this.ax(t).ay(e)}function hn(t){return this._build=!!t,this}l({Container:{symbol:I(function(){return this.put(new $e)})}}),L($e,"Symbol");class un extends Ot{constructor(t,e=t){super(T("text",t),e),this.dom.leading=this.dom.leading??new Nt(1.3),this._rebuild=!0,this._build=!1}leading(t){return null==t?this.dom.leading:(this.dom.leading=new Nt(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(w(this.node))return;const i=k.window.getComputedStyle(this.node).getPropertyValue("font-size"),s=n*new Nt(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 Nt(t.leading||1.3),this}writeDataToDom(){return b(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||w(e[r])?0===r&&(n=r+1):(r!==n&&3!==e[r].nodeType&&!0===O(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()}}B(un,o),l({Container:{text:I(function(t=""){return this.put(new un).text(t)}),plain:I(function(t=""){return this.put(new un).plain(t)})}}),L(un,"Text");class ln extends Ot{constructor(t,e=t){super(T("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 un))return this;const e=t.index(this),n=k.window.getComputedStyle(this.node).getPropertyValue("font-size"),r=t.dom.leading*new Nt(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)}}B(ln,o),l({Tspan:{tspan:I(function(t=""){const e=new ln;return this._build||this.clear(),this.put(e).text(t)})},Text:{newLine:function(t=""){return this.tspan(t).newLine()}}}),L(ln,"Tspan");class cn extends Ot{constructor(t,e=t){super(T("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 Nt(t).divide(2))}}B(cn,{x:jt,y:Pt,cx:Dt,cy:Bt,width:It,height:Rt}),l({Container:{circle:I(function(t=0){return this.put(new cn).size(t).move(0,0)})}}),L(cn,"Circle");class fn extends Ct{constructor(t,e=t){super(T("clipPath",t),e)}remove(){return this.targets().forEach(function(t){t.unclip()}),super.remove()}targets(){return ft("svg [clip-path*="+this.id()+"]")}}l({Container:{clip:I(function(){return this.defs().put(new fn)})},Element:{clipper(){return this.reference("clip-path")},clipWith(t){const e=t instanceof fn?t:this.parent().clip().add(t);return this.attr("clip-path","url(#"+e.id()+")")},unclip(){return this.attr("clip-path",null)}}}),L(fn,"ClipPath");class dn extends At{constructor(t,e=t){super(T("foreignObject",t),e)}}function pn(t,e){return this.children().forEach(n=>{let r;try{r=n.node instanceof k.window.SVGSVGElement?new at(n.attr(["x","y","width","height"])):n.bbox()}catch(t){return}const i=new it(n),s=i.translate(t,e).transform(i.inverse()),o=new nt(r.x,r.y).transform(s);n.move(o.x,o.y)}),this}function mn(t){return this.dmove(t,0)}function gn(t){return this.dmove(0,t)}function yn(t,e=this.bbox()){return null==t?e.height:this.size(e.width,t,e)}function vn(t=0,e=0,n=this.bbox()){const r=t-n.x,i=e-n.y;return this.dmove(r,i)}function wn(t,e,n=this.bbox()){const r=g(this,t,e,n),i=r.width/n.width,s=r.height/n.height;return this.children().forEach(t=>{const e=new nt(n).transform(new it(t).inverse());t.scale(i,s,e.x,e.y)}),this}function bn(t,e=this.bbox()){return null==t?e.width:this.size(t,e.height,e)}function xn(t,e=this.bbox()){return null==t?e.x:this.move(t,e.y,e)}function _n(t,e=this.bbox()){return null==t?e.y:this.move(e.x,t,e)}l({Container:{foreignObject:I(function(t,e){return this.put(new dn).size(t,e)})}}),L(dn,"ForeignObject");class Nn extends Ct{constructor(t,e=t){super(T("g",t),e)}}B(Nn,a),l({Container:{group:I(function(){return this.put(new Nn)})}}),L(Nn,"G");class kn extends Ct{constructor(t,e=t){super(T("a",t),e)}target(t){return this.attr("target",t)}to(t){return this.attr("href",t,N)}}B(kn,a),l({Container:{link:I(function(t){return this.put(new kn).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 kn,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}}}),L(kn,"A");class Sn extends Ct{constructor(t,e=t){super(T("mask",t),e)}remove(){return this.targets().forEach(function(t){t.unmask()}),super.remove()}targets(){return ft("svg [mask*="+this.id()+"]")}}l({Container:{mask:I(function(){return this.defs().put(new Sn)})},Element:{masker(){return this.reference("mask")},maskWith(t){const e=t instanceof Sn?t:this.parent().mask().add(t);return this.attr("mask","url(#"+e.id()+")")},unmask(){return this.attr("mask",null)}}}),L(Sn,"Mask");class Mn extends At{constructor(t,e=t){super(T("stop",t),e)}update(t){return("number"==typeof t||t instanceof Nt)&&(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 Nt(t.offset)),this}}l({Gradient:{stop:function(t,e,n){return this.put(new Mn).update(t,e,n)}}}),L(Mn,"Stop");class An extends At{constructor(t,e=t){super(T("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))}}l("Dom",{style(t,e){return this.put(new An).rule(t,e)},fontface(t,e,n){return this.put(new An).font(t,e,n)}}),L(An,"Style");class En extends un{constructor(t,e=t){super(T("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")}}l({Container:{textPath:I(function(t,e){return t instanceof un||(t=this.text(t)),t.path(e)})},Text:{path:I(function(t,e=!0){const n=new En;let r;if(t instanceof Ae||(t=this.defs().path(t)),n.attr("href","#"+t,N),e)for(;r=this.node.firstChild;)n.node.appendChild(r);return this.put(n)}),textPath(){return this.findOne("textPath")}},Path:{text:I(function(t){return t instanceof un||(t=(new un).addTo(this.parent()).text(t)),t.path(this)}),targets(){return ft("svg textPath").filter(t=>(t.attr("href")||"").includes(this.id()))}}}),En.prototype.MorphArray=we,L(En,"TextPath");class Cn extends Ot{constructor(t,e=t){super(T("use",t),e)}use(t,e){return this.attr("href",(e||"")+"#"+t,N)}}l({Container:{use:I(function(t,e){return this.put(new Cn).use(t,e)})}}),L(Cn,"Use"),B([Ye,$e,Xt,Ht,ne],c("viewbox")),B([ee,je,Le,Ae],c("marker")),B(un,c("Text")),B(Ae,c("Path")),B(Tt,c("Defs")),B([un,ln],c("Tspan")),B([Pe,zt,Gt,qe],c("radius")),B(wt,c("EventTarget")),B(Mt,c("Dom")),B(At,c("Element")),B(Ot,c("Shape")),B([Ct,qt],c("Container")),B(Gt,c("Gradient")),B(qe,c("Runner")),lt.extend([...new Set(u)]),function(t=[]){Me.push(...[].concat(t))}([Nt,et,at,it,_t,$t,we,nt]),B(Me,{to(t){return(new xe).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 Tn=n(726),On=n(854),Wn=n(731),Ln=n(986);class jn{static create(t){let e=document.createElementNS("http://www.w3.org/2000/svg","text");e.textContent=t;let n=new jn(e);return n.assignUUID(),n.setAttributes(jn.defaultAttributes),n}static deserialized(t,e){var n;if(!(0,On.isNonNullObject)(t))throw new Error("Saved base must be an object.");let r=null!==(n=t.id)&&void 0!==n?n:t.textId;if(!r)throw new Error("Missing base ID.");if(!(0,On.isString)(r))throw new Error("Base IDs must be strings.");let i=e.domNode.querySelector("#"+r);if(!i)throw new Error("Unable to find nucleobase DOM node.");if(!(i instanceof SVGTextElement))throw new Error("Nucleobase DOM node must be an SVG text element.");return new jn(i)}constructor(t){this.domNode=t,this.centerPoint=new Wn.CenterPoint(t)}serialized(){if(!this.id)throw new Error("Nucleobase ID is falsy.");return{id:this.id}}appendTo(t){t.appendChild(this.domNode)}remove(){this.domNode.remove()}isIn(t){return t.contains(this.domNode)&&t!==this.domNode}hasParent(){return!!this.domNode.parentNode}bringToFront(){(0,Tn.bringToFront)(this.domNode)}sendToBack(){(0,Tn.sendToBack)(this.domNode)}getAttribute(t){return this.domNode.getAttribute(t)}setAttribute(t,e){this.domNode.setAttribute(t,e)}setAttributes(t){try{new un(this.domNode).attr(t)}catch(t){}}get id(){return this.domNode.id}assignUUID(){(0,Tn.assignUUID)(this.domNode)}get textContent(){return this.domNode.textContent}set textContent(t){this.domNode.textContent=t}isA(){var t;return"A"===(null===(t=this.textContent)||void 0===t?void 0:t.toUpperCase())}isU(){var t;return"U"===(null===(t=this.textContent)||void 0===t?void 0:t.toUpperCase())}isT(){var t;return"T"===(null===(t=this.textContent)||void 0===t?void 0:t.toUpperCase())}isG(){var t;return"G"===(null===(t=this.textContent)||void 0===t?void 0:t.toUpperCase())}isC(){var t;return"C"===(null===(t=this.textContent)||void 0===t?void 0:t.toUpperCase())}get bbox(){return this.domNode.getBBox()}getCenterPoint(){return this.centerPoint}setCenterPoint(t){this.centerPoint.x=t.x,this.centerPoint.y=t.y}maintainingCenterPoint(t){let{x:e,y:n}=this.centerPoint;t(),this.centerPoint.x=e,this.centerPoint.y=n}get boundingClientRect(){return this.domNode.getBoundingClientRect()}get clientCenterPoint(){let t=this.domNode.getBoundingClientRect();return{x:(0,Ln.mean)([t.left,t.right]),y:(0,Ln.mean)([t.top,t.bottom])}}getClientCenterPoint(){return this.clientCenterPoint}}jn.defaultAttributes={"font-family":"Arial","font-size":"9","font-weight":"700"},jn.defaultAttributeNames=["font-family","font-size","font-weight"];class Pn{constructor(t,e){this.base1=t,this.base2=e}[Symbol.iterator](){return[this.base1,this.base2].values()}isAU(){return this.base1.isA()&&this.base2.isU()||this.base1.isU()&&this.base2.isA()}isAT(){return this.base1.isA()&&this.base2.isT()||this.base1.isT()&&this.base2.isA()}isGC(){return this.base1.isG()&&this.base2.isC()||this.base1.isC()&&this.base2.isG()}isGU(){return this.base1.isG()&&this.base2.isU()||this.base1.isU()&&this.base2.isG()}isGT(){return this.base1.isG()&&this.base2.isT()||this.base1.isT()&&this.base2.isG()}}function Dn(t,e){let n=new Map;e.forEach((t,e)=>n.set(t,e));let r=[...t];return r.sort((t,e)=>{var r,i;return(null!==(r=n.get(t))&&void 0!==r?r:-1)-(null!==(i=n.get(e))&&void 0!==i?i:-1)}),r}})(),r})(),t.exports=e()},401(t,e,n){"use strict";n.d(e,{Ay:()=>d,Qs:()=>h,eB:()=>f,gP:()=>a,vM:()=>l,vw:()=>c,yZ:()=>u});var r=n(601),i=n.n(r),s=n(314),o=n.n(s)()(i());o.push([t.id,'.ANVAQUoGpnk43RSnGAKM {\n margin-top: 39px;\n\n display: flex;\n flex-direction: column;\n}\n\n.RAWN5K2ehadscPWlBK_9 {\n margin: 11px 0px 0px 12px;\n\n display: flex;\n flex-direction: column;\n}\n\n.RDvmUBCYTtjR2wzHlmxc .RAWN5K2ehadscPWlBK_9 {\n display: none;\n}\n\n.R1YlURzvulrm8_Yykjll {\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: white;\n\n user-select: none;\n -webkit-user-select: none;\n\n pointer-events: none;\n}\n\n.JuLTZXer4cr4ufASV85l {\n margin-top: 23px;\n\n display: flex;\n flex-direction: row;\n gap: 23px;\n}\n\n.nJxPkvauzUEG66FC0ZAb {\n display: none;\n flex-direction: column;\n}\n',""]);var a="ANVAQUoGpnk43RSnGAKM",h="RAWN5K2ehadscPWlBK_9",u="RDvmUBCYTtjR2wzHlmxc",l="R1YlURzvulrm8_Yykjll",c="JuLTZXer4cr4ufASV85l",f="nJxPkvauzUEG66FC0ZAb";const d=o},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:()=>h,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-radius: 2px;\n\n border: none;\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 background-color: white;\n\n pointer-events: auto;\n}\n\n.cstoj4QoATbKp66WQrBA:focus {\n outline: none;\n}\n',""]);var a="cstoj4QoATbKp66WQrBA";const h=o},420(t,e,n){"use strict";n.d(e,{Ay:()=>l,KQ:()=>a,UJ:()=>u,wx:()=>h});var r=n(601),i=n.n(r),s=n(314),o=n.n(s)()(i());o.push([t.id,'.wkp2L4HpJzRg7XSLEG0O {\n width: 290px;\n height: 524px;\n\n overflow: auto;\n\n border-radius: 15px;\n\n border: 1px solid #cacae4;\n\n padding: 23px 16px 50px 36px;\n\n background-color: rgba(0, 0, 0, 0.88);\n}\n\n.Y7tezdMOsnQfs2CQtMUR {\n margin: 0px;\n padding: 0px;\n\n font-family: "Open Sans", sans-serif;\n font-size: 31px;\n font-weight: 700;\n font-style: normal;\n color: white;\n\n user-select: none;\n -webkit-user-select: none;\n\n pointer-events: none;\n}\n\n.blLx0TnwxHwlX8qvUigb {\n margin: 27px 0px 0px 24px;\n\n /**\n * Prevents unwanted movement of the vertical scrollbar\n * when elements are deselected and reselected.\n */\n min-height: 2200px;\n\n display: flex;\n flex-direction: column;\n align-items: start;\n\n pointer-events: none;\n}\n',""]);var a="wkp2L4HpJzRg7XSLEG0O",h="Y7tezdMOsnQfs2CQtMUR",u="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}},543(t,e,n){var r;t=n.nmd(t),function(){var i,s="Expected a function",o="__lodash_hash_undefined__",a="__lodash_placeholder__",h=32,u=128,l=1/0,c=9007199254740991,f=NaN,d=4294967295,p=[["ary",u],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",h],["partialRight",64],["rearg",256]],m="[object Arguments]",g="[object Array]",y="[object Boolean]",v="[object Date]",w="[object Error]",b="[object Function]",x="[object GeneratorFunction]",_="[object Map]",N="[object Number]",k="[object Object]",S="[object Promise]",M="[object RegExp]",A="[object Set]",E="[object String]",C="[object Symbol]",T="[object WeakMap]",O="[object ArrayBuffer]",W="[object DataView]",L="[object Float32Array]",j="[object Float64Array]",P="[object Int8Array]",D="[object Int16Array]",B="[object Int32Array]",I="[object Uint8Array]",R="[object Uint8ClampedArray]",z="[object Uint16Array]",F="[object Uint32Array]",q=/\b__p \+= '';/g,U=/\b(__p \+=) '' \+/g,V=/(__e\(.*?\)|\b__t\)) \+\n'';/g,G=/&(?:amp|lt|gt|quot|#39);/g,H=/[&<>"']/g,X=RegExp(G.source),Y=RegExp(H.source),$=/<%-([\s\S]+?)%>/g,Q=/<%([\s\S]+?)%>/g,Z=/<%=([\s\S]+?)%>/g,J=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,K=/^\w*$/,tt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,et=/[\\^$.*+?()[\]{}|]/g,nt=RegExp(et.source),rt=/^\s+/,it=/\s/,st=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ot=/\{\n\/\* \[wrapped with (.+)\] \*/,at=/,? & /,ht=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ut=/[()=,{}\[\]\/\s]/,lt=/\\(\\)?/g,ct=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,ft=/\w*$/,dt=/^[-+]0x[0-9a-f]+$/i,pt=/^0b[01]+$/i,mt=/^\[object .+?Constructor\]$/,gt=/^0o[0-7]+$/i,yt=/^(?:0|[1-9]\d*)$/,vt=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,wt=/($^)/,bt=/['\n\r\u2028\u2029\\]/g,xt="\\ud800-\\udfff",_t="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Nt="\\u2700-\\u27bf",kt="a-z\\xdf-\\xf6\\xf8-\\xff",St="A-Z\\xc0-\\xd6\\xd8-\\xde",Mt="\\ufe0e\\ufe0f",At="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Et="["+xt+"]",Ct="["+At+"]",Tt="["+_t+"]",Ot="\\d+",Wt="["+Nt+"]",Lt="["+kt+"]",jt="[^"+xt+At+Ot+Nt+kt+St+"]",Pt="\\ud83c[\\udffb-\\udfff]",Dt="[^"+xt+"]",Bt="(?:\\ud83c[\\udde6-\\uddff]){2}",It="[\\ud800-\\udbff][\\udc00-\\udfff]",Rt="["+St+"]",zt="\\u200d",Ft="(?:"+Lt+"|"+jt+")",qt="(?:"+Rt+"|"+jt+")",Ut="(?:['’](?:d|ll|m|re|s|t|ve))?",Vt="(?:['’](?:D|LL|M|RE|S|T|VE))?",Gt="(?:"+Tt+"|"+Pt+")?",Ht="["+Mt+"]?",Xt=Ht+Gt+"(?:"+zt+"(?:"+[Dt,Bt,It].join("|")+")"+Ht+Gt+")*",Yt="(?:"+[Wt,Bt,It].join("|")+")"+Xt,$t="(?:"+[Dt+Tt+"?",Tt,Bt,It,Et].join("|")+")",Qt=RegExp("['’]","g"),Zt=RegExp(Tt,"g"),Jt=RegExp(Pt+"(?="+Pt+")|"+$t+Xt,"g"),Kt=RegExp([Rt+"?"+Lt+"+"+Ut+"(?="+[Ct,Rt,"$"].join("|")+")",qt+"+"+Vt+"(?="+[Ct,Rt+Ft,"$"].join("|")+")",Rt+"?"+Ft+"+"+Ut,Rt+"+"+Vt,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Ot,Yt].join("|"),"g"),te=RegExp("["+zt+xt+_t+Mt+"]"),ee=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,ne=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],re=-1,ie={};ie[L]=ie[j]=ie[P]=ie[D]=ie[B]=ie[I]=ie[R]=ie[z]=ie[F]=!0,ie[m]=ie[g]=ie[O]=ie[y]=ie[W]=ie[v]=ie[w]=ie[b]=ie[_]=ie[N]=ie[k]=ie[M]=ie[A]=ie[E]=ie[T]=!1;var se={};se[m]=se[g]=se[O]=se[W]=se[y]=se[v]=se[L]=se[j]=se[P]=se[D]=se[B]=se[_]=se[N]=se[k]=se[M]=se[A]=se[E]=se[C]=se[I]=se[R]=se[z]=se[F]=!0,se[w]=se[b]=se[T]=!1;var oe={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},ae=parseFloat,he=parseInt,ue="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,le="object"==typeof self&&self&&self.Object===Object&&self,ce=ue||le||Function("return this")(),fe=e&&!e.nodeType&&e,de=fe&&t&&!t.nodeType&&t,pe=de&&de.exports===fe,me=pe&&ue.process,ge=function(){try{return de&&de.require&&de.require("util").types||me&&me.binding&&me.binding("util")}catch(t){}}(),ye=ge&&ge.isArrayBuffer,ve=ge&&ge.isDate,we=ge&&ge.isMap,be=ge&&ge.isRegExp,xe=ge&&ge.isSet,_e=ge&&ge.isTypedArray;function Ne(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}function ke(t,e,n,r){for(var i=-1,s=null==t?0:t.length;++i<s;){var o=t[i];e(r,o,n(o),t)}return r}function Se(t,e){for(var n=-1,r=null==t?0:t.length;++n<r&&!1!==e(t[n],n,t););return t}function Me(t,e){for(var n=null==t?0:t.length;n--&&!1!==e(t[n],n,t););return t}function Ae(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(!e(t[n],n,t))return!1;return!0}function Ee(t,e){for(var n=-1,r=null==t?0:t.length,i=0,s=[];++n<r;){var o=t[n];e(o,n,t)&&(s[i++]=o)}return s}function Ce(t,e){return!(null==t||!t.length)&&Re(t,e,0)>-1}function Te(t,e,n){for(var r=-1,i=null==t?0:t.length;++r<i;)if(n(e,t[r]))return!0;return!1}function Oe(t,e){for(var n=-1,r=null==t?0:t.length,i=Array(r);++n<r;)i[n]=e(t[n],n,t);return i}function We(t,e){for(var n=-1,r=e.length,i=t.length;++n<r;)t[i+n]=e[n];return t}function Le(t,e,n,r){var i=-1,s=null==t?0:t.length;for(r&&s&&(n=t[++i]);++i<s;)n=e(n,t[i],i,t);return n}function je(t,e,n,r){var i=null==t?0:t.length;for(r&&i&&(n=t[--i]);i--;)n=e(n,t[i],i,t);return n}function Pe(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1}var De=Ue("length");function Be(t,e,n){var r;return n(t,function(t,n,i){if(e(t,n,i))return r=n,!1}),r}function Ie(t,e,n,r){for(var i=t.length,s=n+(r?1:-1);r?s--:++s<i;)if(e(t[s],s,t))return s;return-1}function Re(t,e,n){return e==e?function(t,e,n){for(var r=n-1,i=t.length;++r<i;)if(t[r]===e)return r;return-1}(t,e,n):Ie(t,Fe,n)}function ze(t,e,n,r){for(var i=n-1,s=t.length;++i<s;)if(r(t[i],e))return i;return-1}function Fe(t){return t!=t}function qe(t,e){var n=null==t?0:t.length;return n?He(t,e)/n:f}function Ue(t){return function(e){return null==e?i:e[t]}}function Ve(t){return function(e){return null==t?i:t[e]}}function Ge(t,e,n,r,i){return i(t,function(t,i,s){n=r?(r=!1,t):e(n,t,i,s)}),n}function He(t,e){for(var n,r=-1,s=t.length;++r<s;){var o=e(t[r]);o!==i&&(n=n===i?o:n+o)}return n}function Xe(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}function Ye(t){return t?t.slice(0,fn(t)+1).replace(rt,""):t}function $e(t){return function(e){return t(e)}}function Qe(t,e){return Oe(e,function(e){return t[e]})}function Ze(t,e){return t.has(e)}function Je(t,e){for(var n=-1,r=t.length;++n<r&&Re(e,t[n],0)>-1;);return n}function Ke(t,e){for(var n=t.length;n--&&Re(e,t[n],0)>-1;);return n}var tn=Ve({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"}),en=Ve({"&":"&","<":"<",">":">",'"':""","'":"'"});function nn(t){return"\\"+oe[t]}function rn(t){return te.test(t)}function sn(t){var e=-1,n=Array(t.size);return t.forEach(function(t,r){n[++e]=[r,t]}),n}function on(t,e){return function(n){return t(e(n))}}function an(t,e){for(var n=-1,r=t.length,i=0,s=[];++n<r;){var o=t[n];o!==e&&o!==a||(t[n]=a,s[i++]=n)}return s}function hn(t){var e=-1,n=Array(t.size);return t.forEach(function(t){n[++e]=t}),n}function un(t){var e=-1,n=Array(t.size);return t.forEach(function(t){n[++e]=[t,t]}),n}function ln(t){return rn(t)?function(t){for(var e=Jt.lastIndex=0;Jt.test(t);)++e;return e}(t):De(t)}function cn(t){return rn(t)?function(t){return t.match(Jt)||[]}(t):function(t){return t.split("")}(t)}function fn(t){for(var e=t.length;e--&&it.test(t.charAt(e)););return e}var dn=Ve({"&":"&","<":"<",">":">",""":'"',"'":"'"}),pn=function t(e){var n,r=(e=null==e?ce:pn.defaults(ce.Object(),e,pn.pick(ce,ne))).Array,it=e.Date,xt=e.Error,_t=e.Function,Nt=e.Math,kt=e.Object,St=e.RegExp,Mt=e.String,At=e.TypeError,Et=r.prototype,Ct=_t.prototype,Tt=kt.prototype,Ot=e["__core-js_shared__"],Wt=Ct.toString,Lt=Tt.hasOwnProperty,jt=0,Pt=(n=/[^.]+$/.exec(Ot&&Ot.keys&&Ot.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",Dt=Tt.toString,Bt=Wt.call(kt),It=ce._,Rt=St("^"+Wt.call(Lt).replace(et,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),zt=pe?e.Buffer:i,Ft=e.Symbol,qt=e.Uint8Array,Ut=zt?zt.allocUnsafe:i,Vt=on(kt.getPrototypeOf,kt),Gt=kt.create,Ht=Tt.propertyIsEnumerable,Xt=Et.splice,Yt=Ft?Ft.isConcatSpreadable:i,$t=Ft?Ft.iterator:i,Jt=Ft?Ft.toStringTag:i,te=function(){try{var t=hs(kt,"defineProperty");return t({},"",{}),t}catch(t){}}(),oe=e.clearTimeout!==ce.clearTimeout&&e.clearTimeout,ue=it&&it.now!==ce.Date.now&&it.now,le=e.setTimeout!==ce.setTimeout&&e.setTimeout,fe=Nt.ceil,de=Nt.floor,me=kt.getOwnPropertySymbols,ge=zt?zt.isBuffer:i,De=e.isFinite,Ve=Et.join,mn=on(kt.keys,kt),gn=Nt.max,yn=Nt.min,vn=it.now,wn=e.parseInt,bn=Nt.random,xn=Et.reverse,_n=hs(e,"DataView"),Nn=hs(e,"Map"),kn=hs(e,"Promise"),Sn=hs(e,"Set"),Mn=hs(e,"WeakMap"),An=hs(kt,"create"),En=Mn&&new Mn,Cn={},Tn=Ds(_n),On=Ds(Nn),Wn=Ds(kn),Ln=Ds(Sn),jn=Ds(Mn),Pn=Ft?Ft.prototype:i,Dn=Pn?Pn.valueOf:i,Bn=Pn?Pn.toString:i;function In(t){if(ta(t)&&!Uo(t)&&!(t instanceof qn)){if(t instanceof Fn)return t;if(Lt.call(t,"__wrapped__"))return Bs(t)}return new Fn(t)}var Rn=function(){function t(){}return function(e){if(!Ko(e))return{};if(Gt)return Gt(e);t.prototype=e;var n=new t;return t.prototype=i,n}}();function zn(){}function Fn(t,e){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!e,this.__index__=0,this.__values__=i}function qn(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=d,this.__views__=[]}function Un(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function Vn(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function Gn(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function Hn(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new Gn;++e<n;)this.add(t[e])}function Xn(t){var e=this.__data__=new Vn(t);this.size=e.size}function Yn(t,e){var n=Uo(t),r=!n&&qo(t),i=!n&&!r&&Xo(t),s=!n&&!r&&!i&&ha(t),o=n||r||i||s,a=o?Xe(t.length,Mt):[],h=a.length;for(var u in t)!e&&!Lt.call(t,u)||o&&("length"==u||i&&("offset"==u||"parent"==u)||s&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||ms(u,h))||a.push(u);return a}function $n(t){var e=t.length;return e?t[Gr(0,e-1)]:i}function Qn(t,e){return Os(Mi(t),sr(e,0,t.length))}function Zn(t){return Os(Mi(t))}function Jn(t,e,n){(n!==i&&!Ro(t[e],n)||n===i&&!(e in t))&&rr(t,e,n)}function Kn(t,e,n){var r=t[e];Lt.call(t,e)&&Ro(r,n)&&(n!==i||e in t)||rr(t,e,n)}function tr(t,e){for(var n=t.length;n--;)if(Ro(t[n][0],e))return n;return-1}function er(t,e,n,r){return lr(t,function(t,i,s){e(r,t,n(t),s)}),r}function nr(t,e){return t&&Ai(e,Ta(e),t)}function rr(t,e,n){"__proto__"==e&&te?te(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}function ir(t,e){for(var n=-1,s=e.length,o=r(s),a=null==t;++n<s;)o[n]=a?i:Sa(t,e[n]);return o}function sr(t,e,n){return t==t&&(n!==i&&(t=t<=n?t:n),e!==i&&(t=t>=e?t:e)),t}function or(t,e,n,r,s,o){var a,h=1&e,u=2&e,l=4&e;if(n&&(a=s?n(t,r,s,o):n(t)),a!==i)return a;if(!Ko(t))return t;var c=Uo(t);if(c){if(a=function(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&Lt.call(t,"index")&&(n.index=t.index,n.input=t.input),n}(t),!h)return Mi(t,a)}else{var f=cs(t),d=f==b||f==x;if(Xo(t))return bi(t,h);if(f==k||f==m||d&&!s){if(a=u||d?{}:ds(t),!h)return u?function(t,e){return Ai(t,ls(t),e)}(t,function(t,e){return t&&Ai(e,Oa(e),t)}(a,t)):function(t,e){return Ai(t,us(t),e)}(t,nr(a,t))}else{if(!se[f])return s?t:{};a=function(t,e,n){var r,i=t.constructor;switch(e){case O:return xi(t);case y:case v:return new i(+t);case W:return function(t,e){var n=e?xi(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}(t,n);case L:case j:case P:case D:case B:case I:case R:case z:case F:return _i(t,n);case _:return new i;case N:case E:return new i(t);case M:return function(t){var e=new t.constructor(t.source,ft.exec(t));return e.lastIndex=t.lastIndex,e}(t);case A:return new i;case C:return r=t,Dn?kt(Dn.call(r)):{}}}(t,f,h)}}o||(o=new Xn);var p=o.get(t);if(p)return p;o.set(t,a),sa(t)?t.forEach(function(r){a.add(or(r,e,n,r,t,o))}):ea(t)&&t.forEach(function(r,i){a.set(i,or(r,e,n,i,t,o))});var g=c?i:(l?u?es:ts:u?Oa:Ta)(t);return Se(g||t,function(r,i){g&&(r=t[i=r]),Kn(a,i,or(r,e,n,i,t,o))}),a}function ar(t,e,n){var r=n.length;if(null==t)return!r;for(t=kt(t);r--;){var s=n[r],o=e[s],a=t[s];if(a===i&&!(s in t)||!o(a))return!1}return!0}function hr(t,e,n){if("function"!=typeof t)throw new At(s);return As(function(){t.apply(i,n)},e)}function ur(t,e,n,r){var i=-1,s=Ce,o=!0,a=t.length,h=[],u=e.length;if(!a)return h;n&&(e=Oe(e,$e(n))),r?(s=Te,o=!1):e.length>=200&&(s=Ze,o=!1,e=new Hn(e));t:for(;++i<a;){var l=t[i],c=null==n?l:n(l);if(l=r||0!==l?l:0,o&&c==c){for(var f=u;f--;)if(e[f]===c)continue t;h.push(l)}else s(e,c,r)||h.push(l)}return h}In.templateSettings={escape:$,evaluate:Q,interpolate:Z,variable:"",imports:{_:In}},In.prototype=zn.prototype,In.prototype.constructor=In,Fn.prototype=Rn(zn.prototype),Fn.prototype.constructor=Fn,qn.prototype=Rn(zn.prototype),qn.prototype.constructor=qn,Un.prototype.clear=function(){this.__data__=An?An(null):{},this.size=0},Un.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},Un.prototype.get=function(t){var e=this.__data__;if(An){var n=e[t];return n===o?i:n}return Lt.call(e,t)?e[t]:i},Un.prototype.has=function(t){var e=this.__data__;return An?e[t]!==i:Lt.call(e,t)},Un.prototype.set=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=An&&e===i?o:e,this},Vn.prototype.clear=function(){this.__data__=[],this.size=0},Vn.prototype.delete=function(t){var e=this.__data__,n=tr(e,t);return!(n<0||(n==e.length-1?e.pop():Xt.call(e,n,1),--this.size,0))},Vn.prototype.get=function(t){var e=this.__data__,n=tr(e,t);return n<0?i:e[n][1]},Vn.prototype.has=function(t){return tr(this.__data__,t)>-1},Vn.prototype.set=function(t,e){var n=this.__data__,r=tr(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this},Gn.prototype.clear=function(){this.size=0,this.__data__={hash:new Un,map:new(Nn||Vn),string:new Un}},Gn.prototype.delete=function(t){var e=os(this,t).delete(t);return this.size-=e?1:0,e},Gn.prototype.get=function(t){return os(this,t).get(t)},Gn.prototype.has=function(t){return os(this,t).has(t)},Gn.prototype.set=function(t,e){var n=os(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this},Hn.prototype.add=Hn.prototype.push=function(t){return this.__data__.set(t,o),this},Hn.prototype.has=function(t){return this.__data__.has(t)},Xn.prototype.clear=function(){this.__data__=new Vn,this.size=0},Xn.prototype.delete=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n},Xn.prototype.get=function(t){return this.__data__.get(t)},Xn.prototype.has=function(t){return this.__data__.has(t)},Xn.prototype.set=function(t,e){var n=this.__data__;if(n instanceof Vn){var r=n.__data__;if(!Nn||r.length<199)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new Gn(r)}return n.set(t,e),this.size=n.size,this};var lr=Ti(vr),cr=Ti(wr,!0);function fr(t,e){var n=!0;return lr(t,function(t,r,i){return n=!!e(t,r,i)}),n}function dr(t,e,n){for(var r=-1,s=t.length;++r<s;){var o=t[r],a=e(o);if(null!=a&&(h===i?a==a&&!aa(a):n(a,h)))var h=a,u=o}return u}function pr(t,e){var n=[];return lr(t,function(t,r,i){e(t,r,i)&&n.push(t)}),n}function mr(t,e,n,r,i){var s=-1,o=t.length;for(n||(n=ps),i||(i=[]);++s<o;){var a=t[s];e>0&&n(a)?e>1?mr(a,e-1,n,r,i):We(i,a):r||(i[i.length]=a)}return i}var gr=Oi(),yr=Oi(!0);function vr(t,e){return t&&gr(t,e,Ta)}function wr(t,e){return t&&yr(t,e,Ta)}function br(t,e){return Ee(e,function(e){return Qo(t[e])})}function xr(t,e){for(var n=0,r=(e=gi(e,t)).length;null!=t&&n<r;)t=t[Ps(e[n++])];return n&&n==r?t:i}function _r(t,e,n){var r=e(t);return Uo(t)?r:We(r,n(t))}function Nr(t){return null==t?t===i?"[object Undefined]":"[object Null]":Jt&&Jt in kt(t)?function(t){var e=Lt.call(t,Jt),n=t[Jt];try{t[Jt]=i;var r=!0}catch(t){}var s=Dt.call(t);return r&&(e?t[Jt]=n:delete t[Jt]),s}(t):function(t){return Dt.call(t)}(t)}function kr(t,e){return t>e}function Sr(t,e){return null!=t&&Lt.call(t,e)}function Mr(t,e){return null!=t&&e in kt(t)}function Ar(t,e,n){for(var s=n?Te:Ce,o=t[0].length,a=t.length,h=a,u=r(a),l=1/0,c=[];h--;){var f=t[h];h&&e&&(f=Oe(f,$e(e))),l=yn(f.length,l),u[h]=!n&&(e||o>=120&&f.length>=120)?new Hn(h&&f):i}f=t[0];var d=-1,p=u[0];t:for(;++d<o&&c.length<l;){var m=f[d],g=e?e(m):m;if(m=n||0!==m?m:0,!(p?Ze(p,g):s(c,g,n))){for(h=a;--h;){var y=u[h];if(!(y?Ze(y,g):s(t[h],g,n)))continue t}p&&p.push(g),c.push(m)}}return c}function Er(t,e,n){var r=null==(t=ks(t,e=gi(e,t)))?t:t[Ps(Ys(e))];return null==r?i:Ne(r,t,n)}function Cr(t){return ta(t)&&Nr(t)==m}function Tr(t,e,n,r,s){return t===e||(null==t||null==e||!ta(t)&&!ta(e)?t!=t&&e!=e:function(t,e,n,r,s,o){var a=Uo(t),h=Uo(e),u=a?g:cs(t),l=h?g:cs(e),c=(u=u==m?k:u)==k,f=(l=l==m?k:l)==k,d=u==l;if(d&&Xo(t)){if(!Xo(e))return!1;a=!0,c=!1}if(d&&!c)return o||(o=new Xn),a||ha(t)?Ji(t,e,n,r,s,o):function(t,e,n,r,i,s,o){switch(n){case W:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case O:return!(t.byteLength!=e.byteLength||!s(new qt(t),new qt(e)));case y:case v:case N:return Ro(+t,+e);case w:return t.name==e.name&&t.message==e.message;case M:case E:return t==e+"";case _:var a=sn;case A:var h=1&r;if(a||(a=hn),t.size!=e.size&&!h)return!1;var u=o.get(t);if(u)return u==e;r|=2,o.set(t,e);var l=Ji(a(t),a(e),r,i,s,o);return o.delete(t),l;case C:if(Dn)return Dn.call(t)==Dn.call(e)}return!1}(t,e,u,n,r,s,o);if(!(1&n)){var p=c&&Lt.call(t,"__wrapped__"),b=f&&Lt.call(e,"__wrapped__");if(p||b){var x=p?t.value():t,S=b?e.value():e;return o||(o=new Xn),s(x,S,n,r,o)}}return!!d&&(o||(o=new Xn),function(t,e,n,r,s,o){var a=1&n,h=ts(t),u=h.length;if(u!=ts(e).length&&!a)return!1;for(var l=u;l--;){var c=h[l];if(!(a?c in e:Lt.call(e,c)))return!1}var f=o.get(t),d=o.get(e);if(f&&d)return f==e&&d==t;var p=!0;o.set(t,e),o.set(e,t);for(var m=a;++l<u;){var g=t[c=h[l]],y=e[c];if(r)var v=a?r(y,g,c,e,t,o):r(g,y,c,t,e,o);if(!(v===i?g===y||s(g,y,n,r,o):v)){p=!1;break}m||(m="constructor"==c)}if(p&&!m){var w=t.constructor,b=e.constructor;w==b||!("constructor"in t)||!("constructor"in e)||"function"==typeof w&&w instanceof w&&"function"==typeof b&&b instanceof b||(p=!1)}return o.delete(t),o.delete(e),p}(t,e,n,r,s,o))}(t,e,n,r,Tr,s))}function Or(t,e,n,r){var s=n.length,o=s,a=!r;if(null==t)return!o;for(t=kt(t);s--;){var h=n[s];if(a&&h[2]?h[1]!==t[h[0]]:!(h[0]in t))return!1}for(;++s<o;){var u=(h=n[s])[0],l=t[u],c=h[1];if(a&&h[2]){if(l===i&&!(u in t))return!1}else{var f=new Xn;if(r)var d=r(l,c,u,t,e,f);if(!(d===i?Tr(c,l,3,r,f):d))return!1}}return!0}function Wr(t){return!(!Ko(t)||(e=t,Pt&&Pt in e))&&(Qo(t)?Rt:mt).test(Ds(t));var e}function Lr(t){return"function"==typeof t?t:null==t?nh:"object"==typeof t?Uo(t)?Ir(t[0],t[1]):Br(t):ch(t)}function jr(t){if(!bs(t))return mn(t);var e=[];for(var n in kt(t))Lt.call(t,n)&&"constructor"!=n&&e.push(n);return e}function Pr(t,e){return t<e}function Dr(t,e){var n=-1,i=Go(t)?r(t.length):[];return lr(t,function(t,r,s){i[++n]=e(t,r,s)}),i}function Br(t){var e=as(t);return 1==e.length&&e[0][2]?_s(e[0][0],e[0][1]):function(n){return n===t||Or(n,t,e)}}function Ir(t,e){return ys(t)&&xs(e)?_s(Ps(t),e):function(n){var r=Sa(n,t);return r===i&&r===e?Ma(n,t):Tr(e,r,3)}}function Rr(t,e,n,r,s){t!==e&&gr(e,function(o,a){if(s||(s=new Xn),Ko(o))!function(t,e,n,r,s,o,a){var h=Ss(t,n),u=Ss(e,n),l=a.get(u);if(l)Jn(t,n,l);else{var c=o?o(h,u,n+"",t,e,a):i,f=c===i;if(f){var d=Uo(u),p=!d&&Xo(u),m=!d&&!p&&ha(u);c=u,d||p||m?Uo(h)?c=h:Ho(h)?c=Mi(h):p?(f=!1,c=bi(u,!0)):m?(f=!1,c=_i(u,!0)):c=[]:ra(u)||qo(u)?(c=h,qo(h)?c=ga(h):Ko(h)&&!Qo(h)||(c=ds(u))):f=!1}f&&(a.set(u,c),s(c,u,r,o,a),a.delete(u)),Jn(t,n,c)}}(t,e,a,n,Rr,r,s);else{var h=r?r(Ss(t,a),o,a+"",t,e,s):i;h===i&&(h=o),Jn(t,a,h)}},Oa)}function zr(t,e){var n=t.length;if(n)return ms(e+=e<0?n:0,n)?t[e]:i}function Fr(t,e,n){e=e.length?Oe(e,function(t){return Uo(t)?function(e){return xr(e,1===t.length?t[0]:t)}:t}):[nh];var r=-1;e=Oe(e,$e(ss()));var i=Dr(t,function(t,n,i){var s=Oe(e,function(e){return e(t)});return{criteria:s,index:++r,value:t}});return function(t){var e=t.length;for(t.sort(function(t,e){return function(t,e,n){for(var r=-1,i=t.criteria,s=e.criteria,o=i.length,a=n.length;++r<o;){var h=Ni(i[r],s[r]);if(h)return r>=a?h:h*("desc"==n[r]?-1:1)}return t.index-e.index}(t,e,n)});e--;)t[e]=t[e].value;return t}(i)}function qr(t,e,n){for(var r=-1,i=e.length,s={};++r<i;){var o=e[r],a=xr(t,o);n(a,o)&&Qr(s,gi(o,t),a)}return s}function Ur(t,e,n,r){var i=r?ze:Re,s=-1,o=e.length,a=t;for(t===e&&(e=Mi(e)),n&&(a=Oe(t,$e(n)));++s<o;)for(var h=0,u=e[s],l=n?n(u):u;(h=i(a,l,h,r))>-1;)a!==t&&Xt.call(a,h,1),Xt.call(t,h,1);return t}function Vr(t,e){for(var n=t?e.length:0,r=n-1;n--;){var i=e[n];if(n==r||i!==s){var s=i;ms(i)?Xt.call(t,i,1):hi(t,i)}}return t}function Gr(t,e){return t+de(bn()*(e-t+1))}function Hr(t,e){var n="";if(!t||e<1||e>c)return n;do{e%2&&(n+=t),(e=de(e/2))&&(t+=t)}while(e);return n}function Xr(t,e){return Es(Ns(t,e,nh),t+"")}function Yr(t){return $n(Ra(t))}function $r(t,e){var n=Ra(t);return Os(n,sr(e,0,n.length))}function Qr(t,e,n,r){if(!Ko(t))return t;for(var s=-1,o=(e=gi(e,t)).length,a=o-1,h=t;null!=h&&++s<o;){var u=Ps(e[s]),l=n;if("__proto__"===u||"constructor"===u||"prototype"===u)return t;if(s!=a){var c=h[u];(l=r?r(c,u,h):i)===i&&(l=Ko(c)?c:ms(e[s+1])?[]:{})}Kn(h,u,l),h=h[u]}return t}var Zr=En?function(t,e){return En.set(t,e),t}:nh,Jr=te?function(t,e){return te(t,"toString",{configurable:!0,enumerable:!1,value:Ka(e),writable:!0})}:nh;function Kr(t){return Os(Ra(t))}function ti(t,e,n){var i=-1,s=t.length;e<0&&(e=-e>s?0:s+e),(n=n>s?s:n)<0&&(n+=s),s=e>n?0:n-e>>>0,e>>>=0;for(var o=r(s);++i<s;)o[i]=t[i+e];return o}function ei(t,e){var n;return lr(t,function(t,r,i){return!(n=e(t,r,i))}),!!n}function ni(t,e,n){var r=0,i=null==t?r:t.length;if("number"==typeof e&&e==e&&i<=2147483647){for(;r<i;){var s=r+i>>>1,o=t[s];null!==o&&!aa(o)&&(n?o<=e:o<e)?r=s+1:i=s}return i}return ri(t,e,nh,n)}function ri(t,e,n,r){var s=0,o=null==t?0:t.length;if(0===o)return 0;for(var a=(e=n(e))!=e,h=null===e,u=aa(e),l=e===i;s<o;){var c=de((s+o)/2),f=n(t[c]),d=f!==i,p=null===f,m=f==f,g=aa(f);if(a)var y=r||m;else y=l?m&&(r||d):h?m&&d&&(r||!p):u?m&&d&&!p&&(r||!g):!p&&!g&&(r?f<=e:f<e);y?s=c+1:o=c}return yn(o,4294967294)}function ii(t,e){for(var n=-1,r=t.length,i=0,s=[];++n<r;){var o=t[n],a=e?e(o):o;if(!n||!Ro(a,h)){var h=a;s[i++]=0===o?0:o}}return s}function si(t){return"number"==typeof t?t:aa(t)?f:+t}function oi(t){if("string"==typeof t)return t;if(Uo(t))return Oe(t,oi)+"";if(aa(t))return Bn?Bn.call(t):"";var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}function ai(t,e,n){var r=-1,i=Ce,s=t.length,o=!0,a=[],h=a;if(n)o=!1,i=Te;else if(s>=200){var u=e?null:Hi(t);if(u)return hn(u);o=!1,i=Ze,h=new Hn}else h=e?[]:a;t:for(;++r<s;){var l=t[r],c=e?e(l):l;if(l=n||0!==l?l:0,o&&c==c){for(var f=h.length;f--;)if(h[f]===c)continue t;e&&h.push(c),a.push(l)}else i(h,c,n)||(h!==a&&h.push(c),a.push(l))}return a}function hi(t,e){var n=-1,r=(e=gi(e,t)).length;if(!r)return!0;for(var i=null==t||"object"!=typeof t&&"function"!=typeof t;++n<r;){var s=e[n];if("string"==typeof s){if("__proto__"===s&&!Lt.call(t,"__proto__"))return!1;if("constructor"===s&&n+1<r&&"string"==typeof e[n+1]&&"prototype"===e[n+1]){if(i&&0===n)continue;return!1}}}var o=ks(t,e);return null==o||delete o[Ps(Ys(e))]}function ui(t,e,n,r){return Qr(t,e,n(xr(t,e)),r)}function li(t,e,n,r){for(var i=t.length,s=r?i:-1;(r?s--:++s<i)&&e(t[s],s,t););return n?ti(t,r?0:s,r?s+1:i):ti(t,r?s+1:0,r?i:s)}function ci(t,e){var n=t;return n instanceof qn&&(n=n.value()),Le(e,function(t,e){return e.func.apply(e.thisArg,We([t],e.args))},n)}function fi(t,e,n){var i=t.length;if(i<2)return i?ai(t[0]):[];for(var s=-1,o=r(i);++s<i;)for(var a=t[s],h=-1;++h<i;)h!=s&&(o[s]=ur(o[s]||a,t[h],e,n));return ai(mr(o,1),e,n)}function di(t,e,n){for(var r=-1,s=t.length,o=e.length,a={};++r<s;){var h=r<o?e[r]:i;n(a,t[r],h)}return a}function pi(t){return Ho(t)?t:[]}function mi(t){return"function"==typeof t?t:nh}function gi(t,e){return Uo(t)?t:ys(t,e)?[t]:js(ya(t))}var yi=Xr;function vi(t,e,n){var r=t.length;return n=n===i?r:n,!e&&n>=r?t:ti(t,e,n)}var wi=oe||function(t){return ce.clearTimeout(t)};function bi(t,e){if(e)return t.slice();var n=t.length,r=Ut?Ut(n):new t.constructor(n);return t.copy(r),r}function xi(t){var e=new t.constructor(t.byteLength);return new qt(e).set(new qt(t)),e}function _i(t,e){var n=e?xi(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}function Ni(t,e){if(t!==e){var n=t!==i,r=null===t,s=t==t,o=aa(t),a=e!==i,h=null===e,u=e==e,l=aa(e);if(!h&&!l&&!o&&t>e||o&&a&&u&&!h&&!l||r&&a&&u||!n&&u||!s)return 1;if(!r&&!o&&!l&&t<e||l&&n&&s&&!r&&!o||h&&n&&s||!a&&s||!u)return-1}return 0}function ki(t,e,n,i){for(var s=-1,o=t.length,a=n.length,h=-1,u=e.length,l=gn(o-a,0),c=r(u+l),f=!i;++h<u;)c[h]=e[h];for(;++s<a;)(f||s<o)&&(c[n[s]]=t[s]);for(;l--;)c[h++]=t[s++];return c}function Si(t,e,n,i){for(var s=-1,o=t.length,a=-1,h=n.length,u=-1,l=e.length,c=gn(o-h,0),f=r(c+l),d=!i;++s<c;)f[s]=t[s];for(var p=s;++u<l;)f[p+u]=e[u];for(;++a<h;)(d||s<o)&&(f[p+n[a]]=t[s++]);return f}function Mi(t,e){var n=-1,i=t.length;for(e||(e=r(i));++n<i;)e[n]=t[n];return e}function Ai(t,e,n,r){var s=!n;n||(n={});for(var o=-1,a=e.length;++o<a;){var h=e[o],u=r?r(n[h],t[h],h,n,t):i;u===i&&(u=t[h]),s?rr(n,h,u):Kn(n,h,u)}return n}function Ei(t,e){return function(n,r){var i=Uo(n)?ke:er,s=e?e():{};return i(n,t,ss(r,2),s)}}function Ci(t){return Xr(function(e,n){var r=-1,s=n.length,o=s>1?n[s-1]:i,a=s>2?n[2]:i;for(o=t.length>3&&"function"==typeof o?(s--,o):i,a&&gs(n[0],n[1],a)&&(o=s<3?i:o,s=1),e=kt(e);++r<s;){var h=n[r];h&&t(e,h,r,o)}return e})}function Ti(t,e){return function(n,r){if(null==n)return n;if(!Go(n))return t(n,r);for(var i=n.length,s=e?i:-1,o=kt(n);(e?s--:++s<i)&&!1!==r(o[s],s,o););return n}}function Oi(t){return function(e,n,r){for(var i=-1,s=kt(e),o=r(e),a=o.length;a--;){var h=o[t?a:++i];if(!1===n(s[h],h,s))break}return e}}function Wi(t){return function(e){var n=rn(e=ya(e))?cn(e):i,r=n?n[0]:e.charAt(0),s=n?vi(n,1).join(""):e.slice(1);return r[t]()+s}}function Li(t){return function(e){return Le(Qa(qa(e).replace(Qt,"")),t,"")}}function ji(t){return function(){var e=arguments;switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3]);case 5:return new t(e[0],e[1],e[2],e[3],e[4]);case 6:return new t(e[0],e[1],e[2],e[3],e[4],e[5]);case 7:return new t(e[0],e[1],e[2],e[3],e[4],e[5],e[6])}var n=Rn(t.prototype),r=t.apply(n,e);return Ko(r)?r:n}}function Pi(t){return function(e,n,r){var s=kt(e);if(!Go(e)){var o=ss(n,3);e=Ta(e),n=function(t){return o(s[t],t,s)}}var a=t(e,n,r);return a>-1?s[o?e[a]:a]:i}}function Di(t){return Ki(function(e){var n=e.length,r=n,o=Fn.prototype.thru;for(t&&e.reverse();r--;){var a=e[r];if("function"!=typeof a)throw new At(s);if(o&&!h&&"wrapper"==rs(a))var h=new Fn([],!0)}for(r=h?r:n;++r<n;){var u=rs(a=e[r]),l="wrapper"==u?ns(a):i;h=l&&vs(l[0])&&424==l[1]&&!l[4].length&&1==l[9]?h[rs(l[0])].apply(h,l[3]):1==a.length&&vs(a)?h[u]():h.thru(a)}return function(){var t=arguments,r=t[0];if(h&&1==t.length&&Uo(r))return h.plant(r).value();for(var i=0,s=n?e[i].apply(this,t):r;++i<n;)s=e[i].call(this,s);return s}})}function Bi(t,e,n,s,o,a,h,l,c,f){var d=e&u,p=1&e,m=2&e,g=24&e,y=512&e,v=m?i:ji(t);return function u(){for(var w=arguments.length,b=r(w),x=w;x--;)b[x]=arguments[x];if(g)var _=is(u),N=function(t,e){for(var n=t.length,r=0;n--;)t[n]===e&&++r;return r}(b,_);if(s&&(b=ki(b,s,o,g)),a&&(b=Si(b,a,h,g)),w-=N,g&&w<f){var k=an(b,_);return Vi(t,e,Bi,u.placeholder,n,b,k,l,c,f-w)}var S=p?n:this,M=m?S[t]:t;return w=b.length,l?b=function(t,e){for(var n=t.length,r=yn(e.length,n),s=Mi(t);r--;){var o=e[r];t[r]=ms(o,n)?s[o]:i}return t}(b,l):y&&w>1&&b.reverse(),d&&c<w&&(b.length=c),this&&this!==ce&&this instanceof u&&(M=v||ji(M)),M.apply(S,b)}}function Ii(t,e){return function(n,r){return function(t,e,n,r){return vr(t,function(t,i,s){e(r,n(t),i,s)}),r}(n,t,e(r),{})}}function Ri(t,e){return function(n,r){var s;if(n===i&&r===i)return e;if(n!==i&&(s=n),r!==i){if(s===i)return r;"string"==typeof n||"string"==typeof r?(n=oi(n),r=oi(r)):(n=si(n),r=si(r)),s=t(n,r)}return s}}function zi(t){return Ki(function(e){return e=Oe(e,$e(ss())),Xr(function(n){var r=this;return t(e,function(t){return Ne(t,r,n)})})})}function Fi(t,e){var n=(e=e===i?" ":oi(e)).length;if(n<2)return n?Hr(e,t):e;var r=Hr(e,fe(t/ln(e)));return rn(e)?vi(cn(r),0,t).join(""):r.slice(0,t)}function qi(t){return function(e,n,s){return s&&"number"!=typeof s&&gs(e,n,s)&&(n=s=i),e=fa(e),n===i?(n=e,e=0):n=fa(n),function(t,e,n,i){for(var s=-1,o=gn(fe((e-t)/(n||1)),0),a=r(o);o--;)a[i?o:++s]=t,t+=n;return a}(e,n,s=s===i?e<n?1:-1:fa(s),t)}}function Ui(t){return function(e,n){return"string"==typeof e&&"string"==typeof n||(e=ma(e),n=ma(n)),t(e,n)}}function Vi(t,e,n,r,s,o,a,u,l,c){var f=8&e;e|=f?h:64,4&(e&=~(f?64:h))||(e&=-4);var d=[t,e,s,f?o:i,f?a:i,f?i:o,f?i:a,u,l,c],p=n.apply(i,d);return vs(t)&&Ms(p,d),p.placeholder=r,Cs(p,t,e)}function Gi(t){var e=Nt[t];return function(t,n){if(t=ma(t),(n=null==n?0:yn(da(n),292))&&De(t)){var r=(ya(t)+"e").split("e");return+((r=(ya(e(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return e(t)}}var Hi=Sn&&1/hn(new Sn([,-0]))[1]==l?function(t){return new Sn(t)}:ah;function Xi(t){return function(e){var n=cs(e);return n==_?sn(e):n==A?un(e):function(t,e){return Oe(e,function(e){return[e,t[e]]})}(e,t(e))}}function Yi(t,e,n,o,l,c,f,d){var p=2&e;if(!p&&"function"!=typeof t)throw new At(s);var m=o?o.length:0;if(m||(e&=-97,o=l=i),f=f===i?f:gn(da(f),0),d=d===i?d:da(d),m-=l?l.length:0,64&e){var g=o,y=l;o=l=i}var v=p?i:ns(t),w=[t,e,n,o,l,g,y,c,f,d];if(v&&function(t,e){var n=t[1],r=e[1],i=n|r,s=i<131,o=r==u&&8==n||r==u&&256==n&&t[7].length<=e[8]||384==r&&e[7].length<=e[8]&&8==n;if(!s&&!o)return t;1&r&&(t[2]=e[2],i|=1&n?0:4);var h=e[3];if(h){var l=t[3];t[3]=l?ki(l,h,e[4]):h,t[4]=l?an(t[3],a):e[4]}(h=e[5])&&(l=t[5],t[5]=l?Si(l,h,e[6]):h,t[6]=l?an(t[5],a):e[6]),(h=e[7])&&(t[7]=h),r&u&&(t[8]=null==t[8]?e[8]:yn(t[8],e[8])),null==t[9]&&(t[9]=e[9]),t[0]=e[0],t[1]=i}(w,v),t=w[0],e=w[1],n=w[2],o=w[3],l=w[4],!(d=w[9]=w[9]===i?p?0:t.length:gn(w[9]-m,0))&&24&e&&(e&=-25),e&&1!=e)b=8==e||16==e?function(t,e,n){var s=ji(t);return function o(){for(var a=arguments.length,h=r(a),u=a,l=is(o);u--;)h[u]=arguments[u];var c=a<3&&h[0]!==l&&h[a-1]!==l?[]:an(h,l);return(a-=c.length)<n?Vi(t,e,Bi,o.placeholder,i,h,c,i,i,n-a):Ne(this&&this!==ce&&this instanceof o?s:t,this,h)}}(t,e,d):e!=h&&33!=e||l.length?Bi.apply(i,w):function(t,e,n,i){var s=1&e,o=ji(t);return function e(){for(var a=-1,h=arguments.length,u=-1,l=i.length,c=r(l+h),f=this&&this!==ce&&this instanceof e?o:t;++u<l;)c[u]=i[u];for(;h--;)c[u++]=arguments[++a];return Ne(f,s?n:this,c)}}(t,e,n,o);else var b=function(t,e,n){var r=1&e,i=ji(t);return function e(){return(this&&this!==ce&&this instanceof e?i:t).apply(r?n:this,arguments)}}(t,e,n);return Cs((v?Zr:Ms)(b,w),t,e)}function $i(t,e,n,r){return t===i||Ro(t,Tt[n])&&!Lt.call(r,n)?e:t}function Qi(t,e,n,r,s,o){return Ko(t)&&Ko(e)&&(o.set(e,t),Rr(t,e,i,Qi,o),o.delete(e)),t}function Zi(t){return ra(t)?i:t}function Ji(t,e,n,r,s,o){var a=1&n,h=t.length,u=e.length;if(h!=u&&!(a&&u>h))return!1;var l=o.get(t),c=o.get(e);if(l&&c)return l==e&&c==t;var f=-1,d=!0,p=2&n?new Hn:i;for(o.set(t,e),o.set(e,t);++f<h;){var m=t[f],g=e[f];if(r)var y=a?r(g,m,f,e,t,o):r(m,g,f,t,e,o);if(y!==i){if(y)continue;d=!1;break}if(p){if(!Pe(e,function(t,e){if(!Ze(p,e)&&(m===t||s(m,t,n,r,o)))return p.push(e)})){d=!1;break}}else if(m!==g&&!s(m,g,n,r,o)){d=!1;break}}return o.delete(t),o.delete(e),d}function Ki(t){return Es(Ns(t,i,Us),t+"")}function ts(t){return _r(t,Ta,us)}function es(t){return _r(t,Oa,ls)}var ns=En?function(t){return En.get(t)}:ah;function rs(t){for(var e=t.name+"",n=Cn[e],r=Lt.call(Cn,e)?n.length:0;r--;){var i=n[r],s=i.func;if(null==s||s==t)return i.name}return e}function is(t){return(Lt.call(In,"placeholder")?In:t).placeholder}function ss(){var t=In.iteratee||rh;return t=t===rh?Lr:t,arguments.length?t(arguments[0],arguments[1]):t}function os(t,e){var n,r,i=t.__data__;return("string"==(r=typeof(n=e))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?i["string"==typeof e?"string":"hash"]:i.map}function as(t){for(var e=Ta(t),n=e.length;n--;){var r=e[n],i=t[r];e[n]=[r,i,xs(i)]}return e}function hs(t,e){var n=function(t,e){return null==t?i:t[e]}(t,e);return Wr(n)?n:i}var us=me?function(t){return null==t?[]:(t=kt(t),Ee(me(t),function(e){return Ht.call(t,e)}))}:ph,ls=me?function(t){for(var e=[];t;)We(e,us(t)),t=Vt(t);return e}:ph,cs=Nr;function fs(t,e,n){for(var r=-1,i=(e=gi(e,t)).length,s=!1;++r<i;){var o=Ps(e[r]);if(!(s=null!=t&&n(t,o)))break;t=t[o]}return s||++r!=i?s:!!(i=null==t?0:t.length)&&Jo(i)&&ms(o,i)&&(Uo(t)||qo(t))}function ds(t){return"function"!=typeof t.constructor||bs(t)?{}:Rn(Vt(t))}function ps(t){return Uo(t)||qo(t)||!!(Yt&&t&&t[Yt])}function ms(t,e){var n=typeof t;return!!(e=null==e?c:e)&&("number"==n||"symbol"!=n&&yt.test(t))&&t>-1&&t%1==0&&t<e}function gs(t,e,n){if(!Ko(n))return!1;var r=typeof e;return!!("number"==r?Go(n)&&ms(e,n.length):"string"==r&&e in n)&&Ro(n[e],t)}function ys(t,e){if(Uo(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!aa(t))||K.test(t)||!J.test(t)||null!=e&&t in kt(e)}function vs(t){var e=rs(t),n=In[e];if("function"!=typeof n||!(e in qn.prototype))return!1;if(t===n)return!0;var r=ns(n);return!!r&&t===r[0]}(_n&&cs(new _n(new ArrayBuffer(1)))!=W||Nn&&cs(new Nn)!=_||kn&&cs(kn.resolve())!=S||Sn&&cs(new Sn)!=A||Mn&&cs(new Mn)!=T)&&(cs=function(t){var e=Nr(t),n=e==k?t.constructor:i,r=n?Ds(n):"";if(r)switch(r){case Tn:return W;case On:return _;case Wn:return S;case Ln:return A;case jn:return T}return e});var ws=Ot?Qo:mh;function bs(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||Tt)}function xs(t){return t==t&&!Ko(t)}function _s(t,e){return function(n){return null!=n&&n[t]===e&&(e!==i||t in kt(n))}}function Ns(t,e,n){return e=gn(e===i?t.length-1:e,0),function(){for(var i=arguments,s=-1,o=gn(i.length-e,0),a=r(o);++s<o;)a[s]=i[e+s];s=-1;for(var h=r(e+1);++s<e;)h[s]=i[s];return h[e]=n(a),Ne(t,this,h)}}function ks(t,e){return e.length<2?t:xr(t,ti(e,0,-1))}function Ss(t,e){if(("constructor"!==e||"function"!=typeof t[e])&&"__proto__"!=e)return t[e]}var Ms=Ts(Zr),As=le||function(t,e){return ce.setTimeout(t,e)},Es=Ts(Jr);function Cs(t,e,n){var r=e+"";return Es(t,function(t,e){var n=e.length;if(!n)return t;var r=n-1;return e[r]=(n>1?"& ":"")+e[r],e=e.join(n>2?", ":" "),t.replace(st,"{\n/* [wrapped with "+e+"] */\n")}(r,function(t,e){return Se(p,function(n){var r="_."+n[0];e&n[1]&&!Ce(t,r)&&t.push(r)}),t.sort()}(function(t){var e=t.match(ot);return e?e[1].split(at):[]}(r),n)))}function Ts(t){var e=0,n=0;return function(){var r=vn(),s=16-(r-n);if(n=r,s>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(i,arguments)}}function Os(t,e){var n=-1,r=t.length,s=r-1;for(e=e===i?r:e;++n<e;){var o=Gr(n,s),a=t[o];t[o]=t[n],t[n]=a}return t.length=e,t}var Ws,Ls,js=(Ws=Lo(function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(tt,function(t,n,r,i){e.push(r?i.replace(lt,"$1"):n||t)}),e},function(t){return 500===Ls.size&&Ls.clear(),t}),Ls=Ws.cache,Ws);function Ps(t){if("string"==typeof t||aa(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}function Ds(t){if(null!=t){try{return Wt.call(t)}catch(t){}try{return t+""}catch(t){}}return""}function Bs(t){if(t instanceof qn)return t.clone();var e=new Fn(t.__wrapped__,t.__chain__);return e.__actions__=Mi(t.__actions__),e.__index__=t.__index__,e.__values__=t.__values__,e}var Is=Xr(function(t,e){return Ho(t)?ur(t,mr(e,1,Ho,!0)):[]}),Rs=Xr(function(t,e){var n=Ys(e);return Ho(n)&&(n=i),Ho(t)?ur(t,mr(e,1,Ho,!0),ss(n,2)):[]}),zs=Xr(function(t,e){var n=Ys(e);return Ho(n)&&(n=i),Ho(t)?ur(t,mr(e,1,Ho,!0),i,n):[]});function Fs(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var i=null==n?0:da(n);return i<0&&(i=gn(r+i,0)),Ie(t,ss(e,3),i)}function qs(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var s=r-1;return n!==i&&(s=da(n),s=n<0?gn(r+s,0):yn(s,r-1)),Ie(t,ss(e,3),s,!0)}function Us(t){return null!=t&&t.length?mr(t,1):[]}function Vs(t){return t&&t.length?t[0]:i}var Gs=Xr(function(t){var e=Oe(t,pi);return e.length&&e[0]===t[0]?Ar(e):[]}),Hs=Xr(function(t){var e=Ys(t),n=Oe(t,pi);return e===Ys(n)?e=i:n.pop(),n.length&&n[0]===t[0]?Ar(n,ss(e,2)):[]}),Xs=Xr(function(t){var e=Ys(t),n=Oe(t,pi);return(e="function"==typeof e?e:i)&&n.pop(),n.length&&n[0]===t[0]?Ar(n,i,e):[]});function Ys(t){var e=null==t?0:t.length;return e?t[e-1]:i}var $s=Xr(Qs);function Qs(t,e){return t&&t.length&&e&&e.length?Ur(t,e):t}var Zs=Ki(function(t,e){var n=null==t?0:t.length,r=ir(t,e);return Vr(t,Oe(e,function(t){return ms(t,n)?+t:t}).sort(Ni)),r});function Js(t){return null==t?t:xn.call(t)}var Ks=Xr(function(t){return ai(mr(t,1,Ho,!0))}),to=Xr(function(t){var e=Ys(t);return Ho(e)&&(e=i),ai(mr(t,1,Ho,!0),ss(e,2))}),eo=Xr(function(t){var e=Ys(t);return e="function"==typeof e?e:i,ai(mr(t,1,Ho,!0),i,e)});function no(t){if(!t||!t.length)return[];var e=0;return t=Ee(t,function(t){if(Ho(t))return e=gn(t.length,e),!0}),Xe(e,function(e){return Oe(t,Ue(e))})}function ro(t,e){if(!t||!t.length)return[];var n=no(t);return null==e?n:Oe(n,function(t){return Ne(e,i,t)})}var io=Xr(function(t,e){return Ho(t)?ur(t,e):[]}),so=Xr(function(t){return fi(Ee(t,Ho))}),oo=Xr(function(t){var e=Ys(t);return Ho(e)&&(e=i),fi(Ee(t,Ho),ss(e,2))}),ao=Xr(function(t){var e=Ys(t);return e="function"==typeof e?e:i,fi(Ee(t,Ho),i,e)}),ho=Xr(no),uo=Xr(function(t){var e=t.length,n=e>1?t[e-1]:i;return n="function"==typeof n?(t.pop(),n):i,ro(t,n)});function lo(t){var e=In(t);return e.__chain__=!0,e}function co(t,e){return e(t)}var fo=Ki(function(t){var e=t.length,n=e?t[0]:0,r=this.__wrapped__,s=function(e){return ir(e,t)};return!(e>1||this.__actions__.length)&&r instanceof qn&&ms(n)?((r=r.slice(n,+n+(e?1:0))).__actions__.push({func:co,args:[s],thisArg:i}),new Fn(r,this.__chain__).thru(function(t){return e&&!t.length&&t.push(i),t})):this.thru(s)}),po=Ei(function(t,e,n){Lt.call(t,n)?++t[n]:rr(t,n,1)}),mo=Pi(Fs),go=Pi(qs);function yo(t,e){return(Uo(t)?Se:lr)(t,ss(e,3))}function vo(t,e){return(Uo(t)?Me:cr)(t,ss(e,3))}var wo=Ei(function(t,e,n){Lt.call(t,n)?t[n].push(e):rr(t,n,[e])}),bo=Xr(function(t,e,n){var i=-1,s="function"==typeof e,o=Go(t)?r(t.length):[];return lr(t,function(t){o[++i]=s?Ne(e,t,n):Er(t,e,n)}),o}),xo=Ei(function(t,e,n){rr(t,n,e)});function _o(t,e){return(Uo(t)?Oe:Dr)(t,ss(e,3))}var No=Ei(function(t,e,n){t[n?0:1].push(e)},function(){return[[],[]]}),ko=Xr(function(t,e){if(null==t)return[];var n=e.length;return n>1&&gs(t,e[0],e[1])?e=[]:n>2&&gs(e[0],e[1],e[2])&&(e=[e[0]]),Fr(t,mr(e,1),[])}),So=ue||function(){return ce.Date.now()};function Mo(t,e,n){return e=n?i:e,e=t&&null==e?t.length:e,Yi(t,u,i,i,i,i,e)}function Ao(t,e){var n;if("function"!=typeof e)throw new At(s);return t=da(t),function(){return--t>0&&(n=e.apply(this,arguments)),t<=1&&(e=i),n}}var Eo=Xr(function(t,e,n){var r=1;if(n.length){var i=an(n,is(Eo));r|=h}return Yi(t,r,e,n,i)}),Co=Xr(function(t,e,n){var r=3;if(n.length){var i=an(n,is(Co));r|=h}return Yi(e,r,t,n,i)});function To(t,e,n){var r,o,a,h,u,l,c=0,f=!1,d=!1,p=!0;if("function"!=typeof t)throw new At(s);function m(e){var n=r,s=o;return r=o=i,c=e,h=t.apply(s,n)}function g(t){var n=t-l;return l===i||n>=e||n<0||d&&t-c>=a}function y(){var t=So();if(g(t))return v(t);u=As(y,function(t){var n=e-(t-l);return d?yn(n,a-(t-c)):n}(t))}function v(t){return u=i,p&&r?m(t):(r=o=i,h)}function w(){var t=So(),n=g(t);if(r=arguments,o=this,l=t,n){if(u===i)return function(t){return c=t,u=As(y,e),f?m(t):h}(l);if(d)return wi(u),u=As(y,e),m(l)}return u===i&&(u=As(y,e)),h}return e=ma(e)||0,Ko(n)&&(f=!!n.leading,a=(d="maxWait"in n)?gn(ma(n.maxWait)||0,e):a,p="trailing"in n?!!n.trailing:p),w.cancel=function(){u!==i&&wi(u),c=0,r=l=o=u=i},w.flush=function(){return u===i?h:v(So())},w}var Oo=Xr(function(t,e){return hr(t,1,e)}),Wo=Xr(function(t,e,n){return hr(t,ma(e)||0,n)});function Lo(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new At(s);var n=function(){var r=arguments,i=e?e.apply(this,r):r[0],s=n.cache;if(s.has(i))return s.get(i);var o=t.apply(this,r);return n.cache=s.set(i,o)||s,o};return n.cache=new(Lo.Cache||Gn),n}function jo(t){if("function"!=typeof t)throw new At(s);return function(){var e=arguments;switch(e.length){case 0:return!t.call(this);case 1:return!t.call(this,e[0]);case 2:return!t.call(this,e[0],e[1]);case 3:return!t.call(this,e[0],e[1],e[2])}return!t.apply(this,e)}}Lo.Cache=Gn;var Po=yi(function(t,e){var n=(e=1==e.length&&Uo(e[0])?Oe(e[0],$e(ss())):Oe(mr(e,1),$e(ss()))).length;return Xr(function(r){for(var i=-1,s=yn(r.length,n);++i<s;)r[i]=e[i].call(this,r[i]);return Ne(t,this,r)})}),Do=Xr(function(t,e){var n=an(e,is(Do));return Yi(t,h,i,e,n)}),Bo=Xr(function(t,e){var n=an(e,is(Bo));return Yi(t,64,i,e,n)}),Io=Ki(function(t,e){return Yi(t,256,i,i,i,e)});function Ro(t,e){return t===e||t!=t&&e!=e}var zo=Ui(kr),Fo=Ui(function(t,e){return t>=e}),qo=Cr(function(){return arguments}())?Cr:function(t){return ta(t)&&Lt.call(t,"callee")&&!Ht.call(t,"callee")},Uo=r.isArray,Vo=ye?$e(ye):function(t){return ta(t)&&Nr(t)==O};function Go(t){return null!=t&&Jo(t.length)&&!Qo(t)}function Ho(t){return ta(t)&&Go(t)}var Xo=ge||mh,Yo=ve?$e(ve):function(t){return ta(t)&&Nr(t)==v};function $o(t){if(!ta(t))return!1;var e=Nr(t);return e==w||"[object DOMException]"==e||"string"==typeof t.message&&"string"==typeof t.name&&!ra(t)}function Qo(t){if(!Ko(t))return!1;var e=Nr(t);return e==b||e==x||"[object AsyncFunction]"==e||"[object Proxy]"==e}function Zo(t){return"number"==typeof t&&t==da(t)}function Jo(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=c}function Ko(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function ta(t){return null!=t&&"object"==typeof t}var ea=we?$e(we):function(t){return ta(t)&&cs(t)==_};function na(t){return"number"==typeof t||ta(t)&&Nr(t)==N}function ra(t){if(!ta(t)||Nr(t)!=k)return!1;var e=Vt(t);if(null===e)return!0;var n=Lt.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&Wt.call(n)==Bt}var ia=be?$e(be):function(t){return ta(t)&&Nr(t)==M},sa=xe?$e(xe):function(t){return ta(t)&&cs(t)==A};function oa(t){return"string"==typeof t||!Uo(t)&&ta(t)&&Nr(t)==E}function aa(t){return"symbol"==typeof t||ta(t)&&Nr(t)==C}var ha=_e?$e(_e):function(t){return ta(t)&&Jo(t.length)&&!!ie[Nr(t)]},ua=Ui(Pr),la=Ui(function(t,e){return t<=e});function ca(t){if(!t)return[];if(Go(t))return oa(t)?cn(t):Mi(t);if($t&&t[$t])return function(t){for(var e,n=[];!(e=t.next()).done;)n.push(e.value);return n}(t[$t]());var e=cs(t);return(e==_?sn:e==A?hn:Ra)(t)}function fa(t){return t?(t=ma(t))===l||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}function da(t){var e=fa(t),n=e%1;return e==e?n?e-n:e:0}function pa(t){return t?sr(da(t),0,d):0}function ma(t){if("number"==typeof t)return t;if(aa(t))return f;if(Ko(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=Ko(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=Ye(t);var n=pt.test(t);return n||gt.test(t)?he(t.slice(2),n?2:8):dt.test(t)?f:+t}function ga(t){return Ai(t,Oa(t))}function ya(t){return null==t?"":oi(t)}var va=Ci(function(t,e){if(bs(e)||Go(e))Ai(e,Ta(e),t);else for(var n in e)Lt.call(e,n)&&Kn(t,n,e[n])}),wa=Ci(function(t,e){Ai(e,Oa(e),t)}),ba=Ci(function(t,e,n,r){Ai(e,Oa(e),t,r)}),xa=Ci(function(t,e,n,r){Ai(e,Ta(e),t,r)}),_a=Ki(ir),Na=Xr(function(t,e){t=kt(t);var n=-1,r=e.length,s=r>2?e[2]:i;for(s&&gs(e[0],e[1],s)&&(r=1);++n<r;)for(var o=e[n],a=Oa(o),h=-1,u=a.length;++h<u;){var l=a[h],c=t[l];(c===i||Ro(c,Tt[l])&&!Lt.call(t,l))&&(t[l]=o[l])}return t}),ka=Xr(function(t){return t.push(i,Qi),Ne(La,i,t)});function Sa(t,e,n){var r=null==t?i:xr(t,e);return r===i?n:r}function Ma(t,e){return null!=t&&fs(t,e,Mr)}var Aa=Ii(function(t,e,n){null!=e&&"function"!=typeof e.toString&&(e=Dt.call(e)),t[e]=n},Ka(nh)),Ea=Ii(function(t,e,n){null!=e&&"function"!=typeof e.toString&&(e=Dt.call(e)),Lt.call(t,e)?t[e].push(n):t[e]=[n]},ss),Ca=Xr(Er);function Ta(t){return Go(t)?Yn(t):jr(t)}function Oa(t){return Go(t)?Yn(t,!0):function(t){if(!Ko(t))return function(t){var e=[];if(null!=t)for(var n in kt(t))e.push(n);return e}(t);var e=bs(t),n=[];for(var r in t)("constructor"!=r||!e&&Lt.call(t,r))&&n.push(r);return n}(t)}var Wa=Ci(function(t,e,n){Rr(t,e,n)}),La=Ci(function(t,e,n,r){Rr(t,e,n,r)}),ja=Ki(function(t,e){var n={};if(null==t)return n;var r=!1;e=Oe(e,function(e){return e=gi(e,t),r||(r=e.length>1),e}),Ai(t,es(t),n),r&&(n=or(n,7,Zi));for(var i=e.length;i--;)hi(n,e[i]);return n}),Pa=Ki(function(t,e){return null==t?{}:function(t,e){return qr(t,e,function(e,n){return Ma(t,n)})}(t,e)});function Da(t,e){if(null==t)return{};var n=Oe(es(t),function(t){return[t]});return e=ss(e),qr(t,n,function(t,n){return e(t,n[0])})}var Ba=Xi(Ta),Ia=Xi(Oa);function Ra(t){return null==t?[]:Qe(t,Ta(t))}var za=Li(function(t,e,n){return e=e.toLowerCase(),t+(n?Fa(e):e)});function Fa(t){return $a(ya(t).toLowerCase())}function qa(t){return(t=ya(t))&&t.replace(vt,tn).replace(Zt,"")}var Ua=Li(function(t,e,n){return t+(n?"-":"")+e.toLowerCase()}),Va=Li(function(t,e,n){return t+(n?" ":"")+e.toLowerCase()}),Ga=Wi("toLowerCase"),Ha=Li(function(t,e,n){return t+(n?"_":"")+e.toLowerCase()}),Xa=Li(function(t,e,n){return t+(n?" ":"")+$a(e)}),Ya=Li(function(t,e,n){return t+(n?" ":"")+e.toUpperCase()}),$a=Wi("toUpperCase");function Qa(t,e,n){return t=ya(t),(e=n?i:e)===i?function(t){return ee.test(t)}(t)?function(t){return t.match(Kt)||[]}(t):function(t){return t.match(ht)||[]}(t):t.match(e)||[]}var Za=Xr(function(t,e){try{return Ne(t,i,e)}catch(t){return $o(t)?t:new xt(t)}}),Ja=Ki(function(t,e){return Se(e,function(e){e=Ps(e),rr(t,e,Eo(t[e],t))}),t});function Ka(t){return function(){return t}}var th=Di(),eh=Di(!0);function nh(t){return t}function rh(t){return Lr("function"==typeof t?t:or(t,1))}var ih=Xr(function(t,e){return function(n){return Er(n,t,e)}}),sh=Xr(function(t,e){return function(n){return Er(t,n,e)}});function oh(t,e,n){var r=Ta(e),i=br(e,r);null!=n||Ko(e)&&(i.length||!r.length)||(n=e,e=t,t=this,i=br(e,Ta(e)));var s=!(Ko(n)&&"chain"in n&&!n.chain),o=Qo(t);return Se(i,function(n){var r=e[n];t[n]=r,o&&(t.prototype[n]=function(){var e=this.__chain__;if(s||e){var n=t(this.__wrapped__);return(n.__actions__=Mi(this.__actions__)).push({func:r,args:arguments,thisArg:t}),n.__chain__=e,n}return r.apply(t,We([this.value()],arguments))})}),t}function ah(){}var hh=zi(Oe),uh=zi(Ae),lh=zi(Pe);function ch(t){return ys(t)?Ue(Ps(t)):function(t){return function(e){return xr(e,t)}}(t)}var fh=qi(),dh=qi(!0);function ph(){return[]}function mh(){return!1}var gh,yh=Ri(function(t,e){return t+e},0),vh=Gi("ceil"),wh=Ri(function(t,e){return t/e},1),bh=Gi("floor"),xh=Ri(function(t,e){return t*e},1),_h=Gi("round"),Nh=Ri(function(t,e){return t-e},0);return In.after=function(t,e){if("function"!=typeof e)throw new At(s);return t=da(t),function(){if(--t<1)return e.apply(this,arguments)}},In.ary=Mo,In.assign=va,In.assignIn=wa,In.assignInWith=ba,In.assignWith=xa,In.at=_a,In.before=Ao,In.bind=Eo,In.bindAll=Ja,In.bindKey=Co,In.castArray=function(){if(!arguments.length)return[];var t=arguments[0];return Uo(t)?t:[t]},In.chain=lo,In.chunk=function(t,e,n){e=(n?gs(t,e,n):e===i)?1:gn(da(e),0);var s=null==t?0:t.length;if(!s||e<1)return[];for(var o=0,a=0,h=r(fe(s/e));o<s;)h[a++]=ti(t,o,o+=e);return h},In.compact=function(t){for(var e=-1,n=null==t?0:t.length,r=0,i=[];++e<n;){var s=t[e];s&&(i[r++]=s)}return i},In.concat=function(){var t=arguments.length;if(!t)return[];for(var e=r(t-1),n=arguments[0],i=t;i--;)e[i-1]=arguments[i];return We(Uo(n)?Mi(n):[n],mr(e,1))},In.cond=function(t){var e=null==t?0:t.length,n=ss();return t=e?Oe(t,function(t){if("function"!=typeof t[1])throw new At(s);return[n(t[0]),t[1]]}):[],Xr(function(n){for(var r=-1;++r<e;){var i=t[r];if(Ne(i[0],this,n))return Ne(i[1],this,n)}})},In.conforms=function(t){return function(t){var e=Ta(t);return function(n){return ar(n,t,e)}}(or(t,1))},In.constant=Ka,In.countBy=po,In.create=function(t,e){var n=Rn(t);return null==e?n:nr(n,e)},In.curry=function t(e,n,r){var s=Yi(e,8,i,i,i,i,i,n=r?i:n);return s.placeholder=t.placeholder,s},In.curryRight=function t(e,n,r){var s=Yi(e,16,i,i,i,i,i,n=r?i:n);return s.placeholder=t.placeholder,s},In.debounce=To,In.defaults=Na,In.defaultsDeep=ka,In.defer=Oo,In.delay=Wo,In.difference=Is,In.differenceBy=Rs,In.differenceWith=zs,In.drop=function(t,e,n){var r=null==t?0:t.length;return r?ti(t,(e=n||e===i?1:da(e))<0?0:e,r):[]},In.dropRight=function(t,e,n){var r=null==t?0:t.length;return r?ti(t,0,(e=r-(e=n||e===i?1:da(e)))<0?0:e):[]},In.dropRightWhile=function(t,e){return t&&t.length?li(t,ss(e,3),!0,!0):[]},In.dropWhile=function(t,e){return t&&t.length?li(t,ss(e,3),!0):[]},In.fill=function(t,e,n,r){var s=null==t?0:t.length;return s?(n&&"number"!=typeof n&&gs(t,e,n)&&(n=0,r=s),function(t,e,n,r){var s=t.length;for((n=da(n))<0&&(n=-n>s?0:s+n),(r=r===i||r>s?s:da(r))<0&&(r+=s),r=n>r?0:pa(r);n<r;)t[n++]=e;return t}(t,e,n,r)):[]},In.filter=function(t,e){return(Uo(t)?Ee:pr)(t,ss(e,3))},In.flatMap=function(t,e){return mr(_o(t,e),1)},In.flatMapDeep=function(t,e){return mr(_o(t,e),l)},In.flatMapDepth=function(t,e,n){return n=n===i?1:da(n),mr(_o(t,e),n)},In.flatten=Us,In.flattenDeep=function(t){return null!=t&&t.length?mr(t,l):[]},In.flattenDepth=function(t,e){return null!=t&&t.length?mr(t,e=e===i?1:da(e)):[]},In.flip=function(t){return Yi(t,512)},In.flow=th,In.flowRight=eh,In.fromPairs=function(t){for(var e=-1,n=null==t?0:t.length,r={};++e<n;){var i=t[e];r[i[0]]=i[1]}return r},In.functions=function(t){return null==t?[]:br(t,Ta(t))},In.functionsIn=function(t){return null==t?[]:br(t,Oa(t))},In.groupBy=wo,In.initial=function(t){return null!=t&&t.length?ti(t,0,-1):[]},In.intersection=Gs,In.intersectionBy=Hs,In.intersectionWith=Xs,In.invert=Aa,In.invertBy=Ea,In.invokeMap=bo,In.iteratee=rh,In.keyBy=xo,In.keys=Ta,In.keysIn=Oa,In.map=_o,In.mapKeys=function(t,e){var n={};return e=ss(e,3),vr(t,function(t,r,i){rr(n,e(t,r,i),t)}),n},In.mapValues=function(t,e){var n={};return e=ss(e,3),vr(t,function(t,r,i){rr(n,r,e(t,r,i))}),n},In.matches=function(t){return Br(or(t,1))},In.matchesProperty=function(t,e){return Ir(t,or(e,1))},In.memoize=Lo,In.merge=Wa,In.mergeWith=La,In.method=ih,In.methodOf=sh,In.mixin=oh,In.negate=jo,In.nthArg=function(t){return t=da(t),Xr(function(e){return zr(e,t)})},In.omit=ja,In.omitBy=function(t,e){return Da(t,jo(ss(e)))},In.once=function(t){return Ao(2,t)},In.orderBy=function(t,e,n,r){return null==t?[]:(Uo(e)||(e=null==e?[]:[e]),Uo(n=r?i:n)||(n=null==n?[]:[n]),Fr(t,e,n))},In.over=hh,In.overArgs=Po,In.overEvery=uh,In.overSome=lh,In.partial=Do,In.partialRight=Bo,In.partition=No,In.pick=Pa,In.pickBy=Da,In.property=ch,In.propertyOf=function(t){return function(e){return null==t?i:xr(t,e)}},In.pull=$s,In.pullAll=Qs,In.pullAllBy=function(t,e,n){return t&&t.length&&e&&e.length?Ur(t,e,ss(n,2)):t},In.pullAllWith=function(t,e,n){return t&&t.length&&e&&e.length?Ur(t,e,i,n):t},In.pullAt=Zs,In.range=fh,In.rangeRight=dh,In.rearg=Io,In.reject=function(t,e){return(Uo(t)?Ee:pr)(t,jo(ss(e,3)))},In.remove=function(t,e){var n=[];if(!t||!t.length)return n;var r=-1,i=[],s=t.length;for(e=ss(e,3);++r<s;){var o=t[r];e(o,r,t)&&(n.push(o),i.push(r))}return Vr(t,i),n},In.rest=function(t,e){if("function"!=typeof t)throw new At(s);return Xr(t,e=e===i?e:da(e))},In.reverse=Js,In.sampleSize=function(t,e,n){return e=(n?gs(t,e,n):e===i)?1:da(e),(Uo(t)?Qn:$r)(t,e)},In.set=function(t,e,n){return null==t?t:Qr(t,e,n)},In.setWith=function(t,e,n,r){return r="function"==typeof r?r:i,null==t?t:Qr(t,e,n,r)},In.shuffle=function(t){return(Uo(t)?Zn:Kr)(t)},In.slice=function(t,e,n){var r=null==t?0:t.length;return r?(n&&"number"!=typeof n&&gs(t,e,n)?(e=0,n=r):(e=null==e?0:da(e),n=n===i?r:da(n)),ti(t,e,n)):[]},In.sortBy=ko,In.sortedUniq=function(t){return t&&t.length?ii(t):[]},In.sortedUniqBy=function(t,e){return t&&t.length?ii(t,ss(e,2)):[]},In.split=function(t,e,n){return n&&"number"!=typeof n&&gs(t,e,n)&&(e=n=i),(n=n===i?d:n>>>0)?(t=ya(t))&&("string"==typeof e||null!=e&&!ia(e))&&!(e=oi(e))&&rn(t)?vi(cn(t),0,n):t.split(e,n):[]},In.spread=function(t,e){if("function"!=typeof t)throw new At(s);return e=null==e?0:gn(da(e),0),Xr(function(n){var r=n[e],i=vi(n,0,e);return r&&We(i,r),Ne(t,this,i)})},In.tail=function(t){var e=null==t?0:t.length;return e?ti(t,1,e):[]},In.take=function(t,e,n){return t&&t.length?ti(t,0,(e=n||e===i?1:da(e))<0?0:e):[]},In.takeRight=function(t,e,n){var r=null==t?0:t.length;return r?ti(t,(e=r-(e=n||e===i?1:da(e)))<0?0:e,r):[]},In.takeRightWhile=function(t,e){return t&&t.length?li(t,ss(e,3),!1,!0):[]},In.takeWhile=function(t,e){return t&&t.length?li(t,ss(e,3)):[]},In.tap=function(t,e){return e(t),t},In.throttle=function(t,e,n){var r=!0,i=!0;if("function"!=typeof t)throw new At(s);return Ko(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),To(t,e,{leading:r,maxWait:e,trailing:i})},In.thru=co,In.toArray=ca,In.toPairs=Ba,In.toPairsIn=Ia,In.toPath=function(t){return Uo(t)?Oe(t,Ps):aa(t)?[t]:Mi(js(ya(t)))},In.toPlainObject=ga,In.transform=function(t,e,n){var r=Uo(t),i=r||Xo(t)||ha(t);if(e=ss(e,4),null==n){var s=t&&t.constructor;n=i?r?new s:[]:Ko(t)&&Qo(s)?Rn(Vt(t)):{}}return(i?Se:vr)(t,function(t,r,i){return e(n,t,r,i)}),n},In.unary=function(t){return Mo(t,1)},In.union=Ks,In.unionBy=to,In.unionWith=eo,In.uniq=function(t){return t&&t.length?ai(t):[]},In.uniqBy=function(t,e){return t&&t.length?ai(t,ss(e,2)):[]},In.uniqWith=function(t,e){return e="function"==typeof e?e:i,t&&t.length?ai(t,i,e):[]},In.unset=function(t,e){return null==t||hi(t,e)},In.unzip=no,In.unzipWith=ro,In.update=function(t,e,n){return null==t?t:ui(t,e,mi(n))},In.updateWith=function(t,e,n,r){return r="function"==typeof r?r:i,null==t?t:ui(t,e,mi(n),r)},In.values=Ra,In.valuesIn=function(t){return null==t?[]:Qe(t,Oa(t))},In.without=io,In.words=Qa,In.wrap=function(t,e){return Do(mi(e),t)},In.xor=so,In.xorBy=oo,In.xorWith=ao,In.zip=ho,In.zipObject=function(t,e){return di(t||[],e||[],Kn)},In.zipObjectDeep=function(t,e){return di(t||[],e||[],Qr)},In.zipWith=uo,In.entries=Ba,In.entriesIn=Ia,In.extend=wa,In.extendWith=ba,oh(In,In),In.add=yh,In.attempt=Za,In.camelCase=za,In.capitalize=Fa,In.ceil=vh,In.clamp=function(t,e,n){return n===i&&(n=e,e=i),n!==i&&(n=(n=ma(n))==n?n:0),e!==i&&(e=(e=ma(e))==e?e:0),sr(ma(t),e,n)},In.clone=function(t){return or(t,4)},In.cloneDeep=function(t){return or(t,5)},In.cloneDeepWith=function(t,e){return or(t,5,e="function"==typeof e?e:i)},In.cloneWith=function(t,e){return or(t,4,e="function"==typeof e?e:i)},In.conformsTo=function(t,e){return null==e||ar(t,e,Ta(e))},In.deburr=qa,In.defaultTo=function(t,e){return null==t||t!=t?e:t},In.divide=wh,In.endsWith=function(t,e,n){t=ya(t),e=oi(e);var r=t.length,s=n=n===i?r:sr(da(n),0,r);return(n-=e.length)>=0&&t.slice(n,s)==e},In.eq=Ro,In.escape=function(t){return(t=ya(t))&&Y.test(t)?t.replace(H,en):t},In.escapeRegExp=function(t){return(t=ya(t))&&nt.test(t)?t.replace(et,"\\$&"):t},In.every=function(t,e,n){var r=Uo(t)?Ae:fr;return n&&gs(t,e,n)&&(e=i),r(t,ss(e,3))},In.find=mo,In.findIndex=Fs,In.findKey=function(t,e){return Be(t,ss(e,3),vr)},In.findLast=go,In.findLastIndex=qs,In.findLastKey=function(t,e){return Be(t,ss(e,3),wr)},In.floor=bh,In.forEach=yo,In.forEachRight=vo,In.forIn=function(t,e){return null==t?t:gr(t,ss(e,3),Oa)},In.forInRight=function(t,e){return null==t?t:yr(t,ss(e,3),Oa)},In.forOwn=function(t,e){return t&&vr(t,ss(e,3))},In.forOwnRight=function(t,e){return t&&wr(t,ss(e,3))},In.get=Sa,In.gt=zo,In.gte=Fo,In.has=function(t,e){return null!=t&&fs(t,e,Sr)},In.hasIn=Ma,In.head=Vs,In.identity=nh,In.includes=function(t,e,n,r){t=Go(t)?t:Ra(t),n=n&&!r?da(n):0;var i=t.length;return n<0&&(n=gn(i+n,0)),oa(t)?n<=i&&t.indexOf(e,n)>-1:!!i&&Re(t,e,n)>-1},In.indexOf=function(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var i=null==n?0:da(n);return i<0&&(i=gn(r+i,0)),Re(t,e,i)},In.inRange=function(t,e,n){return e=fa(e),n===i?(n=e,e=0):n=fa(n),function(t,e,n){return t>=yn(e,n)&&t<gn(e,n)}(t=ma(t),e,n)},In.invoke=Ca,In.isArguments=qo,In.isArray=Uo,In.isArrayBuffer=Vo,In.isArrayLike=Go,In.isArrayLikeObject=Ho,In.isBoolean=function(t){return!0===t||!1===t||ta(t)&&Nr(t)==y},In.isBuffer=Xo,In.isDate=Yo,In.isElement=function(t){return ta(t)&&1===t.nodeType&&!ra(t)},In.isEmpty=function(t){if(null==t)return!0;if(Go(t)&&(Uo(t)||"string"==typeof t||"function"==typeof t.splice||Xo(t)||ha(t)||qo(t)))return!t.length;var e=cs(t);if(e==_||e==A)return!t.size;if(bs(t))return!jr(t).length;for(var n in t)if(Lt.call(t,n))return!1;return!0},In.isEqual=function(t,e){return Tr(t,e)},In.isEqualWith=function(t,e,n){var r=(n="function"==typeof n?n:i)?n(t,e):i;return r===i?Tr(t,e,i,n):!!r},In.isError=$o,In.isFinite=function(t){return"number"==typeof t&&De(t)},In.isFunction=Qo,In.isInteger=Zo,In.isLength=Jo,In.isMap=ea,In.isMatch=function(t,e){return t===e||Or(t,e,as(e))},In.isMatchWith=function(t,e,n){return n="function"==typeof n?n:i,Or(t,e,as(e),n)},In.isNaN=function(t){return na(t)&&t!=+t},In.isNative=function(t){if(ws(t))throw new xt("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Wr(t)},In.isNil=function(t){return null==t},In.isNull=function(t){return null===t},In.isNumber=na,In.isObject=Ko,In.isObjectLike=ta,In.isPlainObject=ra,In.isRegExp=ia,In.isSafeInteger=function(t){return Zo(t)&&t>=-9007199254740991&&t<=c},In.isSet=sa,In.isString=oa,In.isSymbol=aa,In.isTypedArray=ha,In.isUndefined=function(t){return t===i},In.isWeakMap=function(t){return ta(t)&&cs(t)==T},In.isWeakSet=function(t){return ta(t)&&"[object WeakSet]"==Nr(t)},In.join=function(t,e){return null==t?"":Ve.call(t,e)},In.kebabCase=Ua,In.last=Ys,In.lastIndexOf=function(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var s=r;return n!==i&&(s=(s=da(n))<0?gn(r+s,0):yn(s,r-1)),e==e?function(t,e,n){for(var r=n+1;r--;)if(t[r]===e)return r;return r}(t,e,s):Ie(t,Fe,s,!0)},In.lowerCase=Va,In.lowerFirst=Ga,In.lt=ua,In.lte=la,In.max=function(t){return t&&t.length?dr(t,nh,kr):i},In.maxBy=function(t,e){return t&&t.length?dr(t,ss(e,2),kr):i},In.mean=function(t){return qe(t,nh)},In.meanBy=function(t,e){return qe(t,ss(e,2))},In.min=function(t){return t&&t.length?dr(t,nh,Pr):i},In.minBy=function(t,e){return t&&t.length?dr(t,ss(e,2),Pr):i},In.stubArray=ph,In.stubFalse=mh,In.stubObject=function(){return{}},In.stubString=function(){return""},In.stubTrue=function(){return!0},In.multiply=xh,In.nth=function(t,e){return t&&t.length?zr(t,da(e)):i},In.noConflict=function(){return ce._===this&&(ce._=It),this},In.noop=ah,In.now=So,In.pad=function(t,e,n){t=ya(t);var r=(e=da(e))?ln(t):0;if(!e||r>=e)return t;var i=(e-r)/2;return Fi(de(i),n)+t+Fi(fe(i),n)},In.padEnd=function(t,e,n){t=ya(t);var r=(e=da(e))?ln(t):0;return e&&r<e?t+Fi(e-r,n):t},In.padStart=function(t,e,n){t=ya(t);var r=(e=da(e))?ln(t):0;return e&&r<e?Fi(e-r,n)+t:t},In.parseInt=function(t,e,n){return n||null==e?e=0:e&&(e=+e),wn(ya(t).replace(rt,""),e||0)},In.random=function(t,e,n){if(n&&"boolean"!=typeof n&&gs(t,e,n)&&(e=n=i),n===i&&("boolean"==typeof e?(n=e,e=i):"boolean"==typeof t&&(n=t,t=i)),t===i&&e===i?(t=0,e=1):(t=fa(t),e===i?(e=t,t=0):e=fa(e)),t>e){var r=t;t=e,e=r}if(n||t%1||e%1){var s=bn();return yn(t+s*(e-t+ae("1e-"+((s+"").length-1))),e)}return Gr(t,e)},In.reduce=function(t,e,n){var r=Uo(t)?Le:Ge,i=arguments.length<3;return r(t,ss(e,4),n,i,lr)},In.reduceRight=function(t,e,n){var r=Uo(t)?je:Ge,i=arguments.length<3;return r(t,ss(e,4),n,i,cr)},In.repeat=function(t,e,n){return e=(n?gs(t,e,n):e===i)?1:da(e),Hr(ya(t),e)},In.replace=function(){var t=arguments,e=ya(t[0]);return t.length<3?e:e.replace(t[1],t[2])},In.result=function(t,e,n){var r=-1,s=(e=gi(e,t)).length;for(s||(s=1,t=i);++r<s;){var o=null==t?i:t[Ps(e[r])];o===i&&(r=s,o=n),t=Qo(o)?o.call(t):o}return t},In.round=_h,In.runInContext=t,In.sample=function(t){return(Uo(t)?$n:Yr)(t)},In.size=function(t){if(null==t)return 0;if(Go(t))return oa(t)?ln(t):t.length;var e=cs(t);return e==_||e==A?t.size:jr(t).length},In.snakeCase=Ha,In.some=function(t,e,n){var r=Uo(t)?Pe:ei;return n&&gs(t,e,n)&&(e=i),r(t,ss(e,3))},In.sortedIndex=function(t,e){return ni(t,e)},In.sortedIndexBy=function(t,e,n){return ri(t,e,ss(n,2))},In.sortedIndexOf=function(t,e){var n=null==t?0:t.length;if(n){var r=ni(t,e);if(r<n&&Ro(t[r],e))return r}return-1},In.sortedLastIndex=function(t,e){return ni(t,e,!0)},In.sortedLastIndexBy=function(t,e,n){return ri(t,e,ss(n,2),!0)},In.sortedLastIndexOf=function(t,e){if(null!=t&&t.length){var n=ni(t,e,!0)-1;if(Ro(t[n],e))return n}return-1},In.startCase=Xa,In.startsWith=function(t,e,n){return t=ya(t),n=null==n?0:sr(da(n),0,t.length),e=oi(e),t.slice(n,n+e.length)==e},In.subtract=Nh,In.sum=function(t){return t&&t.length?He(t,nh):0},In.sumBy=function(t,e){return t&&t.length?He(t,ss(e,2)):0},In.template=function(t,e,n){var r=In.templateSettings;n&&gs(t,e,n)&&(e=i),t=ya(t),e=ba({},e,r,$i);var s,o,a=ba({},e.imports,r.imports,$i),h=Ta(a),u=Qe(a,h),l=0,c=e.interpolate||wt,f="__p += '",d=St((e.escape||wt).source+"|"+c.source+"|"+(c===Z?ct:wt).source+"|"+(e.evaluate||wt).source+"|$","g"),p="//# sourceURL="+(Lt.call(e,"sourceURL")?(e.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++re+"]")+"\n";t.replace(d,function(e,n,r,i,a,h){return r||(r=i),f+=t.slice(l,h).replace(bt,nn),n&&(s=!0,f+="' +\n__e("+n+") +\n'"),a&&(o=!0,f+="';\n"+a+";\n__p += '"),r&&(f+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),l=h+e.length,e}),f+="';\n";var m=Lt.call(e,"variable")&&e.variable;if(m){if(ut.test(m))throw new xt("Invalid `variable` option passed into `_.template`")}else f="with (obj) {\n"+f+"\n}\n";f=(o?f.replace(q,""):f).replace(U,"$1").replace(V,"$1;"),f="function("+(m||"obj")+") {\n"+(m?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(s?", __e = _.escape":"")+(o?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+f+"return __p\n}";var g=Za(function(){return _t(h,p+"return "+f).apply(i,u)});if(g.source=f,$o(g))throw g;return g},In.times=function(t,e){if((t=da(t))<1||t>c)return[];var n=d,r=yn(t,d);e=ss(e),t-=d;for(var i=Xe(r,e);++n<t;)e(n);return i},In.toFinite=fa,In.toInteger=da,In.toLength=pa,In.toLower=function(t){return ya(t).toLowerCase()},In.toNumber=ma,In.toSafeInteger=function(t){return t?sr(da(t),-9007199254740991,c):0===t?t:0},In.toString=ya,In.toUpper=function(t){return ya(t).toUpperCase()},In.trim=function(t,e,n){if((t=ya(t))&&(n||e===i))return Ye(t);if(!t||!(e=oi(e)))return t;var r=cn(t),s=cn(e);return vi(r,Je(r,s),Ke(r,s)+1).join("")},In.trimEnd=function(t,e,n){if((t=ya(t))&&(n||e===i))return t.slice(0,fn(t)+1);if(!t||!(e=oi(e)))return t;var r=cn(t);return vi(r,0,Ke(r,cn(e))+1).join("")},In.trimStart=function(t,e,n){if((t=ya(t))&&(n||e===i))return t.replace(rt,"");if(!t||!(e=oi(e)))return t;var r=cn(t);return vi(r,Je(r,cn(e))).join("")},In.truncate=function(t,e){var n=30,r="...";if(Ko(e)){var s="separator"in e?e.separator:s;n="length"in e?da(e.length):n,r="omission"in e?oi(e.omission):r}var o=(t=ya(t)).length;if(rn(t)){var a=cn(t);o=a.length}if(n>=o)return t;var h=n-ln(r);if(h<1)return r;var u=a?vi(a,0,h).join(""):t.slice(0,h);if(s===i)return u+r;if(a&&(h+=u.length-h),ia(s)){if(t.slice(h).search(s)){var l,c=u;for(s.global||(s=St(s.source,ya(ft.exec(s))+"g")),s.lastIndex=0;l=s.exec(c);)var f=l.index;u=u.slice(0,f===i?h:f)}}else if(t.indexOf(oi(s),h)!=h){var d=u.lastIndexOf(s);d>-1&&(u=u.slice(0,d))}return u+r},In.unescape=function(t){return(t=ya(t))&&X.test(t)?t.replace(G,dn):t},In.uniqueId=function(t){var e=++jt;return ya(t)+e},In.upperCase=Ya,In.upperFirst=$a,In.each=yo,In.eachRight=vo,In.first=Vs,oh(In,(gh={},vr(In,function(t,e){Lt.call(In.prototype,e)||(gh[e]=t)}),gh),{chain:!1}),In.VERSION="4.17.23",Se(["bind","bindKey","curry","curryRight","partial","partialRight"],function(t){In[t].placeholder=In}),Se(["drop","take"],function(t,e){qn.prototype[t]=function(n){n=n===i?1:gn(da(n),0);var r=this.__filtered__&&!e?new qn(this):this.clone();return r.__filtered__?r.__takeCount__=yn(n,r.__takeCount__):r.__views__.push({size:yn(n,d),type:t+(r.__dir__<0?"Right":"")}),r},qn.prototype[t+"Right"]=function(e){return this.reverse()[t](e).reverse()}}),Se(["filter","map","takeWhile"],function(t,e){var n=e+1,r=1==n||3==n;qn.prototype[t]=function(t){var e=this.clone();return e.__iteratees__.push({iteratee:ss(t,3),type:n}),e.__filtered__=e.__filtered__||r,e}}),Se(["head","last"],function(t,e){var n="take"+(e?"Right":"");qn.prototype[t]=function(){return this[n](1).value()[0]}}),Se(["initial","tail"],function(t,e){var n="drop"+(e?"":"Right");qn.prototype[t]=function(){return this.__filtered__?new qn(this):this[n](1)}}),qn.prototype.compact=function(){return this.filter(nh)},qn.prototype.find=function(t){return this.filter(t).head()},qn.prototype.findLast=function(t){return this.reverse().find(t)},qn.prototype.invokeMap=Xr(function(t,e){return"function"==typeof t?new qn(this):this.map(function(n){return Er(n,t,e)})}),qn.prototype.reject=function(t){return this.filter(jo(ss(t)))},qn.prototype.slice=function(t,e){t=da(t);var n=this;return n.__filtered__&&(t>0||e<0)?new qn(n):(t<0?n=n.takeRight(-t):t&&(n=n.drop(t)),e!==i&&(n=(e=da(e))<0?n.dropRight(-e):n.take(e-t)),n)},qn.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},qn.prototype.toArray=function(){return this.take(d)},vr(qn.prototype,function(t,e){var n=/^(?:filter|find|map|reject)|While$/.test(e),r=/^(?:head|last)$/.test(e),s=In[r?"take"+("last"==e?"Right":""):e],o=r||/^find/.test(e);s&&(In.prototype[e]=function(){var e=this.__wrapped__,a=r?[1]:arguments,h=e instanceof qn,u=a[0],l=h||Uo(e),c=function(t){var e=s.apply(In,We([t],a));return r&&f?e[0]:e};l&&n&&"function"==typeof u&&1!=u.length&&(h=l=!1);var f=this.__chain__,d=!!this.__actions__.length,p=o&&!f,m=h&&!d;if(!o&&l){e=m?e:new qn(this);var g=t.apply(e,a);return g.__actions__.push({func:co,args:[c],thisArg:i}),new Fn(g,f)}return p&&m?t.apply(this,a):(g=this.thru(c),p?r?g.value()[0]:g.value():g)})}),Se(["pop","push","shift","sort","splice","unshift"],function(t){var e=Et[t],n=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",r=/^(?:pop|shift)$/.test(t);In.prototype[t]=function(){var t=arguments;if(r&&!this.__chain__){var i=this.value();return e.apply(Uo(i)?i:[],t)}return this[n](function(n){return e.apply(Uo(n)?n:[],t)})}}),vr(qn.prototype,function(t,e){var n=In[e];if(n){var r=n.name+"";Lt.call(Cn,r)||(Cn[r]=[]),Cn[r].push({name:e,func:n})}}),Cn[Bi(i,2).name]=[{name:"wrapper",func:i}],qn.prototype.clone=function(){var t=new qn(this.__wrapped__);return t.__actions__=Mi(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=Mi(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=Mi(this.__views__),t},qn.prototype.reverse=function(){if(this.__filtered__){var t=new qn(this);t.__dir__=-1,t.__filtered__=!0}else(t=this.clone()).__dir__*=-1;return t},qn.prototype.value=function(){var t=this.__wrapped__.value(),e=this.__dir__,n=Uo(t),r=e<0,i=n?t.length:0,s=function(t,e,n){for(var r=-1,i=n.length;++r<i;){var s=n[r],o=s.size;switch(s.type){case"drop":t+=o;break;case"dropRight":e-=o;break;case"take":e=yn(e,t+o);break;case"takeRight":t=gn(t,e-o)}}return{start:t,end:e}}(0,i,this.__views__),o=s.start,a=s.end,h=a-o,u=r?a:o-1,l=this.__iteratees__,c=l.length,f=0,d=yn(h,this.__takeCount__);if(!n||!r&&i==h&&d==h)return ci(t,this.__actions__);var p=[];t:for(;h--&&f<d;){for(var m=-1,g=t[u+=e];++m<c;){var y=l[m],v=y.iteratee,w=y.type,b=v(g);if(2==w)g=b;else if(!b){if(1==w)continue t;break t}}p[f++]=g}return p},In.prototype.at=fo,In.prototype.chain=function(){return lo(this)},In.prototype.commit=function(){return new Fn(this.value(),this.__chain__)},In.prototype.next=function(){this.__values__===i&&(this.__values__=ca(this.value()));var t=this.__index__>=this.__values__.length;return{done:t,value:t?i:this.__values__[this.__index__++]}},In.prototype.plant=function(t){for(var e,n=this;n instanceof zn;){var r=Bs(n);r.__index__=0,r.__values__=i,e?s.__wrapped__=r:e=r;var s=r;n=n.__wrapped__}return s.__wrapped__=t,e},In.prototype.reverse=function(){var t=this.__wrapped__;if(t instanceof qn){var e=t;return this.__actions__.length&&(e=new qn(this)),(e=e.reverse()).__actions__.push({func:co,args:[Js],thisArg:i}),new Fn(e,this.__chain__)}return this.thru(Js)},In.prototype.toJSON=In.prototype.valueOf=In.prototype.value=function(){return ci(this.__wrapped__,this.__actions__)},In.prototype.first=In.prototype.head,$t&&(In.prototype[$t]=function(){return this}),In}();ce._=pn,(r=function(){return pn}.call(e,n,e,t))===i||(t.exports=r)}.call(this)},584(t,e,n){"use strict";n.d(e,{Ay:()=>c,OW:()=>u,Qq:()=>h,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: white;\n\n pointer-events: auto;\n\n user-select: none;\n -webkit-user-select: none;\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",h="hcTi6yK4eMJ8Mc61rqGY",u="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:()=>v,IU:()=>d,QB:()=>y,Qs:()=>f,Te:()=>g,aW:()=>c,eB:()=>m,ho:()=>l,lf:()=>a,m9:()=>u,vw:()=>p,wx:()=>h});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: white;\n\n pointer-events: auto;\n\n user-select: none;\n -webkit-user-select: none;\n\n cursor: pointer;\n\n outline: none;\n}\n\n.sE2YASqaiPZdV9dz58A7:hover .u5w42CVwU4PQ7GiSuy4G {\n text-decoration: underline;\n}\n\n.TCp4dzyF9qmbX3ejDOkL {\n margin: 11px 0px 0px 12px;\n\n display: none;\n flex-direction: column;\n}\n\n.mOH6VML7hViujtEoNaOA .TCp4dzyF9qmbX3ejDOkL {\n display: flex;\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: white;\n\n user-select: none;\n -webkit-user-select: none;\n\n pointer-events: none;\n}\n\n.CEKK9ESfVFUX5lmGT49Q {\n margin-top: 21px;\n\n display: flex;\n flex-direction: row;\n gap: 23px;\n}\n\n.REx8U43f426EyuXTroHH {\n margin-top: 22px;\n\n display: none;\n}\n\n.vXdbsaENeFcx9uTlNetr {\n display: flex;\n flex-direction: row;\n align-items: center;\n}\n\n.a5Wi7rcTlB2tWpGwD8zf {\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: white;\n\n user-select: none;\n -webkit-user-select: none;\n\n pointer-events: none;\n}\n',""]);var a="dimGBV0h2P1QB3V_Zhmc",h="sE2YASqaiPZdV9dz58A7",u="BYZcOJiOX5zLxIrbc3gR",l="mOH6VML7hViujtEoNaOA",c="u5w42CVwU4PQ7GiSuy4G",f="TCp4dzyF9qmbX3ejDOkL",d="WOjw8GKoS54KQAOlumMa",p="CEKK9ESfVFUX5lmGT49Q",m="REx8U43f426EyuXTroHH",g="vXdbsaENeFcx9uTlNetr",y="a5Wi7rcTlB2tWpGwD8zf";const v=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:()=>u,ZZ:()=>a,o3:()=>h});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: white;\n\n user-select: none;\n -webkit-user-select: none;\n\n pointer-events: auto;\n}\n\n.P5PJGaHxnhsEaezm8Nhg {\n color: white;\n\n cursor: pointer;\n\n text-decoration: none;\n}\n\n.P5PJGaHxnhsEaezm8Nhg:hover {\n text-decoration: underline;\n}\n',""]);var a="rIHrsark1WbeRGC9M1ZY",h="P5PJGaHxnhsEaezm8Nhg";const u=o},704(t){var e;e=()=>(()=>{var t={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 h=t[a],u=r.base?h[0]+r.base:h[0],l=s[u]||0,c="".concat(u," ").concat(l);s[u]=l+1;var f=n(c),d={css:h[1],media:h[2],sourceMap:h[3],supports:h[4],layer:h[5]};if(-1!==f)e[f].references++,e[f].updater(d);else{var p=i(d,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 h=r(t,i),u=0;u<s.length;u++){var l=n(s[u]);0===e[l].references&&(e[l].updater(),e.splice(l,1))}s=h}}},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))}}},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 h=this[a][0];null!=h&&(o[h]=!0)}for(var u=0;u<t.length;u++){var l=[].concat(t[u]);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}},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}},601:t=>{"use strict";t.exports=function(t){return t[1]}},645:function(t){var e;e=()=>(()=>{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,clamp:()=>f,degrees:()=>g,flipAway:()=>w,isBetween:()=>l,isBetweenExclusive:()=>c,isBetweenInclusive:()=>l,max:()=>u,mean:()=>r,median:()=>a,min:()=>h,normalizeAngle:()=>v,radians:()=>y,sortNumbers:()=>i,sortNumbersAscending:()=>i,sortNumbersDescending:()=>p,sortedNumbers:()=>o,sortedNumbersAscending:()=>o,sortedNumbersDescending:()=>m,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 h(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 u(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 f(t,e,n){return t<e?e:t>n?n:t}function d(t,e,n){return Math.abs(t-e)<=n}function p(t){i(t),t.reverse()}function m(t){var e=o(t);return e.reverse(),e}function g(t){return t*(180/Math.PI)}function y(t){return t*(Math.PI/180)}function v(t,e){void 0===e&&(e=-Math.PI);var n=t-e;return e+((n%=2*Math.PI)>=0?n:n+2*Math.PI)}function w(t,e){var n=(e=v(e,t))-t;return(n<Math.PI/2||n>3*Math.PI/2)&&(t+=Math.PI),t}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";n.r(r),n.d(r,{Box:()=>e});var t=n(986);class e{static bounding(n){let r=n.map(t=>e.matching(t)),i=(0,t.min)(r.map(t=>t.left)),s=(0,t.min)(r.map(t=>t.top)),o=(0,t.max)(r.map(t=>t.right))-i,a=(0,t.max)(r.map(t=>t.bottom))-s;return new e(i,s,o,a)}static matching(t){let{x:n,y:r,width:i,height:s}=t;return new e(n,r,i,s)}constructor(t,e,n,r){this.x=t,this.y=e,this.width=n,this.height=r}get centerX(){return this.minX+this.width/2}get centerY(){return this.minY+this.height/2}get minX(){return this.x}get minY(){return this.y}get maxX(){return this.minX+this.width}get maxY(){return this.minY+this.height}get top(){return this.minY}get right(){return this.maxX}get bottom(){return this.maxY}get left(){return this.minX}isBoundedBy(t){let n=e.matching(t);return this.minX>=n.minX&&this.minY>=n.minY&&this.maxX<=n.maxX&&this.maxY<=n.maxY}padded(t,n){return"number"!=typeof n&&(n=t),new e(this.x-t,this.y-n,this.width+2*t,this.height+2*n)}peripheralPoint(t){let e=this.width/2,n=this.height/2,r=Math.pow(Math.pow(e,2)+Math.pow(n,2),.5),i=this.centerX+r*Math.cos(t),s=this.centerY+r*Math.sin(t),o=r;return Math.abs(this.centerX-i)>e&&(o=Math.abs(e/Math.cos(t)),o=Number.isFinite(o)?o:n),Math.abs(this.centerY-s)>n&&(o=Math.abs(n/Math.sin(t)),o=Number.isFinite(o)?o:e),{x:this.centerX+o*Math.cos(t),y:this.centerY+o*Math.sin(t)}}}})(),r})(),t.exports=e()},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)}},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)}}}},865:(t,e,n)=>{"use strict";n.d(e,{Ay:()=>c,JJ:()=>l,Qq:()=>h,YL:()=>a,jJ:()=>u});var r=n(601),i=n.n(r),s=n(314),o=n.n(s)()(i());o.push([t.id,'.DKvRm2Iz8xnCJ3FyFRDv {\n position: fixed;\n\n display: flex;\n flex-direction: column;\n align-items: center;\n\n animation: zVywckd26nkyhEbH637w 1.5s;\n\n pointer-events: none;\n}\n\n@keyframes zVywckd26nkyhEbH637w {\n 0% {\n opacity: 0;\n }\n 66.6% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n}\n\n.p5_D557pe0GpEcfAZAWo {\n margin: 0px;\n padding: 10px 19px;\n\n border: 1px solid #d0d0e9;\n border-radius: 5px;\n\n background-color: black;\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\n.D8UCSOzbDas70ahLaazC {\n border-style: solid;\n border-color: #d0d0e9 transparent transparent transparent;\n border-width: 18px 9px;\n margin-top: -1px;\n}\n\n.RCKbqYEd_F2wRTu_tJpk {\n border-style: solid;\n border-color: black transparent transparent transparent;\n border-width: 17px 8px;\n margin-top: -37px;\n}\n',""]);var a="DKvRm2Iz8xnCJ3FyFRDv",h="p5_D557pe0GpEcfAZAWo",u="D8UCSOzbDas70ahLaazC",l="RCKbqYEd_F2wRTu_tJpk";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.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={};return(()=>{"use strict";n.r(r),n.d(r,{Tooltip:()=>W});var t=n(72),e=n.n(t),i=n(825),s=n.n(i),o=n(659),a=n.n(o),h=n(56),u=n.n(h),l=n(540),c=n.n(l),f=n(113),d=n.n(f),p=n(865),m={};m.styleTagTransform=d(),m.setAttributes=u(),m.insert=a().bind(null,"head"),m.domAPI=s(),m.insertStyleElement=c(),e()(p.Ay,m),p.Ay&&p.Ay.locals&&p.Ay.locals;var g,y,v,w,b,x,_,N,k,S,M,A,E,C=n(645),T=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)},O=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 W{constructor(t){g.add(this),y.set(this,document.createElement("div")),v.set(this,document.createElement("p")),w.set(this,document.createElement("div")),b.set(this,document.createElement("div")),x.set(this,5),_.set(this,0),N.set(this,void 0),k.set(this,()=>{}),S.set(this,()=>{}),T(this,y,"f").classList.add(p.YL),T(this,v,"f").classList.add(p.Qq),T(this,v,"f").textContent=null!=t?t:"",T(this,y,"f").append(T(this,v,"f")),T(this,w,"f").classList.add(p.jJ),T(this,y,"f").append(T(this,w,"f")),T(this,b,"f").classList.add(p.JJ),T(this,y,"f").append(T(this,b,"f"))}get textContent(){return T(this,v,"f").textContent}set textContent(t){let e=!T(this,g,"m",E).call(this);T(this,g,"m",A).call(this),T(this,v,"f").textContent=t,e&&T(this,g,"m",M).call(this)}get owner(){return T(this,N,"f")}set owner(t){T(this,N,"f")&&(T(this,N,"f").removeEventListener("mouseover",T(this,k,"f")),T(this,N,"f").removeEventListener("mouseout",T(this,S,"f"))),O(this,N,t,"f"),t&&(t.addEventListener("mouseover",()=>T(this,g,"m",M).call(this)),t.addEventListener("mouseout",()=>T(this,g,"m",A).call(this)))}get padding(){return T(this,x,"f")}set padding(t){O(this,x,t,"f"),T(this,g,"m",E).call(this)||(T(this,g,"m",A).call(this),T(this,g,"m",M).call(this))}get pointerDisplacement(){return T(this,_,"f")}set pointerDisplacement(t){O(this,_,t,"f"),T(this,g,"m",E).call(this)||(T(this,g,"m",A).call(this),T(this,g,"m",M).call(this))}}y=new WeakMap,v=new WeakMap,w=new WeakMap,b=new WeakMap,x=new WeakMap,_=new WeakMap,N=new WeakMap,k=new WeakMap,S=new WeakMap,g=new WeakSet,M=function(){if(T(this,y,"f").style.left="0px",T(this,y,"f").style.top="0px",T(this,w,"f").style.marginLeft=`${T(this,_,"f")}px`,T(this,b,"f").style.marginLeft=`${T(this,_,"f")}px`,document.body.append(T(this,y,"f")),!T(this,N,"f"))return;let t=T(this,y,"f").getBoundingClientRect().width,e=T(this,v,"f").getBoundingClientRect().height+T(this,w,"f").getBoundingClientRect().height/2-1,n=C.Box.matching(T(this,N,"f").getBoundingClientRect()).padded(T(this,x,"f"));T(this,y,"f").style.left=n.peripheralPoint(3*Math.PI/2).x-t/2-T(this,_,"f")/2+"px",T(this,y,"f").style.top=n.peripheralPoint(3*Math.PI/2).y-e+"px"},A=function(){T(this,y,"f").remove()},E=function(){return!document.body.contains(T(this,y,"f"))}})(),r})(),t.exports=e()},705(t,e,n){"use strict";n.d(e,{Ay:()=>p,Ol:()=>f,Qs:()=>h,Se:()=>a,eB:()=>d,vM:()=>l,vw:()=>c,yZ:()=>u});var r=n(601),i=n.n(r),s=n(314),o=n.n(s)()(i());o.push([t.id,'.LtjvWfQ5DEgLE0jZ1VYc {\n margin-top: 39px;\n\n display: flex;\n flex-direction: column;\n}\n\n.Nc_rMplF2zhIq3zYlKFl {\n margin: 11px 0px 0px 12px;\n\n display: flex;\n flex-direction: column;\n}\n\n.UArJtlXrClYUqKvYzpXe .Nc_rMplF2zhIq3zYlKFl {\n display: none;\n}\n\n.rgGEAvKvdVba2DrspkU6 {\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: white;\n\n user-select: none;\n -webkit-user-select: none;\n\n pointer-events: none;\n}\n\n.mLPVUA5YiyA4OksC17sb {\n margin-top: 23px;\n\n display: flex;\n flex-direction: row;\n gap: 23px;\n}\n\n.pCuHfZ8GeFUaELxeOyqs {\n margin-top: 29px;\n\n display: flex;\n flex-direction: column;\n gap: 10px;\n}\n\n.IhPX3q3sGT4fPIlgUdp1 {\n display: none;\n flex-direction: column;\n}\n',""]);var a="LtjvWfQ5DEgLE0jZ1VYc",h="Nc_rMplF2zhIq3zYlKFl",u="UArJtlXrClYUqKvYzpXe",l="rgGEAvKvdVba2DrspkU6",c="mLPVUA5YiyA4OksC17sb",f="pCuHfZ8GeFUaELxeOyqs",d="IhPX3q3sGT4fPIlgUdp1";const p=o},709(t,e,n){"use strict";n.d(e,{A:()=>h,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 h=o},723(t,e,n){"use strict";n.d(e,{Ay:()=>l,Wu:()=>h,kL:()=>a,r9:()=>u});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 align-self: start;\n\n pointer-events: auto;\n}\n\n.vDAwbQmWCc39SmNMFRtv {\n margin: 0px;\n\n border: none;\n\n padding: 3px 15px;\n border-radius: 2px;\n\n font-family: "Open Sans", sans-serif;\n font-size: 11px;\n font-weight: 700;\n font-style: normal;\n color: #001010;\n\n background-color: #8cdede;\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: #3a8f8f;\n\n pointer-events: none;\n}\n\n.vDAwbQmWCc39SmNMFRtv:hover {\n background-color: #3ca9a9;\n}\n\n.vDAwbQmWCc39SmNMFRtv:active {\n background-color: #1a7676;\n}\n\n.vDAwbQmWCc39SmNMFRtv:focus {\n outline: none;\n}\n',""]);var a="X7DPHJCVbRpHEB9gcm0Z",h="vDAwbQmWCc39SmNMFRtv",u="BAlKKbk1BfHF_fPz1gpc";const l=o},726(t){var e;e=()=>(()=>{var t={854: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){return"number"==typeof t}function r(t){return n(t)&&Number.isFinite(t)}function i(t){return n(t)&&!Number.isFinite(t)}function s(t){return r(t)&&t>0}function o(t){return r(t)&&t>=0}function a(t){return"string"==typeof t}function h(t){return null==t}function u(t){return"object"==typeof t&&null!==t}function l(t){return Array.isArray(t)}function c(t){return l(t)&&0==t.length}function f(t){return l(t)&&t.length>0}function d(t){return l(t)&&t.every(n)}function p(t){return d(t)&&t.length>0}function m(t){return l(t)&&t.every(r)}function g(t){return l(t)&&t.every(i)}function y(t){return l(t)&&t.every(a)}function v(t){return y(t)&&t.length>0}return t.r(e),t.d(e,{isArray:()=>l,isEmptyArray:()=>c,isFiniteNumber:()=>r,isFiniteNumbersArray:()=>m,isNonEmptyArray:()=>f,isNonEmptyNumbersArray:()=>p,isNonEmptyStringsArray:()=>v,isNonFiniteNumber:()=>i,isNonFiniteNumbersArray:()=>g,isNonNegativeFiniteNumber:()=>o,isNonNullObject:()=>u,isNullish:()=>h,isNumber:()=>n,isNumbersArray:()=>d,isPositiveFiniteNumber:()=>s,isString:()=>a,isStringsArray:()=>y}),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,e){for(let[n,r]of Object.entries(e))t.setAttribute(n,r)}n.r(r),n.d(r,{CoordinateSystem:()=>c,HorizontalClientScaling:()=>d,InnerXML:()=>w,OuterXML:()=>_,Scaling:()=>f,VerticalClientScaling:()=>p,assignUUID:()=>l,bringToFront:()=>m,drawOnCanvas:()=>A,isSVGGraphicsElement:()=>N,isSVGGraphicsElementsArray:()=>S,sendToBack:()=>g,setAttributes:()=>t});const e={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};var i,s=new Uint8Array(16);function o(){if(!i&&!(i="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return i(s)}for(var a=[],h=0;h<256;++h)a.push((h+256).toString(16).slice(1));const u=function(t,n,r){if(e.randomUUID&&!n&&!t)return e.randomUUID();var i=(t=t||{}).random||(t.rng||o)();if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,n){r=r||0;for(var s=0;s<16;++s)n[r+s]=i[s];return n}return function(t,e=0){return(a[t[e+0]]+a[t[e+1]]+a[t[e+2]]+a[t[e+3]]+"-"+a[t[e+4]]+a[t[e+5]]+"-"+a[t[e+6]]+a[t[e+7]]+"-"+a[t[e+8]]+a[t[e+9]]+"-"+a[t[e+10]]+a[t[e+11]]+a[t[e+12]]+a[t[e+13]]+a[t[e+14]]+a[t[e+15]]).toLowerCase()}(i)};function l(t){t.id="uuid-"+u()}class c{constructor(t){this.targetSVGDoc=t}get width(){return this.targetSVGDoc.viewBox.baseVal.width}get height(){return this.targetSVGDoc.viewBox.baseVal.height}get minX(){return this.targetSVGDoc.viewBox.baseVal.x}get maxX(){return this.minX+this.width}get minY(){return this.targetSVGDoc.viewBox.baseVal.y}get maxY(){return this.minY+this.height}get horizontalScaling(){return this.targetSVGDoc.width.baseVal.value/this.width}get verticalScaling(){return this.targetSVGDoc.height.baseVal.value/this.height}setScaling(t){this.targetSVGDoc.setAttribute("width",""+t*this.width),this.targetSVGDoc.setAttribute("height",""+t*this.height)}get clientWidth(){return this.targetSVGDoc.getBoundingClientRect().width}get clientHeight(){return this.targetSVGDoc.getBoundingClientRect().height}get horizontalClientScaling(){return this.clientWidth/this.width}get verticalClientScaling(){return this.clientHeight/this.height}get minClientX(){return this.targetSVGDoc.getBoundingClientRect().x}get minClientY(){return this.targetSVGDoc.getBoundingClientRect().y}fromClientX(t){return this.minX+(t-this.minClientX)/this.horizontalClientScaling}fromClientY(t){return this.minY+(t-this.minClientY)/this.verticalClientScaling}fromClientCoordinates(t,e){return[this.fromClientX(t),this.fromClientY(e)]}fromClientPoint(t){return{x:this.fromClientX(t.x),y:this.fromClientY(t.y)}}toClientX(t){return this.minClientX+this.horizontalClientScaling*(t-this.minX)}toClientY(t){return this.minClientY+this.verticalClientScaling*(t-this.minY)}toClientCoordinates(t,e){return[this.toClientX(t),this.toClientY(e)]}toClientPoint(t){return{x:this.toClientX(t.x),y:this.toClientY(t.y)}}}class f{constructor(t){this.targetSVGDoc=t}set(t){let e=this.targetSVGDoc.viewBox.baseVal;this.targetSVGDoc.setAttribute("width",t*e.width+"px"),this.targetSVGDoc.setAttribute("height",t*e.height+"px")}}class d{constructor(t){this.targetSVGDoc=t}get(){let t=this.targetSVGDoc.getBoundingClientRect(),e=this.targetSVGDoc.viewBox.baseVal;return t.width/e.width}}class p{constructor(t){this.targetSVGDoc=t}get(){let t=this.targetSVGDoc.getBoundingClientRect(),e=this.targetSVGDoc.viewBox.baseVal;return t.height/e.height}}function m(t){let e=t.parentNode;e&&e.appendChild(t)}function g(t){let e=t.parentNode;e&&e.prepend(t)}var y,v=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){y.set(this,void 0),function(t,e,n){if("function"==typeof e||!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");e.set(t,n)}(this,y,t)}toString(){return v(this,y,"f").innerHTML}set(t){v(this,y,"f").innerHTML=t}}y=new WeakMap;var b,x=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 _{constructor(t){b.set(this,void 0),function(t,e,n){if("function"==typeof e||!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");e.set(t,n)}(this,b,t)}toString(){return x(this,b,"f").outerHTML}set(t){let e=document.createElementNS("http://www.w3.org/2000/svg","svg");if(e.style.height="0px",document.body.append(e),e.innerHTML=t,!e.firstElementChild)throw new Error("Outer XML must encode an SVG element.");if(e.childNodes.length>1)throw new Error("Outer XML cannot encode multiple DOM nodes.");if(e.firstElementChild.tagName.toLowerCase()!=x(this,b,"f").tagName.toLowerCase())throw new Error("Outer XML must specify an SVG element with the same tag name as the target SVG element.");[...x(this,b,"f").attributes].forEach(t=>x(this,b,"f").removeAttribute(t.name)),[...e.firstElementChild.attributes].forEach(t=>x(this,b,"f").setAttribute(t.name,t.value)),x(this,b,"f").innerHTML=e.firstElementChild.innerHTML,e.remove()}}function N(t){return t instanceof SVGGraphicsElement}b=new WeakMap;var k=n(854);function S(t){return(0,k.isArray)(t)&&t.every(N)}var M=function(t,e,n,r){return new(n||(n=Promise))(function(i,s){function o(t){try{h(r.next(t))}catch(t){s(t)}}function a(t){try{h(r.throw(t))}catch(t){s(t)}}function h(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n(function(t){t(e)})).then(o,a)}h((r=r.apply(t,e||[])).next())})};function A(t){return M(this,void 0,void 0,function*(){let e=document.createElement("canvas");e.style.position="fixed",e.style.display="none",e.style.pointerEvents="none",document.body.append(e),e.width=t.width.baseVal.value,e.height=t.height.baseVal.value;let n=e.getContext("2d");if(!n)throw new Error("Unable to get canvas context.");let r=(new XMLSerializer).serializeToString(t),i=new Image;return i.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(r),yield i.decode(),n.drawImage(i,0,0,t.width.baseVal.value,t.height.baseVal.value),e.remove(),e.style.position="",e.style.display="",e.style.pointerEvents="",e})}})(),r})(),t.exports=e()},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)}}}},854(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){return"number"==typeof t}function r(t){return n(t)&&Number.isFinite(t)}function i(t){return n(t)&&!Number.isFinite(t)}function s(t){return r(t)&&t>0}function o(t){return r(t)&&t>=0}function a(t){return"string"==typeof t}function h(t){return null==t}function u(t){return"object"==typeof t&&null!==t}function l(t){return Array.isArray(t)}function c(t){return l(t)&&0==t.length}function f(t){return l(t)&&t.length>0}function d(t){return l(t)&&t.every(n)}function p(t){return d(t)&&t.length>0}function m(t){return l(t)&&t.every(r)}function g(t){return l(t)&&t.every(i)}function y(t){return l(t)&&t.every(a)}function v(t){return y(t)&&t.length>0}return t.r(e),t.d(e,{isArray:()=>l,isEmptyArray:()=>c,isFiniteNumber:()=>r,isFiniteNumbersArray:()=>m,isNonEmptyArray:()=>f,isNonEmptyNumbersArray:()=>p,isNonEmptyStringsArray:()=>v,isNonFiniteNumber:()=>i,isNonFiniteNumbersArray:()=>g,isNonNegativeFiniteNumber:()=>o,isNonNullObject:()=>u,isNullish:()=>h,isNumber:()=>n,isNumbersArray:()=>d,isPositiveFiniteNumber:()=>s,isString:()=>a,isStringsArray:()=>y}),e})()},881(t,e,n){"use strict";n.d(e,{A:()=>d,k:()=>f});var r=n(601),i=n.n(r),s=n(314),o=n.n(s),a=n(417),h=n.n(a),u=new URL(n(889),n.b),l=o()(i()),c=h()(u);l.push([t.id,`.pMUxgRC_f4NzkoelkDpX {\n appearance: none;\n\n margin: 0px;\n padding: 0px;\n\n border: none;\n outline: none;\n\n border-radius: 1px;\n\n width: 15px;\n height: 15px;\n\n background-color: white;\n\n cursor: pointer;\n}\n\n.pMUxgRC_f4NzkoelkDpX:checked {\n background-color: rgb(255, 194, 194);\n\n background-image: url(${c});\n}\n`,""]);var f="pMUxgRC_f4NzkoelkDpX";const d=l},887(t,e,n){"use strict";n.d(e,{Ay:()=>l,Qq:()=>h,lI:()=>a,r9:()=>u});var r=n(601),i=n.n(r),s=n(314),o=n.n(s)()(i());o.push([t.id,'.XCtUcg96Mkd2YGqGvTjm {\n position: relative;\n\n align-self: start;\n\n pointer-events: auto;\n}\n\n.qTVXpnB_go4Q_8V0QAhx {\n margin: 0px;\n padding: 0px;\n\n font-family: "Open Sans", sans-serif;\n font-size: 11px;\n font-weight: 700;\n font-style: normal;\n color: #10ffff;\n\n user-select: none;\n -webkit-user-select: none;\n\n pointer-events: auto;\n\n cursor: pointer;\n}\n\n.XCtUcg96Mkd2YGqGvTjm:hover .qTVXpnB_go4Q_8V0QAhx {\n text-decoration: underline;\n}\n\n.IgtWfVpmdN_e04k18xHb {\n cursor: default;\n}\n\n.IgtWfVpmdN_e04k18xHb .qTVXpnB_go4Q_8V0QAhx {\n pointer-events: none;\n\n color: #097676;\n}\n\n.IgtWfVpmdN_e04k18xHb:hover .qTVXpnB_go4Q_8V0QAhx {\n text-decoration: none;\n}\n',""]);var a="XCtUcg96Mkd2YGqGvTjm",h="qTVXpnB_go4Q_8V0QAhx",u="IgtWfVpmdN_e04k18xHb";const l=o},889(t){"use strict";t.exports="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxNSAxNSI+PHBhdGggZmlsbD0ibm9uZSIgc3Ryb2tlPSJibGFjayIgc3Ryb2tlLWxpbmVjYXA9IiIgc3Ryb2tlLWxpbmVqb2luPSIiIHN0cm9rZS13aWR0aD0iMiIgZD0iTTMuNSA4LjUgTDcuNSAxMS41IEwgMTEuNSAzLjUiLz48L3N2Zz4="},924(t,e,n){"use strict";n.d(e,{Ay:()=>g,QB:()=>m,Qs:()=>h,Te:()=>p,VX:()=>c,eB:()=>d,ho:()=>u,iE:()=>f,qM:()=>a,vM:()=>l});var r=n(601),i=n.n(r),s=n(314),o=n.n(s)()(i());o.push([t.id,'.O0vrEVyGT_aFy6tF68Na {\n margin-top: 39px;\n\n display: flex;\n flex-direction: column;\n}\n\n.VFDUY2z_WgJp1fVc8TCw {\n margin: 11px 0px 0px 12px;\n\n display: none;\n flex-direction: column;\n}\n\n.dJmYzq3wi8hxLecdDaOF .VFDUY2z_WgJp1fVc8TCw {\n display: flex;\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: white;\n\n user-select: none;\n -webkit-user-select: none;\n\n pointer-events: none;\n}\n\n.GZP6NKFkjkjlFVlDU6AZ {\n margin-top: 20px;\n\n display: flex;\n flex-direction: row;\n align-items: center;\n}\n\n.f1LDX7M42DUD9AT6Mh5p {\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: white;\n\n user-select: none;\n -webkit-user-select: none;\n\n pointer-events: none;\n}\n\n.wq_gmBRSZasSLYaUmdWp {\n display: none;\n flex-direction: column;\n}\n\n.niaBwqy1zBIMYC42Y7LP {\n margin-top: 27px;\n\n display: flex;\n flex-direction: row;\n align-items: center;\n}\n\n._YkLdMiLPhNIvuLLypQE {\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: white;\n\n user-select: none;\n -webkit-user-select: none;\n\n pointer-events: none;\n}\n',""]);var a="O0vrEVyGT_aFy6tF68Na",h="VFDUY2z_WgJp1fVc8TCw",u="dJmYzq3wi8hxLecdDaOF",l="Z3lHB1W2K4m8JuZOnWs9",c="GZP6NKFkjkjlFVlDU6AZ",f="f1LDX7M42DUD9AT6Mh5p",d="wq_gmBRSZasSLYaUmdWp",p="niaBwqy1zBIMYC42Y7LP",m="_YkLdMiLPhNIvuLLypQE";const g=o},933(t,e,n){"use strict";n.d(e,{Ay:()=>u,Pf:()=>h,Te:()=>a});var r=n(601),i=n.n(r),s=n(314),o=n.n(s)()(i());o.push([t.id,'.cl_Un57i0HIsdQnuxSY0 {\n display: flex;\n flex-direction: row;\n align-items: center;\n}\n\n.GQe6FmedcfLCp15a2z6w {\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: white;\n\n user-select: none;\n -webkit-user-select: none;\n\n pointer-events: none;\n}\n',""]);var a="cl_Un57i0HIsdQnuxSY0",h="GQe6FmedcfLCp15a2z6w";const u=o},965(t,e,n){"use strict";n.d(e,{Ay:()=>l,Qs:()=>h,fS:()=>a,yZ:()=>u});var r=n(601),i=n.n(r),s=n(314),o=n.n(s)()(i());o.push([t.id,".nsoFbJ7bgx_BnBY0KjvC {\n margin-top: 39px;\n\n display: flex;\n flex-direction: column;\n}\n\n.k7K01e2GUrQW3HOTGKLg {\n margin: 13px 0px 0px 12px;\n\n display: flex;\n flex-direction: column;\n}\n\n.uQ4YNz02_aOj4lo6H7WY .k7K01e2GUrQW3HOTGKLg {\n display: none;\n}\n",""]);var a="nsoFbJ7bgx_BnBY0KjvC",h="k7K01e2GUrQW3HOTGKLg",u="uQ4YNz02_aOj4lo6H7WY";const l=o}},e={};function n(r){var i=e[r];if(void 0!==i)return i.exports;var s=e[r]={id:r,loaded:!1,exports:{}};return t[r].call(s.exports,s,s.exports,n),s.loaded=!0,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.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),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.nmd=t=>(t.paths=[],t.children||(t.children=[]),t),n.b="undefined"!=typeof document&&document.baseURI||self.location.href,n.nc=void 0;var r={};return(()=>{"use strict";n.r(r),n.d(r,{EditingForm:()=>xp});var t={};n.r(t),n.d(t,{cx:()=>Re,cy:()=>ze,height:()=>qe,rx:()=>Pe,ry:()=>De,width:()=>Fe,x:()=>Be,y:()=>Ie});var e={};n.r(e),n.d(e,{from:()=>He,to:()=>Xe});var i={};n.r(i),n.d(i,{MorphArray:()=>Ke,height:()=>rn,width:()=>nn,x:()=>tn,y:()=>en});var s={};n.r(s),n.d(s,{array:()=>Wn,clear:()=>Ln,move:()=>jn,plot:()=>Pn,size:()=>Dn});var o={};n.r(o),n.d(o,{amove:()=>lr,ax:()=>hr,ay:()=>ur,build:()=>cr,center:()=>ar,cx:()=>sr,cy:()=>or,length:()=>er,move:()=>ir,plain:()=>tr,x:()=>nr,y:()=>rr});var a={};n.r(a),n.d(a,{dmove:()=>yr,dx:()=>vr,dy:()=>wr,height:()=>br,move:()=>xr,size:()=>_r,width:()=>Nr,x:()=>kr,y:()=>Sr});var h={};n.r(h),n.d(h,{$:()=>Pr,default:()=>Dr,jQuery:()=>Pr});var u=n(72),l=n.n(u),c=n(825),f=n.n(c),d=n(659),p=n.n(d),m=n(56),g=n.n(m),y=n(540),v=n.n(y),w=n(113),b=n.n(w),x=n(420),_={};_.styleTagTransform=b(),_.setAttributes=g(),_.insert=p().bind(null,"head"),_.domAPI=f(),_.insertStyleElement=v(),l()(x.Ay,_),x.Ay&&x.Ay.locals&&x.Ay.locals;var N=n(633),k={};k.styleTagTransform=b(),k.setAttributes=g(),k.insert=p().bind(null,"head"),k.domAPI=f(),k.insertStyleElement=v(),l()(N.Ay,k),N.Ay&&N.Ay.locals&&N.Ay.locals;var S=n(584),M={};M.styleTagTransform=b(),M.setAttributes=g(),M.insert=p().bind(null,"head"),M.domAPI=f(),M.insertStyleElement=v(),l()(S.Ay,M),S.Ay&&S.Ay.locals&&S.Ay.locals;var A,E=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 C{constructor(t,e){this.domNode=document.createElement("div"),this.caret=new T,A.set(this,document.createElement("p")),this.domNode.classList.add(S.kY),!e||(this.domNode.onclick=e),this.caret.domNode.style.marginRight="6px",this.caret.domNode.style.pointerEvents="auto",this.domNode.append(this.caret.domNode),E(this,A,"f").classList.add(S.Qq),!t||(this.textContent=t),this.domNode.append(E(this,A,"f"))}get textContent(){return E(this,A,"f").textContent}set textContent(t){E(this,A,"f").textContent=t}}A=new WeakMap;class T{constructor(){this.domNode=document.createElementNS("http://www.w3.org/2000/svg","svg"),this.domNode.classList.add(S.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="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"\n fill="none"\n ></path>\n '}pointRight(){this.domNode.classList.remove(S.Z7)}pointDown(){this.domNode.classList.add(S.Z7)}}var O=n(887),W={};W.styleTagTransform=b(),W.setAttributes=g(),W.insert=p().bind(null,"head"),W.domAPI=f(),W.insertStyleElement=v(),l()(O.Ay,W),O.Ay&&O.Ay.locals&&O.Ay.locals;var L,j=n(704),P=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 D{constructor(t,e){this.domNode=document.createElement("div"),L.set(this,document.createElement("p")),this.tooltip=new j.Tooltip(""),!e||(this.domNode.onclick=e),this.domNode.classList.add(O.lI),P(this,L,"f").classList.add(O.Qq),P(this,L,"f").textContent=null!=t?t:"",this.domNode.append(P(this,L,"f")),this.tooltip.owner=this.domNode}get textContent(){return P(this,L,"f").textContent}set textContent(t){P(this,L,"f").textContent=t}disable(){this.domNode.classList.add(O.r9)}enable(){this.domNode.classList.remove(O.r9)}}L=new WeakMap;var B=n(419),I={};I.styleTagTransform=b(),I.setAttributes=g(),I.insert=p().bind(null,"head"),I.domAPI=f(),I.insertStyleElement=v(),l()(B.A,I),B.A&&B.A.locals&&B.A.locals;var R,z;class F{constructor(t){R.add(this),this.props=t,this.domNode=document.createElement("input"),this.domNode.type="text",this.domNode.classList.add(B.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,R,"m",z).call(this)),this.domNode.addEventListener("keydown",t=>{"enter"==t.key.toLowerCase()&&this.domNode.blur()})}}R=new WeakSet,z=function(){var t;(null===(t=this.props)||void 0===t?void 0:t.onSubmit)&&this.props.onSubmit()};var q=n(678),U={};U.styleTagTransform=b(),U.setAttributes=g(),U.insert=p().bind(null,"head"),U.domAPI=f(),U.insertStyleElement=v(),l()(q.Ay,U),q.Ay&&q.Ay.locals&&q.Ay.locals;var V,G,H=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},X=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 Y{constructor(t,e){this.name=t,this.domNode=document.createElement("label"),V.set(this,void 0),G.set(this,void 0),this.domNode.classList.add(q.ZZ),H(this,V,e,"f"),H(this,G,document.createElement("a"),"f"),X(this,G,"f").textContent=t,X(this,G,"f").target="_blank",X(this,G,"f").rel="noopener noreferrer",X(this,G,"f").style.marginLeft="8px",this.domNode.append(e,X(this,G,"f"))}get infoLink(){return X(this,G,"f").href}set infoLink(t){X(this,G,"f").href=t,t?X(this,G,"f").classList.add(q.o3):X(this,G,"f").classList.remove(q.o3)}}V=new WeakMap,G=new WeakMap;var $,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 Z{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 Y(t,e),"f"),this.domNode.style.cursor="text"}get domNode(){return Q(this,$,"f").domNode}get infoLink(){return Q(this,$,"f").infoLink}set infoLink(t){Q(this,$,"f").infoLink=t}}$=new WeakMap;var J=n(881),K={};K.styleTagTransform=b(),K.setAttributes=g(),K.insert=p().bind(null,"head"),K.domAPI=f(),K.insertStyleElement=v(),l()(J.A,K),J.A&&J.A.locals&&J.A.locals;class tt{constructor(){this.domNode=document.createElement("input"),this.domNode.type="checkbox",this.domNode.classList.add(J.k)}}var et,nt=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 rt{constructor(t,e){this.name=t,et.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,et,new Y(t,e),"f"),this.domNode.style.cursor="pointer"}get domNode(){return nt(this,et,"f").domNode}get infoLink(){return nt(this,et,"f").infoLink}set infoLink(t){nt(this,et,"f").infoLink=t}}et=new WeakMap;var it=n(709),st={};st.styleTagTransform=b(),st.setAttributes=g(),st.insert=p().bind(null,"head"),st.domAPI=f(),st.insertStyleElement=v(),l()(it.A,st),it.A&&it.A.locals&&it.A.locals;class ot{constructor(){this.domNode=document.createElement("input"),this.domNode.type="color",this.domNode.classList.add(it.V)}}var at,ht=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 ut{constructor(t,e){this.name=t,at.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,at,new Y(t,e),"f"),this.domNode.style.cursor="pointer"}get domNode(){return ht(this,at,"f").domNode}get infoLink(){return ht(this,at,"f").infoLink}set infoLink(t){ht(this,at,"f").infoLink=t}}at=new WeakMap;const lt={},ct=[];function ft(t,e){if(Array.isArray(t))for(const n of t)ft(n,e);else if("object"!=typeof t)pt(Object.getOwnPropertyNames(e)),lt[t]=Object.assign(lt[t]||{},e);else for(const e in t)ft(e,t[e])}function dt(t){return lt[t]||{}}function pt(t){ct.push(...t)}function mt(t,e){let n;const r=t.length,i=[];for(n=0;n<r;n++)i.push(e(t[n]));return i}function gt(t){return t%360*Math.PI/180}function yt(t){return t.replace(/([A-Z])/g,function(t,e){return"-"+e.toLowerCase()})}function vt(t){return t.charAt(0).toUpperCase()+t.slice(1)}function wt(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 bt(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:h}=e.bbox();s&&(r=r.includes("left")?a:r.includes("right")?a+n:a+n/2),o&&(i=i.includes("top")?h:i.includes("bottom")?h+t:h+t/2)}return[r,i]}const xt=new Set(["desc","metadata","title"]),_t=t=>xt.has(t.nodeName),Nt=(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"))},kt="http://www.w3.org/2000/svg",St="http://www.w3.org/2000/xmlns/",Mt="http://www.w3.org/1999/xlink",At={window:"undefined"==typeof window?null:window,document:"undefined"==typeof document?null:document};class Et{}const Ct={},Tt="___SYMBOL___ROOT___";function Ot(t,e=kt){return At.document.createElementNS(e,t)}function Wt(t,e=!1){if(t instanceof Et)return t;if("object"==typeof t)return Pt(t);if(null==t)return new Ct[Tt];if("string"==typeof t&&"<"!==t.trim().charAt(0))return Pt(At.document.querySelector(t));const n=e?At.document.createElement("div"):Ot("svg");return n.innerHTML=t.trim(),t=Pt(n.firstElementChild),n.removeChild(n.firstElementChild),t}function Lt(t,e){return e&&(e instanceof At.window.Node||e.ownerDocument&&e instanceof e.ownerDocument.defaultView.Node)?e:Ot(t)}function jt(t){if(!t)return null;if(t.instance instanceof Et)return t.instance;if("#document-fragment"===t.nodeName)return new Ct.Fragment(t);let e=vt(t.nodeName||"Dom");return"LinearGradient"===e||"RadialGradient"===e?e="Gradient":Ct[e]||(e="Dom"),new Ct[e](t)}let Pt=jt;function Dt(t,e=t.name,n=!1){return Ct[e]=t,n&&(Ct[Tt]=t),pt(Object.getOwnPropertyNames(t.prototype)),t}let Bt=1e3;function It(t){return"Svgjs"+vt(t)+Bt++}function Rt(t){for(let e=t.children.length-1;e>=0;e--)Rt(t.children[e]);return t.id?(t.id=It(t.nodeName),t):t}function zt(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 Ft(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)}}ft("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=Wt(t)).remove();const e=this.position();return this.parent().add(t,e),this},after:function(t){(t=Wt(t)).remove();const e=this.position();return this.parent().add(t,e+1),this},insertBefore:function(t){return(t=Wt(t)).before(this),this},insertAfter:function(t){return(t=Wt(t)).after(this),this}});const qt=/^([+-]?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?)([a-z%]*)$/i,Ut=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i,Vt=/rgb\((\d+),(\d+),(\d+)\)/,Gt=/(#[a-z_][a-z0-9\-_]*)/i,Ht=/\)\s*,?\s*/,Xt=/\s/g,Yt=/^#[a-f0-9]{3}$|^#[a-f0-9]{6}$/i,$t=/^rgb\(/,Qt=/^(\s+)?$/,Zt=/^[+-]?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,Jt=/\.(jpg|jpeg|png|gif|svg)(\?[^=]+.*)?/i,Kt=/[\s,]+/,te=/[MLHVCSQTAZ]/i;function ee(t){const e=Math.round(t),n=Math.max(0,Math.min(255,e)).toString(16);return 1===n.length?"0"+n:n}function ne(t,e){for(let n=e.length;n--;)if(null==t[e[n]])return!1;return!0}function re(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}ft("Dom",{classes:function(){const t=this.attr("class");return null==t?[]:t.trim().split(Kt)},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)}}),ft("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]||Qt.test(t[e])?"":t[e])}return 2===arguments.length&&this.node.style.setProperty(t,null==e||Qt.test(e)?"":e),this},show:function(){return this.css("display","")},hide:function(){return this.css("display","none")},visible:function(){return"none"!==this.css("display")}}),ft("Dom",{data:function(t,e,n){if(null==t)return this.data(mt(function(t,e){let n;const r=t.length,i=[];for(n=0;n<r;n++)e(t[n])&&i.push(t[n]);return i}(this.node.attributes,t=>0===t.nodeName.indexOf("data-")),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}}),ft("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 ie{constructor(...t){this.init(...t)}static isColor(t){return t&&(t instanceof ie||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 ie(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 ie(t,o,a)}if("pastel"===t){const t=8*n()+86,e=17*n()+9,r=360*n();return new ie(t,e,r,"lch")}if("dark"===t){const t=10+10*n(),e=50*n()+86,r=360*n();return new ie(t,e,r,"lch")}if("rgb"===t){const t=255*n(),e=255*n(),r=255*n();return new ie(t,e,r)}if("lab"===t){const t=100*n(),e=256*n()-128,r=256*n()-128;return new ie(t,e,r,"lab")}if("grey"===t){const t=255*n();return new ie(t,t,t)}throw new Error("Unsupported random color mode")}static test(t){return"string"==typeof t&&(Yt.test(t)||$t.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 ie(0,0,0,1,"cmyk"):new ie((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),h=(o+a)/2,u=o===a,l=o-a;return new ie(360*(u?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*(u?0:h>.5?l/(2-o-a):l/(o+a)),100*h,"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=ne(t,"rgb")?{_a:t.r,_b:t.g,_c:t.b,_d:0,space:"rgb"}:ne(t,"xyz")?{_a:t.x,_b:t.y,_c:t.z,_d:0,space:"xyz"}:ne(t,"hsl")?{_a:t.h,_b:t.s,_c:t.l,_d:0,space:"hsl"}:ne(t,"lab")?{_a:t.l,_b:t.a,_c:t.b,_d:0,space:"lab"}:ne(t,"lch")?{_a:t.l,_b:t.c,_c:t.h,_d:0,space:"lch"}:ne(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($t.test(t)){const e=t.replace(Xt,""),[n,r,i]=Vt.exec(e).slice(1,4).map(t=>parseInt(t));Object.assign(this,{_a:n,_b:r,_c:i,_d:0,space:"rgb"})}else{if(!Yt.test(t))throw Error("Unsupported string format, can't construct Color");{const e=t=>parseInt(t,16),[,n,r,i]=Ut.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:h}=this,u="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:h}:{};Object.assign(this,u)}lab(){const{x:t,y:e,z:n}=this.xyz();return new ie(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 ie(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,h=o-s/200,u=16/116,l=.008856,c=7.787;t=.95047*(a**3>l?a**3:(a-u)/c),e=1*(o**3>l?o**3:(o-u)/c),n=1.08883*(h**3>l?h**3:(h-u)/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,h=r>a?1.055*o(r,1/2.4)-.055:12.92*r,u=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 ie(255*h,255*u,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 ie(n,n,n);const r=n<.5?n*(1+e):n+e-n*e,i=2*n-r,s=255*re(i,r,t+1/3),o=255*re(i,r,t),a=255*re(i,r,t-1/3);return new ie(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 ie(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(ee);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,h=s>.04045?Math.pow((s+.055)/1.055,2.4):s/12.92,u=(.4124*o+.3576*a+.1805*h)/.95047,l=(.2126*o+.7152*a+.0722*h)/1,c=(.0193*o+.1192*a+.9505*h)/1.08883,f=u>.008856?Math.pow(u,1/3):7.787*u+16/116,d=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 ie(f,d,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 se{constructor(...t){this.init(...t)}clone(){return new se(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){ae.isMatrixLike(t)||(t=new ae(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 oe(t,e,n){return Math.abs(e-t)<(n||1e-6)}class ae{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,h=t.shear||0,u=t.rotate||t.theta||0,l=new se(t.origin||t.around||t.ox||t.originX,t.oy||t.originY),c=l.x,f=l.y,d=new se(t.position||t.px||t.positionX||NaN,t.py||t.positionY||NaN),p=d.x,m=d.y,g=new se(t.translate||t.tx||t.translateX,t.ty||t.translateY),y=g.x,v=g.y,w=new se(t.relative||t.rx||t.relativeX,t.ry||t.relativeY);return{scaleX:o,scaleY:a,skewX:i,skewY:s,shear:h,theta:u,rx:w.x,ry:w.y,tx:y,ty:v,ox:c,oy:f,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,h=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=h,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 ae(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,h=n*s-r*i,u=h>0?1:-1,l=u*Math.sqrt(n*n+r*r),c=Math.atan2(u*r,u*n),f=180/Math.PI*c,d=Math.cos(c),p=Math.sin(c),m=(n*i+r*s)/h,g=i*l/(m*n-r)||s*l/(m*r+n);return{scaleX:l,scaleY:g,shear:m,rotate:f,translateX:o-t+t*d*l+e*(m*d*l-p*g),translateY:a-e+t*p*l+e*(m*p*l+d*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 ae(t);return oe(this.a,e.a)&&oe(this.b,e.b)&&oe(this.c,e.c)&&oe(this.d,e.d)&&oe(this.e,e.e)&&oe(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=ae.fromArray([1,0,0,1,0,0]);return t=t instanceof Te?t.matrixify():"string"==typeof t?ae.fromArray(t.split(Kt).map(parseFloat)):Array.isArray(t)?ae.fromArray(t):"object"==typeof t&&ae.isMatrixLike(t)?t:"object"==typeof t?(new ae).transform(t):6===arguments.length?ae.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,h=-e/o,u=-n/o,l=t/o,c=-(a*i+u*s),f=-(h*i+l*s);return this.a=a,this.b=h,this.c=u,this.d=l,this.e=c,this.f=f,this}lmultiply(t){return this.clone().lmultiplyO(t)}lmultiplyO(t){const e=t instanceof ae?t:new ae(t);return ae.matrixMultiply(e,this,this)}multiply(t){return this.clone().multiplyO(t)}multiplyO(t){const e=t instanceof ae?t:new ae(t);return ae.matrixMultiply(this,e,this)}rotate(t,e,n){return this.clone().rotateO(t,e,n)}rotateO(t,e=0,n=0){t=gt(t);const r=Math.cos(t),i=Math.sin(t),{a:s,b:o,c:a,d:h,e:u,f:l}=this;return this.a=s*r-o*i,this.b=o*r+s*i,this.c=a*r-h*i,this.d=h*r+a*i,this.e=u*r-l*i+n*i-e*r+e,this.f=l*r+u*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:h,f:u}=this;return this.a=i*t,this.b=s*e,this.c=o*t,this.d=a*e,this.e=h*t-n*t+n,this.f=u*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:h}=this;return this.a=r+i*t,this.c=s+o*t,this.e=a+h*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=gt(t),e=gt(e);const i=Math.tan(t),s=Math.tan(e),{a:o,b:a,c:h,d:u,e:l,f:c}=this;return this.a=o+a*i,this.b=a+o*s,this.c=h+u*i,this.d=u+h*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(ae.isMatrixLike(t))return new ae(t).multiplyO(this);const e=ae.formatTransforms(t),{x:n,y:r}=new se(e.ox,e.oy).transform(this),i=(new ae).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 se(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 he(){if(!he.nodes){const t=Wt().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;he.nodes={svg:t,path:e}}if(!he.nodes.svg.node.parentNode){const t=At.document.body||At.document.documentElement;he.nodes.svg.addTo(t)}return he.nodes}function ue(t){return!(t.width||t.height||t.x||t.y)}Dt(ae,"Matrix");class le{constructor(...t){this.init(...t)}addOffset(){return this.x+=At.window.pageXOffset,this.y+=At.window.pageYOffset,new le(this)}init(t){return t="string"==typeof t?t.split(Kt).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 ue(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 le(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 ae||(t=new ae(t));let e=1/0,n=-1/0,r=1/0,i=-1/0;return[new se(this.x,this.y),new se(this.x2,this.y),new se(this.x,this.y2),new se(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 le(e,r,n-e,i-r)}}function ce(t,e,n){let r;try{if(r=e(t.node),ue(r)&&(i=t.node)!==At.document&&!(At.document.documentElement.contains||function(t){for(;t.parentNode;)t=t.parentNode;return t===At.document}).call(At.document.documentElement,i))throw new Error("Element not in the dom")}catch(e){r=n(t)}var i;return r}ft({viewbox:{viewbox(t,e,n,r){return null==t?new le(this.attr("viewBox")):this.attr("viewBox",new le(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 h=a/t;h===1/0&&(h=Number.MAX_SAFE_INTEGER/100),e=e||new se(n/2/s+i.x,r/2/o+i.y);const u=new le(i).transform(new ae({scale:h,origin:e}));return this.viewbox(u)}}}),Dt(le,"Box");class fe extends Array{constructor(t=[],...e){if(super(t,...e),"number"==typeof t)return this;this.length=0,this.push(...t)}}const de=fe;zt([fe],{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 pe=["toArray","constructor","each"];function me(t,e){return new de(mt((e||At.document).querySelectorAll(t),function(t){return jt(t)}))}fe.extend=function(t){t=t.reduce((t,e)=>(pe.includes(e)||"_"===e[0]||(e in Array.prototype&&(t["$"+e]=Array.prototype[e]),t[e]=function(...t){return this.each(e,...t)}),t),{}),zt([fe],t)};let ge=0;const ye={};function ve(t){let e=t.getEventHolder();return e===At.window&&(e=ye),e.events||(e.events={}),e.events}function we(t){return t.getEventTarget()}function be(t,e,n,r,i){const s=n.bind(r||t),o=Wt(t),a=ve(o),h=we(o);e=Array.isArray(e)?e:e.split(Kt),n._svgjsListenerId||(n._svgjsListenerId=++ge),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,h.addEventListener(e,s,i||!1)})}function xe(t,e,n,r){const i=Wt(t),s=ve(i),o=we(i);("function"!=typeof n||(n=n._svgjsListenerId))&&(e=Array.isArray(e)?e:(e||"").split(Kt)).forEach(function(t){const e=t&&t.split(".")[0],a=t&&t.split(".")[1];let h,u;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(u in s[e][a])xe(o,[e,a].join("."),u);delete s[e][a]}}else if(a)for(t in s)for(h in s[t])a===h&&xe(o,[t,a].join("."));else if(e){if(s[e]){for(h in s[e])xe(o,[e,h].join("."));delete s[e]}}else{for(t in s)xe(o,t);!function(t){let e=t.getEventHolder();e===At.window&&(e=ye),e.events&&(e.events={})}(i)}})}class _e extends Et{addEventListener(){}dispatch(t,e,n){return function(t,e,n,r){const i=we(t);return e instanceof At.window.Event||(e=new At.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 xe(this,t,e,n),this}on(t,e,n,r){return be(this,t,e,n,r),this}removeEventListener(){}}function Ne(){}Dt(_e,"EventTarget");const ke={"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 Se 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(Kt).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 Me{constructor(...t){this.init(...t)}convert(t){return new Me(this.value,t)}divide(t){return t=new Me(t),new Me(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(qt))&&(this.value=parseFloat(e[1]),"%"===e[5]?this.value/=100:"s"===e[5]&&(this.value*=1e3),this.unit=e[5]):t instanceof Me&&(this.value=t.valueOf(),this.unit=t.unit),this}minus(t){return t=new Me(t),new Me(this-t,this.unit||t.unit)}plus(t){return t=new Me(t),new Me(this+t,this.unit||t.unit)}times(t){return t=new Me(t),new Me(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 Ae=new Set(["fill","stroke","color","bgcolor","stop-color","flood-color","lighting-color"]),Ee=[];class Ce extends _e{constructor(t,e){super(),this.node=t,this.type=t.nodeName,e&&t!==e&&this.attr(e)}add(t,e){return(t=Wt(t)).removeNamespace&&this.node instanceof At.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 Wt(t).put(this,e)}children(){return new de(mt(this.node.children,function(t){return jt(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=Rt(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 Ce(Ot(t),e))}first(){return jt(this.node.firstChild)}get(t){return jt(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=It(this.type)),this.attr("id",t)}index(t){return[].slice.call(this.node.childNodes).indexOf(t.node)}last(){return jt(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=jt(e.node.parentNode),!t)return e;do{if("string"==typeof t?e.matches(t):e instanceof t)return e}while(e=jt(e.node.parentNode));return e}put(t,e){return t=Wt(t),this.add(t,e),t}putIn(t,e){return Wt(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=Wt(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,kt)}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=jt(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=Ot("wrapper",n),i=At.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)}}zt(Ce,{attr:function(t,e,n){if(null==t){t={},e=this.node.attributes;for(const n of e)t[n.nodeName]=Zt.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))?ke[t]:Zt.test(e)?parseFloat(e):e;"number"==typeof(e=Ee.reduce((e,n)=>n(t,e,this),e))?e=new Me(e):Ae.has(t)&&ie.isColor(e)?e=new ie(e):e.constructor===Array&&(e=new Se(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 me(t,this.node)},findOne:function(t){return jt(this.node.querySelector(t))}}),Dt(Ce,"Dom");class Te extends Ce{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 Me(t).plus(this.x()))}dy(t=0){return this.y(new Me(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=Wt(t));const n=new de;let r=this;for(;(r=r.parent())&&r.node!==At.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(Gt);return e?Wt(e[1]):null}root(){const t=this.parent(Ct[Tt]);return t&&t.root()}setData(t){return this.dom=t,this}size(t,e){const n=wt(this,t,e);return this.width(new Me(n.width)).height(new Me(n.height))}width(t){return this.attr("width",t)}writeDataToDom(){return Nt(this,this.dom),super.writeDataToDom()}x(t){return this.attr("x",t)}y(t){return this.attr("y",t)}}zt(Te,{bbox:function(){const t=ce(this,t=>t.getBBox(),t=>{try{const e=t.clone().addTo(he().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 le(t)},rbox:function(t){const e=ce(this,t=>t.getBoundingClientRect(),t=>{throw new Error(`Getting rbox of element "${t.node.nodeName}" is not possible`)}),n=new le(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 se(t,e).transformO(this.screenCTM().inverseO())},ctm:function(){return new ae(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 ae(e)}return new ae(this.node.getScreenCTM())}catch(t){return console.warn(`Cannot get CTM from SVG node ${this.node.nodeName}. Is the element rendered?`),new ae}}}),Dt(Te,"Element");const Oe={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 ie||ie.isRgb(e)||e instanceof Te)this.attr(t,e);else for(n=Oe[t].length-1;n>=0;n--)null!=e[Oe[t][n]]&&this.attr(Oe.prefix(t,Oe[t][n]),e[Oe[t][n]]);return this},ft(["Element","Runner"],e)}),ft(["Element","Runner"],{matrix:function(t,e,n,r,i,s){return null==t?new ae(this):this.attr("transform",new ae(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)}}),ft("radius",{radius:function(t,e=t){return"radialGradient"===(this._element||this).type?this.attr("r",new Me(t)):this.rx(t).ry(e)}}),ft("Path",{length:function(){return this.node.getTotalLength()},pointAt:function(t){return new se(this.node.getPointAtLength(t))}}),ft(["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)}}),ft("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},{})),ft("Element",{untransform:function(){return this.attr("transform",null)},matrixify:function(){return(this.attr("transform")||"").split(Ht).slice(0,-1).map(function(t){const e=t.trim().split("(");return[e[0],e[1].split(Kt).map(function(t){return parseFloat(t)})]}).reverse().reduce(function(t,e){return"matrix"===e[0]?t.lmultiply(ae.fromArray(e[1])):t[e[0]].apply(t,e[1])},new ae)},toParent:function(t,e){if(this===t)return this;if(_t(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 ae(this).decompose();return null==t?e:e[t]}ae.isMatrixLike(t)||(t={...t,origin:bt(t,this)});const n=new ae(!0===e?this:e||!1).transform(t);return this.attr("transform",n)}});class We extends Te{flatten(){return this.each(function(){if(this instanceof We)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()}}Dt(We,"Container");class Le extends We{constructor(t,e=t){super(Lt("defs",t),e)}flatten(){return this}ungroup(){return this}}Dt(Le,"Defs");class je extends Te{}function Pe(t){return this.attr("rx",t)}function De(t){return this.attr("ry",t)}function Be(t){return null==t?this.cx()-this.rx():this.cx(t+this.rx())}function Ie(t){return null==t?this.cy()-this.ry():this.cy(t+this.ry())}function Re(t){return this.attr("cx",t)}function ze(t){return this.attr("cy",t)}function Fe(t){return null==t?2*this.rx():this.rx(new Me(t).divide(2))}function qe(t){return null==t?2*this.ry():this.ry(new Me(t).divide(2))}Dt(je,"Shape");class Ue extends je{constructor(t,e=t){super(Lt("ellipse",t),e)}size(t,e){const n=wt(this,t,e);return this.rx(new Me(n.width).divide(2)).ry(new Me(n.height).divide(2))}}zt(Ue,t),ft("Container",{ellipse:Ft(function(t=0,e=t){return this.put(new Ue).size(t,e).move(0,0)})}),Dt(Ue,"Ellipse");class Ve extends Ce{constructor(t=At.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 Ce(Ot("wrapper",n));return t.add(this.node.cloneNode(!0)),t.xml(!1,n)}return super.xml(t,!1,n)}}Dt(Ve,"Fragment");const Ge=Ve;function He(t,e){return"radialGradient"===(this._element||this).type?this.attr({fx:new Me(t),fy:new Me(e)}):this.attr({x1:new Me(t),y1:new Me(e)})}function Xe(t,e){return"radialGradient"===(this._element||this).type?this.attr({cx:new Me(t),cy:new Me(e)}):this.attr({x2:new Me(t),y2:new Me(e)})}class Ye extends We{constructor(t,e){super(Lt(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 le}targets(){return me("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()+")"}}zt(Ye,e),ft({Container:{gradient(...t){return this.defs().gradient(...t)}},Defs:{gradient:Ft(function(t,e){return this.put(new Ye(t)).update(e)})}}),Dt(Ye,"Gradient");class $e extends We{constructor(t,e=t){super(Lt("pattern",t),e)}attr(t,e,n){return"transform"===t&&(t="patternTransform"),super.attr(t,e,n)}bbox(){return new le}targets(){return me("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()+")"}}ft({Container:{pattern(...t){return this.defs().pattern(...t)}},Defs:{pattern:Ft(function(t,e,n){return this.put(new $e).update(n).attr({x:0,y:0,width:t,height:e,patternUnits:"userSpaceOnUse"})})}}),Dt($e,"Pattern");class Qe extends je{constructor(t,e=t){super(Lt("image",t),e)}load(t,e){if(!t)return this;const n=new At.window.Image;return be(n,"load",function(t){const r=this.parent($e);0===this.width()&&0===this.height()&&this.size(n.width,n.height),r instanceof $e&&0===r.width()&&0===r.height()&&r.size(this.width(),this.height()),"function"==typeof e&&e.call(this,t)},this),be(n,"load error",function(){xe(n)}),this.attr("href",n.src=t,Mt)}}var Ze;Ze=function(t,e,n){return"fill"!==t&&"stroke"!==t||Jt.test(e)&&(e=n.root().defs().image(e)),e instanceof Qe&&(e=n.root().defs().pattern(0,0,t=>{t.add(e)})),e},Ee.push(Ze),ft({Container:{image:Ft(function(t,e){return this.put(new Qe).size(0,0).load(t,e)})}}),Dt(Qe,"Image");class Je extends Se{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 le(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(Kt).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){ae.isMatrixLike(t)||(t=new ae(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 Ke=Je;function tn(t){return null==t?this.bbox().x:this.move(t,this.bbox().y)}function en(t){return null==t?this.bbox().y:this.move(this.bbox().x,t)}function nn(t){const e=this.bbox();return null==t?e.width:this.size(t,e.height)}function rn(t){const e=this.bbox();return null==t?e.height:this.size(e.width,t)}class sn extends je{constructor(t,e=t){super(Lt("line",t),e)}array(){return new Je([[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 Je(t).toLine(),this.attr(t))}size(t,e){const n=wt(this,t,e);return this.attr(this.array().size(n.width,n.height).toLine())}}zt(sn,i),ft({Container:{line:Ft(function(...t){return sn.prototype.plot.apply(this.put(new sn),null!=t[0]?t:[0,0,0,0])})}}),Dt(sn,"Line");class on extends We{constructor(t,e=t){super(Lt("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 an(t,e){return function(n){return null==n?this[t]:(this[t]=n,e&&e.call(this),this)}}ft({Container:{marker(...t){return this.defs().marker(...t)}},Defs:{marker:Ft(function(t,e,n){return this.put(new on).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 on?arguments[1]:this.defs().marker(e,n,r),this.attr(i,t)}}}),Dt(on,"Marker");const hn={"-":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 un{done(){return!1}}class ln extends un{constructor(t=">"){super(),this.ease=hn[t]||t}step(t,e,n){return"number"!=typeof t?n<1?t:e:t+(e-t)*this.ease(n)}}class cn extends un{constructor(t){super(),this.stepper=t}done(t){return t.done}step(t,e,n,r){return this.stepper(t,e,n,r)}}function fn(){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}zt(class extends cn{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:an("_duration",fn),overshoot:an("_overshoot",fn)}),zt(class extends cn{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:an("_windup"),p:an("P"),i:an("I"),d:an("D")});const dn={M:2,L:2,H:1,V:1,C:6,S:4,Q:4,T:2,A:7,Z:0},pn={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]]}},mn="mlhvqtcsaz".split("");for(let t=0,e=mn.length;t<e;++t)pn[mn[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 pn[t](e,n,r)}}(mn[t].toUpperCase());function gn(t){return t.segment.length&&t.segment.length-1===dn[t.segment[0].toUpperCase()]}function yn(t,e){t.inNumber&&vn(t,!1);const n=te.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 vn(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,gn(t)&&wn(t)}function wn(t){t.inSegment=!1,t.absolute&&(t.segment=function(t){const e=t.segment[0];return pn[e](t.segment.slice(1),t.p,t.p0)}(t)),t.segments.push(t.segment)}function bn(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 xn(t){return"E"===t.lastToken.toUpperCase()}const _n=new Set([" ",",","\t","\n","\r","\f"]);class Nn extends Se{bbox(){return he().path.setAttribute("d",this.toString()),new le(he.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 se,p:new se};for(;i.lastToken=r,r=t.charAt(n++);)if(i.inSegment||!yn(i,r))if("."!==r)if(isNaN(parseInt(r)))if(_n.has(r))i.inNumber&&vn(i,!1);else if("-"!==r&&"+"!==r)if("E"!==r.toUpperCase()){if(te.test(r)){if(i.inNumber)vn(i,!1);else{if(!gn(i))throw new Error("parser Error");wn(i)}--n}}else i.number+=r,i.hasExponent=!0;else{if(i.inNumber&&!xn(i)){vn(i,!1),--n;continue}i.number+=r,i.inNumber=!0}else{if("0"===i.number||bn(i)){i.inNumber=!0,i.number=r,vn(i,!0);continue}i.inNumber=!0,i.number+=r}else{if(i.pointSeen||i.hasExponent){vn(i,!1),--n;continue}i.inNumber=!0,i.pointSeen=!0,i.number+=r}return i.inNumber&&vn(i,!1),i.inSegment&&gn(i)&&wn(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 kn=t=>{const e=typeof t;return"number"===e?Me:"string"===e?ie.isColor(t)?ie:Kt.test(t)?te.test(t)?Nn:Se:qt.test(t)?Me:Mn:Tn.indexOf(t.constructor)>-1?t.constructor:Array.isArray(t)?Se:"object"===e?Cn:Mn};class Sn{constructor(t){this._stepper=t||new ln("-"),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(kn(t));let e=new this._type(t);return this._type===ie&&(e=this._to?e[this._to[4]]():this._from?e[this._from[4]]():e),this._type===Cn&&(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 Mn{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 An{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,An.defaults,t),this}toArray(){const t=this;return[t.scaleX,t.scaleY,t.shear,t.rotate,t.translateX,t.translateY,t.originX,t.originY]}}An.defaults={scaleX:1,scaleY:1,shear:0,rotate:0,translateX:0,translateY:0,originX:0,originY:0};const En=(t,e)=>t[0]<e[0]?-1:t[0]>e[0]?1:0;class Cn{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]===ie&&t[n+7]!==e[n+7]){const e=t[n+7],r=new ie(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=kn(t[n]),i=new r(t[n]).toArray();e.push([n,r,i.length,...i])}return e.sort(En),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 Tn=[Mn,An,Cn];class On extends je{constructor(t,e=t){super(Lt("path",t),e)}array(){return this._array||(this._array=new Nn(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 Nn(t))}size(t,e){const n=wt(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 Wn(){return this._array||(this._array=new Je(this.attr("points")))}function Ln(){return delete this._array,this}function jn(t,e){return this.attr("points",this.array().move(t,e))}function Pn(t){return null==t?this.array():this.clear().attr("points","string"==typeof t?t:this._array=new Je(t))}function Dn(t,e){const n=wt(this,t,e);return this.attr("points",this.array().size(n.width,n.height))}On.prototype.MorphArray=Nn,ft({Container:{path:Ft(function(t){return this.put(new On).plot(t||new Nn)})}}),Dt(On,"Path");class Bn extends je{constructor(t,e=t){super(Lt("polygon",t),e)}}ft({Container:{polygon:Ft(function(t){return this.put(new Bn).plot(t||new Je)})}}),zt(Bn,i),zt(Bn,s),Dt(Bn,"Polygon");class In extends je{constructor(t,e=t){super(Lt("polyline",t),e)}}ft({Container:{polyline:Ft(function(t){return this.put(new In).plot(t||new Je)})}}),zt(In,i),zt(In,s),Dt(In,"Polyline");class Rn extends je{constructor(t,e=t){super(Lt("rect",t),e)}}zt(Rn,{rx:Pe,ry:De}),ft({Container:{rect:Ft(function(t,e){return this.put(new Rn).size(t,e)})}}),Dt(Rn,"Rect");class zn{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 Fn={nextDraw:null,frames:new zn,timeouts:new zn,immediates:new zn,timer:()=>At.window.performance||At.window.Date,transforms:[],frame(t){const e=Fn.frames.push({run:t});return null===Fn.nextDraw&&(Fn.nextDraw=At.window.requestAnimationFrame(Fn._draw)),e},timeout(t,e){e=e||0;const n=Fn.timer().now()+e,r=Fn.timeouts.push({run:t,time:n});return null===Fn.nextDraw&&(Fn.nextDraw=At.window.requestAnimationFrame(Fn._draw)),r},immediate(t){const e=Fn.immediates.push(t);return null===Fn.nextDraw&&(Fn.nextDraw=At.window.requestAnimationFrame(Fn._draw)),e},cancelFrame(t){null!=t&&Fn.frames.remove(t)},clearTimeout(t){null!=t&&Fn.timeouts.remove(t)},cancelImmediate(t){null!=t&&Fn.immediates.remove(t)},_draw(t){let e=null;const n=Fn.timeouts.last();for(;(e=Fn.timeouts.shift())&&(t>=e.time?e.run():Fn.timeouts.push(e),e!==n););let r=null;const i=Fn.frames.last();for(;r!==i&&(r=Fn.frames.shift());)r.run(t);let s=null;for(;s=Fn.immediates.shift();)s();Fn.nextDraw=Fn.timeouts.first()||Fn.frames.first()?At.window.requestAnimationFrame(Fn._draw):null}},qn=Fn,Un=function(t){const e=t.start,n=t.runner.duration();return{start:e,duration:n,end:e+n,runner:t.runner}},Vn=function(){const t=At.window;return(t.performance||t.Date).now()};class Gn extends _e{constructor(t=Vn){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(Un);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 qn.cancelFrame(this._nextFrame),this._nextFrame=null,t?this._stepImmediate():(this._paused||(this._nextFrame=qn.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)}}ft({Element:{timeline:function(t){return null==t?(this._timeline=this._timeline||new Gn,this._timeline):(this._timeline=t,this)}}});class Hn extends _e{constructor(t){super(),this.id=Hn.id++,t="function"==typeof(t=null==t?400:t)?new cn(t):t,this._element=null,this._timeline=null,this.done=!1,this._queue=[],this._duration="number"==typeof t&&t,this._isDeclarative=t instanceof cn,this._stepper=this._isDeclarative?t:new ln,this._history={},this.enabled=!0,this._time=0,this._lastTime=0,this._reseted=!0,this.transforms=new ae,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 un||(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=Hn.sanitise(t,e,n),i=new Hn(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 ae,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 ln(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)},h=i*(r+n)-r;return a=e<=0?Math.round(t(1e-5)):e<h?t(e):Math.round(t(h-1e-5)),a}const h=Math.floor(this.loops()),u=s&&h%2==0;return a=h+(u&&!o||o&&u?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||Ne,runner:e||Ne,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 Gn||(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 ae,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}}Hn.id=0;class Xn{constructor(t=new ae,e=-1,n=!0){this.transforms=t,this.id=e,this.done=n}clearTransformsFromQueue(){}}zt([Hn,Xn],{mergeWith(t){return new Xn(t.transforms.lmultiply(this.transforms),t.id)}});const Yn=(t,e)=>t.lmultiplyO(e),$n=t=>t.transforms;function Qn(){const t=this._transformationRunners.runners.map($n).reduce(Yn,new ae);this.transform(t),this._transformationRunners.merge(),1===this._transformationRunners.length()&&(this._frameId=null)}class Zn{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 Xn).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}}ft({Element:{animate(t,e,n){const r=Hn.sanitise(t,e,n),i=this.timeline();return new Hn(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($n).reduce(Yn,new ae)},_addRunner(t){this._transformationRunners.add(t),qn.cancelImmediate(this._frameId),this._frameId=qn.immediate(Qn.bind(this))},_prepareRunner(){null==this._frameId&&(this._transformationRunners=(new Zn).add(new Xn(new ae(this))))}}}),zt(Hn,{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 Sn(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 Cn(i.from()).valueOf();Object.assign(n,e),i.from(n)}const h=new Cn(i.to()).valueOf();Object.assign(h,e),i.to(h),s=n,r=e}),this._rememberMorpher(t,i),this},zoom(t,e){if(this._tryRetarget("zoom",t,e))return this;let n=new Sn(this._stepper).to(new Me(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=ae.isMatrixLike(t);n=null!=t.affine?t.affine:null!=n?n:!r;const i=new Sn(this._stepper).type(n?An:ae);let s,o,a,h,u;return this.queue(function(){o=o||this.element(),s=s||bt(t,o),u=new ae(e?void 0:o),o._addRunner(this),e||o._clearTransformRunnersBefore(this)},function(l){e||this.clearTransform();const{x:c,y:f}=new se(s).transform(o._currentTransform(this));let d=new ae({...t,origin:[c,f]}),p=this._isDeclarative&&a?a:u;if(n){d=d.decompose(c,f),p=p.decompose(c,f);const t=d.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);d.rotate=n[s]}e&&(r||(d.rotate=t.rotate||0),this._isDeclarative&&h&&(p.rotate=h)),i.from(p),i.to(d);const m=i.at(l);return h=m.rotate,a=new ae(m),this.addTransform(a),o._addRunner(this),i.done()},function(e){(e.origin||"center").toString()!==(t.origin||"center").toString()&&(s=bt(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 Me(e),this._tryRetarget(t,e))return this;const n=new Sn(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 Me(t))}),this._rememberMorpher(t,n),this},_queueObject(t,e){if(this._tryRetarget(t,e))return this;const n=new Sn(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 Me(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 Sn(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 le(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)}}),zt(Hn,{rx:Pe,ry:De,from:He,to:Xe}),Dt(Hn,"Runner");class Jn extends We{constructor(t,e=t){super(Lt("svg",t),e),this.namespace()}defs(){return this.isRoot()?jt(this.node.querySelector("defs"))||this.put(new Le):this.root().defs()}isRoot(){return!this.node.parentNode||!(this.node.parentNode instanceof At.window.SVGElement)&&"#document-fragment"!==this.node.parentNode.nodeName}namespace(){return this.isRoot()?this.attr({xmlns:kt,version:"1.1"}).attr("xmlns:xlink",Mt,St):this.root().namespace()}removeNamespace(){return this.attr({xmlns:null,version:null}).attr("xmlns:xlink",null,St).attr("xmlns:svgjs",null,St)}root(){return this.isRoot()?this:super.root()}}ft({Container:{nested:Ft(function(){return this.put(new Jn)})}}),Dt(Jn,"Svg",!0);class Kn extends We{constructor(t,e=t){super(Lt("symbol",t),e)}}function tr(t){return!1===this._build&&this.clear(),this.node.appendChild(At.document.createTextNode(t)),this}function er(){return this.node.getComputedTextLength()}function nr(t,e=this.bbox()){return null==t?e.x:this.attr("x",this.attr("x")+t-e.x)}function rr(t,e=this.bbox()){return null==t?e.y:this.attr("y",this.attr("y")+t-e.y)}function ir(t,e,n=this.bbox()){return this.x(t,n).y(e,n)}function sr(t,e=this.bbox()){return null==t?e.cx:this.attr("x",this.attr("x")+t-e.cx)}function or(t,e=this.bbox()){return null==t?e.cy:this.attr("y",this.attr("y")+t-e.cy)}function ar(t,e,n=this.bbox()){return this.cx(t,n).cy(e,n)}function hr(t){return this.attr("x",t)}function ur(t){return this.attr("y",t)}function lr(t,e){return this.ax(t).ay(e)}function cr(t){return this._build=!!t,this}ft({Container:{symbol:Ft(function(){return this.put(new Kn)})}}),Dt(Kn,"Symbol");class fr extends je{constructor(t,e=t){super(Lt("text",t),e),this.dom.leading=this.dom.leading??new Me(1.3),this._rebuild=!0,this._build=!1}leading(t){return null==t?this.dom.leading:(this.dom.leading=new Me(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(_t(this.node))return;const i=At.window.getComputedStyle(this.node).getPropertyValue("font-size"),s=n*new Me(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 Me(t.leading||1.3),this}writeDataToDom(){return Nt(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||_t(e[r])?0===r&&(n=r+1):(r!==n&&3!==e[r].nodeType&&!0===jt(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()}}zt(fr,o),ft({Container:{text:Ft(function(t=""){return this.put(new fr).text(t)}),plain:Ft(function(t=""){return this.put(new fr).plain(t)})}}),Dt(fr,"Text");class dr extends je{constructor(t,e=t){super(Lt("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 fr))return this;const e=t.index(this),n=At.window.getComputedStyle(this.node).getPropertyValue("font-size"),r=t.dom.leading*new Me(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)}}zt(dr,o),ft({Tspan:{tspan:Ft(function(t=""){const e=new dr;return this._build||this.clear(),this.put(e).text(t)})},Text:{newLine:function(t=""){return this.tspan(t).newLine()}}}),Dt(dr,"Tspan");class pr extends je{constructor(t,e=t){super(Lt("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 Me(t).divide(2))}}zt(pr,{x:Be,y:Ie,cx:Re,cy:ze,width:Fe,height:qe}),ft({Container:{circle:Ft(function(t=0){return this.put(new pr).size(t).move(0,0)})}}),Dt(pr,"Circle");class mr extends We{constructor(t,e=t){super(Lt("clipPath",t),e)}remove(){return this.targets().forEach(function(t){t.unclip()}),super.remove()}targets(){return me("svg [clip-path*="+this.id()+"]")}}ft({Container:{clip:Ft(function(){return this.defs().put(new mr)})},Element:{clipper(){return this.reference("clip-path")},clipWith(t){const e=t instanceof mr?t:this.parent().clip().add(t);return this.attr("clip-path","url(#"+e.id()+")")},unclip(){return this.attr("clip-path",null)}}}),Dt(mr,"ClipPath");class gr extends Te{constructor(t,e=t){super(Lt("foreignObject",t),e)}}function yr(t,e){return this.children().forEach(n=>{let r;try{r=n.node instanceof At.window.SVGSVGElement?new le(n.attr(["x","y","width","height"])):n.bbox()}catch(t){return}const i=new ae(n),s=i.translate(t,e).transform(i.inverse()),o=new se(r.x,r.y).transform(s);n.move(o.x,o.y)}),this}function vr(t){return this.dmove(t,0)}function wr(t){return this.dmove(0,t)}function br(t,e=this.bbox()){return null==t?e.height:this.size(e.width,t,e)}function xr(t=0,e=0,n=this.bbox()){const r=t-n.x,i=e-n.y;return this.dmove(r,i)}function _r(t,e,n=this.bbox()){const r=wt(this,t,e,n),i=r.width/n.width,s=r.height/n.height;return this.children().forEach(t=>{const e=new se(n).transform(new ae(t).inverse());t.scale(i,s,e.x,e.y)}),this}function Nr(t,e=this.bbox()){return null==t?e.width:this.size(t,e.height,e)}function kr(t,e=this.bbox()){return null==t?e.x:this.move(t,e.y,e)}function Sr(t,e=this.bbox()){return null==t?e.y:this.move(e.x,t,e)}ft({Container:{foreignObject:Ft(function(t,e){return this.put(new gr).size(t,e)})}}),Dt(gr,"ForeignObject");class Mr extends We{constructor(t,e=t){super(Lt("g",t),e)}}zt(Mr,a),ft({Container:{group:Ft(function(){return this.put(new Mr)})}}),Dt(Mr,"G");class Ar extends We{constructor(t,e=t){super(Lt("a",t),e)}target(t){return this.attr("target",t)}to(t){return this.attr("href",t,Mt)}}zt(Ar,a),ft({Container:{link:Ft(function(t){return this.put(new Ar).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 Ar,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}}}),Dt(Ar,"A");class Er extends We{constructor(t,e=t){super(Lt("mask",t),e)}remove(){return this.targets().forEach(function(t){t.unmask()}),super.remove()}targets(){return me("svg [mask*="+this.id()+"]")}}ft({Container:{mask:Ft(function(){return this.defs().put(new Er)})},Element:{masker(){return this.reference("mask")},maskWith(t){const e=t instanceof Er?t:this.parent().mask().add(t);return this.attr("mask","url(#"+e.id()+")")},unmask(){return this.attr("mask",null)}}}),Dt(Er,"Mask");class Cr extends Te{constructor(t,e=t){super(Lt("stop",t),e)}update(t){return("number"==typeof t||t instanceof Me)&&(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 Me(t.offset)),this}}ft({Gradient:{stop:function(t,e,n){return this.put(new Cr).update(t,e,n)}}}),Dt(Cr,"Stop");class Tr extends Te{constructor(t,e=t){super(Lt("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+=yt(t)+":"+e[t]+";";return n+="}",n}(t,e))}}ft("Dom",{style(t,e){return this.put(new Tr).rule(t,e)},fontface(t,e,n){return this.put(new Tr).font(t,e,n)}}),Dt(Tr,"Style");class Or extends fr{constructor(t,e=t){super(Lt("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")}}ft({Container:{textPath:Ft(function(t,e){return t instanceof fr||(t=this.text(t)),t.path(e)})},Text:{path:Ft(function(t,e=!0){const n=new Or;let r;if(t instanceof On||(t=this.defs().path(t)),n.attr("href","#"+t,Mt),e)for(;r=this.node.firstChild;)n.node.appendChild(r);return this.put(n)}),textPath(){return this.findOne("textPath")}},Path:{text:Ft(function(t){return t instanceof fr||(t=(new fr).addTo(this.parent()).text(t)),t.path(this)}),targets(){return me("svg textPath").filter(t=>(t.attr("href")||"").includes(this.id()))}}}),Or.prototype.MorphArray=Nn,Dt(Or,"TextPath");class Wr extends je{constructor(t,e=t){super(Lt("use",t),e)}use(t,e){return this.attr("href",(e||"")+"#"+t,Mt)}}ft({Container:{use:Ft(function(t,e){return this.put(new Wr).use(t,e)})}}),Dt(Wr,"Use"),zt([Jn,Kn,Qe,$e,on],dt("viewbox")),zt([sn,In,Bn,On],dt("marker")),zt(fr,dt("Text")),zt(On,dt("Path")),zt(Le,dt("Defs")),zt([fr,dr],dt("Tspan")),zt([Rn,Ue,Ye,Hn],dt("radius")),zt(_e,dt("EventTarget")),zt(Ce,dt("Dom")),zt(Te,dt("Element")),zt(je,dt("Shape")),zt([We,Ge],dt("Container")),zt(Ye,dt("Gradient")),zt(Hn,dt("Runner")),de.extend([...new Set(ct)]),function(t=[]){Tn.push(...[].concat(t))}([Me,ie,le,ae,Se,Je,Nn,se]),zt(Tn,{to(t){return(new Sn).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 Lr=n(169),jr=n(726),Pr=function(t){if(void 0===t||!t.document)throw new Error("jQuery requires a window with a document");var e=[],n=Object.getPrototypeOf,r=e.slice,i=e.flat?function(t){return e.flat.call(t)}:function(t){return e.concat.apply([],t)},s=e.push,o=e.indexOf,a={},h=a.toString,u=a.hasOwnProperty,l=u.toString,c=l.call(Object),f={};function d(t){return null==t?t+"":"object"==typeof t?a[h.call(t)]||"object":typeof t}function p(t){return null!=t&&t===t.window}function m(t){var e=!!t&&t.length,n=d(t);return"function"!=typeof t&&!p(t)&&("array"===n||0===e||"number"==typeof e&&e>0&&e-1 in t)}var g=t.document,y={type:!0,src:!0,nonce:!0,noModule:!0};function v(t,e,n){var r,i=(n=n||g).createElement("script");for(r in i.text=t,y)e&&e[r]&&(i[r]=e[r]);n.head.appendChild(i).parentNode&&i.parentNode.removeChild(i)}var w="4.0.0",b=/HTML$/i,x=function(t,e){return new x.fn.init(t,e)};function _(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()}x.fn=x.prototype={jquery:w,constructor:x,length:0,toArray:function(){return r.call(this)},get:function(t){return null==t?r.call(this):t<0?this[t+this.length]:this[t]},pushStack:function(t){var e=x.merge(this.constructor(),t);return e.prevObject=this,e},each:function(t){return x.each(this,t)},map:function(t){return this.pushStack(x.map(this,function(e,n){return t.call(e,n,e)}))},slice:function(){return this.pushStack(r.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(x.grep(this,function(t,e){return(e+1)%2}))},odd:function(){return this.pushStack(x.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()}},x.extend=x.fn.extend=function(){var t,e,n,r,i,s,o=arguments[0]||{},a=1,h=arguments.length,u=!1;for("boolean"==typeof o&&(u=o,o=arguments[a]||{},a++),"object"!=typeof o&&"function"!=typeof o&&(o={}),a===h&&(o=this,a--);a<h;a++)if(null!=(t=arguments[a]))for(e in t)r=t[e],"__proto__"!==e&&o!==r&&(u&&r&&(x.isPlainObject(r)||(i=Array.isArray(r)))?(n=o[e],s=i&&!Array.isArray(n)?[]:i||x.isPlainObject(n)?n:{},i=!1,o[e]=x.extend(u,s,r)):void 0!==r&&(o[e]=r));return o},x.extend({expando:"jQuery"+(w+Math.random()).replace(/\D/g,""),isReady:!0,error:function(t){throw new Error(t)},noop:function(){},isPlainObject:function(t){var e,r;return!(!t||"[object Object]"!==h.call(t)||(e=n(t))&&("function"!=typeof(r=u.call(e,"constructor")&&e.constructor)||l.call(r)!==c))},isEmptyObject:function(t){var e;for(e in t)return!1;return!0},globalEval:function(t,e,n){v(t,{nonce:e&&e.nonce},n)},each:function(t,e){var n,r=0;if(m(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+=x.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&&(m(Object(t))?x.merge(n,"string"==typeof t?[t]:t):s.call(n,t)),n},inArray:function(t,e,n){return null==e?-1:o.call(e,t,n)},isXMLDoc:function(t){var e=t&&t.namespaceURI,n=t&&(t.ownerDocument||t).documentElement;return!b.test(e||n&&n.nodeName||"HTML")},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)))},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,s,o=0,a=[];if(m(t))for(r=t.length;o<r;o++)null!=(s=e(t[o],o,n))&&a.push(s);else for(o in t)null!=(s=e(t[o],o,n))&&a.push(s);return i(a)},guid:1,support:f}),"function"==typeof Symbol&&(x.fn[Symbol.iterator]=e[Symbol.iterator]),x.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(t,e){a["[object "+e+"]"]=e.toLowerCase()});var N=e.pop,k="[\\x20\\t\\r\\n\\f]",S=g.documentMode,M=S&&new RegExp(":enabled|:disabled|\\["+k+"*name"+k+"*="+k+"*(?:''|\"\")"),A=new RegExp("^"+k+"+|((?:^|[^\\\\])(?:\\\\.)*)"+k+"+$","g"),E="(?:\\\\[\\da-fA-F]{1,6}"+k+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",C=new RegExp("^"+k+"*([>+~]|"+k+")"+k+"*"),T=new RegExp(k+"|>"),O=/[+~]/,W=g.documentElement,L=W.matches||W.msMatchesSelector;function j(){var t=[];return function e(n,r){return t.push(n+" ")>x.expr.cacheLength&&delete e[t.shift()],e[n+" "]=r}}function P(t){return t&&void 0!==t.getElementsByTagName&&t}var D="\\["+k+"*("+E+")(?:"+k+"*([*^$|!~]?=)"+k+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+E+"))|)"+k+"*\\]",B=":("+E+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+D+")*)|.*)\\)|)",I={ID:new RegExp("^#("+E+")"),CLASS:new RegExp("^\\.("+E+")"),TAG:new RegExp("^("+E+"|[*])"),ATTR:new RegExp("^"+D),PSEUDO:new RegExp("^"+B),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+k+"*(even|odd|(([+-]|)(\\d*)n|)"+k+"*(?:([+-]|)"+k+"*(\\d+)|))"+k+"*\\)|)","i")},R=new RegExp(B),z=new RegExp("\\\\[\\da-fA-F]{1,6}"+k+"?|\\\\([^\\r\\n\\f])","g"),F=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))};function q(t){return t.replace(z,F)}function U(t){x.error("Syntax error, unrecognized expression: "+t)}var V=new RegExp("^"+k+"*,"+k+"*"),G=j();function H(t,e){var n,r,i,s,o,a,h,u=G[t+" "];if(u)return e?0:u.slice(0);for(o=t,a=[],h=x.expr.preFilter;o;){for(s in n&&!(r=V.exec(o))||(r&&(o=o.slice(r[0].length)||o),a.push(i=[])),n=!1,(r=C.exec(o))&&(n=r.shift(),i.push({value:n,type:r[0].replace(A," ")}),o=o.slice(n.length)),I)!(r=x.expr.match[s].exec(o))||h[s]&&!(r=h[s](r))||(n=r.shift(),i.push({value:n,type:s,matches:r}),o=o.slice(n.length));if(!n)break}return e?o.length:o?U(t):G(t,a).slice(0)}var X={ATTR:function(t){return t[1]=q(t[1]),t[3]=q(t[3]||t[4]||t[5]||""),"~="===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]||U(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]&&U(t[0]),t},PSEUDO:function(t){var e,n=!t[6]&&t[2];return I.CHILD.test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||"":n&&R.test(n)&&(e=H(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))}};function Y(t){for(var e=0,n=t.length,r="";e<n;e++)r+=t[e].value;return r}function $(t,e,n,r,i,s,o){var a=0,h=t.length,u=null==n;if("object"===d(n))for(a in i=!0,n)$(t,e,a,n[a],!0,s,o);else if(void 0!==r&&(i=!0,"function"!=typeof r&&(o=!0),u&&(o?(e.call(t,r),e=null):(u=e,e=function(t,e,n){return u.call(x(t),n)})),e))for(;a<h;a++)e(t[a],n,o?r:r.call(t[a],a,e(t[a],n)));return i?t:u?e.call(t):h?e(t[0],n):s}var Q=/[^\x20\t\r\n\f]+/g;x.fn.extend({attr:function(t,e){return $(this,x.attr,t,e,arguments.length>1)},removeAttr:function(t){return this.each(function(){x.removeAttr(this,t)})}}),x.extend({attr:function(t,e,n){var r,i,s=t.nodeType;if(3!==s&&8!==s&&2!==s)return void 0===t.getAttribute?x.prop(t,e,n):(1===s&&x.isXMLDoc(t)||(i=x.attrHooks[e.toLowerCase()]),void 0!==n?null===n||!1===n&&0!==e.toLowerCase().indexOf("aria-")?void x.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.getAttribute(e))?void 0:r)},attrHooks:{},removeAttr:function(t,e){var n,r=0,i=e&&e.match(Q);if(i&&1===t.nodeType)for(;n=i[r++];)t.removeAttribute(n)}}),S&&(x.attrHooks.type={set:function(t,e){if("radio"===e&&_(t,"input")){var n=t.value;return t.setAttribute("type",e),n&&(t.value=n),e}}});var Z=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g;function J(t,e){return e?"\0"===t?"�":t.slice(0,-1)+"\\"+t.charCodeAt(t.length-1).toString(16)+" ":"\\"+t}x.escapeSelector=function(t){return(t+"").replace(Z,J)};var K,tt=e.sort,et=e.splice;function nt(t,e){if(t===e)return K=!0,0;var n=!t.compareDocumentPosition-!e.compareDocumentPosition;return n||(1&(n=(t.ownerDocument||t)==(e.ownerDocument||e)?t.compareDocumentPosition(e):1)?t==g||t.ownerDocument==g&&x.contains(g,t)?-1:e==g||e.ownerDocument==g&&x.contains(g,e)?1:0:4&n?-1:1)}x.uniqueSort=function(t){var e,n=[],r=0,i=0;if(K=!1,tt.call(t,nt),K){for(;e=t[i++];)e===t[i]&&(r=n.push(i));for(;r--;)et.call(t,n[r],1)}return t},x.fn.uniqueSort=function(){return this.pushStack(x.uniqueSort(r.apply(this)))};var rt,it,st,ot,at,ht=0,ut=0,lt=j(),ct=j(),ft=j(),dt=new RegExp(k+"+","g"),pt=new RegExp("^"+E+"$"),mt=x.extend({needsContext:new RegExp("^"+k+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+k+"*((?:-\\d)?\\d*)"+k+"*\\)|)(?=[^-]|$)","i")},I),gt=/^(?:input|select|textarea|button)$/i,yt=/^h\d$/i,vt=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,wt=function(){At()},bt=Ct(function(t){return!0===t.disabled&&_(t,"fieldset")},{dir:"parentNode",next:"legend"});function xt(t,e,n,r){var i,o,a,h,u,l,c,f=e&&e.ownerDocument,d=e?e.nodeType:9;if(n=n||[],"string"!=typeof t||!t||1!==d&&9!==d&&11!==d)return n;if(!r&&(At(e),e=e||st,at)){if(11!==d&&(u=vt.exec(t)))if(i=u[1]){if(9===d)return(a=e.getElementById(i))&&s.call(n,a),n;if(f&&(a=f.getElementById(i))&&x.contains(e,a))return s.call(n,a),n}else{if(u[2])return s.apply(n,e.getElementsByTagName(t)),n;if((i=u[3])&&e.getElementsByClassName)return s.apply(n,e.getElementsByClassName(i)),n}if(!(ft[t+" "]||M&&M.test(t))){if(c=t,f=e,1===d&&(T.test(t)||C.test(t))){for(((f=O.test(t)&&P(e.parentNode)||e)!=e||S)&&((h=e.getAttribute("id"))?h=x.escapeSelector(h):e.setAttribute("id",h=x.expando)),o=(l=H(t)).length;o--;)l[o]=(h?"#"+h:":scope")+" "+Y(l[o]);c=l.join(",")}try{return s.apply(n,f.querySelectorAll(c)),n}catch(e){ft(t,!0)}finally{h===x.expando&&e.removeAttribute("id")}}}return Pt(t.replace(A,"$1"),e,n,r)}function _t(t){return t[x.expando]=!0,t}function Nt(t){return function(e){return _(e,"input")&&e.type===t}}function kt(t){return function(e){return(_(e,"input")||_(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&&bt(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function Mt(t){return _t(function(e){return e=+e,_t(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){var e,n=t?t.ownerDocument||t:g;n!=st&&9===n.nodeType&&(ot=(st=n).documentElement,at=!x.isXMLDoc(st),S&&g!=st&&(e=st.defaultView)&&e.top!==e&&e.addEventListener("unload",wt))}for(rt in xt.matches=function(t,e){return xt(t,null,null,e)},xt.matchesSelector=function(t,e){if(At(t),at&&!ft[e+" "]&&(!M||!M.test(e)))try{return L.call(t,e)}catch(t){ft(e,!0)}return xt(e,st,null,[t]).length>0},x.expr={cacheLength:50,createPseudo:_t,match:mt,find:{ID:function(t,e){if(void 0!==e.getElementById&&at){var n=e.getElementById(t);return n?[n]:[]}},TAG:function(t,e){return void 0!==e.getElementsByTagName?e.getElementsByTagName(t):e.querySelectorAll(t)},CLASS:function(t,e){if(void 0!==e.getElementsByClassName&&at)return e.getElementsByClassName(t)}},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:X,filter:{ID:function(t){var e=q(t);return function(t){return t.getAttribute("id")===e}},TAG:function(t){var e=q(t).toLowerCase();return"*"===t?function(){return!0}:function(t){return _(t,e)}},CLASS:function(t){var e=lt[t+" "];return e||(e=new RegExp("(^|"+k+")"+t+"("+k+"|$)"))&<(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=x.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(dt," ")+" ").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,h){var u,l,c,f,d,p=s!==o?"nextSibling":"previousSibling",m=e.parentNode,g=a&&e.nodeName.toLowerCase(),y=!h&&!a,v=!1;if(m){if(s){for(;p;){for(c=e;c=c[p];)if(a?_(c,g):1===c.nodeType)return!1;d=p="only"===t&&!d&&"nextSibling"}return!0}if(d=[o?m.firstChild:m.lastChild],o&&y){for(v=(f=(u=(l=m[x.expando]||(m[x.expando]={}))[t]||[])[0]===ht&&u[1])&&u[2],c=f&&m.childNodes[f];c=++f&&c&&c[p]||(v=f=0)||d.pop();)if(1===c.nodeType&&++v&&c===e){l[t]=[ht,f,v];break}}else if(y&&(v=f=(u=(l=e[x.expando]||(e[x.expando]={}))[t]||[])[0]===ht&&u[1]),!1===v)for(;(c=++f&&c&&c[p]||(v=f=0)||d.pop())&&(!(a?_(c,g):1===c.nodeType)||!++v||(y&&((l=c[x.expando]||(c[x.expando]={}))[t]=[ht,v]),c!==e)););return(v-=i)===r||v%r===0&&v/r>=0}}},PSEUDO:function(t,e){var n=x.expr.pseudos[t]||x.expr.setFilters[t.toLowerCase()]||U("unsupported pseudo: "+t);return n[x.expando]?n(e):n}},pseudos:{not:_t(function(t){var e=[],n=[],r=jt(t.replace(A,"$1"));return r[x.expando]?_t(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:_t(function(t){return function(e){return xt(t,e).length>0}}),contains:_t(function(t){return t=q(t),function(e){return(e.textContent||x.text(e)).indexOf(t)>-1}}),lang:_t(function(t){return pt.test(t||"")||U("unsupported lang: "+t),t=q(t).toLowerCase(),function(e){var n;do{if(n=at?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(e){var n=t.location&&t.location.hash;return n&&n.slice(1)===e.id},root:function(t){return t===ot},focus:function(t){return t===st.activeElement&&st.hasFocus()&&!!(t.type||t.href||~t.tabIndex)},enabled:St(!1),disabled:St(!0),checked:function(t){return _(t,"input")&&!!t.checked||_(t,"option")&&!!t.selected},selected:function(t){return S&&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!x.expr.pseudos.empty(t)},header:function(t){return yt.test(t.nodeName)},input:function(t){return gt.test(t.nodeName)},button:function(t){return _(t,"input")&&"button"===t.type||_(t,"button")},text:function(t){return _(t,"input")&&"text"===t.type},first:Mt(function(){return[0]}),last:Mt(function(t,e){return[e-1]}),eq:Mt(function(t,e,n){return[n<0?n+e:n]}),even:Mt(function(t,e){for(var n=0;n<e;n+=2)t.push(n);return t}),odd:Mt(function(t,e){for(var n=1;n<e;n+=2)t.push(n);return t}),lt:Mt(function(t,e,n){var r;for(r=n<0?n+e:n>e?e:n;--r>=0;)t.push(r);return t}),gt:Mt(function(t,e,n){for(var r=n<0?n+e:n;++r<e;)t.push(r);return t})}},x.expr.pseudos.nth=x.expr.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})x.expr.pseudos[rt]=Nt(rt);for(rt in{submit:!0,reset:!0})x.expr.pseudos[rt]=kt(rt);function Et(){}function Ct(t,e,n){var r=e.dir,i=e.next,s=i||r,o=n&&"parentNode"===s,a=ut++;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,h){var u,l,c=[ht,a];if(h){for(;e=e[r];)if((1===e.nodeType||o)&&t(e,n,h))return!0}else for(;e=e[r];)if(1===e.nodeType||o)if(l=e[x.expando]||(e[x.expando]={}),i&&_(e,i))e=e[r]||e;else{if((u=l[s])&&u[0]===ht&&u[1]===a)return c[2]=u[2];if(l[s]=c,c[2]=t(e,n,h))return!0}return!1}}function Tt(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 Ot(t,e,n,r,i){for(var s,o=[],a=0,h=t.length,u=null!=e;a<h;a++)(s=t[a])&&(n&&!n(s,r,i)||(o.push(s),u&&e.push(a)));return o}function Wt(t,e,n,r,i,a){return r&&!r[x.expando]&&(r=Wt(r)),i&&!i[x.expando]&&(i=Wt(i,a)),_t(function(a,h,u,l){var c,f,d,p,m=[],g=[],y=h.length,v=a||function(t,e,n){for(var r=0,i=e.length;r<i;r++)xt(t,e[r],n);return n}(e||"*",u.nodeType?[u]:u,[]),w=!t||!a&&e?v:Ot(v,m,t,u,l);if(n?n(w,p=i||(a?t:y||r)?[]:h,u,l):p=w,r)for(c=Ot(p,g),r(c,[],u,l),f=c.length;f--;)(d=c[f])&&(p[g[f]]=!(w[g[f]]=d));if(a){if(i||t){if(i){for(c=[],f=p.length;f--;)(d=p[f])&&c.push(w[f]=d);i(null,p=[],c,l)}for(f=p.length;f--;)(d=p[f])&&(c=i?o.call(a,d):m[f])>-1&&(a[c]=!(h[c]=d))}}else p=Ot(p===h?p.splice(y,p.length):p),i?i(null,h,p,l):s.apply(h,p)})}function Lt(t){for(var e,n,r,i=t.length,s=x.expr.relative[t[0].type],a=s||x.expr.relative[" "],h=s?1:0,u=Ct(function(t){return t===e},a,!0),l=Ct(function(t){return o.call(e,t)>-1},a,!0),c=[function(t,n,r){var i=!s&&(r||n!=it)||((e=n).nodeType?u(t,n,r):l(t,n,r));return e=null,i}];h<i;h++)if(n=x.expr.relative[t[h].type])c=[Ct(Tt(c),n)];else{if((n=x.expr.filter[t[h].type].apply(null,t[h].matches))[x.expando]){for(r=++h;r<i&&!x.expr.relative[t[r].type];r++);return Wt(h>1&&Tt(c),h>1&&Y(t.slice(0,h-1).concat({value:" "===t[h-2].type?"*":""})).replace(A,"$1"),n,h<r&&Lt(t.slice(h,r)),r<i&&Lt(t=t.slice(r)),r<i&&Y(t))}c.push(n)}return Tt(c)}function jt(t,e){var n,r=[],i=[],o=ct[t+" "];if(!o){for(e||(e=H(t)),n=e.length;n--;)(o=Lt(e[n]))[x.expando]?r.push(o):i.push(o);o=ct(t,function(t,e){var n=e.length>0,r=t.length>0,i=function(i,o,a,h,u){var l,c,f,d=0,p="0",m=i&&[],g=[],y=it,v=i||r&&x.expr.find.TAG("*",u),w=ht+=null==y?1:Math.random()||.1;for(u&&(it=o==st||o||u);null!=(l=v[p]);p++){if(r&&l){for(c=0,o||l.ownerDocument==st||(At(l),a=!at);f=t[c++];)if(f(l,o||st,a)){s.call(h,l);break}u&&(ht=w)}n&&((l=!f&&l)&&d--,i&&m.push(l))}if(d+=p,n&&p!==d){for(c=0;f=e[c++];)f(m,g,o,a);if(i){if(d>0)for(;p--;)m[p]||g[p]||(g[p]=N.call(h));g=Ot(g)}s.apply(h,g),u&&!i&&g.length>0&&d+e.length>1&&x.uniqueSort(h)}return u&&(ht=w,it=y),m};return n?_t(i):i}(i,r)),o.selector=t}return o}function Pt(t,e,n,r){var i,o,a,h,u,l="function"==typeof t&&t,c=!r&&H(t=l.selector||t);if(n=n||[],1===c.length){if((o=c[0]=c[0].slice(0)).length>2&&"ID"===(a=o[0]).type&&9===e.nodeType&&at&&x.expr.relative[o[1].type]){if(!(e=(x.expr.find.ID(q(a.matches[0]),e)||[])[0]))return n;l&&(e=e.parentNode),t=t.slice(o.shift().value.length)}for(i=mt.needsContext.test(t)?0:o.length;i--&&(a=o[i],!x.expr.relative[h=a.type]);)if((u=x.expr.find[h])&&(r=u(q(a.matches[0]),O.test(o[0].type)&&P(e.parentNode)||e))){if(o.splice(i,1),!(t=r.length&&Y(o)))return s.apply(n,r),n;break}}return(l||jt(t,c))(r,e,!at,n,!e||O.test(t)&&P(e.parentNode)||e),n}function Dt(t,e,n){for(var r=[],i=void 0!==n;(t=t[e])&&9!==t.nodeType;)if(1===t.nodeType){if(i&&x(t).is(n))break;r.push(t)}return r}function Bt(t,e){for(var n=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&n.push(t);return n}Et.prototype=x.expr.pseudos,x.expr.setFilters=new Et,At(),x.find=xt,xt.compile=jt,xt.select=Pt,xt.setDocument=At,xt.tokenize=H;var It=x.expr.match.needsContext,Rt=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function zt(t){return"<"===t[0]&&">"===t[t.length-1]&&t.length>=3}function Ft(t,e,n){return"function"==typeof e?x.grep(t,function(t,r){return!!e.call(t,r,t)!==n}):e.nodeType?x.grep(t,function(t){return t===e!==n}):"string"!=typeof e?x.grep(t,function(t){return o.call(e,t)>-1!==n}):x.filter(e,t,n)}x.filter=function(t,e,n){var r=e[0];return n&&(t=":not("+t+")"),1===e.length&&1===r.nodeType?x.find.matchesSelector(r,t)?[r]:[]:x.find.matches(t,x.grep(e,function(t){return 1===t.nodeType}))},x.fn.extend({find:function(t){var e,n,r=this.length,i=this;if("string"!=typeof t)return this.pushStack(x(t).filter(function(){for(e=0;e<r;e++)if(x.contains(i[e],this))return!0}));for(n=this.pushStack([]),e=0;e<r;e++)x.find(t,i[e],n);return r>1?x.uniqueSort(n):n},filter:function(t){return this.pushStack(Ft(this,t||[],!1))},not:function(t){return this.pushStack(Ft(this,t||[],!0))},is:function(t){return!!Ft(this,"string"==typeof t&&It.test(t)?x(t):t||[],!1).length}});var qt,Ut=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(x.fn.init=function(t,e){var n,r;if(!t)return this;if(t.nodeType)return this[0]=t,this.length=1,this;if("function"==typeof t)return void 0!==qt.ready?qt.ready(t):t(x);if(zt(n=t+""))n=[null,t,null];else{if("string"!=typeof t)return x.makeArray(t,this);n=Ut.exec(t)}if(!n||!n[1]&&e)return!e||e.jquery?(e||qt).find(t):this.constructor(e).find(t);if(n[1]){if(e=e instanceof x?e[0]:e,x.merge(this,x.parseHTML(n[1],e&&e.nodeType?e.ownerDocument||e:g,!0)),Rt.test(n[1])&&x.isPlainObject(e))for(n in e)"function"==typeof this[n]?this[n](e[n]):this.attr(n,e[n]);return this}return(r=g.getElementById(n[2]))&&(this[0]=r,this.length=1),this}).prototype=x.fn,qt=x(g);var Vt=/^(?:parents|prev(?:Until|All))/,Gt={children:!0,contents:!0,next:!0,prev:!0};function Ht(t,e){for(;(t=t[e])&&1!==t.nodeType;);return t}function Xt(t){return t}function Yt(t){throw t}function $t(t,e,n,r){var i;try{t&&"function"==typeof(i=t.promise)?i.call(t).done(e).fail(n):t&&"function"==typeof(i=t.then)?i.call(t,e,n):e.apply(void 0,[t].slice(r))}catch(t){n(t)}}x.fn.extend({has:function(t){var e=x(t,this),n=e.length;return this.filter(function(){for(var t=0;t<n;t++)if(x.contains(this,e[t]))return!0})},closest:function(t,e){var n,r=0,i=this.length,s=[],o="string"!=typeof t&&x(t);if(!It.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&&x.find.matchesSelector(n,t))){s.push(n);break}return this.pushStack(s.length>1?x.uniqueSort(s):s)},index:function(t){return t?"string"==typeof t?o.call(x(t),this[0]):o.call(this,t.jquery?t[0]:t):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(t,e){return this.pushStack(x.uniqueSort(x.merge(this.get(),x(t,e))))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),x.each({parent:function(t){var e=t.parentNode;return e&&11!==e.nodeType?e:null},parents:function(t){return Dt(t,"parentNode")},parentsUntil:function(t,e,n){return Dt(t,"parentNode",n)},next:function(t){return Ht(t,"nextSibling")},prev:function(t){return Ht(t,"previousSibling")},nextAll:function(t){return Dt(t,"nextSibling")},prevAll:function(t){return Dt(t,"previousSibling")},nextUntil:function(t,e,n){return Dt(t,"nextSibling",n)},prevUntil:function(t,e,n){return Dt(t,"previousSibling",n)},siblings:function(t){return Bt((t.parentNode||{}).firstChild,t)},children:function(t){return Bt(t.firstChild)},contents:function(t){return null!=t.contentDocument&&n(t.contentDocument)?t.contentDocument:(_(t,"template")&&(t=t.content||t),x.merge([],t.childNodes))}},function(t,e){x.fn[t]=function(n,r){var i=x.map(this,e,n);return"Until"!==t.slice(-5)&&(r=n),r&&"string"==typeof r&&(i=x.filter(r,i)),this.length>1&&(Gt[t]||x.uniqueSort(i),Vt.test(t)&&i.reverse()),this.pushStack(i)}}),x.Callbacks=function(t){t="string"==typeof t?function(t){var e={};return x.each(t.match(Q)||[],function(t,n){e[n]=!0}),e}(t):x.extend({},t);var e,n,r,i,s=[],o=[],a=-1,h=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?[]:"")},u={add:function(){return s&&(n&&!e&&(a=s.length-1,o.push(n)),function e(n){x.each(n,function(n,r){"function"==typeof r?t.unique&&u.has(r)||s.push(r):r&&r.length&&"string"!==d(r)&&e(r)})}(arguments),n&&!e&&h()),this},remove:function(){return x.each(arguments,function(t,e){for(var n;(n=x.inArray(e,s,n))>-1;)s.splice(n,1),n<=a&&a--}),this},has:function(t){return t?x.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||h()),this},fire:function(){return u.fireWith(this,arguments),this},fired:function(){return!!r}};return u},x.extend({Deferred:function(e){var n=[["notify","progress",x.Callbacks("memory"),x.Callbacks("memory"),2],["resolve","done",x.Callbacks("once memory"),x.Callbacks("once memory"),0,"resolved"],["reject","fail",x.Callbacks("once memory"),x.Callbacks("once memory"),1,"rejected"]],r="pending",i={state:function(){return r},always:function(){return s.done(arguments).fail(arguments),this},catch:function(t){return i.then(null,t)},pipe:function(){var t=arguments;return x.Deferred(function(e){x.each(n,function(n,r){var i="function"==typeof t[r[4]]&&t[r[4]];s[r[1]](function(){var t=i&&i.apply(this,arguments);t&&"function"==typeof t.promise?t.promise().progress(e.notify).done(e.resolve).fail(e.reject):e[r[0]+"With"](this,i?[t]:arguments)})}),t=null}).promise()},then:function(e,r,i){var s=0;function o(e,n,r,i){return function(){var a=this,h=arguments,u=function(){var t,u;if(!(e<s)){if((t=r.apply(a,h))===n.promise())throw new TypeError("Thenable self-resolution");"function"==typeof(u=t&&("object"==typeof t||"function"==typeof t)&&t.then)?i?u.call(t,o(s,n,Xt,i),o(s,n,Yt,i)):(s++,u.call(t,o(s,n,Xt,i),o(s,n,Yt,i),o(s,n,Xt,n.notifyWith))):(r!==Xt&&(a=void 0,h=[t]),(i||n.resolveWith)(a,h))}},l=i?u:function(){try{u()}catch(t){x.Deferred.exceptionHook&&x.Deferred.exceptionHook(t,l.error),e+1>=s&&(r!==Yt&&(a=void 0,h=[t]),n.rejectWith(a,h))}};e?l():(x.Deferred.getErrorHook&&(l.error=x.Deferred.getErrorHook()),t.setTimeout(l))}}return x.Deferred(function(t){n[0][3].add(o(0,t,"function"==typeof i?i:Xt,t.notifyWith)),n[1][3].add(o(0,t,"function"==typeof e?e:Xt)),n[2][3].add(o(0,t,"function"==typeof r?r:Yt))}).promise()},promise:function(t){return null!=t?x.extend(t,i):i}},s={};return x.each(n,function(t,e){var o=e[2],a=e[5];i[e[1]]=o.add,a&&o.add(function(){r=a},n[3-t][2].disable,n[3-t][3].disable,n[0][2].lock,n[0][3].lock),o.add(e[3].fire),s[e[0]]=function(){return s[e[0]+"With"](this===s?void 0:this,arguments),this},s[e[0]+"With"]=o.fireWith}),i.promise(s),e&&e.call(s,s),s},when:function(t){var e=arguments.length,n=e,i=Array(n),s=r.call(arguments),o=x.Deferred(),a=function(t){return function(n){i[t]=this,s[t]=arguments.length>1?r.call(arguments):n,--e||o.resolveWith(i,s)}};if(e<=1&&($t(t,o.done(a(n)).resolve,o.reject,!e),"pending"===o.state()||"function"==typeof(s[n]&&s[n].then)))return o.then();for(;n--;)$t(s[n],a(n),o.reject);return o.promise()}});var Qt=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;x.Deferred.exceptionHook=function(e,n){e&&Qt.test(e.name)&&t.console.warn("jQuery.Deferred exception",e,n)},x.readyException=function(e){t.setTimeout(function(){throw e})};var Zt=x.Deferred();function Jt(){g.removeEventListener("DOMContentLoaded",Jt),t.removeEventListener("load",Jt),x.ready()}x.fn.ready=function(t){return Zt.then(t).catch(function(t){x.readyException(t)}),this},x.extend({isReady:!1,readyWait:1,ready:function(t){(!0===t?--x.readyWait:x.isReady)||(x.isReady=!0,!0!==t&&--x.readyWait>0||Zt.resolveWith(g,[x]))}}),x.ready.then=Zt.then,"loading"!==g.readyState?t.setTimeout(x.ready):(g.addEventListener("DOMContentLoaded",Jt),t.addEventListener("load",Jt));var Kt=/-([a-z])/g;function te(t,e){return e.toUpperCase()}function ee(t){return t.replace(Kt,te)}function ne(t){return 1===t.nodeType||9===t.nodeType||!+t.nodeType}function re(){this.expando=x.expando+re.uid++}re.uid=1,re.prototype={cache:function(t){var e=t[this.expando];return e||(e=Object.create(null),ne(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[ee(e)]=n;else for(r in e)i[ee(r)]=e[r];return n},get:function(t,e){return void 0===e?this.cache(t):t[this.expando]&&t[this.expando][ee(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(ee):(e=ee(e))in r?[e]:e.match(Q)||[]).length;for(;n--;)delete r[e[n]]}(void 0===e||x.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&&!x.isEmptyObject(e)}};var ie=new re,se=new re,oe=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,ae=/[A-Z]/g;function he(t,e,n){var r;if(void 0===n&&1===t.nodeType)if(r="data-"+e.replace(ae,"-$&").toLowerCase(),"string"==typeof(n=t.getAttribute(r))){try{n=function(t){return"true"===t||"false"!==t&&("null"===t?null:t===+t+""?+t:oe.test(t)?JSON.parse(t):t)}(n)}catch(t){}se.set(t,e,n)}else n=void 0;return n}x.extend({hasData:function(t){return se.hasData(t)||ie.hasData(t)},data:function(t,e,n){return se.access(t,e,n)},removeData:function(t,e){se.remove(t,e)},_data:function(t,e,n){return ie.access(t,e,n)},_removeData:function(t,e){ie.remove(t,e)}}),x.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=se.get(s),1===s.nodeType&&!ie.get(s,"hasDataAttrs"))){for(n=o.length;n--;)o[n]&&0===(r=o[n].name).indexOf("data-")&&(r=ee(r.slice(5)),he(s,r,i[r]));ie.set(s,"hasDataAttrs",!0)}return i}return"object"==typeof t?this.each(function(){se.set(this,t)}):$(this,function(e){var n;if(s&&void 0===e)return void 0!==(n=se.get(s,t))||void 0!==(n=he(s,t))?n:void 0;this.each(function(){se.set(this,t,e)})},null,e,arguments.length>1,null,!0)},removeData:function(t){return this.each(function(){se.remove(this,t)})}}),x.extend({queue:function(t,e,n){var r;if(t)return e=(e||"fx")+"queue",r=ie.get(t,e),n&&(!r||Array.isArray(n)?r=ie.set(t,e,x.makeArray(n)):r.push(n)),r||[]},dequeue:function(t,e){e=e||"fx";var n=x.queue(t,e),r=n.length,i=n.shift(),s=x._queueHooks(t,e);"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===e&&n.unshift("inprogress"),delete s.stop,i.call(t,function(){x.dequeue(t,e)},s)),!r&&s&&s.empty.fire()},_queueHooks:function(t,e){var n=e+"queueHooks";return ie.get(t,n)||ie.set(t,n,{empty:x.Callbacks("once memory").add(function(){ie.remove(t,[e+"queue",n])})})}}),x.fn.extend({queue:function(t,e){var n=2;return"string"!=typeof t&&(e=t,t="fx",n--),arguments.length<n?x.queue(this[0],t):void 0===e?this:this.each(function(){var n=x.queue(this,t,e);x._queueHooks(this,t),"fx"===t&&"inprogress"!==n[0]&&x.dequeue(this,t)})},dequeue:function(t){return this.each(function(){x.dequeue(this,t)})},clearQueue:function(t){return this.queue(t||"fx",[])},promise:function(t,e){var n,r=1,i=x.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=ie.get(s[o],t+"queueHooks"))&&n.empty&&(r++,n.empty.add(a));return a(),i.promise(e)}});var ue=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,le=new RegExp("^(?:([+-])=|)("+ue+")([a-z%]*)$","i"),ce=["Top","Right","Bottom","Left"];function fe(t,e){return"none"===(t=e||t).style.display||""===t.style.display&&"none"===x.css(t,"display")}var de=/^[a-z]/,pe=/^(?:Border(?:Top|Right|Bottom|Left)?(?:Width|)|(?:Margin|Padding)?(?:Top|Right|Bottom|Left)?|(?:Min|Max)?(?:Width|Height))$/;function me(t){return de.test(t)&&pe.test(t[0].toUpperCase()+t.slice(1))}function ge(t,e,n,r){var i,s,o=20,a=r?function(){return r.cur()}:function(){return x.css(t,e,"")},h=a(),u=n&&n[3]||(me(e)?"px":""),l=t.nodeType&&(!me(e)||"px"!==u&&+h)&&le.exec(x.css(t,e));if(l&&l[3]!==u){for(h/=2,u=u||l[3],l=+h||1;o--;)x.style(t,e,l+u),(1-s)*(1-(s=a()/h||.5))<=0&&(o=0),l/=s;l*=2,x.style(t,e,l+u),n=n||[]}return n&&(l=+l||+h||0,i=n[1]?l+(n[1]+1)*n[2]:+n[2],r&&(r.unit=u,r.start=l,r.end=i)),i}var ye=/^-ms-/;function ve(t){return ee(t.replace(ye,"ms-"))}var we={};function be(t){var e,n=t.ownerDocument,r=t.nodeName,i=we[r];return i||(e=n.body.appendChild(n.createElement(r)),i=x.css(e,"display"),e.parentNode.removeChild(e),"none"===i&&(i="block"),we[r]=i,i)}function xe(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]=ie.get(r,"display")||null,i[s]||(r.style.display="")),""===r.style.display&&fe(r)&&(i[s]=be(r))):"none"!==n&&(i[s]="none",ie.set(r,"display",n)));for(s=0;s<o;s++)null!=i[s]&&(t[s].style.display=i[s]);return t}x.fn.extend({show:function(){return xe(this,!0)},hide:function(){return xe(this)},toggle:function(t){return"boolean"==typeof t?t?this.show():this.hide():this.each(function(){fe(this)?x(this).show():x(this).hide()})}});var _e=function(t){return x.contains(t.ownerDocument,t)||t.getRootNode(Ne)===t.ownerDocument},Ne={composed:!0};W.getRootNode||(_e=function(t){return x.contains(t.ownerDocument,t)});var ke=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,Se={thead:["table"],col:["colgroup","table"],tr:["tbody","table"],td:["tr","tbody","table"]};function Me(t,n){var r;return r=void 0!==t.getElementsByTagName?e.slice.call(t.getElementsByTagName(n||"*")):void 0!==t.querySelectorAll?t.querySelectorAll(n||"*"):[],void 0===n||n&&_(t,n)?x.merge([t],r):r}Se.tbody=Se.tfoot=Se.colgroup=Se.caption=Se.thead,Se.th=Se.td;var Ae=/^$|^module$|\/(?:java|ecma)script/i;function Ee(t,e){for(var n=0,r=t.length;n<r;n++)ie.set(t[n],"globalEval",!e||ie.get(e[n],"globalEval"))}var Ce=/<|&#?\w+;/;function Te(t,n,r,i,s){for(var o,a,h,u,l,c,f=n.createDocumentFragment(),p=[],g=0,y=t.length;g<y;g++)if((o=t[g])||0===o)if("object"===d(o)&&(o.nodeType||m(o)))x.merge(p,o.nodeType?[o]:o);else if(Ce.test(o)){for(a=a||f.appendChild(n.createElement("div")),h=(ke.exec(o)||["",""])[1].toLowerCase(),c=(u=Se[h]||e).length;--c>-1;)a=a.appendChild(n.createElement(u[c]));a.innerHTML=x.htmlPrefilter(o),x.merge(p,a.childNodes),(a=f.firstChild).textContent=""}else p.push(n.createTextNode(o));for(f.textContent="",g=0;o=p[g++];)if(i&&x.inArray(o,i)>-1)s&&s.push(o);else if(l=_e(o),a=Me(f.appendChild(o),"script"),l&&Ee(a),r)for(c=0;o=a[c++];)Ae.test(o.type||"")&&r.push(o);return f}function Oe(t){return t.type=(null!==t.getAttribute("type"))+"/"+t.type,t}function We(t){return"true/"===(t.type||"").slice(0,5)?t.type=t.type.slice(5):t.removeAttribute("type"),t}function Le(t,e,n,r){e=i(e);var s,o,a,h,u,l,c=0,f=t.length,d=f-1,p=e[0];if("function"==typeof p)return t.each(function(i){var s=t.eq(i);e[0]=p.call(this,i,s.html()),Le(s,e,n,r)});if(f&&(o=(s=Te(e,t[0].ownerDocument,!1,t,r)).firstChild,1===s.childNodes.length&&(s=o),o||r)){for(h=(a=x.map(Me(s,"script"),Oe)).length;c<f;c++)u=s,c!==d&&(u=x.clone(u,!0,!0),h&&x.merge(a,Me(u,"script"))),n.call(t[c],u,c);if(h)for(l=a[a.length-1].ownerDocument,x.map(a,We),c=0;c<h;c++)u=a[c],Ae.test(u.type||"")&&!ie.get(u,"globalEval")&&x.contains(l,u)&&(u.src&&"module"!==(u.type||"").toLowerCase()?x._evalUrl&&!u.noModule&&x._evalUrl(u.src,{nonce:u.nonce,crossOrigin:u.crossOrigin},l):v(u.textContent,u,l))}return t}var je=/^(?:checkbox|radio)$/i,Pe=/^([^.]*)(?:\.(.+)|)/;function De(){return!0}function Be(){return!1}function Ie(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)Ie(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=Be;else if(!i)return t;return 1===s&&(o=i,i=function(t){return x().off(t),o.apply(this,arguments)},i.guid=o.guid||(o.guid=x.guid++)),t.each(function(){x.event.add(this,e,i,r,n)})}function Re(t,e,n){n?(ie.set(t,e,!1),x.event.add(t,e,{namespace:!1,handler:function(t){var n,i=ie.get(this,e);if(1&t.isTrigger&&this[e]){if(i.length)(x.event.special[e]||{}).delegateType&&t.stopPropagation();else if(i=r.call(arguments),ie.set(this,e,i),this[e](),n=ie.get(this,e),ie.set(this,e,!1),i!==n)return t.stopImmediatePropagation(),t.preventDefault(),n&&n.value}else i.length&&(ie.set(this,e,{value:x.event.trigger(i[0],i.slice(1),this)}),t.stopPropagation(),t.isImmediatePropagationStopped=De)}})):void 0===ie.get(t,e)&&x.event.add(t,e,De)}x.event={add:function(t,e,n,r,i){var s,o,a,h,u,l,c,f,d,p,m,g=ie.get(t);if(ne(t))for(n.handler&&(n=(s=n).handler,i=s.selector),i&&x.find.matchesSelector(W,i),n.guid||(n.guid=x.guid++),(h=g.events)||(h=g.events=Object.create(null)),(o=g.handle)||(o=g.handle=function(e){return void 0!==x&&x.event.triggered!==e.type?x.event.dispatch.apply(t,arguments):void 0}),u=(e=(e||"").match(Q)||[""]).length;u--;)d=m=(a=Pe.exec(e[u])||[])[1],p=(a[2]||"").split(".").sort(),d&&(c=x.event.special[d]||{},d=(i?c.delegateType:c.bindType)||d,c=x.event.special[d]||{},l=x.extend({type:d,origType:m,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&x.expr.match.needsContext.test(i),namespace:p.join(".")},s),(f=h[d])||((f=h[d]=[]).delegateCount=0,c.setup&&!1!==c.setup.call(t,r,p,o)||t.addEventListener&&t.addEventListener(d,o)),c.add&&(c.add.call(t,l),l.handler.guid||(l.handler.guid=n.guid)),i?f.splice(f.delegateCount++,0,l):f.push(l))},remove:function(t,e,n,r,i){var s,o,a,h,u,l,c,f,d,p,m,g=ie.hasData(t)&&ie.get(t);if(g&&(h=g.events)){for(u=(e=(e||"").match(Q)||[""]).length;u--;)if(d=m=(a=Pe.exec(e[u])||[])[1],p=(a[2]||"").split(".").sort(),d){for(c=x.event.special[d]||{},f=h[d=(r?c.delegateType:c.bindType)||d]||[],a=a[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),o=s=f.length;s--;)l=f[s],!i&&m!==l.origType||n&&n.guid!==l.guid||a&&!a.test(l.namespace)||r&&r!==l.selector&&("**"!==r||!l.selector)||(f.splice(s,1),l.selector&&f.delegateCount--,c.remove&&c.remove.call(t,l));o&&!f.length&&(c.teardown&&!1!==c.teardown.call(t,p,g.handle)||x.removeEvent(t,d,g.handle),delete h[d])}else for(d in h)x.event.remove(t,d+e[u],n,r,!0);x.isEmptyObject(h)&&ie.remove(t,"handle events")}},dispatch:function(t){var e,n,r,i,s,o,a=new Array(arguments.length),h=x.event.fix(t),u=(ie.get(this,"events")||Object.create(null))[h.type]||[],l=x.event.special[h.type]||{};for(a[0]=h,e=1;e<arguments.length;e++)a[e]=arguments[e];if(h.delegateTarget=this,!l.preDispatch||!1!==l.preDispatch.call(this,h)){for(o=x.event.handlers.call(this,h,u),e=0;(i=o[e++])&&!h.isPropagationStopped();)for(h.currentTarget=i.elem,n=0;(s=i.handlers[n++])&&!h.isImmediatePropagationStopped();)h.rnamespace&&!1!==s.namespace&&!h.rnamespace.test(s.namespace)||(h.handleObj=s,h.data=s.data,void 0!==(r=((x.event.special[s.origType]||{}).handle||s.handler).apply(i.elem,a))&&!1===(h.result=r)&&(h.preventDefault(),h.stopPropagation()));return l.postDispatch&&l.postDispatch.call(this,h),h.result}},handlers:function(t,e){var n,r,i,s,o,a=[],h=e.delegateCount,u=t.target;if(h&&!("click"===t.type&&t.button>=1))for(;u!==this;u=u.parentNode||this)if(1===u.nodeType&&("click"!==t.type||!0!==u.disabled)){for(s=[],o={},n=0;n<h;n++)void 0===o[i=(r=e[n]).selector+" "]&&(o[i]=r.needsContext?x(i,this).index(u)>-1:x.find(i,this,null,[u]).length),o[i]&&s.push(r);s.length&&a.push({elem:u,handlers:s})}return u=this,h<e.length&&a.push({elem:u,handlers:e.slice(h)}),a},addProp:function(t,e){Object.defineProperty(x.Event.prototype,t,{enumerable:!0,configurable:!0,get:"function"==typeof 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[x.expando]?t:new x.Event(t)},special:x.extend(Object.create(null),{load:{noBubble:!0},click:{setup:function(t){var e=this||t;return je.test(e.type)&&e.click&&_(e,"input")&&Re(e,"click",!0),!1},trigger:function(t){var e=this||t;return je.test(e.type)&&e.click&&_(e,"input")&&Re(e,"click"),!0},_default:function(t){var e=t.target;return je.test(e.type)&&e.click&&_(e,"input")&&ie.get(e,"click")||_(e,"a")}},beforeunload:{postDispatch:function(t){void 0!==t.result&&t.preventDefault()}}})},x.removeEvent=function(t,e,n){t.removeEventListener&&t.removeEventListener(e,n)},x.Event=function(t,e){if(!(this instanceof x.Event))return new x.Event(t,e);t&&t.type?(this.originalEvent=t,this.type=t.type,this.isDefaultPrevented=t.defaultPrevented?De:Be,this.target=t.target,this.currentTarget=t.currentTarget,this.relatedTarget=t.relatedTarget):this.type=t,e&&x.extend(this,e),this.timeStamp=t&&t.timeStamp||Date.now(),this[x.expando]=!0},x.Event.prototype={constructor:x.Event,isDefaultPrevented:Be,isPropagationStopped:Be,isImmediatePropagationStopped:Be,isSimulated:!1,preventDefault:function(){var t=this.originalEvent;this.isDefaultPrevented=De,t&&!this.isSimulated&&t.preventDefault()},stopPropagation:function(){var t=this.originalEvent;this.isPropagationStopped=De,t&&!this.isSimulated&&t.stopPropagation()},stopImmediatePropagation:function(){var t=this.originalEvent;this.isImmediatePropagationStopped=De,t&&!this.isSimulated&&t.stopImmediatePropagation(),this.stopPropagation()}},x.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},x.event.addProp),x.each({focus:"focusin",blur:"focusout"},function(t,e){function n(t){var e=x.event.fix(t);e.type="focusin"===t.type?"focus":"blur",e.isSimulated=!0,e.target===e.currentTarget&&ie.get(this,"handle")(e)}x.event.special[t]={setup:function(){if(Re(this,t,!0),!S)return!1;this.addEventListener(e,n)},trigger:function(){return Re(this,t),!0},teardown:function(){if(!S)return!1;this.removeEventListener(e,n)},_default:function(e){return ie.get(e.target,t)},delegateType:e}}),x.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(t,e){x.event.special[t]={delegateType:e,bindType:e,handle:function(t){var n,r=t.relatedTarget,i=t.handleObj;return r&&(r===this||x.contains(this,r))||(t.type=i.origType,n=i.handler.apply(this,arguments),t.type=e),n}}}),x.fn.extend({on:function(t,e,n,r){return Ie(this,t,e,n,r)},one:function(t,e,n,r){return Ie(this,t,e,n,r,1)},off:function(t,e,n){var r,i;if(t&&t.preventDefault&&t.handleObj)return r=t.handleObj,x(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=Be),this.each(function(){x.event.remove(this,t,n,e)})}});var ze=/<script|<style|<link/i;function Fe(t,e){return _(t,"table")&&_(11!==e.nodeType?e:e.firstChild,"tr")&&x(t).children("tbody")[0]||t}function qe(t,e){var n,r,i,s=ie.get(t,"events");if(1===e.nodeType){if(s)for(n in ie.remove(e,"handle events"),s)for(r=0,i=s[n].length;r<i;r++)x.event.add(e,n,s[n][r]);se.hasData(t)&&se.set(e,x.extend({},se.get(t)))}}function Ue(t,e,n){for(var r,i=e?x.filter(e,t):t,s=0;null!=(r=i[s]);s++)n||1!==r.nodeType||x.cleanData(Me(r)),r.parentNode&&(n&&_e(r)&&Ee(Me(r,"script")),r.parentNode.removeChild(r));return t}x.extend({htmlPrefilter:function(t){return t},clone:function(t,e,n){var r,i,s,o,a=t.cloneNode(!0),h=_e(t);if(S&&(1===t.nodeType||11===t.nodeType)&&!x.isXMLDoc(t))for(o=Me(a),r=0,i=(s=Me(t)).length;r<i;r++)_(o[r],"textarea")&&(o[r].defaultValue=s[r].defaultValue);if(e)if(n)for(s=s||Me(t),o=o||Me(a),r=0,i=s.length;r<i;r++)qe(s[r],o[r]);else qe(t,a);return(o=Me(a,"script")).length>0&&Ee(o,!h&&Me(t,"script")),a},cleanData:function(t){for(var e,n,r,i=x.event.special,s=0;void 0!==(n=t[s]);s++)if(ne(n)){if(e=n[ie.expando]){if(e.events)for(r in e.events)i[r]?x.event.remove(n,r):x.removeEvent(n,r,e.handle);n[ie.expando]=void 0}n[se.expando]&&(n[se.expando]=void 0)}}}),x.fn.extend({detach:function(t){return Ue(this,t,!0)},remove:function(t){return Ue(this,t)},text:function(t){return $(this,function(t){return void 0===t?x.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 Le(this,arguments,function(t){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Fe(this,t).appendChild(t)})},prepend:function(){return Le(this,arguments,function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=Fe(this,t);e.insertBefore(t,e.firstChild)}})},before:function(){return Le(this,arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this)})},after:function(){return Le(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&&(x.cleanData(Me(t,!1)),t.textContent="");return this},clone:function(t,e){return t=null!=t&&t,e=null==e?t:e,this.map(function(){return x.clone(this,t,e)})},html:function(t){return $(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&&!ze.test(t)&&!Se[(ke.exec(t)||["",""])[1].toLowerCase()]){t=x.htmlPrefilter(t);try{for(;n<r;n++)1===(e=this[n]||{}).nodeType&&(x.cleanData(Me(e,!1)),e.innerHTML=t);e=0}catch(t){}}e&&this.empty().append(t)},null,t,arguments.length)},replaceWith:function(){var t=[];return Le(this,arguments,function(e){var n=this.parentNode;x.inArray(this,t)<0&&(x.cleanData(Me(this)),n&&n.replaceChild(e,this))},t)}}),x.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(t,e){x.fn[t]=function(t){for(var n,r=[],i=x(t),o=i.length-1,a=0;a<=o;a++)n=a===o?this:this.clone(!0),x(i[a])[e](n),s.apply(r,n);return this.pushStack(r)}});var Ve=new RegExp("^("+ue+")(?!px)[a-z%]+$","i"),Ge=/^--/;function He(e){var n=e.ownerDocument.defaultView;return n||(n=t),n.getComputedStyle(e)}function Xe(t,e,n){var r,i=Ge.test(e);return(n=n||He(t))&&(r=n.getPropertyValue(e)||n[e],i&&r&&(r=r.replace(A,"$1")||void 0),""!==r||_e(t)||(r=x.style(t,e))),void 0!==r?r+"":r}var Ye=["Webkit","Moz","ms"],$e=g.createElement("div").style;function Qe(t){return t in $e?t:function(t){for(var e=t[0].toUpperCase()+t.slice(1),n=Ye.length;n--;)if((t=Ye[n]+e)in $e)return t}(t)||t}var Ze,Je,Ke=g.createElement("table");function tn(){if(Ke&&Ke.style){var e,n=g.createElement("col"),r=g.createElement("tr"),i=g.createElement("td");Ke.style.cssText="position:absolute;left:-11111px;border-collapse:separate;border-spacing:0",r.style.cssText="box-sizing:content-box;border:1px solid;height:1px",i.style.cssText="height:9px;width:9px;padding:0",n.span=2,W.appendChild(Ke).appendChild(n).parentNode.appendChild(r).appendChild(i).parentNode.appendChild(i.cloneNode(!0)),0!==Ke.offsetWidth?(e=t.getComputedStyle(r),Je=S||18===Math.round(parseFloat(t.getComputedStyle(n).width)),Ze=Math.round(parseFloat(e.height)+parseFloat(e.borderTopWidth)+parseFloat(e.borderBottomWidth))===r.offsetHeight,W.removeChild(Ke),Ke=null):W.removeChild(Ke)}}x.extend(f,{reliableTrDimensions:function(){return tn(),Ze},reliableColDimensions:function(){return tn(),Je}});var en={position:"absolute",visibility:"hidden",display:"block"},nn={letterSpacing:"0",fontWeight:"400"};function rn(t,e,n){var r=le.exec(e);return r?Math.max(0,r[2]-(n||0))+(r[3]||"px"):e}function sn(t,e,n,r,i,s){var o="width"===e?1:0,a=0,h=0,u=0;if(n===(r?"border":"content"))return 0;for(;o<4;o+=2)"margin"===n&&(u+=x.css(t,n+ce[o],!0,i)),r?("content"===n&&(h-=x.css(t,"padding"+ce[o],!0,i)),"margin"!==n&&(h-=x.css(t,"border"+ce[o]+"Width",!0,i))):(h+=x.css(t,"padding"+ce[o],!0,i),"padding"!==n?h+=x.css(t,"border"+ce[o]+"Width",!0,i):a+=x.css(t,"border"+ce[o]+"Width",!0,i));return!r&&s>=0&&(h+=Math.max(0,Math.ceil(t["offset"+e[0].toUpperCase()+e.slice(1)]-s-h-a-.5))||0),h+u}function on(t,e,n){var r=He(t),i=(S||n)&&"border-box"===x.css(t,"boxSizing",!1,r),s=i,o=Xe(t,e,r),a="offset"+e[0].toUpperCase()+e.slice(1);if(Ve.test(o)){if(!n)return o;o="auto"}return("auto"===o||S&&i||!f.reliableColDimensions()&&_(t,"col")||!f.reliableTrDimensions()&&_(t,"tr"))&&t.getClientRects().length&&(i="border-box"===x.css(t,"boxSizing",!1,r),(s=a in t)&&(o=t[a])),(o=parseFloat(o)||0)+sn(t,e,n||(i?"border":"content"),s,r,o)+"px"}function an(t,e,n,r,i){return new an.prototype.init(t,e,n,r,i)}x.extend({cssHooks:{},style:function(t,e,n,r){if(t&&3!==t.nodeType&&8!==t.nodeType&&t.style){var i,s,o,a=ve(e),h=Ge.test(e),u=t.style;if(h||(e=Qe(a)),o=x.cssHooks[e]||x.cssHooks[a],void 0===n)return o&&"get"in o&&void 0!==(i=o.get(t,!1,r))?i:u[e];"string"==(s=typeof n)&&(i=le.exec(n))&&i[1]&&(n=ge(t,e,i),s="number"),null!=n&&n==n&&("number"===s&&(n+=i&&i[3]||(me(a)?"px":"")),S&&""===n&&0===e.indexOf("background")&&(u[e]="inherit"),o&&"set"in o&&void 0===(n=o.set(t,n,r))||(h?u.setProperty(e,n):u[e]=n))}},css:function(t,e,n,r){var i,s,o,a=ve(e);return Ge.test(e)||(e=Qe(a)),(o=x.cssHooks[e]||x.cssHooks[a])&&"get"in o&&(i=o.get(t,!0,n)),void 0===i&&(i=Xe(t,e,r)),"normal"===i&&e in nn&&(i=nn[e]),""===n||n?(s=parseFloat(i),!0===n||isFinite(s)?s||0:i):i}}),x.each(["height","width"],function(t,e){x.cssHooks[e]={get:function(t,n,r){if(n)return"none"===x.css(t,"display")?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}(t,en,function(){return on(t,e,r)}):on(t,e,r)},set:function(t,n,r){var i,s=He(t),o=r&&"border-box"===x.css(t,"boxSizing",!1,s),a=r?sn(t,e,r,o,s):0;return a&&(i=le.exec(n))&&"px"!==(i[3]||"px")&&(t.style[e]=n,n=x.css(t,e)),rn(0,n,a)}}}),x.each({margin:"",padding:"",border:"Width"},function(t,e){x.cssHooks[t+e]={expand:function(n){for(var r=0,i={},s="string"==typeof n?n.split(" "):[n];r<4;r++)i[t+ce[r]+e]=s[r]||s[r-2]||s[0];return i}},"margin"!==t&&(x.cssHooks[t+e].set=rn)}),x.fn.extend({css:function(t,e){return $(this,function(t,e,n){var r,i,s={},o=0;if(Array.isArray(e)){for(r=He(t),i=e.length;o<i;o++)s[e[o]]=x.css(t,e[o],!1,r);return s}return void 0!==n?x.style(t,e,n):x.css(t,e)},t,e,arguments.length>1)}}),x.Tween=an,an.prototype={constructor:an,init:function(t,e,n,r,i,s){this.elem=t,this.prop=n,this.easing=i||x.easing._default,this.options=e,this.start=this.now=this.cur(),this.end=r,this.unit=s||(me(n)?"px":"")},cur:function(){var t=an.propHooks[this.prop];return t&&t.get?t.get(this):an.propHooks._default.get(this)},run:function(t){var e,n=an.propHooks[this.prop];return this.options.duration?this.pos=e=x.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):an.propHooks._default.set(this),this}},an.prototype.init.prototype=an.prototype,an.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=x.css(t.elem,t.prop,""))&&"auto"!==e?e:0},set:function(t){x.fx.step[t.prop]?x.fx.step[t.prop](t):1!==t.elem.nodeType||!x.cssHooks[t.prop]&&null==t.elem.style[Qe(t.prop)]?t.elem[t.prop]=t.now:x.style(t.elem,t.prop,t.now+t.unit)}}},x.easing={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2},_default:"swing"},x.fx=an.prototype.init,x.fx.step={};var hn,un,ln=/^(?:toggle|show|hide)$/,cn=/queueHooks$/;function fn(){un&&(!1===g.hidden&&t.requestAnimationFrame?t.requestAnimationFrame(fn):t.setTimeout(fn,13),x.fx.tick())}function dn(){return t.setTimeout(function(){hn=void 0}),hn=Date.now()}function pn(t,e){var n,r=0,i={height:t};for(e=e?1:0;r<4;r+=2-e)i["margin"+(n=ce[r])]=i["padding"+n]=t;return e&&(i.opacity=i.width=t),i}function mn(t,e,n){for(var r,i=(gn.tweeners[e]||[]).concat(gn.tweeners["*"]),s=0,o=i.length;s<o;s++)if(r=i[s].call(n,e,t))return r}function gn(t,e,n){var r,i,s=0,o=gn.prefilters.length,a=x.Deferred().always(function(){delete h.elem}),h=function(){if(i)return!1;for(var e=hn||dn(),n=Math.max(0,u.startTime+u.duration-e),r=1-(n/u.duration||0),s=0,o=u.tweens.length;s<o;s++)u.tweens[s].run(r);return a.notifyWith(t,[u,r,n]),r<1&&o?n:(o||a.notifyWith(t,[u,1,0]),a.resolveWith(t,[u]),!1)},u=a.promise({elem:t,props:x.extend({},e),opts:x.extend(!0,{specialEasing:{},easing:x.easing._default},n),originalProperties:e,originalOptions:n,startTime:hn||dn(),duration:n.duration,tweens:[],createTween:function(e,n){var r=x.Tween(t,u.opts,e,n,u.opts.specialEasing[e]||u.opts.easing);return u.tweens.push(r),r},stop:function(e){var n=0,r=e?u.tweens.length:0;if(i)return this;for(i=!0;n<r;n++)u.tweens[n].run(1);return e?(a.notifyWith(t,[u,1,0]),a.resolveWith(t,[u,e])):a.rejectWith(t,[u,e]),this}}),l=u.props;for(function(t,e){var n,r,i,s,o;for(n in t)if(i=e[r=ve(n)],s=t[n],Array.isArray(s)&&(i=s[1],s=t[n]=s[0]),n!==r&&(t[r]=s,delete t[n]),(o=x.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,u.opts.specialEasing);s<o;s++)if(r=gn.prefilters[s].call(u,t,l,u.opts))return"function"==typeof r.stop&&(x._queueHooks(u.elem,u.opts.queue).stop=r.stop.bind(r)),r;return x.map(l,mn,u),"function"==typeof u.opts.start&&u.opts.start.call(t,u),u.progress(u.opts.progress).done(u.opts.done,u.opts.complete).fail(u.opts.fail).always(u.opts.always),x.fx.timer(x.extend(h,{elem:t,anim:u,queue:u.opts.queue})),u}x.Animation=x.extend(gn,{tweeners:{"*":[function(t,e){var n=this.createTween(t,e);return ge(n.elem,t,le.exec(e),n),n}]},tweener:function(t,e){"function"==typeof t?(e=t,t=["*"]):t=t.match(Q);for(var n,r=0,i=t.length;r<i;r++)n=t[r],gn.tweeners[n]=gn.tweeners[n]||[],gn.tweeners[n].unshift(e)},prefilters:[function(t,e,n){var r,i,s,o,a,h,u,l,c="width"in e||"height"in e,f=this,d={},p=t.style,m=t.nodeType&&fe(t),g=ie.get(t,"fxshow");for(r in n.queue||(null==(o=x._queueHooks(t,"fx")).unqueued&&(o.unqueued=0,a=o.empty.fire,o.empty.fire=function(){o.unqueued||a()}),o.unqueued++,f.always(function(){f.always(function(){o.unqueued--,x.queue(t,"fx").length||o.empty.fire()})})),e)if(i=e[r],ln.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}d[r]=g&&g[r]||x.style(t,r)}if((h=!x.isEmptyObject(e))||!x.isEmptyObject(d))for(r in c&&1===t.nodeType&&(n.overflow=[p.overflow,p.overflowX,p.overflowY],null==(u=g&&g.display)&&(u=ie.get(t,"display")),"none"===(l=x.css(t,"display"))&&(u?l=u:(xe([t],!0),u=t.style.display||u,l=x.css(t,"display"),xe([t]))),("inline"===l||"inline-block"===l&&null!=u)&&"none"===x.css(t,"float")&&(h||(f.done(function(){p.display=u}),null==u&&(l=p.display,u="none"===l?"":l)),p.display="inline-block")),n.overflow&&(p.overflow="hidden",f.always(function(){p.overflow=n.overflow[0],p.overflowX=n.overflow[1],p.overflowY=n.overflow[2]})),h=!1,d)h||(g?"hidden"in g&&(m=g.hidden):g=ie.set(t,"fxshow",{display:u}),s&&(g.hidden=!m),m&&xe([t],!0),f.done(function(){for(r in m||xe([t]),ie.remove(t,"fxshow"),d)x.style(t,r,d[r])})),h=mn(m?g[r]:0,r,f),r in g||(g[r]=h.start,m&&(h.end=h.start,h.start=0))}],prefilter:function(t,e){e?gn.prefilters.unshift(t):gn.prefilters.push(t)}}),x.speed=function(t,e,n){var r=t&&"object"==typeof t?x.extend({},t):{complete:n||e||"function"==typeof t&&t,duration:t,easing:n&&e||e&&"function"!=typeof e&&e};return x.fx.off?r.duration=0:"number"!=typeof r.duration&&(r.duration in x.fx.speeds?r.duration=x.fx.speeds[r.duration]:r.duration=x.fx.speeds._default),null!=r.queue&&!0!==r.queue||(r.queue="fx"),r.old=r.complete,r.complete=function(){"function"==typeof r.old&&r.old.call(this),r.queue&&x.dequeue(this,r.queue)},r},x.fn.extend({fadeTo:function(t,e,n,r){return this.filter(fe).css("opacity",0).show().end().animate({opacity:e},t,n,r)},animate:function(t,e,n,r){var i=x.isEmptyObject(t),s=x.speed(e,n,r),o=function(){var e=gn(this,x.extend({},t),s);(i||ie.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=x.timers,o=ie.get(this);if(i)o[i]&&o[i].stop&&r(o[i]);else for(i in o)o[i]&&o[i].stop&&cn.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||x.dequeue(this,t)})},finish:function(t){return!1!==t&&(t=t||"fx"),this.each(function(){var e,n=ie.get(this),r=n[t+"queue"],i=n[t+"queueHooks"],s=x.timers,o=r?r.length:0;for(n.finish=!0,x.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})}}),x.each(["toggle","show","hide"],function(t,e){var n=x.fn[e];x.fn[e]=function(t,r,i){return null==t||"boolean"==typeof t?n.apply(this,arguments):this.animate(pn(e,!0),t,r,i)}}),x.each({slideDown:pn("show"),slideUp:pn("hide"),slideToggle:pn("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(t,e){x.fn[t]=function(t,n,r){return this.animate(e,t,n,r)}}),x.timers=[],x.fx.tick=function(){var t,e=0,n=x.timers;for(hn=Date.now();e<n.length;e++)(t=n[e])()||n[e]!==t||n.splice(e--,1);n.length||x.fx.stop(),hn=void 0},x.fx.timer=function(t){x.timers.push(t),x.fx.start()},x.fx.start=function(){un||(un=!0,fn())},x.fx.stop=function(){un=null},x.fx.speeds={slow:600,fast:200,_default:400},x.fn.delay=function(e,n){return e=x.fx&&x.fx.speeds[e]||e,n=n||"fx",this.queue(n,function(n,r){var i=t.setTimeout(n,e);r.stop=function(){t.clearTimeout(i)}})};var yn=/^(?:input|select|textarea|button)$/i,vn=/^(?:a|area)$/i;function wn(t){return(t.match(Q)||[]).join(" ")}function bn(t){return t.getAttribute&&t.getAttribute("class")||""}function xn(t){return Array.isArray(t)?t:"string"==typeof t&&t.match(Q)||[]}x.fn.extend({prop:function(t,e){return $(this,x.prop,t,e,arguments.length>1)},removeProp:function(t){return this.each(function(){delete this[x.propFix[t]||t]})}}),x.extend({prop:function(t,e,n){var r,i,s=t.nodeType;if(3!==s&&8!==s&&2!==s)return 1===s&&x.isXMLDoc(t)||(e=x.propFix[e]||e,i=x.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.getAttribute("tabindex");return e?parseInt(e,10):yn.test(t.nodeName)||vn.test(t.nodeName)&&t.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),S&&(x.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)}}),x.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){x.propFix[this.toLowerCase()]=this}),x.fn.extend({addClass:function(t){var e,n,r,i,s,o;return"function"==typeof t?this.each(function(e){x(this).addClass(t.call(this,e,bn(this)))}):(e=xn(t)).length?this.each(function(){if(r=bn(this),n=1===this.nodeType&&" "+wn(r)+" "){for(s=0;s<e.length;s++)i=e[s],n.indexOf(" "+i+" ")<0&&(n+=i+" ");o=wn(n),r!==o&&this.setAttribute("class",o)}}):this},removeClass:function(t){var e,n,r,i,s,o;return"function"==typeof t?this.each(function(e){x(this).removeClass(t.call(this,e,bn(this)))}):arguments.length?(e=xn(t)).length?this.each(function(){if(r=bn(this),n=1===this.nodeType&&" "+wn(r)+" "){for(s=0;s<e.length;s++)for(i=e[s];n.indexOf(" "+i+" ")>-1;)n=n.replace(" "+i+" "," ");o=wn(n),r!==o&&this.setAttribute("class",o)}}):this:this.attr("class","")},toggleClass:function(t,e){var n,r,i,s;return"function"==typeof t?this.each(function(n){x(this).toggleClass(t.call(this,n,bn(this),e),e)}):"boolean"==typeof e?e?this.addClass(t):this.removeClass(t):(n=xn(t)).length?this.each(function(){for(s=x(this),i=0;i<n.length;i++)r=n[i],s.hasClass(r)?s.removeClass(r):s.addClass(r)}):this},hasClass:function(t){var e,n,r=0;for(e=" "+t+" ";n=this[r++];)if(1===n.nodeType&&(" "+wn(bn(n))+" ").indexOf(e)>-1)return!0;return!1}}),x.fn.extend({val:function(t){var e,n,r,i=this[0];return arguments.length?(r="function"==typeof t,this.each(function(n){var i;1===this.nodeType&&(null==(i=r?t.call(this,n,x(this).val()):t)?i="":"number"==typeof i?i+="":Array.isArray(i)&&(i=x.map(i,function(t){return null==t?"":t+""})),(e=x.valHooks[this.type]||x.valHooks[this.nodeName.toLowerCase()])&&"set"in e&&void 0!==e.set(this,i,"value")||(this.value=i))})):i?(e=x.valHooks[i.type]||x.valHooks[i.nodeName.toLowerCase()])&&"get"in e&&void 0!==(n=e.get(i,"value"))?n:null==(n=i.value)?"":n:void 0}}),x.extend({valHooks:{select:{get:function(t){var e,n,r,i=t.options,s=t.selectedIndex,o="select-one"===t.type,a=o?null:[],h=o?s+1:i.length;for(r=s<0?h:o?s:0;r<h;r++)if((n=i[r]).selected&&!n.disabled&&(!n.parentNode.disabled||!_(n.parentNode,"optgroup"))){if(e=x(n).val(),o)return e;a.push(e)}return a},set:function(t,e){for(var n,r,i=t.options,s=x.makeArray(e),o=i.length;o--;)((r=i[o]).selected=x.inArray(x(r).val(),s)>-1)&&(n=!0);return n||(t.selectedIndex=-1),s}}}}),S&&(x.valHooks.option={get:function(t){var e=t.getAttribute("value");return null!=e?e:wn(x.text(t))}}),x.each(["radio","checkbox"],function(){x.valHooks[this]={set:function(t,e){if(Array.isArray(e))return t.checked=x.inArray(x(t).val(),e)>-1}}});var _n=/^(?:focusinfocus|focusoutblur)$/,Nn=function(t){t.stopPropagation()};x.extend(x.event,{trigger:function(e,n,r,i){var s,o,a,h,l,c,f,d,m=[r||g],y=u.call(e,"type")?e.type:e,v=u.call(e,"namespace")?e.namespace.split("."):[];if(o=d=a=r=r||g,3!==r.nodeType&&8!==r.nodeType&&!_n.test(y+x.event.triggered)&&(y.indexOf(".")>-1&&(v=y.split("."),y=v.shift(),v.sort()),l=y.indexOf(":")<0&&"on"+y,(e=e[x.expando]?e:new x.Event(y,"object"==typeof e&&e)).isTrigger=i?2:3,e.namespace=v.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+v.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=r),n=null==n?[e]:x.makeArray(n,[e]),f=x.event.special[y]||{},i||!f.trigger||!1!==f.trigger.apply(r,n))){if(!i&&!f.noBubble&&!p(r)){for(h=f.delegateType||y,_n.test(h+y)||(o=o.parentNode);o;o=o.parentNode)m.push(o),a=o;a===(r.ownerDocument||g)&&m.push(a.defaultView||a.parentWindow||t)}for(s=0;(o=m[s++])&&!e.isPropagationStopped();)d=o,e.type=s>1?h:f.bindType||y,(c=(ie.get(o,"events")||Object.create(null))[e.type]&&ie.get(o,"handle"))&&c.apply(o,n),(c=l&&o[l])&&c.apply&&ne(o)&&(e.result=c.apply(o,n),!1===e.result&&e.preventDefault());return e.type=y,i||e.isDefaultPrevented()||f._default&&!1!==f._default.apply(m.pop(),n)||!ne(r)||l&&"function"==typeof r[y]&&!p(r)&&((a=r[l])&&(r[l]=null),x.event.triggered=y,e.isPropagationStopped()&&d.addEventListener(y,Nn),r[y](),e.isPropagationStopped()&&d.removeEventListener(y,Nn),x.event.triggered=void 0,a&&(r[l]=a)),e.result}},simulate:function(t,e,n){var r=x.extend(new x.Event,n,{type:t,isSimulated:!0});x.event.trigger(r,null,e)}}),x.fn.extend({trigger:function(t,e){return this.each(function(){x.event.trigger(t,e,this)})},triggerHandler:function(t,e){var n=this[0];if(n)return x.event.trigger(t,e,n,!0)}});var kn=t.location,Sn={guid:Date.now()},Mn=/\?/;x.parseXML=function(e){var n,r;if(!e||"string"!=typeof e)return null;try{n=(new t.DOMParser).parseFromString(e,"text/xml")}catch(t){}return r=n&&n.getElementsByTagName("parsererror")[0],n&&!r||x.error("Invalid XML: "+(r?x.map(r.childNodes,function(t){return t.textContent}).join("\n"):e)),n};var An=/\[\]$/,En=/\r?\n/g,Cn=/^(?:submit|button|image|reset|file)$/i,Tn=/^(?:input|select|textarea|keygen)/i;function On(t,e,n,r){var i;if(Array.isArray(e))x.each(e,function(e,i){n||An.test(t)?r(t,i):On(t+"["+("object"==typeof i&&null!=i?e:"")+"]",i,n,r)});else if(n||"object"!==d(e))r(t,e);else for(i in e)On(t+"["+i+"]",e[i],n,r)}x.param=function(t,e){var n,r=[],i=function(t,e){var n="function"==typeof e?e():e;r[r.length]=encodeURIComponent(t)+"="+encodeURIComponent(null==n?"":n)};if(null==t)return"";if(Array.isArray(t)||t.jquery&&!x.isPlainObject(t))x.each(t,function(){i(this.name,this.value)});else for(n in t)On(n,t[n],e,i);return r.join("&")},x.fn.extend({serialize:function(){return x.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var t=x.prop(this,"elements");return t?x.makeArray(t):this}).filter(function(){var t=this.type;return this.name&&!x(this).is(":disabled")&&Tn.test(this.nodeName)&&!Cn.test(t)&&(this.checked||!je.test(t))}).map(function(t,e){var n=x(this).val();return null==n?null:Array.isArray(n)?x.map(n,function(t){return{name:e.name,value:t.replace(En,"\r\n")}}):{name:e.name,value:n.replace(En,"\r\n")}}).get()}});var Wn=/%20/g,Ln=/#.*$/,jn=/([?&])_=[^&]*/,Pn=/^(.*?):[ \t]*([^\r\n]*)$/gm,Dn=/^(?:GET|HEAD)$/,Bn=/^\/\//,In={},Rn={},zn="*/".concat("*"),Fn=g.createElement("a");function qn(t){return function(e,n){"string"!=typeof e&&(n=e,e="*");var r,i=0,s=e.toLowerCase().match(Q)||[];if("function"==typeof n)for(;r=s[i++];)"+"===r[0]?(r=r.slice(1)||"*",(t[r]=t[r]||[]).unshift(n)):(t[r]=t[r]||[]).push(n)}}function Un(t,e,n,r){var i={},s=t===Rn;function o(a){var h;return i[a]=!0,x.each(t[a]||[],function(t,a){var u=a(e,n,r);return"string"!=typeof u||s||i[u]?s?!(h=u):void 0:(e.dataTypes.unshift(u),o(u),!1)}),h}return o(e.dataTypes[0])||!i["*"]&&o("*")}function Vn(t,e){var n,r,i=x.ajaxSettings.flatOptions||{};for(n in e)void 0!==e[n]&&((i[n]?t:r||(r={}))[n]=e[n]);return r&&x.extend(!0,t,r),t}Fn.href=kn.href,x.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:kn.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(kn.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":zn,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":x.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(t,e){return e?Vn(Vn(t,x.ajaxSettings),e):Vn(x.ajaxSettings,t)},ajaxPrefilter:qn(In),ajaxTransport:qn(Rn),ajax:function(e,n){"object"==typeof e&&(n=e,e=void 0),n=n||{};var r,i,s,o,a,h,u,l,c,f,d=x.ajaxSetup({},n),p=d.context||d,m=d.context&&(p.nodeType||p.jquery)?x(p):x.event,y=x.Deferred(),v=x.Callbacks("once memory"),w=d.statusCode||{},b={},_={},N="canceled",k={readyState:0,getResponseHeader:function(t){var e;if(u){if(!o)for(o={};e=Pn.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 u?s:null},setRequestHeader:function(t,e){return null==u&&(t=_[t.toLowerCase()]=_[t.toLowerCase()]||t,b[t]=e),this},overrideMimeType:function(t){return null==u&&(d.mimeType=t),this},statusCode:function(t){var e;if(t)if(u)k.always(t[k.status]);else for(e in t)w[e]=[w[e],t[e]];return this},abort:function(t){var e=t||N;return r&&r.abort(e),S(0,e),this}};if(y.promise(k),d.url=((e||d.url||kn.href)+"").replace(Bn,kn.protocol+"//"),d.type=n.method||n.type||d.method||d.type,d.dataTypes=(d.dataType||"*").toLowerCase().match(Q)||[""],null==d.crossDomain){h=g.createElement("a");try{h.href=d.url,h.href=h.href,d.crossDomain=Fn.protocol+"//"+Fn.host!=h.protocol+"//"+h.host}catch(t){d.crossDomain=!0}}if(Un(In,d,n,k),d.data&&d.processData&&"string"!=typeof d.data&&(d.data=x.param(d.data,d.traditional)),u)return k;for(c in(l=x.event&&d.global)&&0===x.active++&&x.event.trigger("ajaxStart"),d.type=d.type.toUpperCase(),d.hasContent=!Dn.test(d.type),i=d.url.replace(Ln,""),d.hasContent?d.data&&d.processData&&0===(d.contentType||"").indexOf("application/x-www-form-urlencoded")&&(d.data=d.data.replace(Wn,"+")):(f=d.url.slice(i.length),d.data&&(d.processData||"string"==typeof d.data)&&(i+=(Mn.test(i)?"&":"?")+d.data,delete d.data),!1===d.cache&&(i=i.replace(jn,"$1"),f=(Mn.test(i)?"&":"?")+"_="+Sn.guid+++f),d.url=i+f),d.ifModified&&(x.lastModified[i]&&k.setRequestHeader("If-Modified-Since",x.lastModified[i]),x.etag[i]&&k.setRequestHeader("If-None-Match",x.etag[i])),(d.data&&d.hasContent&&!1!==d.contentType||n.contentType)&&k.setRequestHeader("Content-Type",d.contentType),k.setRequestHeader("Accept",d.dataTypes[0]&&d.accepts[d.dataTypes[0]]?d.accepts[d.dataTypes[0]]+("*"!==d.dataTypes[0]?", "+zn+"; q=0.01":""):d.accepts["*"]),d.headers)k.setRequestHeader(c,d.headers[c]);if(d.beforeSend&&(!1===d.beforeSend.call(p,k,d)||u))return k.abort();if(N="abort",v.add(d.complete),k.done(d.success),k.fail(d.error),r=Un(Rn,d,n,k)){if(k.readyState=1,l&&m.trigger("ajaxSend",[k,d]),u)return k;d.async&&d.timeout>0&&(a=t.setTimeout(function(){k.abort("timeout")},d.timeout));try{u=!1,r.send(b,S)}catch(t){if(u)throw t;S(-1,t)}}else S(-1,"No Transport");function S(e,n,o,h){var c,f,g,b,_,N=n;u||(u=!0,a&&t.clearTimeout(a),r=void 0,s=h||"",k.readyState=e>0?4:0,c=e>=200&&e<300||304===e,o&&(b=function(t,e,n){for(var r,i,s,o,a=t.contents,h=t.dataTypes;"*"===h[0];)h.shift(),void 0===r&&(r=t.mimeType||e.getResponseHeader("Content-Type"));if(r)for(i in a)if(a[i]&&a[i].test(r)){h.unshift(i);break}if(h[0]in n)s=h[0];else{for(i in n){if(!h[0]||t.converters[i+" "+h[0]]){s=i;break}o||(o=i)}s=s||o}if(s)return s!==h[0]&&h.unshift(s),n[s]}(d,k,o)),!c&&x.inArray("script",d.dataTypes)>-1&&x.inArray("json",d.dataTypes)<0&&(d.converters["text script"]=function(){}),b=function(t,e,n,r){var i,s,o,a,h,u={},l=t.dataTypes.slice();if(l[1])for(o in t.converters)u[o.toLowerCase()]=t.converters[o];for(s=l.shift();s;)if(t.responseFields[s]&&(n[t.responseFields[s]]=e),!h&&r&&t.dataFilter&&(e=t.dataFilter(e,t.dataType)),h=s,s=l.shift())if("*"===s)s=h;else if("*"!==h&&h!==s){if(!(o=u[h+" "+s]||u["* "+s]))for(i in u)if((a=i.split(" "))[1]===s&&(o=u[h+" "+a[0]]||u["* "+a[0]])){!0===o?o=u[i]:!0!==u[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 "+h+" to "+s}}}return{state:"success",data:e}}(d,b,k,c),c?(d.ifModified&&((_=k.getResponseHeader("Last-Modified"))&&(x.lastModified[i]=_),(_=k.getResponseHeader("etag"))&&(x.etag[i]=_)),204===e||"HEAD"===d.type?N="nocontent":304===e?N="notmodified":(N=b.state,f=b.data,c=!(g=b.error))):(g=N,!e&&N||(N="error",e<0&&(e=0))),k.status=e,k.statusText=(n||N)+"",c?y.resolveWith(p,[f,N,k]):y.rejectWith(p,[k,N,g]),k.statusCode(w),w=void 0,l&&m.trigger(c?"ajaxSuccess":"ajaxError",[k,d,c?f:g]),v.fireWith(p,[k,N]),l&&(m.trigger("ajaxComplete",[k,d]),--x.active||x.event.trigger("ajaxStop")))}return k},getJSON:function(t,e,n){return x.get(t,e,n,"json")},getScript:function(t,e){return x.get(t,void 0,e,"script")}}),x.each(["get","post"],function(t,e){x[e]=function(t,n,r,i){return"function"!=typeof n&&null!==n||(i=i||r,r=n,n=void 0),x.ajax(x.extend({url:t,type:e,dataType:i,data:n,success:r},x.isPlainObject(t)&&t))}}),x.ajaxPrefilter(function(t){var e;for(e in t.headers)"content-type"===e.toLowerCase()&&(t.contentType=t.headers[e]||"")}),x._evalUrl=function(t,e,n){return x.ajax({url:t,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,scriptAttrs:e.crossOrigin?{crossOrigin:e.crossOrigin}:void 0,converters:{"text script":function(){}},dataFilter:function(t){x.globalEval(t,e,n)}})},x.fn.extend({wrapAll:function(t){var e;return this[0]&&("function"==typeof t&&(t=t.call(this[0])),e=x(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"function"==typeof t?this.each(function(e){x(this).wrapInner(t.call(this,e))}):this.each(function(){var e=x(this),n=e.contents();n.length?n.wrapAll(t):e.append(t)})},wrap:function(t){var e="function"==typeof t;return this.each(function(n){x(this).wrapAll(e?t.call(this,n):t)})},unwrap:function(t){return this.parent(t).not("body").each(function(){x(this).replaceWith(this.childNodes)}),this}}),x.expr.pseudos.hidden=function(t){return!x.expr.pseudos.visible(t)},x.expr.pseudos.visible=function(t){return!!(t.offsetWidth||t.offsetHeight||t.getClientRects().length)},x.ajaxSettings.xhr=function(){return new t.XMLHttpRequest};var Gn={0:200};function Hn(t){return t.scriptAttrs||!t.headers&&(t.crossDomain||t.async&&x.inArray("json",t.dataTypes)<0)}x.ajaxTransport(function(t){var e;return{send:function(n,r){var i,s=t.xhr();if(s.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(i in t.xhrFields)s[i]=t.xhrFields[i];for(i in t.mimeType&&s.overrideMimeType&&s.overrideMimeType(t.mimeType),t.crossDomain||n["X-Requested-With"]||(n["X-Requested-With"]="XMLHttpRequest"),n)s.setRequestHeader(i,n[i]);e=function(t){return function(){e&&(e=s.onload=s.onerror=s.onabort=s.ontimeout=null,"abort"===t?s.abort():"error"===t?r(s.status,s.statusText):r(Gn[s.status]||s.status,s.statusText,"text"===(s.responseType||"text")?{text:s.responseText}:{binary:s.response},s.getAllResponseHeaders()))}},s.onload=e(),s.onabort=s.onerror=s.ontimeout=e("error"),e=e("abort");try{s.send(t.hasContent&&t.data||null)}catch(t){if(e)throw t}},abort:function(){e&&e()}}}),x.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},converters:{"text script":function(t){return x.globalEval(t),t}}}),x.ajaxPrefilter("script",function(t){void 0===t.cache&&(t.cache=!1),Hn(t)&&(t.type="GET")}),x.ajaxTransport("script",function(t){var e,n;if(Hn(t))return{send:function(r,i){e=x("<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)}),g.head.appendChild(e[0])},abort:function(){n&&n()}}});var Xn=[],Yn=/(=)\?(?=&|$)|\?\?/;x.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var t=Xn.pop()||x.expando+"_"+Sn.guid++;return this[t]=!0,t}}),x.ajaxPrefilter("jsonp",function(e,n,r){var i,s,o,a=!1!==e.jsonp&&(Yn.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&Yn.test(e.data)&&"data");return i=e.jsonpCallback="function"==typeof e.jsonpCallback?e.jsonpCallback():e.jsonpCallback,a?e[a]=e[a].replace(Yn,"$1"+i):!1!==e.jsonp&&(e.url+=(Mn.test(e.url)?"&":"?")+e.jsonp+"="+i),e.converters["script json"]=function(){return o||x.error(i+" was not called"),o[0]},e.dataTypes[0]="json",s=t[i],t[i]=function(){o=arguments},r.always(function(){void 0===s?x(t).removeProp(i):t[i]=s,e[i]&&(e.jsonpCallback=n.jsonpCallback,Xn.push(i)),o&&"function"==typeof s&&s(o[0]),o=s=void 0}),"script"}),x.ajaxPrefilter(function(e,n){"string"==typeof e.data||x.isPlainObject(e.data)||Array.isArray(e.data)||"processData"in n||(e.processData=!1),e.data instanceof t.FormData&&(e.contentType=!1)}),x.parseHTML=function(e,n,r){return"string"==typeof e||zt(e+"")?("boolean"==typeof n&&(r=n,n=!1),n||(n=(new t.DOMParser).parseFromString("","text/html")),s=!r&&[],(i=Rt.exec(e))?[n.createElement(i[1])]:(i=Te([e],n,s),s&&s.length&&x(s).remove(),x.merge([],i.childNodes))):[];var i,s},x.fn.load=function(t,e,n){var r,i,s,o=this,a=t.indexOf(" ");return a>-1&&(r=wn(t.slice(a)),t=t.slice(0,a)),"function"==typeof e?(n=e,e=void 0):e&&"object"==typeof e&&(i="POST"),o.length>0&&x.ajax({url:t,type:i||"GET",dataType:"html",data:e}).done(function(t){s=arguments,o.html(r?x("<div>").append(x.parseHTML(t)).find(r):t)}).always(n&&function(t,e){o.each(function(){n.apply(this,s||[t.responseText,e,t])})}),this},x.expr.pseudos.animated=function(t){return x.grep(x.timers,function(e){return t===e.elem}).length},x.offset={setOffset:function(t,e,n){var r,i,s,o,a,h,u=x.css(t,"position"),l=x(t),c={};"static"===u&&(t.style.position="relative"),a=l.offset(),s=x.css(t,"top"),h=x.css(t,"left"),("absolute"===u||"fixed"===u)&&(s+h).indexOf("auto")>-1?(o=(r=l.position()).top,i=r.left):(o=parseFloat(s)||0,i=parseFloat(h)||0),"function"==typeof e&&(e=e.call(t,n,x.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)}},x.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(e){x.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"===x.css(r,"position"))e=r.getBoundingClientRect();else{for(e=this.offset(),n=r.ownerDocument,t=r.offsetParent||n.documentElement;t&&t!==n.documentElement&&"static"===x.css(t,"position");)t=t.offsetParent||n.documentElement;t&&t!==r&&1===t.nodeType&&"static"!==x.css(t,"position")&&((i=x(t).offset()).top+=x.css(t,"borderTopWidth",!0),i.left+=x.css(t,"borderLeftWidth",!0))}return{top:e.top-i.top-x.css(r,"marginTop",!0),left:e.left-i.left-x.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var t=this.offsetParent;t&&"static"===x.css(t,"position");)t=t.offsetParent;return t||W})}}),x.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,e){var n="pageYOffset"===e;x.fn[t]=function(r){return $(this,function(t,r,i){var s;if(p(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)}}),x.each({Height:"height",Width:"width"},function(t,e){x.each({padding:"inner"+t,content:e,"":"outer"+t},function(n,r){x.fn[r]=function(i,s){var o=arguments.length&&(n||"boolean"!=typeof i),a=n||(!0===i||!0===s?"margin":"border");return $(this,function(e,n,i){var s;return p(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?x.css(e,n,a):x.style(e,n,i,a)},e,o?i:void 0,o)}})}),x.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(t,e){x.fn[e]=function(t){return this.on(e,t)}}),x.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)}}),x.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){x.fn[e]=function(t,n){return arguments.length>0?this.on(e,null,t,n):this.trigger(e)}}),x.proxy=function(t,e){var n,i,s;if("string"==typeof e&&(n=t[e],e=t,t=n),"function"==typeof t)return i=r.call(arguments,2),s=function(){return t.apply(e||this,i.concat(r.call(arguments)))},s.guid=t.guid=t.guid||x.guid++,s},x.holdReady=function(t){t?x.readyWait++:x.ready(!0)},x.expr[":"]=x.expr.filters=x.expr.pseudos,"function"==typeof define&&define.amd&&define("jquery",[],function(){return x});var $n=t.jQuery,Qn=t.$;return x.noConflict=function(e){return t.$===x&&(t.$=Qn),e&&t.jQuery===x&&(t.jQuery=$n),x},x}(window);const Dr=Pr;var Br,Ir,Rr,zr,Fr,qr,Ur,Vr,Gr,Hr,Xr,Yr,$r,Qr,Zr,Jr,Kr,ti,ei,ni,ri,ii,si,oi,ai,hi,ui,li,ci,fi,di,pi,mi,gi,yi,vi,wi,bi,xi,_i,Ni,ki,Si,Mi,Ai,Ei,Ci,Ti,Oi,Wi,Li,ji,Pi,Di,Bi,Ii,Ri,zi,Fi,qi,Ui,Vi,Gi,Hi,Xi,Yi,$i,Qi,Zi,Ji,Ki,ts,es,ns,rs,is,ss,os,as,hs,us,ls,cs,fs,ds,ps,ms,gs,ys,vs,ws,bs,xs,_s,Ns,ks,Ss,Ms=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},As=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 Es{constructor(t){Br.add(this),Ir.set(this,void 0),this.domNode=document.createElement("div"),Rr.set(this,new Cs),zr.set(this,document.createElement("div")),Fr.set(this,void 0),qr.set(this,void 0),Ur.set(this,document.createElement("div")),Vr.set(this,void 0),Gr.set(this,void 0),Hr.set(this,void 0),Xr.set(this,void 0),Yr.set(this,void 0),$r.set(this,void 0),Qr.set(this,void 0),Zr.set(this,void 0),Jr.set(this,void 0),Kr.set(this,void 0),ti.set(this,void 0),ei.set(this,void 0),Ms(this,Ir,t,"f"),this.domNode.classList.add(N.lf),As(this,Rr,"f").domNode.addEventListener("click",()=>this.domNode.classList.toggle(N.ho)),this.domNode.append(As(this,Rr,"f").domNode),As(this,zr,"f").classList.add(N.Qs),this.domNode.append(As(this,zr,"f")),Ms(this,Fr,new Ts(t),"f"),As(this,zr,"f").append(As(this,Fr,"f").domNode),Ms(this,qr,new Os(t),"f"),As(this,zr,"f").append(As(this,qr,"f").domNode),As(this,Ur,"f").classList.add(N.eB),As(this,zr,"f").append(As(this,Ur,"f")),t.selectedBases.addEventListener("change",()=>{document.body.contains(this.domNode)&&([...t.selectedBases].length>0?As(this,Br,"m",ri).call(this):As(this,Br,"m",ii).call(this))}),Ms(this,Vr,new Ws(t),"f"),As(this,Ur,"f").append(As(this,Vr,"f").domNode),Ms(this,Gr,new Ls(t),"f"),As(this,Ur,"f").append(As(this,Gr,"f").domNode),Ms(this,Hr,new js(t),"f"),As(this,Ur,"f").append(As(this,Hr,"f").domNode),Ms(this,Xr,new Ps(t),"f"),As(this,Ur,"f").append(As(this,Xr,"f").domNode),Ms(this,Yr,new Ds(t),"f"),As(this,Ur,"f").append(As(this,Yr,"f").domNode),Ms(this,$r,new Bs(t),"f"),As(this,Ur,"f").append(As(this,$r,"f").domNode),Ms(this,Qr,new Is(t),"f"),As(this,Ur,"f").append(As(this,Qr,"f").domNode),Ms(this,Zr,new Rs(t),"f"),As(this,Ur,"f").append(As(this,Zr,"f").domNode),Ms(this,Jr,new zs(t),"f"),As(this,Ur,"f").append(As(this,Jr,"f").domNode),Ms(this,Kr,new Us(t),"f"),As(this,Ur,"f").append(As(this,Kr,"f").domNode),Ms(this,ti,new Vs(t),"f"),As(this,Ur,"f").append(As(this,ti,"f").domNode),Ms(this,ei,new Gs(t),"f"),As(this,Ur,"f").append(As(this,ei,"f").domNode)}refresh(){As(this,Br,"a",ni).forEach(t=>t.refresh()),[...As(this,Ir,"f").selectedBases].length>0?As(this,Br,"m",ri).call(this):As(this,Br,"m",ii).call(this)}}Ir=new WeakMap,Rr=new WeakMap,zr=new WeakMap,Fr=new WeakMap,qr=new WeakMap,Ur=new WeakMap,Vr=new WeakMap,Gr=new WeakMap,Hr=new WeakMap,Xr=new WeakMap,Yr=new WeakMap,$r=new WeakMap,Qr=new WeakMap,Zr=new WeakMap,Jr=new WeakMap,Kr=new WeakMap,ti=new WeakMap,ei=new WeakMap,Br=new WeakSet,ni=function(){return[As(this,Fr,"f"),As(this,qr,"f"),As(this,Vr,"f"),As(this,Gr,"f"),As(this,Hr,"f"),As(this,Xr,"f"),As(this,Yr,"f"),As(this,$r,"f"),As(this,Qr,"f"),As(this,Zr,"f"),As(this,Jr,"f"),As(this,Kr,"f"),As(this,ti,"f"),As(this,ei,"f")]},ri=function(){As(this,Ur,"f").style.display="block"},ii=function(){As(this,Ur,"f").style.display="none"};class Cs{constructor(){this.domNode=document.createElement("div"),si.set(this,document.createElementNS("http://www.w3.org/2000/svg","svg")),oi.set(this,document.createElement("p")),this.domNode.classList.add(N.wx),As(this,si,"f").classList.add(N.m9),As(this,si,"f").setAttribute("viewBox","0 0 6 10"),As(this,si,"f").setAttribute("width","6"),As(this,si,"f").setAttribute("height","10"),As(this,si,"f").innerHTML='\n <path\n d="M 1 1 L 5 5 L 1 9"\n stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"\n fill="none"\n ></path>\n ',this.domNode.append(As(this,si,"f")),As(this,oi,"f").classList.add(N.aW),As(this,oi,"f").textContent="Bases",this.domNode.append(As(this,oi,"f"))}}si=new WeakMap,oi=new WeakMap;class Ts{constructor(t){ai.set(this,void 0),this.domNode=document.createElement("p"),hi.set(this,document.createElement("span")),ui.set(this,document.createElement("span")),Ms(this,ai,t,"f"),this.domNode.classList.add(N.IU),As(this,hi,"f").style.fontWeight="700",this.domNode.append(As(this,hi,"f"),As(this,ui,"f")),As(this,ai,"f").selectedBases.addEventListener("change",()=>document.body.contains(this.domNode)?this.refresh():{}),this.refresh()}refresh(){let t=[...As(this,ai,"f").selectedBases].length;As(this,hi,"f").textContent=`${t}`,As(this,ui,"f").textContent=1==t?" base is selected.":" bases are selected."}}ai=new WeakMap,hi=new WeakMap,ui=new WeakMap;class Os{constructor(t){li.add(this),ci.set(this,void 0),this.domNode=document.createElement("div"),fi.set(this,new C),di.set(this,document.createElement("div")),pi.set(this,{All:new D("All",()=>As(this,li,"m",yi).call(this)),None:new D("None",()=>As(this,li,"m",vi).call(this)),A:new D("A",()=>As(this,li,"m",wi).call(this,"A")),U:new D("U",()=>As(this,li,"m",wi).call(this,"U")),G:new D("G",()=>As(this,li,"m",wi).call(this,"G")),C:new D("C",()=>As(this,li,"m",wi).call(this,"C")),T:new D("T",()=>As(this,li,"m",wi).call(this,"T")),a:new D("a",()=>As(this,li,"m",wi).call(this,"a")),u:new D("u",()=>As(this,li,"m",wi).call(this,"u")),g:new D("g",()=>As(this,li,"m",wi).call(this,"g")),c:new D("c",()=>As(this,li,"m",wi).call(this,"c")),t:new D("t",()=>As(this,li,"m",wi).call(this,"t")),Outlined:new D("Outlined",()=>As(this,li,"m",bi).call(this)),Paired:new D("Paired",()=>As(this,li,"m",xi).call(this)),Unpaired:new D("Unpaired",()=>As(this,li,"m",_i).call(this))}),mi.set(this,void 0),Ms(this,ci,t,"f"),this.domNode.classList.add(N.vw),As(this,fi,"f").textContent="Select:",As(this,fi,"f").domNode.addEventListener("click",()=>As(this,li,"m",gi).call(this)),this.domNode.append(As(this,fi,"f").domNode);let e=document.createElement("div");h(e).css({marginTop:"1.5px",display:"flex",flexDirection:"column",gap:"6px"}),this.domNode.append(e);let n=document.createElement("div");h(n).css({display:"flex",flexDirection:"row",gap:"23px"}),n.append(...["All","None"].map(t=>As(this,pi,"f")[t].domNode)),e.append(n),h(As(this,di,"f")).css({display:"flex",flexDirection:"column",gap:"6px"}),e.append(As(this,di,"f")),As(this,di,"f").style.display="none",As(this,fi,"f").caret.pointRight();let r=document.createElement("div");h(r).css({display:"flex",flexDirection:"row",gap:"17px"}),r.append(...["A","U","G","C","T"].map(t=>As(this,pi,"f")[t].domNode)),As(this,di,"f").append(r);let i=document.createElement("div");h(i).css({display:"flex",flexDirection:"row",gap:"18px"}),i.append(...["a","u","g","c","t"].map(t=>As(this,pi,"f")[t].domNode)),As(this,di,"f").append(i),As(this,di,"f").append(As(this,pi,"f").Outlined.domNode);let s=document.createElement("div");h(s).css({display:"flex",flexDirection:"row",gap:"18px"}),s.append(...["Paired","Unpaired"].map(t=>As(this,pi,"f")[t].domNode)),As(this,di,"f").append(s),t.selectedBases.addEventListener("change",()=>document.body.contains(this.domNode)?this.refresh():{}),t.selectedOutlines.addEventListener("change",()=>document.body.contains(this.domNode)?this.refresh():{}),Ms(this,mi,new MutationObserver(()=>document.body.contains(this.domNode)?this.refresh():{}),"f"),As(this,mi,"f").observe(t.drawing.domNode,{childList:!0,subtree:!0}),this.refresh()}refresh(){let t=[...As(this,ci,"f").drawing.bases],e=new Set([...As(this,ci,"f").drawing.secondaryBonds].flatMap(t=>[t.base1,t.base2])),n=t.filter(t=>!e.has(t)),r=new Set(As(this,ci,"f").selectedBases),i=[...As(this,ci,"f").selectedOutlines];0==t.length?(As(this,pi,"f").All.disable(),As(this,pi,"f").All.tooltip.textContent="There are no bases in the drawing."):r.size==t.length?(As(this,pi,"f").All.disable(),As(this,pi,"f").All.tooltip.textContent="All bases are already selected."):(As(this,pi,"f").All.enable(),As(this,pi,"f").All.tooltip.textContent="Select all bases."),0==r.size?(As(this,pi,"f").None.disable(),As(this,pi,"f").None.tooltip.textContent="No bases are selected."):(As(this,pi,"f").None.enable(),As(this,pi,"f").None.tooltip.textContent="Deselect all bases."),["A","U","G","C","T","a","u","g","c","t"].forEach(e=>{let n=t.filter(t=>t.textContent==e),i=As(this,pi,"f")[e];0==n.length?(i.disable(),i.tooltip.textContent=`No bases have the letter "${e}".`):n.every(t=>r.has(t))?(i.disable(),i.tooltip.textContent=`All bases with the letter "${e}" are already selected.`):(i.enable(),i.tooltip.textContent=`Select all bases with the letter "${e}".`)}),0==i.length?(As(this,pi,"f").Outlined.disable(),As(this,pi,"f").Outlined.tooltip.textContent="No outlines are selected."):i.map(t=>t.owner).every(t=>r.has(t))?(As(this,pi,"f").Outlined.disable(),As(this,pi,"f").Outlined.tooltip.textContent="All bases outlined by the selected outlines are already selected."):(As(this,pi,"f").Outlined.enable(),As(this,pi,"f").Outlined.tooltip.textContent="Select bases outlined by the selected outlines."),0==e.size?(As(this,pi,"f").Paired.disable(),As(this,pi,"f").Paired.tooltip.textContent="There are no paired bases in the drawing."):[...e].every(t=>r.has(t))?(As(this,pi,"f").Paired.disable(),As(this,pi,"f").Paired.tooltip.textContent="All paired bases are already selected."):(As(this,pi,"f").Paired.enable(),As(this,pi,"f").Paired.tooltip.textContent="Select all paired bases."),0==n.length?(As(this,pi,"f").Unpaired.disable(),As(this,pi,"f").Unpaired.tooltip.textContent="There are no unpaired bases in the drawing."):n.every(t=>r.has(t))?(As(this,pi,"f").Unpaired.disable(),As(this,pi,"f").Unpaired.tooltip.textContent="All unpaired bases are already selected."):(As(this,pi,"f").Unpaired.enable(),As(this,pi,"f").Unpaired.tooltip.textContent="Select all unpaired bases.")}}ci=new WeakMap,fi=new WeakMap,di=new WeakMap,pi=new WeakMap,mi=new WeakMap,li=new WeakSet,gi=function(){let t="none"!=As(this,di,"f").style.display;As(this,di,"f").style.display=t?"none":"flex",t?As(this,fi,"f").caret.pointRight():As(this,fi,"f").caret.pointDown()},yi=function(){As(this,ci,"f").addToSelected([...As(this,ci,"f").drawing.bases])},vi=function(){As(this,ci,"f").removeFromSelected([...As(this,ci,"f").drawing.bases])},wi=function(t){As(this,ci,"f").addToSelected([...As(this,ci,"f").drawing.bases].filter(e=>e.domNode.textContent==t))},bi=function(){As(this,ci,"f").addToSelected([...As(this,ci,"f").selectedOutlines].map(t=>t.owner))},xi=function(){As(this,ci,"f").addToSelected([...As(this,ci,"f").drawing.secondaryBonds].flatMap(t=>[t.base1,t.base2]))},_i=function(){let t=new Set([...As(this,ci,"f").drawing.secondaryBonds].flatMap(t=>[t.base1,t.base2]));As(this,ci,"f").addToSelected([...As(this,ci,"f").drawing.bases].filter(e=>!t.has(e)))};class Ws{constructor(t){Ni.add(this),ki.set(this,void 0),this.domNode=document.createElement("div"),Si.set(this,document.createElement("p")),Mi.set(this,new D),Ai.set(this,new D),Ms(this,ki,t,"f"),this.domNode.classList.add(N.Te),As(this,Si,"f").classList.add(N.QB),As(this,Si,"f").textContent="Send to:",this.domNode.append(As(this,Si,"f")),As(this,Mi,"f").domNode.addEventListener("click",()=>As(this,Ni,"m",Ei).call(this)),As(this,Mi,"f").textContent="Front",As(this,Mi,"f").domNode.style.marginLeft="26px",this.domNode.append(As(this,Mi,"f").domNode),As(this,Ai,"f").domNode.addEventListener("click",()=>As(this,Ni,"m",Ci).call(this)),As(this,Ai,"f").textContent="Back",As(this,Ai,"f").domNode.style.marginLeft="28px",this.domNode.append(As(this,Ai,"f").domNode),t.selectedBases.addEventListener("change",()=>document.body.contains(this.domNode)?this.refresh():{}),this.refresh()}refresh(){As(this,Ni,"m",Ti).call(this),As(this,Ni,"m",Oi).call(this)}}ki=new WeakMap,Si=new WeakMap,Mi=new WeakMap,Ai=new WeakMap,Ni=new WeakSet,Ei=function(){let t=[...As(this,ki,"f").selectedBases];0!=t.length?(As(this,ki,"f").pushUndoStack(),t.forEach(t=>(0,jr.bringToFront)(t.domNode))):this.refresh()},Ci=function(){let t=[...As(this,ki,"f").selectedBases];0!=t.length?(As(this,ki,"f").pushUndoStack(),t.forEach(t=>(0,jr.sendToBack)(t.domNode))):this.refresh()},Ti=function(){0==[...As(this,ki,"f").selectedBases].length?(As(this,Mi,"f").disable(),As(this,Mi,"f").tooltip.textContent="No bases are selected."):(As(this,Mi,"f").enable(),As(this,Mi,"f").tooltip.textContent="Bring the selected bases to the front.")},Oi=function(){0==[...As(this,ki,"f").selectedBases].length?(As(this,Ai,"f").disable(),As(this,Ai,"f").tooltip.textContent="No bases are selected."):(As(this,Ai,"f").enable(),As(this,Ai,"f").tooltip.textContent="Send the selected bases to the back.")};class Ls{constructor(t){Wi.add(this),Li.set(this,void 0),ji.set(this,new F({onSubmit:()=>As(this,Wi,"m",Di).call(this)})),Pi.set(this,void 0),Ms(this,Li,t,"f"),Ms(this,Pi,new Z("Text Content",As(this,ji,"f").domNode),"f"),As(this,Pi,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/API/Node/textContent",this.domNode.style.marginTop="23px",this.domNode.style.alignSelf="start",As(this,Li,"f").selectedBases.addEventListener("change",()=>document.body.contains(this.domNode)?this.refresh():{}),new MutationObserver(()=>document.body.contains(this.domNode)?this.refresh():{}).observe(As(this,Li,"f").drawing.domNode,{characterData:!0,subtree:!0}),this.refresh()}get domNode(){return As(this,Pi,"f").domNode}refresh(){let t=[...As(this,Li,"f").selectedBases];try{As(this,ji,"f").domNode.value=(0,Lr.consensusValue)(t.map(t=>{var e;return null!==(e=t.textContent)&&void 0!==e?e:""}))}catch(t){As(this,ji,"f").domNode.value=""}}}Li=new WeakMap,ji=new WeakMap,Pi=new WeakMap,Wi=new WeakSet,Di=function(){var t;let e=null!==(t=As(this,ji,"f").domNode.value)&&void 0!==t?t:"";if(e=e.trim(),!e)return void this.refresh();let n=[...As(this,Li,"f").selectedBases];0==n.length||n.every(t=>t.textContent===e)||(As(this,Li,"f").pushUndoStack(),n.forEach(t=>t.maintainingCenterPoint(()=>t.textContent=e))),this.refresh()};class js{constructor(t){Bi.set(this,void 0),Ii.set(this,void 0),Ri.set(this,void 0),Ms(this,Bi,t,"f"),Ms(this,Ii,new Ys(t,"fill"),"f"),Ms(this,Ri,new Z("Fill",As(this,Ii,"f").domNode),"f"),As(this,Ri,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/fill",h(this.domNode).css({marginTop:"10px",alignSelf:"start"}),this.refresh()}get domNode(){return As(this,Ri,"f").domNode}refresh(){As(this,Ii,"f").refresh()}}Bi=new WeakMap,Ii=new WeakMap,Ri=new WeakMap;class Ps{constructor(t){zi.add(this),Fi.set(this,void 0),qi.set(this,new ot),Ui.set(this,void 0),Vi.set(this,void 0),Gi.set(this,void 0),Ms(this,Fi,t,"f"),As(this,qi,"f").domNode.addEventListener("input",()=>As(this,zi,"m",Hi).call(this)),Ms(this,Ui,new ut("Fill Color",As(this,qi,"f").domNode),"f"),h(this.domNode).css({marginTop:"12px",alignSelf:"start"}),As(this,Fi,"f").selectedBases.addEventListener("change",()=>Ms(this,Vi,void 0,"f")),As(this,qi,"f").domNode.addEventListener("focus",()=>Ms(this,Gi,As(this,qi,"f").domNode.value,"f")),As(this,Fi,"f").selectedBases.addEventListener("change",()=>document.body.contains(this.domNode)?this.refresh():{}),new MutationObserver(()=>document.body.contains(this.domNode)?this.refresh():{}).observe(As(this,Fi,"f").drawing.domNode,{attributes:!0,attributeFilter:["fill"],subtree:!0}),this.refresh()}get domNode(){return As(this,Ui,"f").domNode}refresh(){let t=[...As(this,Fi,"f").selectedBases];if(0!=t.length)try{let e=t.map(t=>window.getComputedStyle(t.domNode).fill).map(t=>new ie(t));As(this,qi,"f").domNode.value=(0,Lr.consensusValue)(e.map(t=>t.toHex().toLowerCase()))}catch(t){As(this,qi,"f").domNode.value="#000000"}else As(this,qi,"f").domNode.value="#000000"}}Fi=new WeakMap,qi=new WeakMap,Ui=new WeakMap,Vi=new WeakMap,Gi=new WeakMap,zi=new WeakSet,Hi=function(){if(As(this,qi,"f").domNode.value===As(this,Gi,"f"))return;let t=[...As(this,Fi,"f").selectedBases];0!=t.length?(t.every(t=>{var e;return(null===(e=t.getAttribute("fill"))||void 0===e?void 0:e.toLowerCase())===As(this,qi,"f").domNode.value.toLowerCase()})||((As(this,Fi,"f").undoStack.isEmpty()||As(this,Fi,"f").undoStack.peek()!==As(this,Vi,"f"))&&(As(this,Fi,"f").pushUndoStack(),Ms(this,Vi,As(this,Fi,"f").undoStack.peek(),"f")),t.forEach(t=>t.setAttribute("fill",As(this,qi,"f").domNode.value.toLowerCase()))),this.refresh()):this.refresh()};class Ds{constructor(t){Xi.set(this,void 0),Yi.set(this,void 0),$i.set(this,void 0),Ms(this,Xi,t,"f"),Ms(this,Yi,new Ys(t,"fill-opacity"),"f"),Ms(this,$i,new Z("Fill Opacity",As(this,Yi,"f").domNode),"f"),As(this,$i,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/fill-opacity",h(this.domNode).css({marginTop:"12px",alignSelf:"start"}),this.refresh()}get domNode(){return As(this,$i,"f").domNode}refresh(){As(this,Yi,"f").refresh()}}Xi=new WeakMap,Yi=new WeakMap,$i=new WeakMap;class Bs{constructor(t){Qi.set(this,void 0),Zi.set(this,void 0),Ji.set(this,void 0),Ms(this,Qi,t,"f"),Ms(this,Zi,new Ys(t,"font-family"),"f"),Ms(this,Ji,new Z("Font Family",As(this,Zi,"f").domNode),"f"),As(this,Ji,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/font-family",h(this.domNode).css({marginTop:"10px",alignSelf:"start"}),this.refresh()}get domNode(){return As(this,Ji,"f").domNode}refresh(){As(this,Zi,"f").refresh()}}Qi=new WeakMap,Zi=new WeakMap,Ji=new WeakMap;class Is{constructor(t){Ki.set(this,void 0),ts.set(this,void 0),es.set(this,void 0),Ms(this,Ki,t,"f"),Ms(this,ts,new Ys(t,"font-size"),"f"),Ms(this,es,new Z("Font Size",As(this,ts,"f").domNode),"f"),As(this,es,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/font-size",h(this.domNode).css({marginTop:"10px",alignSelf:"start"}),this.refresh()}get domNode(){return As(this,es,"f").domNode}refresh(){As(this,ts,"f").refresh()}}Ki=new WeakMap,ts=new WeakMap,es=new WeakMap;class Rs{constructor(t){ns.set(this,void 0),rs.set(this,void 0),is.set(this,void 0),Ms(this,ns,t,"f"),Ms(this,rs,new Ys(t,"font-weight"),"f"),Ms(this,is,new Z("Font Weight",As(this,rs,"f").domNode),"f"),As(this,is,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/font-weight",h(this.domNode).css({marginTop:"10px",alignSelf:"start"}),this.refresh()}get domNode(){return As(this,is,"f").domNode}refresh(){As(this,rs,"f").refresh()}}ns=new WeakMap,rs=new WeakMap,is=new WeakMap;class zs{constructor(t){ss.add(this),os.set(this,void 0),as.set(this,new tt),hs.set(this,void 0),Ms(this,os,t,"f"),As(this,as,"f").domNode.addEventListener("change",()=>As(this,ss,"m",us).call(this)),Ms(this,hs,new rt("Bold",As(this,as,"f").domNode),"f"),h(this.domNode).css({marginTop:"12px",alignSelf:"start"}),As(this,os,"f").selectedBases.addEventListener("change",()=>document.body.contains(this.domNode)?this.refresh():{}),new MutationObserver(()=>document.body.contains(this.domNode)?this.refresh():{}).observe(As(this,os,"f").drawing.domNode,{attributes:!0,attributeFilter:["font-weight"],subtree:!0}),this.refresh()}get domNode(){return As(this,hs,"f").domNode}refresh(){let t=[...As(this,os,"f").selectedBases];0==t.length?As(this,as,"f").domNode.checked=!1:As(this,as,"f").domNode.checked=t.every(Fs)}}function Fs(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 qs(t){return!Fs(t)}os=new WeakMap,as=new WeakMap,hs=new WeakMap,ss=new WeakSet,us=function(){let t=[...As(this,os,"f").selectedBases];0!=t.length?As(this,as,"f").domNode.checked&&t.every(Fs)?this.refresh():As(this,as,"f").domNode.checked||!t.every(qs)?(As(this,os,"f").pushUndoStack(),t.forEach(t=>{t.maintainingCenterPoint(()=>{As(this,as,"f").domNode.checked&&qs(t)?t.setAttribute("font-weight","700"):!As(this,as,"f").domNode.checked&&Fs(t)&&t.setAttribute("font-weight","400")})}),this.refresh(),As(this,as,"f").domNode.blur()):this.refresh():this.refresh()};class Us{constructor(t){ls.set(this,void 0),cs.set(this,void 0),fs.set(this,void 0),Ms(this,ls,t,"f"),Ms(this,cs,new Ys(t,"font-style"),"f"),Ms(this,fs,new Z("Font Style",As(this,cs,"f").domNode),"f"),As(this,fs,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/font-style",h(this.domNode).css({marginTop:"12px",alignSelf:"start"}),this.refresh()}get domNode(){return As(this,fs,"f").domNode}refresh(){As(this,cs,"f").refresh()}}ls=new WeakMap,cs=new WeakMap,fs=new WeakMap;class Vs{constructor(t){ds.set(this,void 0),ps.set(this,void 0),ms.set(this,void 0),Ms(this,ds,t,"f"),Ms(this,ps,new Ys(t,"text-decoration"),"f"),Ms(this,ms,new Z("Text Decoration",As(this,ps,"f").domNode),"f"),As(this,ms,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/text-decoration",h(this.domNode).css({marginTop:"10px",alignSelf:"start"}),this.refresh()}get domNode(){return As(this,ms,"f").domNode}refresh(){As(this,ps,"f").refresh()}}ds=new WeakMap,ps=new WeakMap,ms=new WeakMap;class Gs{constructor(t){gs.add(this),ys.set(this,void 0),vs.set(this,new tt),ws.set(this,void 0),Ms(this,ys,t,"f"),As(this,vs,"f").domNode.addEventListener("change",()=>As(this,gs,"m",bs).call(this)),Ms(this,ws,new rt("Underlined",As(this,vs,"f").domNode),"f"),h(this.domNode).css({marginTop:"12px",alignSelf:"start"}),As(this,ys,"f").selectedBases.addEventListener("change",()=>document.body.contains(this.domNode)?this.refresh():{}),new MutationObserver(()=>document.body.contains(this.domNode)?this.refresh():{}).observe(As(this,ys,"f").drawing.domNode,{attributes:!0,attributeFilter:["text-decoration"],subtree:!0}),this.refresh()}get domNode(){return As(this,ws,"f").domNode}refresh(){let t=[...As(this,ys,"f").selectedBases];0==t.length?As(this,vs,"f").domNode.checked=!1:As(this,vs,"f").domNode.checked=t.every(Hs)}}function Hs(t){let e=t.getAttribute("text-decoration");return null!==e&&e.split(/\s/).map(t=>t.toLowerCase()).includes("underline")}function Xs(t){return!Hs(t)}ys=new WeakMap,vs=new WeakMap,ws=new WeakMap,gs=new WeakSet,bs=function(){let t=[...As(this,ys,"f").selectedBases];0!=t.length?As(this,vs,"f").domNode.checked&&t.every(Hs)?this.refresh():As(this,vs,"f").domNode.checked||!t.every(Xs)?(As(this,ys,"f").pushUndoStack(),t.forEach(t=>{t.maintainingCenterPoint(()=>{As(this,vs,"f").domNode.checked&&Xs(t)?t.setAttribute("text-decoration","underline"):!As(this,vs,"f").domNode.checked&&Hs(t)&&t.setAttribute("text-decoration","")})}),this.refresh(),As(this,vs,"f").domNode.blur()):this.refresh():this.refresh()};class Ys{constructor(t,e){xs.add(this),_s.set(this,void 0),Ns.set(this,void 0),ks.set(this,new F({onSubmit:()=>As(this,xs,"m",Ss).call(this)})),Ms(this,_s,t,"f"),Ms(this,Ns,e,"f"),As(this,_s,"f").selectedBases.addEventListener("change",()=>document.body.contains(this.domNode)?this.refresh():{}),new MutationObserver(()=>document.body.contains(this.domNode)?this.refresh():{}).observe(As(this,_s,"f").drawing.domNode,{attributes:!0,subtree:!0}),this.refresh()}get domNode(){return As(this,ks,"f").domNode}refresh(){let t=[...As(this,_s,"f").selectedBases];try{As(this,ks,"f").domNode.value=(0,Lr.consensusValue)(t.map(t=>{var e;return null!==(e=t.getAttribute(As(this,Ns,"f")))&&void 0!==e?e:""}))}catch(t){As(this,ks,"f").domNode.value=""}}}_s=new WeakMap,Ns=new WeakMap,ks=new WeakMap,xs=new WeakSet,Ss=function(){let t=As(this,ks,"f").domNode.value,e=[...As(this,_s,"f").selectedBases];0==e.length||e.every(e=>e.getAttribute(As(this,Ns,"f"))===t)||(As(this,_s,"f").pushUndoStack(),e.forEach(e=>e.maintainingCenterPoint(()=>e.setAttribute(As(this,Ns,"f"),t)))),this.refresh()};var $s=n(924),Qs={};Qs.styleTagTransform=b(),Qs.setAttributes=g(),Qs.insert=p().bind(null,"head"),Qs.domAPI=f(),Qs.insertStyleElement=v(),l()($s.Ay,Qs),$s.Ay&&$s.Ay.locals&&$s.Ay.locals;var Zs=n(723),Js={};Js.styleTagTransform=b(),Js.setAttributes=g(),Js.insert=p().bind(null,"head"),Js.domAPI=f(),Js.insertStyleElement=v(),l()(Zs.Ay,Js),Zs.Ay&&Zs.Ay.locals&&Zs.Ay.locals;var Ks,to=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 eo{constructor(t,e){this.domNode=document.createElement("div"),Ks.set(this,document.createElement("p")),this.tooltip=new j.Tooltip(""),this.domNode.classList.add(Zs.kL),to(this,Ks,"f").classList.add(Zs.Wu),!t||(this.textContent=t),!e||(this.onClick=e),this.domNode.append(to(this,Ks,"f")),this.tooltip.owner=this.domNode}get textContent(){return to(this,Ks,"f").textContent}set textContent(t){to(this,Ks,"f").textContent=t}get onClick(){return to(this,Ks,"f").onclick}set onClick(t){to(this,Ks,"f").onclick=t}click(){to(this,Ks,"f").click()}disable(){to(this,Ks,"f").classList.add(Zs.r9)}enable(){to(this,Ks,"f").classList.remove(Zs.r9)}isDisabled(){return to(this,Ks,"f").classList.contains(Zs.r9)}isEnabled(){return!this.isDisabled()}}Ks=new WeakMap;var no,ro,io,so,oo,ao,ho,uo,lo,co,fo,po,mo,go,yo,vo,wo,bo,xo,_o,No,ko,So,Mo,Ao,Eo,Co,To,Oo,Wo,Lo,jo,Po,Do,Bo,Io,Ro,zo,Fo,qo,Uo,Vo,Go,Ho,Xo,Yo,$o,Qo,Zo,Jo,Ko,ta,ea,na,ra,ia,sa,oa,aa,ha,ua,la,ca,fa,da,pa,ma,ga,ya,va,wa,ba,xa,_a,Na,ka,Sa,Ma,Aa,Ea,Ca,Ta,Oa,Wa,La,ja,Pa,Da,Ba,Ia,Ra,za,Fa,qa,Ua,Va,Ga,Ha=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},Xa=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 Ya{constructor(t){no.add(this),ro.set(this,void 0),this.domNode=document.createElement("div"),io.set(this,new C),so.set(this,document.createElement("div")),oo.set(this,void 0),ao.set(this,document.createElement("div")),ho.set(this,void 0),uo.set(this,void 0),lo.set(this,void 0),co.set(this,void 0),fo.set(this,void 0),po.set(this,void 0),mo.set(this,void 0),go.set(this,void 0),yo.set(this,void 0),vo.set(this,void 0),wo.set(this,void 0),bo.set(this,void 0),xo.set(this,void 0),Ha(this,ro,t,"f"),this.domNode.classList.add($s.qM),Xa(this,io,"f").textContent="Outlines",Xa(this,io,"f").domNode.addEventListener("click",()=>this.toggle()),this.domNode.append(Xa(this,io,"f").domNode),Xa(this,so,"f").classList.add($s.Qs),this.domNode.append(Xa(this,so,"f")),Ha(this,oo,new $a(t),"f"),Xa(this,so,"f").append(Xa(this,oo,"f").domNode),Ha(this,ho,new Qa(t),"f"),Xa(this,so,"f").append(Xa(this,ho,"f").domNode),Ha(this,uo,new Za(t),"f"),Xa(this,so,"f").append(Xa(this,uo,"f").domNode),Ha(this,lo,new Ja(t),"f"),Xa(this,so,"f").append(Xa(this,lo,"f").domNode),Xa(this,ao,"f").classList.add($s.eB),Xa(this,so,"f").append(Xa(this,ao,"f")),t.selectedOutlines.addEventListener("change",()=>{document.body.contains(this.domNode)&&([...t.selectedOutlines].length>0?Xa(this,no,"m",No).call(this):Xa(this,no,"m",ko).call(this))}),Ha(this,co,new Ka(t),"f"),Xa(this,ao,"f").append(Xa(this,co,"f").domNode),Ha(this,fo,new th(t),"f"),Xa(this,ao,"f").append(Xa(this,fo,"f").domNode),Ha(this,po,new eh(t),"f"),Xa(this,ao,"f").append(Xa(this,po,"f").domNode),Ha(this,mo,new nh(t),"f"),Xa(this,ao,"f").append(Xa(this,mo,"f").domNode),Ha(this,go,new rh(t),"f"),Xa(this,ao,"f").append(Xa(this,go,"f").domNode),Ha(this,yo,new ih(t),"f"),Xa(this,ao,"f").append(Xa(this,yo,"f").domNode),Ha(this,vo,new sh(t),"f"),Xa(this,ao,"f").append(Xa(this,vo,"f").domNode),Ha(this,wo,new oh(t),"f"),Xa(this,ao,"f").append(Xa(this,wo,"f").domNode),Ha(this,bo,new ah(t),"f"),Xa(this,ao,"f").append(Xa(this,bo,"f").domNode),Ha(this,xo,new hh(t),"f"),Xa(this,ao,"f").append(Xa(this,xo,"f").domNode)}isOpen(){return this.domNode.classList.contains($s.ho)}toggle(){this.isOpen()?(this.domNode.classList.remove($s.ho),Xa(this,io,"f").caret.pointRight()):(this.domNode.classList.add($s.ho),Xa(this,io,"f").caret.pointDown())}refresh(){Xa(this,no,"a",_o).forEach(t=>t.refresh()),[...Xa(this,ro,"f").selectedOutlines].length>0?Xa(this,no,"m",No).call(this):Xa(this,no,"m",ko).call(this)}}ro=new WeakMap,io=new WeakMap,so=new WeakMap,oo=new WeakMap,ao=new WeakMap,ho=new WeakMap,uo=new WeakMap,lo=new WeakMap,co=new WeakMap,fo=new WeakMap,po=new WeakMap,mo=new WeakMap,go=new WeakMap,yo=new WeakMap,vo=new WeakMap,wo=new WeakMap,bo=new WeakMap,xo=new WeakMap,no=new WeakSet,_o=function(){return[Xa(this,oo,"f"),Xa(this,ho,"f"),Xa(this,uo,"f"),Xa(this,lo,"f"),Xa(this,co,"f"),Xa(this,fo,"f"),Xa(this,po,"f"),Xa(this,mo,"f"),Xa(this,go,"f"),Xa(this,yo,"f"),Xa(this,vo,"f"),Xa(this,wo,"f"),Xa(this,bo,"f"),Xa(this,xo,"f")]},No=function(){Xa(this,ao,"f").style.display="flex"},ko=function(){Xa(this,ao,"f").style.display="none"};class $a{constructor(t){So.set(this,void 0),this.domNode=document.createElement("p"),Mo.set(this,document.createElement("span")),Ao.set(this,document.createElement("span")),Ha(this,So,t,"f"),this.domNode.classList.add($s.vM),Xa(this,Mo,"f").style.fontWeight="700",this.domNode.append(Xa(this,Mo,"f"),Xa(this,Ao,"f")),Xa(this,So,"f").selectedOutlines.addEventListener("change",()=>document.body.contains(this.domNode)?this.refresh():{}),this.refresh()}refresh(){let t=[...Xa(this,So,"f").selectedOutlines].length;Xa(this,Mo,"f").textContent=`${t}`,Xa(this,Ao,"f").textContent=1==t?" outline is selected.":" outlines are selected."}}So=new WeakMap,Mo=new WeakMap,Ao=new WeakMap;class Qa{constructor(t){Eo.add(this),Co.set(this,void 0),this.domNode=document.createElement("div"),To.set(this,document.createElement("p")),Oo.set(this,new D),Wo.set(this,new D),Lo.set(this,new D),jo.set(this,void 0),Ha(this,Co,t,"f"),this.domNode.classList.add($s.VX),Xa(this,To,"f").classList.add($s.iE),Xa(this,To,"f").textContent="Select:",this.domNode.append(Xa(this,To,"f")),Xa(this,Oo,"f").domNode.addEventListener("click",()=>Xa(this,Eo,"m",Po).call(this)),Xa(this,Oo,"f").textContent="All",Xa(this,Oo,"f").domNode.style.marginLeft="20px",this.domNode.append(Xa(this,Oo,"f").domNode),Xa(this,Wo,"f").domNode.addEventListener("click",()=>Xa(this,Eo,"m",Do).call(this)),Xa(this,Wo,"f").textContent="Outlining",Xa(this,Wo,"f").domNode.style.marginLeft="17px",this.domNode.append(Xa(this,Wo,"f").domNode),Xa(this,Lo,"f").domNode.addEventListener("click",()=>Xa(this,Eo,"m",Bo).call(this)),Xa(this,Lo,"f").textContent="None",Xa(this,Lo,"f").domNode.style.marginLeft="17px",this.domNode.append(Xa(this,Lo,"f").domNode),t.selectedOutlines.addEventListener("change",()=>document.body.contains(this.domNode)?this.refresh():{}),Ha(this,jo,new MutationObserver(()=>document.body.contains(this.domNode)?this.refresh():{}),"f"),Xa(this,jo,"f").observe(t.drawing.domNode,{childList:!0,subtree:!0}),this.refresh()}refresh(){Xa(this,Eo,"m",Io).call(this),Xa(this,Eo,"m",Ro).call(this),Xa(this,Eo,"m",zo).call(this)}}Co=new WeakMap,To=new WeakMap,Oo=new WeakMap,Wo=new WeakMap,Lo=new WeakMap,jo=new WeakMap,Eo=new WeakSet,Po=function(){let t=[...Xa(this,Co,"f").drawing.outlines];Xa(this,Co,"f").addToSelected(t)},Do=function(){let t=new Set(Xa(this,Co,"f").selectedBases),e=[...Xa(this,Co,"f").drawing.outlines];Xa(this,Co,"f").addToSelected(e.filter(e=>t.has(e.owner)))},Bo=function(){let t=[...Xa(this,Co,"f").drawing.outlines];Xa(this,Co,"f").removeFromSelected(t)},Io=function(){let t=[...Xa(this,Co,"f").drawing.outlines],e=[...Xa(this,Co,"f").selectedOutlines];0==t.length?(Xa(this,Oo,"f").disable(),Xa(this,Oo,"f").tooltip.textContent="There are no outlines in the drawing."):e.length==t.length?(Xa(this,Oo,"f").disable(),Xa(this,Oo,"f").tooltip.textContent="All outlines are already selected."):(Xa(this,Oo,"f").enable(),Xa(this,Oo,"f").tooltip.textContent="Select all outlines.")},Ro=function(){let t=[...Xa(this,Co,"f").drawing.outlines],e=new Set(Xa(this,Co,"f").selectedBases),n=t.filter(t=>e.has(t.owner)),r=new Set(Xa(this,Co,"f").selectedOutlines);0==e.size?(Xa(this,Wo,"f").disable(),Xa(this,Wo,"f").tooltip.textContent="No bases are selected."):0==n.length?(Xa(this,Wo,"f").disable(),Xa(this,Wo,"f").tooltip.textContent="No selected bases are outlined."):n.every(t=>r.has(t))?(Xa(this,Wo,"f").disable(),Xa(this,Wo,"f").tooltip.textContent="All outlines outlining the selected bases are already selected."):(Xa(this,Wo,"f").enable(),Xa(this,Wo,"f").tooltip.textContent="Select outlines outlining the selected bases.")},zo=function(){0==[...Xa(this,Co,"f").selectedOutlines].length?(Xa(this,Lo,"f").disable(),Xa(this,Lo,"f").tooltip.textContent="No outlines are selected."):(Xa(this,Lo,"f").enable(),Xa(this,Lo,"f").tooltip.textContent="Deselect all outlines.")};class Za{constructor(t){Fo.add(this),qo.set(this,void 0),this.domNode=document.createElement("div"),Uo.set(this,new eo("Add",()=>Xa(this,Fo,"m",Yo).call(this))),Vo.set(this,new tt),Go.set(this,new rt("Only add missing outlines",Xa(this,Vo,"f").domNode)),Ho.set(this,void 0),Ha(this,qo,t,"f"),this.domNode.style.marginTop="29px",this.domNode.style.display="flex",this.domNode.style.flexDirection="column",this.domNode.append(Xa(this,Uo,"f").domNode),Xa(this,Vo,"f").domNode.checked=!0,Xa(this,Go,"f").domNode.style.margin="10px 0px 0px 10px",Xa(this,Go,"f").domNode.style.alignSelf="start",this.domNode.append(Xa(this,Go,"f").domNode),t.selectedBases.addEventListener("change",()=>document.body.contains(this.domNode)?this.refresh():{}),Ha(this,Ho,new MutationObserver(()=>document.body.contains(this.domNode)?this.refresh():{}),"f"),Xa(this,Ho,"f").observe(t.drawing.domNode,{childList:!0,subtree:!0}),Xa(this,Vo,"f").domNode.addEventListener("change",()=>this.refresh()),this.refresh()}refresh(){let t=[...Xa(this,qo,"f").selectedBases],e=[...Xa(this,qo,"f").drawing.outlines],n=new Set(e.map(t=>t.owner)),r=t.filter(t=>!n.has(t));0==t.length?(Xa(this,Uo,"f").disable(),Xa(this,Uo,"f").tooltip.textContent="No bases are selected."):Xa(this,Fo,"a",Xo)&&0==r.length?(Xa(this,Uo,"f").disable(),Xa(this,Uo,"f").tooltip.textContent="The selected bases are already outlined."):(Xa(this,Uo,"f").enable(),Xa(this,Uo,"f").tooltip.textContent="Outline the selected bases.")}}qo=new WeakMap,Uo=new WeakMap,Vo=new WeakMap,Go=new WeakMap,Ho=new WeakMap,Fo=new WeakSet,Xo=function(){return Xa(this,Vo,"f").domNode.checked},Yo=function(){let t=[...Xa(this,qo,"f").selectedBases];if(0==t.length)return;let e=[...Xa(this,qo,"f").drawing.outlines],n=new Set(e.map(t=>t.owner)),r=t.filter(t=>!n.has(t)),i=Xa(this,Fo,"a",Xo)?r:t;if(0==i.length)return;Xa(this,qo,"f").pushUndoStack();let s=i.map(t=>Xa(this,qo,"f").drawing.outline(t));Xa(this,qo,"f").addToSelected(s),this.refresh()};class Ja{constructor(t){$o.set(this,void 0),Qo.set(this,new eo("Remove",()=>this.press())),Ha(this,$o,t,"f"),this.domNode.style.marginTop="18px",Xa(this,$o,"f").selectedOutlines.addEventListener("change",()=>document.body.contains(this.domNode)?this.refresh():{}),this.refresh()}get domNode(){return Xa(this,Qo,"f").domNode}press(){let t=[...Xa(this,$o,"f").selectedOutlines];0!=t.length?(Xa(this,$o,"f").pushUndoStack(),t.forEach(t=>t.domNode.remove()),this.refresh()):this.refresh()}refresh(){0==[...Xa(this,$o,"f").selectedOutlines].length?(Xa(this,Qo,"f").disable(),Xa(this,Qo,"f").tooltip.textContent="No outlines are selected."):(Xa(this,Qo,"f").enable(),Xa(this,Qo,"f").tooltip.textContent="Remove the selected outlines from the drawing.")}}$o=new WeakMap,Qo=new WeakMap;class Ka{constructor(t){Zo.add(this),Jo.set(this,void 0),this.domNode=document.createElement("div"),Ko.set(this,document.createElement("p")),ta.set(this,new D),ea.set(this,new D),Ha(this,Jo,t,"f"),this.domNode.classList.add($s.Te),Xa(this,Ko,"f").classList.add($s.QB),Xa(this,Ko,"f").textContent="Send to:",this.domNode.append(Xa(this,Ko,"f")),Xa(this,ta,"f").domNode.addEventListener("click",()=>Xa(this,Zo,"m",na).call(this)),Xa(this,ta,"f").textContent="Front",Xa(this,ta,"f").domNode.style.marginLeft="24px",this.domNode.append(Xa(this,ta,"f").domNode),Xa(this,ea,"f").domNode.addEventListener("click",()=>Xa(this,Zo,"m",ra).call(this)),Xa(this,ea,"f").textContent="Back",Xa(this,ea,"f").domNode.style.marginLeft="28px",this.domNode.append(Xa(this,ea,"f").domNode),t.selectedOutlines.addEventListener("change",()=>document.body.contains(this.domNode)?this.refresh():{}),this.refresh()}refresh(){Xa(this,Zo,"m",ia).call(this),Xa(this,Zo,"m",sa).call(this)}}Jo=new WeakMap,Ko=new WeakMap,ta=new WeakMap,ea=new WeakMap,Zo=new WeakSet,na=function(){let t=[...Xa(this,Jo,"f").selectedOutlines];0!=t.length?(Xa(this,Jo,"f").pushUndoStack(),t.forEach(t=>(0,jr.bringToFront)(t.domNode)),this.refresh()):this.refresh()},ra=function(){let t=[...Xa(this,Jo,"f").selectedOutlines];0!=t.length?(Xa(this,Jo,"f").pushUndoStack(),t.forEach(t=>(0,jr.sendToBack)(t.domNode)),this.refresh()):this.refresh()},ia=function(){0==[...Xa(this,Jo,"f").selectedOutlines].length?(Xa(this,ta,"f").disable(),Xa(this,ta,"f").tooltip.textContent="No outlines are selected."):(Xa(this,ta,"f").enable(),Xa(this,ta,"f").tooltip.textContent="Bring the selected outlines to the front.")},sa=function(){0==[...Xa(this,Jo,"f").selectedOutlines].length?(Xa(this,ea,"f").disable(),Xa(this,ea,"f").tooltip.textContent="No outlines are selected."):(Xa(this,ea,"f").enable(),Xa(this,ea,"f").tooltip.textContent="Send selected outlines to the back.")};class th{constructor(t){oa.set(this,void 0),aa.set(this,void 0),ha.set(this,void 0),Ha(this,oa,t,"f"),Ha(this,aa,new uh(t,"r"),"f"),Ha(this,ha,new Z("Radius",Xa(this,aa,"f").domNode),"f"),Xa(this,ha,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Attribute/r",this.domNode.style.marginTop="24px",this.domNode.style.alignSelf="start",this.refresh()}get domNode(){return Xa(this,ha,"f").domNode}refresh(){Xa(this,aa,"f").refresh()}}oa=new WeakMap,aa=new WeakMap,ha=new WeakMap;class eh{constructor(t){ua.set(this,void 0),la.set(this,void 0),ca.set(this,void 0),Ha(this,ua,t,"f"),Ha(this,la,new uh(t,"fill"),"f"),Ha(this,ca,new Z("Fill",Xa(this,la,"f").domNode),"f"),Xa(this,ca,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Attribute/fill",h(this.domNode).css({marginTop:"10px",alignSelf:"start"}),this.refresh()}get domNode(){return Xa(this,ca,"f").domNode}refresh(){Xa(this,la,"f").refresh()}}ua=new WeakMap,la=new WeakMap,ca=new WeakMap;class nh{constructor(t){fa.add(this),da.set(this,void 0),pa.set(this,new ot),ma.set(this,void 0),ga.set(this,void 0),ya.set(this,void 0),Ha(this,da,t,"f"),Xa(this,pa,"f").domNode.addEventListener("input",()=>Xa(this,fa,"m",va).call(this)),Ha(this,ma,new ut("Fill Color",Xa(this,pa,"f").domNode),"f"),h(this.domNode).css({marginTop:"12px",alignSelf:"start"}),Xa(this,da,"f").selectedOutlines.addEventListener("change",()=>Ha(this,ga,void 0,"f")),Xa(this,pa,"f").domNode.addEventListener("focus",()=>Ha(this,ya,Xa(this,pa,"f").domNode.value,"f")),Xa(this,da,"f").selectedOutlines.addEventListener("change",()=>document.body.contains(this.domNode)?this.refresh():{}),new MutationObserver(()=>document.body.contains(this.domNode)?this.refresh():{}).observe(Xa(this,da,"f").drawing.domNode,{attributes:!0,attributeFilter:["fill"],subtree:!0}),this.refresh()}get domNode(){return Xa(this,ma,"f").domNode}refresh(){let t=[...Xa(this,da,"f").selectedOutlines];if(0!=t.length)try{let e=t.map(t=>window.getComputedStyle(t.domNode).fill).map(t=>new ie(t));Xa(this,pa,"f").domNode.value=(0,Lr.consensusValue)(e.map(t=>t.toHex().toLowerCase()))}catch(t){Xa(this,pa,"f").domNode.value="#000000"}else Xa(this,pa,"f").domNode.value="#000000"}}da=new WeakMap,pa=new WeakMap,ma=new WeakMap,ga=new WeakMap,ya=new WeakMap,fa=new WeakSet,va=function(){if(Xa(this,pa,"f").domNode.value===Xa(this,ya,"f"))return;let t=[...Xa(this,da,"f").selectedOutlines];0!=t.length?(t.every(t=>{var e;return(null===(e=t.domNode.getAttribute("fill"))||void 0===e?void 0:e.toLowerCase())===Xa(this,pa,"f").domNode.value.toLowerCase()})||((Xa(this,da,"f").undoStack.isEmpty()||Xa(this,da,"f").undoStack.peek()!==Xa(this,ga,"f"))&&(Xa(this,da,"f").pushUndoStack(),Ha(this,ga,Xa(this,da,"f").undoStack.peek(),"f")),t.forEach(t=>t.domNode.setAttribute("fill",Xa(this,pa,"f").domNode.value.toLowerCase()))),this.refresh()):this.refresh()};class rh{constructor(t){wa.set(this,void 0),ba.set(this,void 0),xa.set(this,void 0),Ha(this,wa,t,"f"),Ha(this,ba,new uh(t,"fill-opacity"),"f"),Ha(this,xa,new Z("Fill Opacity",Xa(this,ba,"f").domNode),"f"),Xa(this,xa,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Attribute/fill-opacity",h(this.domNode).css({marginTop:"12px",alignSelf:"start"}),this.refresh()}get domNode(){return Xa(this,xa,"f").domNode}refresh(){Xa(this,ba,"f").refresh()}}wa=new WeakMap,ba=new WeakMap,xa=new WeakMap;class ih{constructor(t){_a.set(this,void 0),Na.set(this,void 0),ka.set(this,void 0),Ha(this,_a,t,"f"),Ha(this,Na,new uh(t,"stroke"),"f"),Ha(this,ka,new Z("Stroke",Xa(this,Na,"f").domNode),"f"),Xa(this,ka,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Attribute/stroke",h(this.domNode).css({marginTop:"10px",alignSelf:"start"}),this.refresh()}get domNode(){return Xa(this,ka,"f").domNode}refresh(){Xa(this,Na,"f").refresh()}}_a=new WeakMap,Na=new WeakMap,ka=new WeakMap;class sh{constructor(t){Sa.add(this),Ma.set(this,void 0),Aa.set(this,new ot),Ea.set(this,void 0),Ca.set(this,void 0),Ta.set(this,void 0),Ha(this,Ma,t,"f"),Xa(this,Aa,"f").domNode.addEventListener("input",()=>Xa(this,Sa,"m",Oa).call(this)),Ha(this,Ea,new ut("Stroke Color",Xa(this,Aa,"f").domNode),"f"),h(this.domNode).css({marginTop:"12px",alignSelf:"start"}),Xa(this,Ma,"f").selectedOutlines.addEventListener("change",()=>Ha(this,Ca,void 0,"f")),Xa(this,Aa,"f").domNode.addEventListener("focus",()=>Ha(this,Ta,Xa(this,Aa,"f").domNode.value,"f")),Xa(this,Ma,"f").selectedOutlines.addEventListener("change",()=>document.body.contains(this.domNode)?this.refresh():{}),new MutationObserver(()=>document.body.contains(this.domNode)?this.refresh():{}).observe(Xa(this,Ma,"f").drawing.domNode,{attributes:!0,attributeFilter:["stroke"],subtree:!0}),this.refresh()}get domNode(){return Xa(this,Ea,"f").domNode}refresh(){let t=[...Xa(this,Ma,"f").selectedOutlines];if(0!=t.length)try{let e=t.map(t=>window.getComputedStyle(t.domNode).stroke).map(t=>new ie(t));Xa(this,Aa,"f").domNode.value=(0,Lr.consensusValue)(e.map(t=>t.toHex().toLowerCase()))}catch(t){Xa(this,Aa,"f").domNode.value="#000000"}else Xa(this,Aa,"f").domNode.value="#000000"}}Ma=new WeakMap,Aa=new WeakMap,Ea=new WeakMap,Ca=new WeakMap,Ta=new WeakMap,Sa=new WeakSet,Oa=function(){if(Xa(this,Aa,"f").domNode.value===Xa(this,Ta,"f"))return;let t=[...Xa(this,Ma,"f").selectedOutlines];0!=t.length?(t.every(t=>{var e;return(null===(e=t.domNode.getAttribute("stroke"))||void 0===e?void 0:e.toLowerCase())===Xa(this,Aa,"f").domNode.value.toLowerCase()})||((Xa(this,Ma,"f").undoStack.isEmpty()||Xa(this,Ma,"f").undoStack.peek()!==Xa(this,Ca,"f"))&&(Xa(this,Ma,"f").pushUndoStack(),Ha(this,Ca,Xa(this,Ma,"f").undoStack.peek(),"f")),t.forEach(t=>t.domNode.setAttribute("stroke",Xa(this,Aa,"f").domNode.value.toLowerCase()))),this.refresh()):this.refresh()};class oh{constructor(t){Wa.set(this,void 0),La.set(this,void 0),ja.set(this,void 0),Ha(this,Wa,t,"f"),Ha(this,La,new uh(t,"stroke-opacity"),"f"),Ha(this,ja,new Z("Stroke Opacity",Xa(this,La,"f").domNode),"f"),Xa(this,ja,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Attribute/stroke-opacity",h(this.domNode).css({marginTop:"12px",alignSelf:"start"}),this.refresh()}get domNode(){return Xa(this,ja,"f").domNode}refresh(){Xa(this,La,"f").refresh()}}Wa=new WeakMap,La=new WeakMap,ja=new WeakMap;class ah{constructor(t){Pa.set(this,void 0),Da.set(this,void 0),Ba.set(this,void 0),Ha(this,Pa,t,"f"),Ha(this,Da,new uh(t,"stroke-width"),"f"),Ha(this,Ba,new Z("Stroke Width",Xa(this,Da,"f").domNode),"f"),Xa(this,Ba,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Attribute/stroke-width",h(this.domNode).css({marginTop:"10px",alignSelf:"start"}),this.refresh()}get domNode(){return Xa(this,Ba,"f").domNode}refresh(){Xa(this,Da,"f").refresh()}}Pa=new WeakMap,Da=new WeakMap,Ba=new WeakMap;class hh{constructor(t){Ia.set(this,void 0),Ra.set(this,void 0),za.set(this,void 0),Ha(this,Ia,t,"f"),Ha(this,Ra,new uh(t,"stroke-dasharray"),"f"),Ha(this,za,new Z("Stroke Dash-Array",Xa(this,Ra,"f").domNode),"f"),Xa(this,za,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Attribute/stroke-dasharray",h(this.domNode).css({marginTop:"10px",alignSelf:"start"}),this.refresh()}get domNode(){return Xa(this,za,"f").domNode}refresh(){Xa(this,Ra,"f").refresh()}}Ia=new WeakMap,Ra=new WeakMap,za=new WeakMap;class uh{constructor(t,e){Fa.add(this),qa.set(this,void 0),Ua.set(this,void 0),Va.set(this,new F({onSubmit:()=>Xa(this,Fa,"m",Ga).call(this)})),Ha(this,qa,t,"f"),Ha(this,Ua,e,"f"),Xa(this,qa,"f").selectedOutlines.addEventListener("change",()=>document.body.contains(this.domNode)?this.refresh():{}),new MutationObserver(()=>document.body.contains(this.domNode)?this.refresh():{}).observe(Xa(this,qa,"f").drawing.domNode,{attributes:!0,subtree:!0}),this.refresh()}get domNode(){return Xa(this,Va,"f").domNode}refresh(){let t=[...Xa(this,qa,"f").selectedOutlines];try{Xa(this,Va,"f").domNode.value=(0,Lr.consensusValue)(t.map(t=>{var e;return null!==(e=t.domNode.getAttribute(Xa(this,Ua,"f")))&&void 0!==e?e:""}))}catch(t){Xa(this,Va,"f").domNode.value=""}}}qa=new WeakMap,Ua=new WeakMap,Va=new WeakMap,Fa=new WeakSet,Ga=function(){let t=Xa(this,Va,"f").domNode.value,e=[...Xa(this,qa,"f").selectedOutlines];0==e.length||e.every(e=>e.domNode.getAttribute(Xa(this,Ua,"f"))===t)||(Xa(this,qa,"f").pushUndoStack(),e.forEach(e=>e.domNode.setAttribute(Xa(this,Ua,"f"),t))),this.refresh()};var lh=n(313),ch={};ch.styleTagTransform=b(),ch.setAttributes=g(),ch.insert=p().bind(null,"head"),ch.domAPI=f(),ch.insertStyleElement=v(),l()(lh.Ay,ch),lh.Ay&&lh.Ay.locals&&lh.Ay.locals;var fh=n(933),dh={};dh.styleTagTransform=b(),dh.setAttributes=g(),dh.insert=p().bind(null,"head"),dh.domAPI=f(),dh.insertStyleElement=v(),l()(fh.Ay,dh),fh.Ay&&fh.Ay.locals&&fh.Ay.locals;var ph,mh,gh,yh,vh,wh,bh,xh,_h=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},Nh=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 kh{constructor(t,e){ph.add(this),mh.set(this,void 0),gh.set(this,void 0),this.domNode=document.createElement("div"),yh.set(this,document.createElement("p")),this.buttons={Front:new D("Front",()=>Nh(this,ph,"m",vh).call(this)),Back:new D("Back",()=>Nh(this,ph,"m",wh).call(this))},bh.set(this,{refresh:[]}),_h(this,mh,t,"f"),_h(this,gh,e,"f"),this.domNode.classList.add(fh.Te),Nh(this,yh,"f").classList.add(fh.Pf),Nh(this,yh,"f").textContent="Send to:",this.domNode.append(Nh(this,yh,"f")),this.buttons.Front.domNode.style.marginLeft="24px",this.domNode.append(this.buttons.Front.domNode),this.buttons.Back.domNode.style.marginLeft="28px",this.domNode.append(this.buttons.Back.domNode),t.addEventListener("change",()=>{!document.body.contains(this.domNode)||this.refresh()}),this.refresh()}refresh(){let t=[...Nh(this,mh,"f")];0==t.length?this.buttons.Front.disable():this.buttons.Front.enable(),0==t.length?this.buttons.Back.disable():this.buttons.Back.enable(),Nh(this,ph,"m",xh).call(this,"refresh")}addEventListener(t,e){Nh(this,bh,"f")[t].push(e)}removeEventListener(t,e){Nh(this,bh,"f")[t]=Nh(this,bh,"f")[t].filter(t=>t!==e)}}mh=new WeakMap,gh=new WeakMap,yh=new WeakMap,bh=new WeakMap,ph=new WeakSet,vh=function(){let t=[...Nh(this,mh,"f")];0!=t.length?(Nh(this,gh,"f").pushUndoStack(),t.forEach(t=>(0,jr.bringToFront)(t.domNode)),this.refresh()):this.refresh()},wh=function(){let t=[...Nh(this,mh,"f")];0!=t.length?(Nh(this,gh,"f").pushUndoStack(),t.forEach(t=>(0,jr.sendToBack)(t.domNode)),this.refresh()):this.refresh()},xh=function(t){Nh(this,bh,"f")[t].forEach(t=>t())};var Sh,Mh,Ah,Eh,Ch,Th,Oh,Wh,Lh,jh,Ph,Dh,Bh,Ih,Rh,zh,Fh,qh,Uh,Vh,Gh,Hh,Xh,Yh,$h,Qh,Zh,Jh,Kh,tu,eu,nu,ru,iu,su,ou,au,hu,uu,lu,cu,fu,du,pu,mu,gu,yu,vu,wu,bu,xu,_u,Nu,ku,Su,Mu,Au,Eu,Cu,Tu=n(854),Ou=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},Wu=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 Lu{constructor(t){Sh.add(this),Mh.set(this,void 0),this.domNode=document.createElement("div"),Ah.set(this,new C("Numberings",()=>this.toggle())),Eh.set(this,document.createElement("div")),Ch.set(this,void 0),Th.set(this,void 0),Oh.set(this,void 0),Wh.set(this,void 0),Lh.set(this,void 0),Ou(this,Mh,t,"f"),this.domNode.classList.add(lh.HS),this.domNode.append(Wu(this,Ah,"f").domNode),Wu(this,Eh,"f").classList.add(lh.Qs),this.domNode.append(Wu(this,Eh,"f")),Ou(this,Ch,new ju(t),"f"),Wu(this,Eh,"f").append(Wu(this,Ch,"f").domNode),Ou(this,Th,new Pu(t),"f"),Wu(this,Eh,"f").append(Wu(this,Th,"f").domNode),Ou(this,Oh,new Du(t),"f"),Wu(this,Eh,"f").append(Wu(this,Oh,"f").domNode),Ou(this,Wh,new Bu(t),"f"),Wu(this,Eh,"f").append(Wu(this,Wh,"f").domNode),Ou(this,Lh,new Iu(t),"f"),Wu(this,Eh,"f").append(Wu(this,Lh,"f").domNode)}toggle(){this.isCollapsed()?this.expand():this.collapse()}isCollapsed(){return this.domNode.classList.contains(lh.yZ)}collapse(){this.domNode.classList.add(lh.yZ)}expand(){this.domNode.classList.remove(lh.yZ)}refresh(){Wu(this,Sh,"a",jh).forEach(t=>t.refresh())}}Mh=new WeakMap,Ah=new WeakMap,Eh=new WeakMap,Ch=new WeakMap,Th=new WeakMap,Oh=new WeakMap,Wh=new WeakMap,Lh=new WeakMap,Sh=new WeakSet,jh=function(){return[Wu(this,Ch,"f"),Wu(this,Th,"f"),Wu(this,Oh,"f"),Wu(this,Wh,"f"),Wu(this,Lh,"f")]};class ju{constructor(t){Ph.set(this,void 0),this.domNode=document.createElement("p"),Dh.set(this,document.createElement("span")),Bh.set(this,document.createElement("span")),Ou(this,Ph,t,"f"),this.domNode.classList.add(lh.vM),Wu(this,Dh,"f").style.fontWeight="700",this.domNode.append(Wu(this,Dh,"f"),Wu(this,Bh,"f")),Wu(this,Ph,"f").selectedNumberings.addEventListener("change",()=>{!document.body.contains(this.domNode)||this.refresh()}),this.refresh()}refresh(){let t=[...Wu(this,Ph,"f").selectedNumberings].length;Wu(this,Dh,"f").textContent=`${t}`,Wu(this,Bh,"f").textContent=1==t?" numbering is selected.":" numberings are selected."}}Ph=new WeakMap,Dh=new WeakMap,Bh=new WeakMap;class Pu{constructor(t){Ih.add(this),Rh.set(this,void 0),this.domNode=document.createElement("div"),zh.set(this,document.createElement("p")),Fh.set(this,{All:new D("All",()=>Wu(this,Ih,"m",Uh).call(this)),Numbering:new D("Numbering",()=>Wu(this,Ih,"m",Vh).call(this)),None:new D("None",()=>Wu(this,Ih,"m",Gh).call(this))}),qh.set(this,void 0),Ou(this,Rh,t,"f"),this.domNode.classList.add(lh.vw),Wu(this,zh,"f").classList.add(lh.KI),Wu(this,zh,"f").textContent="Select:",this.domNode.append(Wu(this,zh,"f")),Wu(this,Fh,"f").All.domNode.style.marginLeft="20px",Wu(this,Fh,"f").Numbering.domNode.style.marginLeft="17px",Wu(this,Fh,"f").None.domNode.style.marginLeft="17px",this.domNode.append(...["All","Numbering","None"].map(t=>Wu(this,Fh,"f")[t].domNode)),t.selectedNumberings.addEventListener("change",()=>{!document.body.contains(this.domNode)||this.refresh()}),Ou(this,qh,new MutationObserver(()=>{!document.body.contains(this.domNode)||this.refresh()}),"f"),Wu(this,qh,"f").observe(t.drawing.domNode,{childList:!0,subtree:!0}),this.refresh()}refresh(){let t=[...Wu(this,Rh,"f").drawing.numberings],e=new Set(Wu(this,Rh,"f").selectedNumberings);0==t.length?(Wu(this,Fh,"f").All.disable(),Wu(this,Fh,"f").All.tooltip.textContent="There are no numberings in the drawing."):e.size==t.length?(Wu(this,Fh,"f").All.disable(),Wu(this,Fh,"f").All.tooltip.textContent="All numberings are already selected."):(Wu(this,Fh,"f").All.enable(),Wu(this,Fh,"f").All.tooltip.textContent="Select all numberings.");let n=new Set(Wu(this,Rh,"f").selectedBases),r=t.filter(t=>n.has(t.owner));0==n.size?(Wu(this,Fh,"f").Numbering.disable(),Wu(this,Fh,"f").Numbering.tooltip.textContent="No bases are selected."):0==r.length?(Wu(this,Fh,"f").Numbering.disable(),Wu(this,Fh,"f").Numbering.tooltip.textContent="None of the selected bases are numbered."):r.every(t=>e.has(t))?(Wu(this,Fh,"f").Numbering.disable(),Wu(this,Fh,"f").Numbering.tooltip.textContent="All numberings numbering the selected bases are already selected."):(Wu(this,Fh,"f").Numbering.enable(),Wu(this,Fh,"f").Numbering.tooltip.textContent="Select numberings numbering the selected bases."),0==e.size?(Wu(this,Fh,"f").None.disable(),Wu(this,Fh,"f").None.tooltip.textContent="No numberings are selected."):(Wu(this,Fh,"f").None.enable(),Wu(this,Fh,"f").None.tooltip.textContent="Deselect all numberings.")}}Rh=new WeakMap,zh=new WeakMap,Fh=new WeakMap,qh=new WeakMap,Ih=new WeakSet,Uh=function(){Wu(this,Rh,"f").addToSelected([...Wu(this,Rh,"f").drawing.numberings])},Vh=function(){let t=new Set(Wu(this,Rh,"f").selectedBases);Wu(this,Rh,"f").addToSelected([...Wu(this,Rh,"f").drawing.numberings].filter(e=>t.has(e.owner)))},Gh=function(){Wu(this,Rh,"f").removeFromSelected([...Wu(this,Rh,"f").drawing.numberings])};class Du{constructor(t){Hh.add(this),Xh.set(this,void 0),this.domNode=document.createElement("div"),Yh.set(this,new eo("Add",()=>Wu(this,Hh,"m",Jh).call(this))),$h.set(this,new tt),Qh.set(this,new rt("Only add missing numberings",Wu(this,$h,"f").domNode)),Zh.set(this,void 0),Ou(this,Xh,t,"f"),this.domNode.classList.add(lh.Ol),this.domNode.append(Wu(this,Yh,"f").domNode),Wu(this,$h,"f").domNode.checked=!0,Wu(this,Qh,"f").domNode.style.margin="10px 0px 0px 10px",Wu(this,Qh,"f").domNode.style.alignSelf="start",this.domNode.append(Wu(this,Qh,"f").domNode),t.selectedBases.addEventListener("change",()=>{!document.body.contains(this.domNode)||this.refresh()}),Ou(this,Zh,new MutationObserver(()=>{!document.body.contains(this.domNode)||this.refresh()}),"f"),Wu(this,Zh,"f").observe(t.drawing.domNode,{childList:!0,subtree:!0}),Wu(this,$h,"f").domNode.addEventListener("change",()=>this.refresh()),this.refresh()}refresh(){let t=[...Wu(this,Xh,"f").selectedBases],e=[...Wu(this,Xh,"f").drawing.numberings],n=new Set(e.map(t=>t.owner)),r=t.filter(t=>!n.has(t));0==t.length?(Wu(this,Yh,"f").disable(),Wu(this,Yh,"f").tooltip.textContent="No bases are selected."):Wu(this,$h,"f").domNode.checked&&0==r.length?(Wu(this,Yh,"f").disable(),Wu(this,Yh,"f").tooltip.textContent="All selected bases are already numbered."):(Wu(this,Yh,"f").enable(),Wu(this,Yh,"f").tooltip.textContent="Number the selected bases.")}}Xh=new WeakMap,Yh=new WeakMap,$h=new WeakMap,Qh=new WeakMap,Zh=new WeakMap,Hh=new WeakSet,Jh=function(){let t=[...Wu(this,Xh,"f").drawing.bases],e=[...Wu(this,Xh,"f").selectedBases];if(0==e.length)return;let n=[...Wu(this,Xh,"f").drawing.numberings],r=new Set(n.map(t=>t.owner)),i=e.filter(t=>!r.has(t)),s=Wu(this,$h,"f").domNode.checked?i:e;if(0==s.length)return;Wu(this,Xh,"f").pushUndoStack();let o=s.flatMap(e=>{let n=t.indexOf(e)+1;return Wu(this,Xh,"f").drawing.number(e,n)});Wu(this,Xh,"f").addToSelected(o),this.refresh()};class Bu{constructor(t){Kh.set(this,void 0),tu.set(this,new eo("Remove",()=>this.press())),Ou(this,Kh,t,"f"),this.domNode.style.marginTop="18px",Wu(this,Kh,"f").selectedOutlines.addEventListener("change",()=>{!document.body.contains(this.domNode)||this.refresh()}),this.refresh()}get domNode(){return Wu(this,tu,"f").domNode}press(){let t=[...Wu(this,Kh,"f").selectedNumberings];0!=t.length?(Wu(this,Kh,"f").pushUndoStack(),t.forEach(t=>t.domNode.remove()),this.refresh()):this.refresh()}refresh(){0==[...Wu(this,Kh,"f").selectedNumberings].length?(Wu(this,tu,"f").disable(),Wu(this,tu,"f").tooltip.textContent="No numberings are selected."):(Wu(this,tu,"f").enable(),Wu(this,tu,"f").tooltip.textContent="Remove the selected numberings from the drawing.")}}Kh=new WeakMap,tu=new WeakMap;class Iu{constructor(t){eu.add(this),nu.set(this,void 0),this.domNode=document.createElement("div"),ru.set(this,void 0),iu.set(this,void 0),su.set(this,void 0),ou.set(this,void 0),Ou(this,nu,t,"f"),this.domNode.classList.add(lh.y1),t.selectedNumberings.addEventListener("change",()=>{document.body.contains(this.domNode)&&([...t.selectedNumberings].length>0?this.show():this.hide())}),Ou(this,ru,new Ru(t),"f"),this.domNode.append(Wu(this,ru,"f").domNode),Ou(this,iu,new zu(t),"f"),this.domNode.append(Wu(this,iu,"f").domNode),Ou(this,su,new Fu(t),"f"),this.domNode.append(Wu(this,su,"f").domNode),Ou(this,ou,new Uu(t),"f"),this.domNode.append(Wu(this,ou,"f").domNode)}show(){this.domNode.style.display="flex"}hide(){this.domNode.style.display="none"}refresh(){Wu(this,eu,"a",au).forEach(t=>t.refresh()),[...Wu(this,nu,"f").selectedNumberings].length>0?this.show():this.hide()}}nu=new WeakMap,ru=new WeakMap,iu=new WeakMap,su=new WeakMap,ou=new WeakMap,eu=new WeakSet,au=function(){return[Wu(this,ru,"f"),Wu(this,iu,"f"),Wu(this,su,"f"),Wu(this,ou,"f")]};class Ru{constructor(t){hu.add(this),uu.set(this,void 0),lu.set(this,void 0),Ou(this,uu,t,"f");let e=t.selectedNumberings;Ou(this,lu,new kh(e,t),"f"),this.domNode.style.marginTop="26px",Wu(this,lu,"f").addEventListener("refresh",()=>Wu(this,hu,"m",cu).call(this)),this.refresh()}get domNode(){return Wu(this,lu,"f").domNode}refresh(){Wu(this,lu,"f").refresh()}}uu=new WeakMap,lu=new WeakMap,hu=new WeakSet,cu=function(){let t=[...Wu(this,uu,"f").selectedNumberings];Wu(this,lu,"f").buttons.Front.tooltip.textContent=0==t.length?"No numberings are selected.":"Bring the selected numberings to the front.",Wu(this,lu,"f").buttons.Back.tooltip.textContent=0==t.length?"No numberings are selected.":"Send the selected numberings to the back."};class zu{constructor(t){fu.add(this),du.set(this,void 0),pu.set(this,new F({onSubmit:()=>Wu(this,fu,"m",gu).call(this)})),mu.set(this,void 0),Ou(this,du,t,"f"),Ou(this,mu,new Z("Text Content",Wu(this,pu,"f").domNode),"f"),Wu(this,mu,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/API/Node/textContent",this.domNode.style.marginTop="23px",this.domNode.style.alignSelf="start",Wu(this,du,"f").selectedNumberings.addEventListener("change",()=>{!document.body.contains(this.domNode)||this.refresh()}),new MutationObserver(()=>{!document.body.contains(this.domNode)||this.refresh()}).observe(Wu(this,du,"f").drawing.domNode,{characterData:!0,subtree:!0}),this.refresh()}get domNode(){return Wu(this,mu,"f").domNode}refresh(){let t=[...Wu(this,du,"f").selectedNumberings];try{Wu(this,pu,"f").domNode.value=(0,Lr.consensusValue)(t.map(t=>t.domNode.textContent))}catch(t){Wu(this,pu,"f").domNode.value=""}}}du=new WeakMap,pu=new WeakMap,mu=new WeakMap,fu=new WeakSet,gu=function(){var t;let e=null!==(t=Wu(this,pu,"f").domNode.value)&&void 0!==t?t:"";if(e=e.trim(),!e)return void this.refresh();let n=[...Wu(this,du,"f").selectedNumberings];0==n.length||n.every(t=>t.domNode.textContent===e)||(Wu(this,du,"f").pushUndoStack(),n.forEach(t=>{t.domNode.textContent=e,t.displacement.magnitude+=1,t.displacement.magnitude-=1})),this.refresh()};class Fu{constructor(t){yu.add(this),vu.set(this,void 0),this.domNode=document.createElement("div"),wu.set(this,{x:new F({onSubmit:()=>Wu(this,yu,"m",xu).call(this,"x")}),y:new F({onSubmit:()=>Wu(this,yu,"m",xu).call(this,"y")}),magnitude:new F({onSubmit:()=>Wu(this,yu,"m",xu).call(this,"magnitude")}),direction:new F({onSubmit:()=>Wu(this,yu,"m",xu).call(this,"direction")})}),bu.set(this,void 0),Ou(this,vu,t,"f"),this.domNode.classList.add(lh.m2),Ou(this,bu,{x:new Z("X",Wu(this,wu,"f").x.domNode),y:new Z("Y",Wu(this,wu,"f").y.domNode),magnitude:new Z("Magnitude",Wu(this,wu,"f").magnitude.domNode),direction:new Z("Direction",Wu(this,wu,"f").direction.domNode)},"f"),qu.forEach(t=>{Wu(this,bu,"f")[t].domNode.style.marginTop="10px",Wu(this,bu,"f")[t].domNode.style.alignSelf="start"}),Wu(this,bu,"f").magnitude.domNode.style.marginTop="14px",this.domNode.append(...qu.map(t=>Wu(this,bu,"f")[t].domNode)),Wu(this,vu,"f").selectedNumberings.addEventListener("change",()=>{!document.body.contains(this.domNode)||this.refresh()}),new MutationObserver(()=>{!document.body.contains(this.domNode)||this.refresh()}).observe(Wu(this,vu,"f").drawing.domNode,{attributes:!0,attributeFilter:["data-displacement"],subtree:!0}),this.refresh()}refresh(){let t=[...Wu(this,vu,"f").selectedNumberings];qu.forEach(e=>{try{Wu(this,wu,"f")[e].domNode.value=`${(0,Lr.consensusValue)(t.map(t=>t.displacement[e]))}`}catch(t){Wu(this,wu,"f")[e].domNode.value=""}})}}vu=new WeakMap,wu=new WeakMap,bu=new WeakMap,yu=new WeakSet,xu=function(t){let e=Number.parseFloat(Wu(this,wu,"f")[t].domNode.value);if(!(0,Tu.isFiniteNumber)(e))return void this.refresh();let n=[...Wu(this,vu,"f").selectedNumberings];0!=n.length?(n.every(n=>n.displacement[t]===e)||(Wu(this,vu,"f").pushUndoStack(),n.forEach(n=>n.displacement[t]=e)),this.refresh()):this.refresh()};const qu=["x","y","magnitude","direction"];class Uu{constructor(t){_u.set(this,void 0),Nu.set(this,void 0),ku.set(this,void 0),Ou(this,_u,t,"f"),Ou(this,Nu,new Vu("fill",t),"f"),Ou(this,ku,new Z("Fill",Wu(this,Nu,"f").domNode),"f"),Wu(this,ku,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/fill",this.domNode.style.marginTop="14px",this.domNode.style.alignSelf="start",this.refresh()}get domNode(){return Wu(this,ku,"f").domNode}refresh(){Wu(this,Nu,"f").refresh()}}_u=new WeakMap,Nu=new WeakMap,ku=new WeakMap;class Vu{constructor(t,e){Su.add(this),Mu.set(this,void 0),Au.set(this,void 0),Eu.set(this,new F({onSubmit:()=>Wu(this,Su,"m",Cu).call(this)})),Ou(this,Mu,t,"f"),Ou(this,Au,e,"f"),Wu(this,Au,"f").selectedNumberings.addEventListener("change",()=>{!document.body.contains(this.domNode)||this.refresh()}),new MutationObserver(()=>{!document.body.contains(this.domNode)||this.refresh()}).observe(Wu(this,Au,"f").drawing.domNode,{attributes:!0,subtree:!0}),this.refresh()}get domNode(){return Wu(this,Eu,"f").domNode}refresh(){let t=[...Wu(this,Au,"f").selectedNumberings];try{Wu(this,Eu,"f").domNode.value=(0,Lr.consensusValue)(t.map(t=>{var e;return null!==(e=t.domNode.getAttribute(Wu(this,Mu,"f")))&&void 0!==e?e:""}))}catch(t){Wu(this,Eu,"f").domNode.value=""}}}Mu=new WeakMap,Au=new WeakMap,Eu=new WeakMap,Su=new WeakSet,Cu=function(){let t=Wu(this,Eu,"f").domNode.value,e=[...Wu(this,Au,"f").selectedNumberings];0!=e.length?(e.every(e=>e.domNode.getAttribute(Wu(this,Mu,"f"))===t)||(Wu(this,Au,"f").pushUndoStack(),e.forEach(e=>{e.domNode.setAttribute(Wu(this,Mu,"f"),t),e.displacement.magnitude+=1,e.displacement.magnitude-=1})),this.refresh()):this.refresh()};var Gu=n(401),Hu={};Hu.styleTagTransform=b(),Hu.setAttributes=g(),Hu.insert=p().bind(null,"head"),Hu.domAPI=f(),Hu.insertStyleElement=v(),l()(Gu.Ay,Hu),Gu.Ay&&Gu.Ay.locals&&Gu.Ay.locals;var Xu,Yu,$u,Qu,Zu,Ju,Ku,tl,el=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},nl=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 rl{constructor(t,e,n){Xu.add(this),Yu.set(this,void 0),$u.set(this,void 0),Qu.set(this,void 0),Zu.set(this,new F({onSubmit:()=>nl(this,Xu,"m",Ku).call(this)})),Ju.set(this,{edit:[]}),el(this,Yu,t,"f"),el(this,$u,e,"f"),el(this,Qu,n,"f"),e.addEventListener("change",()=>{!document.body.contains(this.domNode)||this.refresh()}),new MutationObserver(()=>{!document.body.contains(this.domNode)||this.refresh()}).observe(n.drawing.domNode,{attributes:!0,attributeFilter:[t],subtree:!0}),this.refresh()}get domNode(){return nl(this,Zu,"f").domNode}refresh(){try{nl(this,Zu,"f").domNode.value=(0,Lr.consensusValue)([...nl(this,$u,"f")].map(t=>{var e;return null!==(e=t.domNode.getAttribute(nl(this,Yu,"f")))&&void 0!==e?e:""}))}catch(t){nl(this,Zu,"f").domNode.value=""}}addEventListener(t,e){nl(this,Ju,"f")[t].push(e)}}Yu=new WeakMap,$u=new WeakMap,Qu=new WeakMap,Zu=new WeakMap,Ju=new WeakMap,Xu=new WeakSet,Ku=function(){let t=nl(this,Zu,"f").domNode.value,e=[...nl(this,$u,"f")];0==e.length||e.every(e=>e.domNode.getAttribute(nl(this,Yu,"f"))===t)?this.refresh():(nl(this,Qu,"f").pushUndoStack(),e.forEach(e=>e.domNode.setAttribute(nl(this,Yu,"f"),t)),nl(this,Xu,"m",tl).call(this,"edit"))},tl=function(t){nl(this,Ju,"f")[t].forEach(t=>t())};var il,sl,ol,al,hl,ul,ll,cl,fl=n(543),dl=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},pl=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 ml{constructor(t,e,n){il.add(this),sl.set(this,void 0),ol.set(this,void 0),al.set(this,void 0),hl.set(this,new ot),ul.set(this,void 0),ll.set(this,void 0),dl(this,sl,t,"f"),dl(this,ol,e,"f"),dl(this,al,n,"f"),pl(this,hl,"f").domNode.addEventListener("input",()=>pl(this,il,"m",cl).call(this)),e.addEventListener("change",()=>dl(this,ul,void 0,"f")),pl(this,hl,"f").domNode.addEventListener("focus",()=>dl(this,ll,pl(this,hl,"f").domNode.value,"f")),e.addEventListener("change",()=>{!document.body.contains(this.domNode)||this.refresh()}),new MutationObserver(()=>{!document.body.contains(this.domNode)||this.refresh()}).observe(n.drawing.domNode,{attributes:!0,attributeFilter:[t],subtree:!0}),this.refresh()}get domNode(){return pl(this,hl,"f").domNode}refresh(){let t=[...pl(this,ol,"f")];if(0!=t.length)try{let e=fl.camelCase(pl(this,sl,"f")),n=t.map(t=>window.getComputedStyle(t.domNode)[e]).map(t=>new ie(t));pl(this,hl,"f").domNode.value=(0,Lr.consensusValue)(n.map(t=>t.toHex().toLowerCase()))}catch(t){pl(this,hl,"f").domNode.value="#000000"}else pl(this,hl,"f").domNode.value="#000000"}}sl=new WeakMap,ol=new WeakMap,al=new WeakMap,hl=new WeakMap,ul=new WeakMap,ll=new WeakMap,il=new WeakSet,cl=function(){if(pl(this,hl,"f").domNode.value===pl(this,ll,"f"))return;let t=[...pl(this,ol,"f")];0!=t.length?t.every(t=>{var e;return(null===(e=t.domNode.getAttribute(pl(this,sl,"f")))||void 0===e?void 0:e.toLowerCase())===pl(this,hl,"f").domNode.value.toLowerCase()})?this.refresh():((pl(this,al,"f").undoStack.isEmpty()||pl(this,al,"f").undoStack.peek()!==pl(this,ul,"f"))&&(pl(this,al,"f").pushUndoStack(),dl(this,ul,pl(this,al,"f").undoStack.peek(),"f")),t.forEach(t=>t.domNode.setAttribute(pl(this,sl,"f"),pl(this,hl,"f").domNode.value.toLowerCase()))):this.refresh()};var gl,yl,vl,wl,bl,xl,_l,Nl,kl,Sl,Ml,Al,El,Cl,Tl,Ol,Wl,Ll,jl,Pl,Dl,Bl,Il,Rl,zl,Fl,ql,Ul,Vl,Gl,Hl,Xl,Yl,$l,Ql,Zl,Jl,Kl,tc,ec,nc,rc,ic,sc,oc,ac,hc,uc,lc,cc,fc,dc,pc,mc,gc,yc,vc,wc,bc,xc,_c,Nc,kc,Sc,Mc=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},Ac=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 Ec{constructor(t){gl.add(this),yl.set(this,void 0),this.domNode=document.createElement("div"),vl.set(this,new C("Primary Bonds",()=>this.toggle())),wl.set(this,document.createElement("div")),bl.set(this,void 0),xl.set(this,void 0),_l.set(this,document.createElement("div")),Nl.set(this,void 0),kl.set(this,void 0),Sl.set(this,void 0),Ml.set(this,void 0),Al.set(this,void 0),El.set(this,void 0),Cl.set(this,void 0),Tl.set(this,void 0),Ol.set(this,void 0),Mc(this,yl,t,"f"),this.domNode.classList.add(Gu.gP),this.domNode.append(Ac(this,vl,"f").domNode),Ac(this,wl,"f").classList.add(Gu.Qs),this.domNode.append(Ac(this,wl,"f")),Mc(this,bl,new Cc(t),"f"),Ac(this,wl,"f").append(Ac(this,bl,"f").domNode),Mc(this,xl,new Tc(t),"f"),Ac(this,wl,"f").append(Ac(this,xl,"f").domNode),Ac(this,_l,"f").classList.add(Gu.eB),Ac(this,wl,"f").append(Ac(this,_l,"f")),t.selectedPrimaryBonds.addEventListener("change",()=>{document.body.contains(this.domNode)&&(0==[...t.selectedPrimaryBonds].length?Ac(this,gl,"m",Ll).call(this):Ac(this,gl,"m",jl).call(this))}),Mc(this,Nl,new Oc(t),"f"),Ac(this,_l,"f").append(Ac(this,Nl,"f").domNode),Mc(this,kl,new Wc(t),"f"),Ac(this,_l,"f").append(Ac(this,kl,"f").domNode),Mc(this,Sl,new Lc(t),"f"),Ac(this,_l,"f").append(Ac(this,Sl,"f").domNode),Mc(this,Ml,new jc(t),"f"),Ac(this,_l,"f").append(Ac(this,Ml,"f").domNode),Mc(this,Al,new Pc(t),"f"),Ac(this,_l,"f").append(Ac(this,Al,"f").domNode),Mc(this,El,new Dc(t),"f"),Ac(this,_l,"f").append(Ac(this,El,"f").domNode),Mc(this,Cl,new Bc(t),"f"),Ac(this,_l,"f").append(Ac(this,Cl,"f").domNode),Mc(this,Tl,new Ic(t),"f"),Ac(this,_l,"f").append(Ac(this,Tl,"f").domNode),Mc(this,Ol,new Rc(t),"f"),Ac(this,_l,"f").append(Ac(this,Ol,"f").domNode),this.collapse(),this.refresh()}isCollapsed(){return this.domNode.classList.contains(Gu.yZ)}collapse(){this.domNode.classList.add(Gu.yZ),Ac(this,vl,"f").caret.pointRight()}expand(){this.domNode.classList.remove(Gu.yZ),Ac(this,vl,"f").caret.pointDown()}toggle(){this.isCollapsed()?this.expand():this.collapse()}refresh(){Ac(this,gl,"a",Wl).forEach(t=>t.refresh()),0==[...Ac(this,yl,"f").selectedPrimaryBonds].length?Ac(this,gl,"m",Ll).call(this):Ac(this,gl,"m",jl).call(this)}}yl=new WeakMap,vl=new WeakMap,wl=new WeakMap,bl=new WeakMap,xl=new WeakMap,_l=new WeakMap,Nl=new WeakMap,kl=new WeakMap,Sl=new WeakMap,Ml=new WeakMap,Al=new WeakMap,El=new WeakMap,Cl=new WeakMap,Tl=new WeakMap,Ol=new WeakMap,gl=new WeakSet,Wl=function(){return[Ac(this,bl,"f"),Ac(this,xl,"f"),Ac(this,Nl,"f"),Ac(this,kl,"f"),Ac(this,Sl,"f"),Ac(this,Ml,"f"),Ac(this,Al,"f"),Ac(this,El,"f"),Ac(this,Cl,"f"),Ac(this,Tl,"f"),Ac(this,Ol,"f")]},Ll=function(){Ac(this,_l,"f").style.display="none"},jl=function(){Ac(this,_l,"f").style.display="flex"};class Cc{constructor(t){Pl.set(this,void 0),this.domNode=document.createElement("p"),Dl.set(this,document.createElement("span")),Bl.set(this,document.createElement("span")),Mc(this,Pl,t,"f"),this.domNode.classList.add(Gu.vM),Ac(this,Dl,"f").style.fontWeight="700",this.domNode.append(Ac(this,Dl,"f"),Ac(this,Bl,"f")),Ac(this,Pl,"f").selectedPrimaryBonds.addEventListener("change",()=>{!document.body.contains(this.domNode)||this.refresh()}),this.refresh()}refresh(){let t=[...Ac(this,Pl,"f").selectedPrimaryBonds].length;Ac(this,Dl,"f").textContent=`${t}`,Ac(this,Bl,"f").textContent=1==t?" primary bond is selected.":" primary bonds are selected."}}Pl=new WeakMap,Dl=new WeakMap,Bl=new WeakMap;class Tc{constructor(t){Il.add(this),Rl.set(this,void 0),this.domNode=document.createElement("div"),zl.set(this,new C("Select:",()=>this.toggle())),Fl.set(this,{All:new D("All",()=>Ac(this,Il,"m",Hl).call(this)),None:new D("None",()=>Ac(this,Il,"m",Xl).call(this)),Between:new D("Between",()=>Ac(this,Il,"m",Yl).call(this)),Connecting:new D("Connecting",()=>Ac(this,Il,"m",Ql).call(this))}),ql.set(this,document.createElement("div")),Ul.set(this,document.createElement("div")),Vl.set(this,document.createElement("div")),Gl.set(this,void 0),Mc(this,Rl,t,"f"),this.domNode.classList.add(Gu.vw),this.domNode.append(Ac(this,zl,"f").domNode),h(Ac(this,ql,"f")).css({marginTop:"1.5px",display:"flex",flexDirection:"column",gap:"10px"}),this.domNode.append(Ac(this,ql,"f")),h(Ac(this,Ul,"f")).css({display:"flex",flexDirection:"row",gap:"27px"}),Ac(this,Ul,"f").append(...["All","None"].map(t=>Ac(this,Fl,"f")[t].domNode)),Ac(this,ql,"f").append(Ac(this,Ul,"f")),h(Ac(this,Vl,"f")).css({display:"flex",flexDirection:"row",gap:"20px"}),Ac(this,Vl,"f").append(...["Between","Connecting"].map(t=>Ac(this,Fl,"f")[t].domNode)),Ac(this,ql,"f").append(Ac(this,Vl,"f")),Ac(this,Vl,"f").style.display="none",Ac(this,zl,"f").caret.pointRight(),t.selectedPrimaryBonds.addEventListener("change",()=>document.body.contains(this.domNode)?this.refresh():{}),t.selectedBases.addEventListener("change",()=>document.body.contains(this.domNode)?this.refresh():{}),Mc(this,Gl,new MutationObserver(()=>document.body.contains(this.domNode)?this.refresh():{}),"f"),Ac(this,Gl,"f").observe(t.drawing.domNode,{childList:!0,subtree:!0}),this.refresh()}toggle(){this.isCollapsed()?this.expand():this.collapse()}isCollapsed(){return"none"==Ac(this,Vl,"f").style.display}collapse(){Ac(this,Vl,"f").style.display="none",Ac(this,zl,"f").caret.pointRight()}expand(){Ac(this,Vl,"f").style.display="flex",Ac(this,zl,"f").caret.pointDown()}refresh(){let t=[...Ac(this,Rl,"f").drawing.primaryBonds],e=new Set(Ac(this,Rl,"f").selectedPrimaryBonds);0==t.length?(Ac(this,Fl,"f").All.disable(),Ac(this,Fl,"f").All.tooltip.textContent="There are no primary bonds in the drawing."):t.every(t=>e.has(t))?(Ac(this,Fl,"f").All.disable(),Ac(this,Fl,"f").All.tooltip.textContent="All primary bonds are already selected."):(Ac(this,Fl,"f").All.enable(),Ac(this,Fl,"f").All.tooltip.textContent="Select all primary bonds."),0==e.size?(Ac(this,Fl,"f").None.disable(),Ac(this,Fl,"f").None.tooltip.textContent="No primary bonds are selected."):(Ac(this,Fl,"f").None.enable(),Ac(this,Fl,"f").None.tooltip.textContent="Deselect all primary bonds.");let n=[...Ac(this,Rl,"f").selectedBases],r=Ac(this,Il,"a",$l);0==n.length?(Ac(this,Fl,"f").Between.disable(),Ac(this,Fl,"f").Between.tooltip.textContent="No bases are selected."):r.every(t=>e.has(t))?(Ac(this,Fl,"f").Between.disable(),Ac(this,Fl,"f").Between.tooltip.textContent="All primary bonds between the selected bases are already selected."):(Ac(this,Fl,"f").Between.enable(),Ac(this,Fl,"f").Between.tooltip.textContent="Select primary bonds between the selected bases.");let i=Ac(this,Il,"a",Zl);0==n.length?(Ac(this,Fl,"f").Connecting.disable(),Ac(this,Fl,"f").Connecting.tooltip.textContent="No bases are selected."):i.every(t=>e.has(t))?(Ac(this,Fl,"f").Connecting.disable(),Ac(this,Fl,"f").Connecting.tooltip.textContent="All primary bonds connecting the selected bases are already selected."):(Ac(this,Fl,"f").Connecting.enable(),Ac(this,Fl,"f").Connecting.tooltip.textContent="Select primary bonds connecting the selected bases.")}}Rl=new WeakMap,zl=new WeakMap,Fl=new WeakMap,ql=new WeakMap,Ul=new WeakMap,Vl=new WeakMap,Gl=new WeakMap,Il=new WeakSet,Hl=function(){Ac(this,Rl,"f").addToSelected([...Ac(this,Rl,"f").drawing.primaryBonds])},Xl=function(){Ac(this,Rl,"f").removeFromSelected([...Ac(this,Rl,"f").drawing.primaryBonds])},Yl=function(){Ac(this,Rl,"f").addToSelected(Ac(this,Il,"a",$l))},$l=function(){let t=new Set(Ac(this,Rl,"f").selectedBases);return[...Ac(this,Rl,"f").drawing.primaryBonds].filter(e=>t.has(e.base1)&&t.has(e.base2))},Ql=function(){Ac(this,Rl,"f").addToSelected(Ac(this,Il,"a",Zl))},Zl=function(){let t=new Set(Ac(this,Rl,"f").selectedBases);return[...Ac(this,Rl,"f").drawing.primaryBonds].filter(e=>t.has(e.base1)||t.has(e.base2))};class Oc{constructor(t){Jl.add(this),Kl.set(this,void 0),tc.set(this,void 0),Mc(this,Kl,t,"f");let e=t.selectedPrimaryBonds;Mc(this,tc,new kh(e,t),"f"),this.domNode.style.marginTop="26px",Ac(this,tc,"f").addEventListener("refresh",()=>Ac(this,Jl,"m",ec).call(this)),this.refresh()}get domNode(){return Ac(this,tc,"f").domNode}refresh(){Ac(this,tc,"f").refresh()}}Kl=new WeakMap,tc=new WeakMap,Jl=new WeakSet,ec=function(){let t=[...Ac(this,Kl,"f").selectedPrimaryBonds];Ac(this,tc,"f").buttons.Front.tooltip.textContent=0==t.length?"No primary bonds are selected.":"Bring the selected primary bonds to the front.",Ac(this,tc,"f").buttons.Back.tooltip.textContent=0==t.length?"No primary bonds are selected.":"Send the selected primary bonds to the back."};class Wc{constructor(t){nc.set(this,void 0),rc.set(this,void 0),ic.set(this,void 0),Mc(this,nc,t,"f");let e=t.selectedPrimaryBonds;Mc(this,rc,new rl("stroke",e,t),"f"),Mc(this,ic,new Z("Stroke",Ac(this,rc,"f").domNode),"f"),Ac(this,ic,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Attribute/stroke",this.domNode.style.marginTop="21px",this.domNode.style.alignSelf="start",this.refresh()}get domNode(){return Ac(this,ic,"f").domNode}refresh(){Ac(this,rc,"f").refresh()}}nc=new WeakMap,rc=new WeakMap,ic=new WeakMap;class Lc{constructor(t){sc.set(this,void 0),oc.set(this,void 0),ac.set(this,void 0),Mc(this,sc,t,"f");let e=t.selectedPrimaryBonds;Mc(this,oc,new ml("stroke",e,t),"f"),Mc(this,ac,new ut("Stroke Color",Ac(this,oc,"f").domNode),"f"),Ac(this,ac,"f").domNode.style.marginTop="12px",Ac(this,ac,"f").domNode.style.alignSelf="start",this.refresh()}get domNode(){return Ac(this,ac,"f").domNode}refresh(){Ac(this,oc,"f").refresh()}}sc=new WeakMap,oc=new WeakMap,ac=new WeakMap;class jc{constructor(t){hc.set(this,void 0),uc.set(this,void 0),lc.set(this,void 0),Mc(this,hc,t,"f");let e=t.selectedPrimaryBonds;Mc(this,uc,new rl("stroke-opacity",e,t),"f"),Mc(this,lc,new Z("Stroke Opacity",Ac(this,uc,"f").domNode),"f"),Ac(this,lc,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Attribute/stroke-opacity",this.domNode.style.marginTop="12px",this.domNode.style.alignSelf="start",this.refresh()}get domNode(){return Ac(this,lc,"f").domNode}refresh(){Ac(this,uc,"f").refresh()}}hc=new WeakMap,uc=new WeakMap,lc=new WeakMap;class Pc{constructor(t){cc.set(this,void 0),fc.set(this,void 0),dc.set(this,void 0),Mc(this,cc,t,"f");let e=t.selectedPrimaryBonds;Mc(this,fc,new rl("stroke-width",e,t),"f"),Mc(this,dc,new Z("Stroke Width",Ac(this,fc,"f").domNode),"f"),Ac(this,dc,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Attribute/stroke-width",this.domNode.style.marginTop="10px",this.domNode.style.alignSelf="start",this.refresh()}get domNode(){return Ac(this,dc,"f").domNode}refresh(){Ac(this,fc,"f").refresh()}}cc=new WeakMap,fc=new WeakMap,dc=new WeakMap;class Dc{constructor(t){pc.set(this,void 0),mc.set(this,void 0),gc.set(this,void 0),Mc(this,pc,t,"f");let e=t.selectedPrimaryBonds;Mc(this,mc,new rl("stroke-linecap",e,t),"f"),Mc(this,gc,new Z("Stroke Line-Cap",Ac(this,mc,"f").domNode),"f"),Ac(this,gc,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Attribute/stroke-linecap",this.domNode.style.marginTop="10px",this.domNode.style.alignSelf="start",this.refresh()}get domNode(){return Ac(this,gc,"f").domNode}refresh(){Ac(this,mc,"f").refresh()}}pc=new WeakMap,mc=new WeakMap,gc=new WeakMap;class Bc{constructor(t){yc.set(this,void 0),vc.set(this,void 0),wc.set(this,void 0),Mc(this,yc,t,"f");let e=t.selectedPrimaryBonds;Mc(this,vc,new rl("stroke-dasharray",e,t),"f"),Mc(this,wc,new Z("Stroke Dash-Array",Ac(this,vc,"f").domNode),"f"),Ac(this,wc,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Attribute/stroke-dasharray",this.domNode.style.marginTop="10px",this.domNode.style.alignSelf="start",this.refresh()}get domNode(){return Ac(this,wc,"f").domNode}refresh(){Ac(this,vc,"f").refresh()}}yc=new WeakMap,vc=new WeakMap,wc=new WeakMap;class Ic{constructor(t){bc.set(this,void 0),xc.set(this,void 0),_c.set(this,void 0),Mc(this,bc,t,"f");let e=t.selectedPrimaryBonds;Mc(this,xc,new rl("data-base-padding1",e,t),"f"),Ac(this,xc,"f").addEventListener("edit",()=>{[...e].forEach(t=>{let e=t.basePadding1;t.basePadding1+=1,t.basePadding1=e})}),Mc(this,_c,new Z("Base Padding 1",Ac(this,xc,"f").domNode),"f"),this.domNode.style.marginTop="10px",this.domNode.style.alignSelf="start",this.refresh()}get domNode(){return Ac(this,_c,"f").domNode}refresh(){Ac(this,xc,"f").refresh()}}bc=new WeakMap,xc=new WeakMap,_c=new WeakMap;class Rc{constructor(t){Nc.set(this,void 0),kc.set(this,void 0),Sc.set(this,void 0),Mc(this,Nc,t,"f");let e=t.selectedPrimaryBonds;Mc(this,kc,new rl("data-base-padding2",e,t),"f"),Ac(this,kc,"f").addEventListener("edit",()=>{[...e].forEach(t=>{let e=t.basePadding2;t.basePadding2+=1,t.basePadding2=e})}),Mc(this,Sc,new Z("Base Padding 2",Ac(this,kc,"f").domNode),"f"),this.domNode.style.marginTop="10px",this.domNode.style.alignSelf="start",this.refresh()}get domNode(){return Ac(this,Sc,"f").domNode}refresh(){Ac(this,kc,"f").refresh()}}Nc=new WeakMap,kc=new WeakMap,Sc=new WeakMap;var zc=n(358),Fc=n(705),qc={};qc.styleTagTransform=b(),qc.setAttributes=g(),qc.insert=p().bind(null,"head"),qc.domAPI=f(),qc.insertStyleElement=v(),l()(Fc.Ay,qc),Fc.Ay&&Fc.Ay.locals&&Fc.Ay.locals;var Uc,Vc,Gc,Hc,Xc,Yc,$c,Qc,Zc,Jc,Kc,tf,ef,nf,rf,sf,of,af,hf,uf,lf,cf,ff,df,pf,mf,gf,yf,vf,wf,bf,xf,_f,Nf,kf,Sf,Mf,Af,Ef,Cf,Tf,Of,Wf,Lf,jf,Pf,Df,Bf,If,Rf,zf,Ff,qf,Uf,Vf,Gf,Hf,Xf,Yf,$f,Qf,Zf,Jf,Kf,td,ed,nd,rd,id,sd,od,ad,hd,ud,ld,cd,fd,dd,pd,md,gd,yd,vd,wd=n(127),bd=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},xd=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 _d{constructor(t){Uc.add(this),Vc.set(this,void 0),this.domNode=document.createElement("div"),Gc.set(this,new C("Secondary Bonds",()=>this.toggle())),Hc.set(this,document.createElement("div")),Xc.set(this,void 0),Yc.set(this,void 0),$c.set(this,void 0),Qc.set(this,void 0),Zc.set(this,document.createElement("div")),Jc.set(this,void 0),Kc.set(this,void 0),tf.set(this,void 0),ef.set(this,void 0),nf.set(this,void 0),rf.set(this,void 0),sf.set(this,void 0),of.set(this,void 0),af.set(this,void 0),bd(this,Vc,t,"f"),this.domNode.classList.add(Fc.Se),this.domNode.append(xd(this,Gc,"f").domNode),xd(this,Hc,"f").classList.add(Fc.Qs),this.domNode.append(xd(this,Hc,"f")),bd(this,Xc,new Nd(t),"f"),xd(this,Hc,"f").append(xd(this,Xc,"f").domNode),bd(this,Yc,new kd(t),"f"),xd(this,Hc,"f").append(xd(this,Yc,"f").domNode),bd(this,$c,new Sd(t),"f"),xd(this,Hc,"f").append(xd(this,$c,"f").domNode),bd(this,Qc,new Md(t),"f"),xd(this,Hc,"f").append(xd(this,Qc,"f").domNode),xd(this,Zc,"f").classList.add(Fc.eB),xd(this,Hc,"f").append(xd(this,Zc,"f")),t.selectedSecondaryBonds.addEventListener("change",()=>{document.body.contains(this.domNode)&&(0==[...t.selectedSecondaryBonds].length?xd(this,Uc,"m",lf).call(this):xd(this,Uc,"m",uf).call(this))}),bd(this,Jc,new Ad(t),"f"),xd(this,Zc,"f").append(xd(this,Jc,"f").domNode),bd(this,Kc,new Ed(t),"f"),xd(this,Zc,"f").append(xd(this,Kc,"f").domNode),bd(this,tf,new Cd(t),"f"),xd(this,Zc,"f").append(xd(this,tf,"f").domNode),bd(this,ef,new Td(t),"f"),xd(this,Zc,"f").append(xd(this,ef,"f").domNode),bd(this,nf,new Od(t),"f"),xd(this,Zc,"f").append(xd(this,nf,"f").domNode),bd(this,rf,new Wd(t),"f"),xd(this,Zc,"f").append(xd(this,rf,"f").domNode),bd(this,sf,new Ld(t),"f"),xd(this,Zc,"f").append(xd(this,sf,"f").domNode),bd(this,of,new jd(t),"f"),xd(this,Zc,"f").append(xd(this,of,"f").domNode),bd(this,af,new Pd(t),"f"),xd(this,Zc,"f").append(xd(this,af,"f").domNode),this.collapse(),this.refresh()}isCollapsed(){return this.domNode.classList.contains(Fc.yZ)}collapse(){this.domNode.classList.add(Fc.yZ),xd(this,Gc,"f").caret.pointRight()}expand(){this.domNode.classList.remove(Fc.yZ),xd(this,Gc,"f").caret.pointDown()}toggle(){this.isCollapsed()?this.expand():this.collapse()}refresh(){xd(this,Uc,"a",hf).forEach(t=>t.refresh()),0==[...xd(this,Vc,"f").selectedSecondaryBonds].length?xd(this,Uc,"m",lf).call(this):xd(this,Uc,"m",uf).call(this)}}Vc=new WeakMap,Gc=new WeakMap,Hc=new WeakMap,Xc=new WeakMap,Yc=new WeakMap,$c=new WeakMap,Qc=new WeakMap,Zc=new WeakMap,Jc=new WeakMap,Kc=new WeakMap,tf=new WeakMap,ef=new WeakMap,nf=new WeakMap,rf=new WeakMap,sf=new WeakMap,of=new WeakMap,af=new WeakMap,Uc=new WeakSet,hf=function(){return[xd(this,Xc,"f"),xd(this,Yc,"f"),xd(this,$c,"f"),xd(this,Qc,"f"),xd(this,Jc,"f"),xd(this,Kc,"f"),xd(this,tf,"f"),xd(this,ef,"f"),xd(this,nf,"f"),xd(this,rf,"f"),xd(this,sf,"f"),xd(this,of,"f"),xd(this,af,"f")]},uf=function(){xd(this,Zc,"f").style.display="flex"},lf=function(){xd(this,Zc,"f").style.display="none"};class Nd{constructor(t){cf.set(this,void 0),this.domNode=document.createElement("p"),ff.set(this,document.createElement("span")),df.set(this,document.createElement("span")),bd(this,cf,t,"f"),this.domNode.classList.add(Fc.vM),xd(this,ff,"f").style.fontWeight="700",this.domNode.append(xd(this,ff,"f"),xd(this,df,"f")),xd(this,cf,"f").selectedSecondaryBonds.addEventListener("change",()=>{!document.body.contains(this.domNode)||this.refresh()}),this.refresh()}refresh(){let t=[...xd(this,cf,"f").selectedSecondaryBonds].length;xd(this,ff,"f").textContent=`${t}`,xd(this,df,"f").textContent=1==t?" secondary bond is selected.":" secondary bonds are selected."}}cf=new WeakMap,ff=new WeakMap,df=new WeakMap;class kd{constructor(t){pf.add(this),mf.set(this,void 0),this.domNode=document.createElement("div"),gf.set(this,new C("Select:",()=>this.toggle())),yf.set(this,{All:new D("All",()=>xd(this,pf,"m",_f).call(this)),None:new D("None",()=>xd(this,pf,"m",Nf).call(this)),Between:new D("Between",()=>xd(this,pf,"m",kf).call(this)),Connecting:new D("Connecting",()=>xd(this,pf,"m",Mf).call(this)),"A:U":new D("A:U",()=>xd(this,pf,"m",Ef).call(this)),"A:T":new D("A:T",()=>xd(this,pf,"m",Tf).call(this)),"G:C":new D("G:C",()=>xd(this,pf,"m",Wf).call(this)),"G:U":new D("G:U",()=>xd(this,pf,"m",jf).call(this)),"G:T":new D("G:T",()=>xd(this,pf,"m",Df).call(this))}),vf.set(this,document.createElement("div")),wf.set(this,document.createElement("div")),bf.set(this,document.createElement("div")),xf.set(this,void 0),bd(this,mf,t,"f"),this.domNode.classList.add(Fc.vw),this.domNode.append(xd(this,gf,"f").domNode),h(xd(this,vf,"f")).css({marginTop:"1.5px",display:"flex",flexDirection:"column",gap:"12px"}),this.domNode.append(xd(this,vf,"f")),h(xd(this,wf,"f")).css({display:"flex",flexDirection:"row",gap:"27px"}),xd(this,wf,"f").append(...["All","None"].map(t=>xd(this,yf,"f")[t].domNode)),xd(this,vf,"f").append(xd(this,wf,"f")),h(xd(this,bf,"f")).css({display:"flex",flexDirection:"column",gap:"12px"}),xd(this,vf,"f").append(xd(this,bf,"f")),xd(this,bf,"f").style.display="none",xd(this,gf,"f").caret.pointRight();let e=document.createElement("div");h(e).css({display:"flex",flexDirection:"row",gap:"20px"}),e.append(...["Between","Connecting"].map(t=>xd(this,yf,"f")[t].domNode)),xd(this,bf,"f").append(e);let n=document.createElement("div");h(n).css({display:"flex",flexDirection:"row",gap:"12px"}),n.append(...["A:U","G:C","G:U","A:T","G:T"].map(t=>xd(this,yf,"f")[t].domNode)),xd(this,bf,"f").append(n),t.selectedSecondaryBonds.addEventListener("change",()=>document.body.contains(this.domNode)?this.refresh():{}),t.selectedBases.addEventListener("change",()=>document.body.contains(this.domNode)?this.refresh():{}),bd(this,xf,new MutationObserver(()=>document.body.contains(this.domNode)?this.refresh():{}),"f"),xd(this,xf,"f").observe(t.drawing.domNode,{childList:!0,characterData:!0,subtree:!0}),this.refresh()}toggle(){this.isCollapsed()?this.expand():this.collapse()}isCollapsed(){return"none"==xd(this,bf,"f").style.display}collapse(){xd(this,bf,"f").style.display="none",xd(this,gf,"f").caret.pointRight()}expand(){xd(this,bf,"f").style.display="flex",xd(this,gf,"f").caret.pointDown()}refresh(){let t=[...xd(this,mf,"f").drawing.secondaryBonds],e=new Set(xd(this,mf,"f").selectedSecondaryBonds);0==t.length?(xd(this,yf,"f").All.disable(),xd(this,yf,"f").All.tooltip.textContent="There are no secondary bonds in the drawing."):t.every(t=>e.has(t))?(xd(this,yf,"f").All.disable(),xd(this,yf,"f").All.tooltip.textContent="All secondary bonds are already selected."):(xd(this,yf,"f").All.enable(),xd(this,yf,"f").All.tooltip.textContent="Select all secondary bonds."),0==e.size?(xd(this,yf,"f").None.disable(),xd(this,yf,"f").None.tooltip.textContent="No secondary bonds are selected."):(xd(this,yf,"f").None.enable(),xd(this,yf,"f").None.tooltip.textContent="Deselect all secondary bonds.");let n=[...xd(this,mf,"f").selectedBases],r=xd(this,pf,"a",Sf);0==n.length?(xd(this,yf,"f").Between.disable(),xd(this,yf,"f").Between.tooltip.textContent="No bases are selected."):r.every(t=>e.has(t))?(xd(this,yf,"f").Between.disable(),xd(this,yf,"f").Between.tooltip.textContent="All secondary bonds between the selected bases are already selected."):(xd(this,yf,"f").Between.enable(),xd(this,yf,"f").Between.tooltip.textContent="Select secondary bonds between the selected bases.");let i=xd(this,pf,"a",Af);0==n.length?(xd(this,yf,"f").Connecting.disable(),xd(this,yf,"f").Connecting.tooltip.textContent="No bases are selected."):i.every(t=>e.has(t))?(xd(this,yf,"f").Connecting.disable(),xd(this,yf,"f").Connecting.tooltip.textContent="All secondary bonds connecting the selected bases are already selected."):(xd(this,yf,"f").Connecting.enable(),xd(this,yf,"f").Connecting.tooltip.textContent="Select secondary bonds connecting the selected bases."),[["A:U",xd(this,pf,"a",Cf)],["A:T",xd(this,pf,"a",Of)],["G:C",xd(this,pf,"a",Lf)],["G:U",xd(this,pf,"a",Pf)],["G:T",xd(this,pf,"a",Bf)]].forEach(([t,n])=>{0==n.length?(xd(this,yf,"f")[t].disable(),xd(this,yf,"f")[t].tooltip.textContent=`There are no ${t} base-pairs in the drawing.`):n.every(t=>e.has(t))?(xd(this,yf,"f")[t].disable(),xd(this,yf,"f")[t].tooltip.textContent=`All secondary bonds between ${t} base-pairs are already selected.`):(xd(this,yf,"f")[t].enable(),xd(this,yf,"f")[t].tooltip.textContent=`Select secondary bonds between ${t} base-pairs.`)})}}mf=new WeakMap,gf=new WeakMap,yf=new WeakMap,vf=new WeakMap,wf=new WeakMap,bf=new WeakMap,xf=new WeakMap,pf=new WeakSet,_f=function(){xd(this,mf,"f").addToSelected([...xd(this,mf,"f").drawing.secondaryBonds])},Nf=function(){xd(this,mf,"f").removeFromSelected([...xd(this,mf,"f").drawing.secondaryBonds])},kf=function(){xd(this,mf,"f").addToSelected(xd(this,pf,"a",Sf))},Sf=function(){let t=new Set(xd(this,mf,"f").selectedBases);return[...xd(this,mf,"f").drawing.secondaryBonds].filter(e=>t.has(e.base1)&&t.has(e.base2))},Mf=function(){xd(this,mf,"f").addToSelected(xd(this,pf,"a",Af))},Af=function(){let t=new Set(xd(this,mf,"f").selectedBases);return[...xd(this,mf,"f").drawing.secondaryBonds].filter(e=>t.has(e.base1)||t.has(e.base2))},Ef=function(){xd(this,mf,"f").addToSelected(xd(this,pf,"a",Cf))},Cf=function(){return[...xd(this,mf,"f").drawing.secondaryBonds].filter(Dd)},Tf=function(){xd(this,mf,"f").addToSelected(xd(this,pf,"a",Of))},Of=function(){return[...xd(this,mf,"f").drawing.secondaryBonds].filter(Bd)},Wf=function(){xd(this,mf,"f").addToSelected(xd(this,pf,"a",Lf))},Lf=function(){return[...xd(this,mf,"f").drawing.secondaryBonds].filter(Id)},jf=function(){xd(this,mf,"f").addToSelected(xd(this,pf,"a",Pf))},Pf=function(){return[...xd(this,mf,"f").drawing.secondaryBonds].filter(Rd)},Df=function(){xd(this,mf,"f").addToSelected(xd(this,pf,"a",Bf))},Bf=function(){return[...xd(this,mf,"f").drawing.secondaryBonds].filter(zd)};class Sd{constructor(t){If.set(this,void 0),this.domNode=document.createElement("div"),Rf.set(this,new eo("Add",()=>this.press())),zf.set(this,new tt),Ff.set(this,new rt("Only add missing secondary bonds",xd(this,zf,"f").domNode)),qf.set(this,void 0),bd(this,If,t,"f"),this.domNode.classList.add(Fc.Ol),this.domNode.append(xd(this,Rf,"f").domNode,xd(this,Ff,"f").domNode),xd(this,zf,"f").domNode.checked=!0,xd(this,Ff,"f").domNode.style.marginLeft="10px",xd(this,If,"f").selectedBases.addEventListener("change",()=>{!document.body.contains(this.domNode)||this.refresh()}),bd(this,qf,new MutationObserver(()=>document.body.contains(this.domNode)?this.refresh():{}),"f"),xd(this,qf,"f").observe(t.drawing.domNode,{childList:!0,subtree:!0}),xd(this,zf,"f").domNode.addEventListener("change",()=>this.refresh())}press(){let t=[...xd(this,If,"f").drawing.bases],e=[...xd(this,If,"f").selectedBases];e=(0,zc.seqSorted)(e,t);let n=(0,wd.antiParallelPairs)(e),r=[...xd(this,If,"f").drawing.secondaryBonds],i=(0,wd.missing)(qd(r),n);0!=n.length&&(xd(this,zf,"f").domNode.checked&&0==i.length||(xd(this,If,"f").pushUndoStack(),xd(this,zf,"f").domNode.checked?i.forEach(t=>xd(this,If,"f").drawing.addSecondaryBond(...t)):n.forEach(t=>xd(this,If,"f").drawing.addSecondaryBond(...t))))}refresh(){let t=[...xd(this,If,"f").drawing.bases],e=[...xd(this,If,"f").selectedBases];e=(0,zc.seqSorted)(e,t);let n=(0,wd.antiParallelPairs)(e),r=[...xd(this,If,"f").drawing.secondaryBonds],i=(0,wd.missing)(qd(r),n);0==e.length?(xd(this,Rf,"f").disable(),xd(this,Rf,"f").tooltip.textContent="No bases are selected."):1==e.length?(xd(this,Rf,"f").disable(),xd(this,Rf,"f").tooltip.textContent="At least two bases must be selected."):xd(this,zf,"f").domNode.checked&&0==i.length?(xd(this,Rf,"f").disable(),xd(this,Rf,"f").tooltip.textContent="There are no missing pairs between the selected bases."):(xd(this,Rf,"f").enable(),xd(this,Rf,"f").tooltip.textContent="Add secondary bonds between the selected bases.")}}If=new WeakMap,Rf=new WeakMap,zf=new WeakMap,Ff=new WeakMap,qf=new WeakMap;class Md{constructor(t){Uf.set(this,void 0),Vf.set(this,new eo("Remove",()=>this.press())),bd(this,Uf,t,"f"),xd(this,Uf,"f").selectedSecondaryBonds.addEventListener("change",()=>{!document.body.contains(this.domNode)||this.refresh()}),this.domNode.style.marginTop="15px"}get domNode(){return xd(this,Vf,"f").domNode}press(){let t=[...xd(this,Uf,"f").selectedSecondaryBonds];0!=t.length&&(xd(this,Uf,"f").pushUndoStack(),t.forEach(t=>t.domNode.remove()))}refresh(){0==[...xd(this,Uf,"f").selectedSecondaryBonds].length?(xd(this,Vf,"f").disable(),xd(this,Vf,"f").tooltip.textContent="No secondary bonds are selected."):(xd(this,Vf,"f").enable(),xd(this,Vf,"f").tooltip.textContent="Remove the selected secondary bonds from the drawing.")}}Uf=new WeakMap,Vf=new WeakMap;class Ad{constructor(t){Gf.add(this),Hf.set(this,void 0),Xf.set(this,void 0),bd(this,Hf,t,"f");let e=t.selectedSecondaryBonds;bd(this,Xf,new kh(e,t),"f"),this.domNode.style.marginTop="27px",xd(this,Xf,"f").addEventListener("refresh",()=>xd(this,Gf,"m",Yf).call(this)),this.refresh()}get domNode(){return xd(this,Xf,"f").domNode}refresh(){xd(this,Xf,"f").refresh()}}Hf=new WeakMap,Xf=new WeakMap,Gf=new WeakSet,Yf=function(){let t=[...xd(this,Hf,"f").selectedSecondaryBonds];xd(this,Xf,"f").buttons.Front.tooltip.textContent=0==t.length?"No secondary bonds are selected.":"Bring the selected secondary bonds to the front.",xd(this,Xf,"f").buttons.Back.tooltip.textContent=0==t.length?"No secondary bonds are selected.":"Send the selected secondary bonds to the back."};class Ed{constructor(t){$f.set(this,void 0),Qf.set(this,void 0),Zf.set(this,void 0),bd(this,$f,t,"f");let e=t.selectedSecondaryBonds;bd(this,Qf,new rl("stroke",e,t),"f"),bd(this,Zf,new Z("Stroke",xd(this,Qf,"f").domNode),"f"),xd(this,Zf,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Attribute/stroke",this.domNode.style.marginTop="22px",this.domNode.style.alignSelf="start",this.refresh()}get domNode(){return xd(this,Zf,"f").domNode}refresh(){xd(this,Qf,"f").refresh()}}$f=new WeakMap,Qf=new WeakMap,Zf=new WeakMap;class Cd{constructor(t){Jf.set(this,void 0),Kf.set(this,void 0),td.set(this,void 0),bd(this,Jf,t,"f");let e=t.selectedSecondaryBonds;bd(this,Kf,new ml("stroke",e,t),"f"),bd(this,td,new ut("Stroke Color",xd(this,Kf,"f").domNode),"f"),xd(this,td,"f").domNode.style.marginTop="12px",xd(this,td,"f").domNode.style.alignSelf="start",this.refresh()}get domNode(){return xd(this,td,"f").domNode}refresh(){xd(this,Kf,"f").refresh()}}Jf=new WeakMap,Kf=new WeakMap,td=new WeakMap;class Td{constructor(t){ed.set(this,void 0),nd.set(this,void 0),rd.set(this,void 0),bd(this,ed,t,"f");let e=t.selectedSecondaryBonds;bd(this,nd,new rl("stroke-opacity",e,t),"f"),bd(this,rd,new Z("Stroke Opacity",xd(this,nd,"f").domNode),"f"),xd(this,rd,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Attribute/stroke-opacity",this.domNode.style.marginTop="12px",this.domNode.style.alignSelf="start",this.refresh()}get domNode(){return xd(this,rd,"f").domNode}refresh(){xd(this,nd,"f").refresh()}}ed=new WeakMap,nd=new WeakMap,rd=new WeakMap;class Od{constructor(t){id.set(this,void 0),sd.set(this,void 0),od.set(this,void 0),bd(this,id,t,"f");let e=t.selectedSecondaryBonds;bd(this,sd,new rl("stroke-width",e,t),"f"),bd(this,od,new Z("Stroke Width",xd(this,sd,"f").domNode),"f"),xd(this,od,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Attribute/stroke-width",this.domNode.style.marginTop="10px",this.domNode.style.alignSelf="start",this.refresh()}get domNode(){return xd(this,od,"f").domNode}refresh(){xd(this,sd,"f").refresh()}}id=new WeakMap,sd=new WeakMap,od=new WeakMap;class Wd{constructor(t){ad.set(this,void 0),hd.set(this,void 0),ud.set(this,void 0),bd(this,ad,t,"f");let e=t.selectedSecondaryBonds;bd(this,hd,new rl("stroke-linecap",e,t),"f"),bd(this,ud,new Z("Stroke Line-Cap",xd(this,hd,"f").domNode),"f"),xd(this,ud,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Attribute/stroke-linecap",this.domNode.style.marginTop="10px",this.domNode.style.alignSelf="start",this.refresh()}get domNode(){return xd(this,ud,"f").domNode}refresh(){xd(this,hd,"f").refresh()}}ad=new WeakMap,hd=new WeakMap,ud=new WeakMap;class Ld{constructor(t){ld.set(this,void 0),cd.set(this,void 0),fd.set(this,void 0),bd(this,ld,t,"f");let e=t.selectedSecondaryBonds;bd(this,cd,new rl("stroke-dasharray",e,t),"f"),bd(this,fd,new Z("Stroke Dash-Array",xd(this,cd,"f").domNode),"f"),xd(this,fd,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Attribute/stroke-dasharray",this.domNode.style.marginTop="10px",this.domNode.style.alignSelf="start",this.refresh()}get domNode(){return xd(this,fd,"f").domNode}refresh(){xd(this,cd,"f").refresh()}}ld=new WeakMap,cd=new WeakMap,fd=new WeakMap;class jd{constructor(t){dd.set(this,void 0),pd.set(this,void 0),md.set(this,void 0),bd(this,dd,t,"f");let e=t.selectedSecondaryBonds;bd(this,pd,new rl("data-base-padding1",e,t),"f"),xd(this,pd,"f").addEventListener("edit",()=>{[...e].forEach(t=>{let e=t.basePadding1;t.basePadding1+=1,t.basePadding1=e})}),bd(this,md,new Z("Base Padding 1",xd(this,pd,"f").domNode),"f"),this.domNode.style.marginTop="10px",this.domNode.style.alignSelf="start",this.refresh()}get domNode(){return xd(this,md,"f").domNode}refresh(){xd(this,pd,"f").refresh()}}dd=new WeakMap,pd=new WeakMap,md=new WeakMap;class Pd{constructor(t){gd.set(this,void 0),yd.set(this,void 0),vd.set(this,void 0),bd(this,gd,t,"f");let e=t.selectedSecondaryBonds;bd(this,yd,new rl("data-base-padding2",e,t),"f"),xd(this,yd,"f").addEventListener("edit",()=>{[...e].forEach(t=>{let e=t.basePadding2;t.basePadding2+=1,t.basePadding2=e})}),bd(this,vd,new Z("Base Padding 2",xd(this,yd,"f").domNode),"f"),this.domNode.style.marginTop="10px",this.domNode.style.alignSelf="start",this.refresh()}get domNode(){return xd(this,vd,"f").domNode}refresh(){xd(this,yd,"f").refresh()}}function Dd(t){return new zc.BasePair(t.base1,t.base2).isAU()}function Bd(t){return new zc.BasePair(t.base1,t.base2).isAT()}function Id(t){return new zc.BasePair(t.base1,t.base2).isGC()}function Rd(t){return new zc.BasePair(t.base1,t.base2).isGU()}function zd(t){return new zc.BasePair(t.base1,t.base2).isGT()}function Fd(t){return[t.base1,t.base2]}function qd(t){return t.map(Fd)}gd=new WeakMap,yd=new WeakMap,vd=new WeakMap;var Ud=n(965),Vd={};Vd.styleTagTransform=b(),Vd.setAttributes=g(),Vd.insert=p().bind(null,"head"),Vd.domAPI=f(),Vd.insertStyleElement=v(),l()(Ud.Ay,Vd),Ud.Ay&&Ud.Ay.locals&&Ud.Ay.locals;var Gd,Hd,Xd,Yd,$d,Qd,Zd,Jd,Kd,tp,ep=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},np=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 rp{constructor(t){Gd.add(this),Hd.set(this,void 0),this.domNode=document.createElement("div"),Xd.set(this,new C("Drawing",()=>this.toggle())),Yd.set(this,document.createElement("div")),$d.set(this,void 0),ep(this,Hd,t,"f"),this.domNode.classList.add(Ud.fS),this.domNode.append(np(this,Xd,"f").domNode),np(this,Yd,"f").classList.add(Ud.Qs),this.domNode.append(np(this,Yd,"f")),ep(this,$d,new ip(t),"f"),np(this,Yd,"f").append(np(this,$d,"f").domNode),this.collapse(),this.refresh()}isCollapsed(){return this.domNode.classList.contains(Ud.yZ)}collapse(){this.domNode.classList.add(Ud.yZ),np(this,Xd,"f").caret.pointRight()}expand(){this.domNode.classList.remove(Ud.yZ),np(this,Xd,"f").caret.pointDown()}toggle(){this.isCollapsed()?this.expand():this.collapse()}refresh(){np(this,Gd,"a",Qd).forEach(t=>t.refresh())}}Hd=new WeakMap,Xd=new WeakMap,Yd=new WeakMap,$d=new WeakMap,Gd=new WeakSet,Qd=function(){return[np(this,$d,"f")]};class ip{constructor(t){Zd.set(this,void 0),Jd.set(this,void 0),Kd.set(this,void 0),ep(this,Zd,t,"f"),ep(this,Jd,new rl("data-name",new sp([t.drawing]),t),"f"),ep(this,Kd,new Z("Name",np(this,Jd,"f").domNode),"f"),this.domNode.style.alignSelf="start",np(this,Jd,"f").domNode.style.width="132px",this.refresh()}get domNode(){return np(this,Kd,"f").domNode}refresh(){np(this,Jd,"f").refresh()}}Zd=new WeakMap,Jd=new WeakMap,Kd=new WeakMap;class sp{constructor(t){tp.set(this,void 0),ep(this,tp,[...t],"f")}[(tp=new WeakMap,Symbol.iterator)](){return np(this,tp,"f").values()}addEventListener(t,e){}}var op=n(290),ap={};ap.styleTagTransform=b(),ap.setAttributes=g(),ap.insert=p().bind(null,"head"),ap.domAPI=f(),ap.insertStyleElement=v(),l()(op.A,ap),op.A&&op.A.locals&&op.A.locals;var hp,up,lp,cp,fp,dp,pp,mp,gp,yp,vp=n(139),wp=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},bp=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 xp{constructor(t){hp.add(this),up.set(this,void 0),this.domNode=document.createElement("div"),lp.set(this,void 0),cp.set(this,void 0),fp.set(this,void 0),dp.set(this,void 0),pp.set(this,void 0),mp.set(this,void 0),gp.set(this,void 0),wp(this,up,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),wp(this,lp,new Es(t),"f"),n.append(bp(this,lp,"f").domNode),wp(this,cp,new Ya(t),"f"),n.append(bp(this,cp,"f").domNode),wp(this,fp,new Lu(t),"f"),n.append(bp(this,fp,"f").domNode),wp(this,dp,new Ec(t),"f"),n.append(bp(this,dp,"f").domNode),wp(this,pp,new _d(t),"f"),n.append(bp(this,pp,"f").domNode),wp(this,mp,new rp(t),"f"),n.append(bp(this,mp,"f").domNode);let r=function(){let t=document.createElement("p");return t.classList.add(op._),t.textContent="Close",t}();r.addEventListener("click",()=>this.close()),this.domNode.append(r),wp(this,gp,new vp.DragTranslater(this.domNode),"f")}appendTo(t){this.refresh(),this.reposition(),t.appendChild(this.domNode)}close(){this.domNode.remove()}refresh(){bp(this,hp,"a",yp).forEach(t=>t.refresh())}reposition(){bp(this,gp,"f").untranslate()}}up=new WeakMap,lp=new WeakMap,cp=new WeakMap,fp=new WeakMap,dp=new WeakMap,pp=new WeakMap,mp=new WeakMap,gp=new WeakMap,hp=new WeakSet,yp=function(){return[bp(this,lp,"f"),bp(this,cp,"f"),bp(this,fp,"f"),bp(this,dp,"f"),bp(this,pp,"f"),bp(this,mp,"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={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 h=t[a],u=r.base?h[0]+r.base:h[0],l=s[u]||0,c="".concat(u," ").concat(l);s[u]=l+1;var d=n(c),f={css:h[1],media:h[2],sourceMap:h[3],supports:h[4],layer:h[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 h=r(t,i),u=0;u<s.length;u++){var l=n(s[u]);0===e[l].references&&(e[l].updater(),e.splice(l,1))}s=h}}},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))}}},127(t){var e;e=()=>(()=>{var t={369:function(t){var e;e=()=>(()=>{var t={854: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){return"number"==typeof t}function r(t){return n(t)&&Number.isFinite(t)}function i(t){return n(t)&&!Number.isFinite(t)}function s(t){return r(t)&&t>0}function o(t){return r(t)&&t>=0}function a(t){return"string"==typeof t}function h(t){return null==t}function u(t){return"object"==typeof t&&null!==t}function l(t){return Array.isArray(t)}function c(t){return l(t)&&0==t.length}function d(t){return l(t)&&t.length>0}function f(t){return l(t)&&t.every(n)}function p(t){return f(t)&&t.length>0}function m(t){return l(t)&&t.every(r)}function g(t){return l(t)&&t.every(i)}function y(t){return l(t)&&t.every(a)}function v(t){return y(t)&&t.length>0}return t.r(e),t.d(e,{isArray:()=>l,isEmptyArray:()=>c,isFiniteNumber:()=>r,isFiniteNumbersArray:()=>m,isNonEmptyArray:()=>d,isNonEmptyNumbersArray:()=>p,isNonEmptyStringsArray:()=>v,isNonFiniteNumber:()=>i,isNonFiniteNumbersArray:()=>g,isNonNegativeFiniteNumber:()=>o,isNonNullObject:()=>u,isNullish:()=>h,isNumber:()=>n,isNumbersArray:()=>f,isPositiveFiniteNumber:()=>s,isString:()=>a,isStringsArray:()=>y}),e})()},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:()=>f,average:()=>r,clamp:()=>d,degrees:()=>g,flipAway:()=>w,isBetween:()=>l,isBetweenExclusive:()=>c,isBetweenInclusive:()=>l,max:()=>u,mean:()=>r,median:()=>a,min:()=>h,normalizeAngle:()=>v,radians:()=>y,sortNumbers:()=>i,sortNumbersAscending:()=>i,sortNumbersDescending:()=>p,sortedNumbers:()=>o,sortedNumbersAscending:()=>o,sortedNumbersDescending:()=>m,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 h(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 u(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 t<e?e:t>n?n:t}function f(t,e,n){return Math.abs(t-e)<=n}function p(t){i(t),t.reverse()}function m(t){var e=o(t);return e.reverse(),e}function g(t){return t*(180/Math.PI)}function y(t){return t*(Math.PI/180)}function v(t,e){void 0===e&&(e=-Math.PI);var n=t-e;return e+((n%=2*Math.PI)>=0?n:n+2*Math.PI)}function w(t,e){var n=(e=v(e,t))-t;return(n<Math.PI/2||n>3*Math.PI/2)&&(t+=Math.PI),t}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";n.r(r),n.d(r,{Linkers:()=>g,Stems:()=>m,areConflicting:()=>u,areCrossing:()=>d,areEqual:()=>a,areKnotless:()=>c,areStacked:()=>h,basePairs:()=>w,deepCopy:()=>i,knotless:()=>f,mountainPlotTraversal:()=>y,parseDotBracket:()=>v,radializable:()=>p,sorted:()=>o});var t=n(854),e=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 i(n){return(0,t.isNumbersArray)(n)?e([],n,!0):n.map(function(t){return e([],t,!0)})}var s=n(986);function o(t){var e=i(t);return e.forEach(s.sortNumbers),e.sort(function(t,e){return t[0]-e[0]}),e}function a(t,e){var n=i(t),r=i(e);return(0,s.sortNumbers)(n),(0,s.sortNumbers)(r),[0,1].every(function(t){return n[t]==r[t]})}function h(t,e){var n=o([t,e]);return n[0][0]==n[1][0]-1&&n[0][1]==n[1][1]+1}function u(t,e){return(0,s.min)(t)==(0,s.min)(e)&&(0,s.max)(t)!=(0,s.max)(e)||(0,s.min)(t)!=(0,s.min)(e)&&(0,s.max)(t)==(0,s.max)(e)}function l(t){if(0==t.length)return[];for(var e=[],n=0;n<(0,s.max)(t.flat());n++)e.push(void 0);return t.forEach(function(t){e[t[0]-1]=t[1],e[t[1]-1]=t[0]}),e}function c(t){var e=l(t),n=[],r=!1;return e.forEach(function(t,e){var i=e+1;null==t||(i<t?n.push(i):i==t||n.pop()!=t&&(r=!0))}),!r}function d(t,e){return!c([t,e])}function f(t){var e=[],n=i(t);n.sort(function(t,e){return Math.abs(t[0]-t[1])-Math.abs(e[0]-e[1])});var r=[];return n.forEach(function(t){var n=[t[0]-1,t[1]-1],i=(0,s.min)(n),o=(0,s.max)(n);if(!r[i]&&!r[o]){e.push(t);for(var a=i;a<=o;a++)r[a]=!0}}),e}function p(t){var e=i(t);e.sort(function(t,e){var n=t[0],r=t[1],i=e[0],s=e[1];return Math.abs(n-r)-Math.abs(i-s)});var n=[],r=[];return e.forEach(function(t){var e=t[0],i=t[1];e==i||null!=r[e-1]||null!=r[i-1]||(n.push([e,i]),r[e-1]=i,r[i-1]=e)}),f(n)}var m=function(){function t(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this.targetStructure=t}return t.prototype.get=function(){var t=this.targetStructure[1];if(0==t.length)return[];var e=o(t),n=[],r=[];return e.forEach(function(t){var e=0==r.length?null:r[r.length-1];!e||h(e,t)?r.push(t):(n.push(r),r=[t])}),n.push(r),n},t}(),g=function(){function t(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this.targetStructure=t}return t.prototype.get=function(){var t=(new(m.bind.apply(m,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))}([void 0],this.targetStructure,!1)))).get().flatMap(function(t){return[t.map(s.min),t.map(s.max)]});t.forEach(s.sortNumbers),t.sort(function(t,e){return(0,s.min)(t)-(0,s.min)(e)});for(var e=[],n=t.shift(),r=t.shift();n&&r;){for(var i=[],o=(0,s.max)(n),a=(0,s.min)(r),h=o;h<=a;h++)i.push(h);e.push(i),n=r,r=t.shift()}return e},t}();function y(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=t[0],r=t[1],i=l(r);if(!c(r))throw new Error("Pseudoknot(s) encountered.");var s=[],o=0;return n.forEach(function(t,e){var n=e+1,r=i[e];null==r?s.push(o):n<r?(s.push(o),o++):(n==r||o--,s.push(o))}),s}function v(t){var e=t.split(""),n=[".","(",")"];e.forEach(function(t){if(!n.includes(t))throw new Error('Unrecognized character in dot-bracket notation: "'.concat(t,'".'))});var r=[],i=[];if(e.forEach(function(t,e){var n=e+1;if("("==t)i.push(n);else if(")"==t){var s=i.pop();if("number"!=typeof s)throw new Error("Unmatched downstream partner(s) in dot-bracket notation.");r.push([s,n])}}),i.length>0)throw new Error("Unmatched upstream partner(s) in dot-bracket notation.");return o(r)}function w(t,e){return e.forEach(function(e){e.forEach(function(e){if(e<1)throw new Error("Sequence positions must be positive.");if(e>t.length)throw new Error("Position out of sequence range.")})}),e.map(function(e){return[t[e[0]-1],t[e[1]-1]]})}})(),r})(),t.exports=e()},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:()=>f,average:()=>r,clamp:()=>d,degrees:()=>y,flipAway:()=>b,isBetween:()=>l,isBetweenExclusive:()=>c,isBetweenInclusive:()=>l,max:()=>u,mean:()=>r,median:()=>a,min:()=>h,normalizeAngle:()=>w,radians:()=>v,round:()=>g,sortNumbers:()=>i,sortNumbersAscending:()=>i,sortNumbersDescending:()=>p,sortedNumbers:()=>o,sortedNumbersAscending:()=>o,sortedNumbersDescending:()=>m,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 h(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 u(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 t<e?e:t>n?n:t}function f(t,e,n){return Math.abs(t-e)<=n}function p(t){i(t),t.reverse()}function m(t){var e=o(t);return e.reverse(),e}function g(t,e){return Number.parseFloat(t.toFixed(null!=e?e:0))}function y(t){return t*(180/Math.PI)}function v(t){return t*(Math.PI/180)}function w(t,e){void 0===e&&(e=-Math.PI);var n=t-e;return e+((n%=2*Math.PI)>=0?n:n+2*Math.PI)}function b(t,e){var n=(e=w(e,t))-t;return(n<Math.PI/2||n>3*Math.PI/2)&&(t+=Math.PI),t}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,e){return t[0]===e[0]&&t[1]===e[1]||t[0]===e[1]&&t[1]===e[0]}function e(t,e){if(!e.includes(t))throw new Error("The given base is not present in the provided base-pair.");return t===e[0]?e[1]:e[0]}n.r(r),n.d(r,{FirstPairedBase:()=>s,LastPairedBase:()=>a,LeadingDanglingBases:()=>h,Linkers:()=>d,PositionPairs:()=>i,Stems:()=>c,TrailingDanglingBases:()=>u,antiParallelPairs:()=>w,areEqual:()=>t,consecutivePairs:()=>y,knotless:()=>f,missing:()=>b,mountainPlotTraversal:()=>m,other:()=>e,parallelPairs:()=>v,parseDotBracket:()=>g,radializable:()=>p});class i{constructor(...t){this.targetStructure=t}get(){let t=this.targetStructure[0];return this.targetStructure[1].map(e=>[t.indexOf(e[0])+1,t.indexOf(e[1])+1])}}class s{constructor(...t){this.targetStructure=t}get(){let t=this.targetStructure[0],e=this.targetStructure[1];if(0==e.length)throw new Error("There are no paired bases.");let n=e.flat(),r=t.findIndex(t=>n.includes(t));if(r<0)throw new Error("No paired bases present in sequence.");return t[r]}}var o=n(986);class a{constructor(...t){this.targetStructure=t}get(){let t=this.targetStructure[0],e=this.targetStructure[1];if(0==e.length)throw new Error("There are no paired bases.");let n=e.flat().map(e=>t.indexOf(e));if((0,o.max)(n)<0)throw new Error("No paired bases present in sequence.");return t[(0,o.max)(n)]}}class h{constructor(...t){this.targetStructure=t}get(){let t=this.targetStructure[0];if(0==this.targetStructure[1].length)throw new Error("There are no paired bases.");let e=new s(...this.targetStructure).get(),n=t.indexOf(e);if(n<0)throw new Error("No paired bases present in sequence.");return t.slice(0,n)}}class u{constructor(...t){this.targetStructure=t}get(){let t=this.targetStructure[0];if(0==this.targetStructure[1].length)throw new Error("There are no paired bases.");let e=new a(...this.targetStructure).get(),n=t.indexOf(e);if(n<0)throw new Error("No paired bases present in sequence.");return t.slice(n+1)}}var l=n(369);class c{constructor(...t){this.targetStructure=t}get(){let t=this.targetStructure[0],e=new i(...this.targetStructure).get();return new l.Stems(t,e).get().map(e=>e.map(e=>[t[e[0]-1],t[e[1]-1]]))}}class d{constructor(...t){this.targetStructure=t}get(){let t=this.targetStructure[0],e=new i(...this.targetStructure).get();return new l.Linkers(t,e).get().map(e=>e.map(e=>t[e-1]))}}function f(...t){let[e,n]=t,r=new i(...t).get();(0,l.areKnotless)(r)||(r=(0,l.knotless)(r));let s=r.map(t=>[e[t[0]-1],e[t[1]-1]]);return[[...e],s]}function p(...t){let[e,n]=t,r=new i(...t).get();return[[...e],(0,l.radializable)(r).map(([t,n])=>[e[t-1],e[n-1]])]}function m(...t){let[e,n]=t,r=new i(...t).get();return(0,l.mountainPlotTraversal)(e,r)}function g(t,e){if(e.length>t.length)throw new Error("Dot-bracket notation is longer than the sequence.");return[...(0,l.parseDotBracket)(e)].map(e=>{let n=e[0],r=e[1];return[t[n-1],t[r-1]]})}function y(t){return t.length<2?[]:t.slice(0,-1).map((e,n)=>[t[n],t[n+1]])}function v(t){let e=[],n=Math.floor(t.length/2)-1,r=Math.ceil(t.length/2);for(let i=0;i<=n;i++){let n=t[i],s=t[r+i];e.push([n,s])}return e}function w(t){let e=[];for(let n=0;n<Math.floor(t.length/2);n++){let r=t[n],i=t[t.length-n-1];e.push([r,i])}return e}function b(e,n){return n.filter(n=>!e.find(e=>t(n,e))).map(t=>[...t])}})(),r})(),t.exports=e()},139(t){var e;e=()=>(()=>{"use strict";var t={826:(t,e,n)=>{n.d(e,{A:()=>h,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 h=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 h=this[a][0];null!=h&&(o[h]=!0)}for(var u=0;u<t.length;u++){var l=[].concat(t[u]);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 h=t[a],u=r.base?h[0]+r.base:h[0],l=s[u]||0,c="".concat(u," ").concat(l);s[u]=l+1;var d=n(c),f={css:h[1],media:h[2],sourceMap:h[3],supports:h[4],layer:h[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 h=r(t,i),u=0;u<s.length;u++){var l=n(s[u]);0===e[l].references&&(e[l].updater(),e.splice(l,1))}s=h}}},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),h=n(659),u=n.n(h),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=u().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(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:()=>f,average:()=>r,clamp:()=>d,degrees:()=>y,flipAway:()=>b,isBetween:()=>l,isBetweenExclusive:()=>c,isBetweenInclusive:()=>l,max:()=>u,mean:()=>r,median:()=>a,min:()=>h,normalizeAngle:()=>w,radians:()=>v,round:()=>g,sortNumbers:()=>i,sortNumbersAscending:()=>i,sortNumbersDescending:()=>p,sortedNumbers:()=>o,sortedNumbersAscending:()=>o,sortedNumbersDescending:()=>m,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 h(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 u(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 t<e?e:t>n?n:t}function f(t,e,n){return Math.abs(t-e)<=n}function p(t){i(t),t.reverse()}function m(t){var e=o(t);return e.reverse(),e}function g(t,e){return Number.parseFloat(t.toFixed(null!=e?e:0))}function y(t){return t*(180/Math.PI)}function v(t){return t*(Math.PI/180)}function w(t,e){void 0===e&&(e=-Math.PI);var n=t-e;return e+((n%=2*Math.PI)>=0?n:n+2*Math.PI)}function b(t,e){var n=(e=w(e,t))-t;return(n<Math.PI/2||n>3*Math.PI/2)&&(t+=Math.PI),t}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,{consensusNumber:()=>i,consensusValue:()=>t,mostCommonValue:()=>o});var e=n(986);function i(n,r){return t(void 0===r?n:n.map(t=>(0,e.round)(t,r)))}class s{static of(t){return{in:e=>{let n=new Set([t]);return e.filter(t=>n.has(t))}}}}function o(t){if(0==t.length)throw new Error("The array of values is empty.");let n=[...new Set(t)],r=n.map(e=>s.of(e).in(t).length),i=(0,e.max)(r),o=n.findIndex(e=>s.of(e).in(t).length==i);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:()=>h,_:()=>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: #ffaeae;\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: #302b2b;\n}\n\n.kcto2iumhdvv3MluNmLw:active {\n background-color: #474040;\n}\n',""]);var a="kcto2iumhdvv3MluNmLw";const h=o},313(t,e,n){"use strict";n.d(e,{Ay:()=>g,HS:()=>a,KI:()=>d,Ol:()=>p,Qs:()=>h,m2:()=>m,vM:()=>l,vw:()=>c,y1:()=>f,yZ:()=>u});var r=n(601),i=n.n(r),s=n(314),o=n.n(s)()(i());o.push([t.id,'.a6ORYgMQABEHR6aBTOyH {\n margin-top: 39px;\n\n display: flex;\n flex-direction: column;\n}\n\n.AlufD9RFKRiHPBf1_E_0 {\n margin: 11px 0px 0px 12px;\n\n display: flex;\n flex-direction: column;\n}\n\n.OJg1zcUAnASkF64IFOL6 .AlufD9RFKRiHPBf1_E_0 {\n display: none;\n}\n\n.xhlascYysfqr4snya6ak {\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: white;\n\n user-select: none;\n -webkit-user-select: none;\n\n pointer-events: none;\n}\n\n.TVzAna464XABORuzvUtf {\n margin-top: 20px;\n\n display: flex;\n flex-direction: row;\n align-items: center;\n}\n\n.aTWqhpXD94HnLgUeWRUu {\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: white;\n\n user-select: none;\n -webkit-user-select: none;\n\n pointer-events: none;\n}\n\n._8rBW8W6lwJb5IOiKXf4 {\n display: none;\n flex-direction: column;\n}\n\n.Gk0MbTyHyoFcln1qcKfL {\n margin-top: 29px;\n\n display: flex;\n flex-direction: column;\n}\n\n.YNSQDwnkP1fInYpWodH8 {\n margin-top: 29px;\n\n display: flex;\n flex-direction: column;\n}\n\n\n',""]);var a="a6ORYgMQABEHR6aBTOyH",h="AlufD9RFKRiHPBf1_E_0",u="OJg1zcUAnASkF64IFOL6",l="xhlascYysfqr4snya6ak",c="TVzAna464XABORuzvUtf",d="aTWqhpXD94HnLgUeWRUu",f="_8rBW8W6lwJb5IOiKXf4",p="Gk0MbTyHyoFcln1qcKfL",m="YNSQDwnkP1fInYpWodH8";const g=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 h=this[a][0];null!=h&&(o[h]=!0)}for(var u=0;u<t.length;u++){var l=[].concat(t[u]);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}},358(t){var e;e=()=>(()=>{var t={726:function(t){var e;e=()=>(()=>{var t={854: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){return"number"==typeof t}function r(t){return n(t)&&Number.isFinite(t)}function i(t){return n(t)&&!Number.isFinite(t)}function s(t){return r(t)&&t>0}function o(t){return r(t)&&t>=0}function a(t){return"string"==typeof t}function h(t){return null==t}function u(t){return"object"==typeof t&&null!==t}function l(t){return Array.isArray(t)}function c(t){return l(t)&&0==t.length}function d(t){return l(t)&&t.length>0}function f(t){return l(t)&&t.every(n)}function p(t){return f(t)&&t.length>0}function m(t){return l(t)&&t.every(r)}function g(t){return l(t)&&t.every(i)}function y(t){return l(t)&&t.every(a)}function v(t){return y(t)&&t.length>0}return t.r(e),t.d(e,{isArray:()=>l,isEmptyArray:()=>c,isFiniteNumber:()=>r,isFiniteNumbersArray:()=>m,isNonEmptyArray:()=>d,isNonEmptyNumbersArray:()=>p,isNonEmptyStringsArray:()=>v,isNonFiniteNumber:()=>i,isNonFiniteNumbersArray:()=>g,isNonNegativeFiniteNumber:()=>o,isNonNullObject:()=>u,isNullish:()=>h,isNumber:()=>n,isNumbersArray:()=>f,isPositiveFiniteNumber:()=>s,isString:()=>a,isStringsArray:()=>y}),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,e){for(let[n,r]of Object.entries(e))t.setAttribute(n,r)}n.r(r),n.d(r,{CoordinateSystem:()=>c,HorizontalClientScaling:()=>f,InnerXML:()=>w,OuterXML:()=>_,Scaling:()=>d,VerticalClientScaling:()=>p,assignUUID:()=>l,bringToFront:()=>m,isSVGGraphicsElement:()=>N,isSVGGraphicsElementsArray:()=>S,sendToBack:()=>g,setAttributes:()=>t});const e={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};var i,s=new Uint8Array(16);function o(){if(!i&&!(i="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return i(s)}for(var a=[],h=0;h<256;++h)a.push((h+256).toString(16).slice(1));const u=function(t,n,r){if(e.randomUUID&&!n&&!t)return e.randomUUID();var i=(t=t||{}).random||(t.rng||o)();if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,n){r=r||0;for(var s=0;s<16;++s)n[r+s]=i[s];return n}return function(t,e=0){return(a[t[e+0]]+a[t[e+1]]+a[t[e+2]]+a[t[e+3]]+"-"+a[t[e+4]]+a[t[e+5]]+"-"+a[t[e+6]]+a[t[e+7]]+"-"+a[t[e+8]]+a[t[e+9]]+"-"+a[t[e+10]]+a[t[e+11]]+a[t[e+12]]+a[t[e+13]]+a[t[e+14]]+a[t[e+15]]).toLowerCase()}(i)};function l(t){t.id="uuid-"+u()}class c{constructor(t){this.targetSVGDoc=t}get width(){return this.targetSVGDoc.viewBox.baseVal.width}get height(){return this.targetSVGDoc.viewBox.baseVal.height}get minX(){return this.targetSVGDoc.viewBox.baseVal.x}get maxX(){return this.minX+this.width}get minY(){return this.targetSVGDoc.viewBox.baseVal.y}get maxY(){return this.minY+this.height}get horizontalScaling(){return this.targetSVGDoc.width.baseVal.value/this.width}get verticalScaling(){return this.targetSVGDoc.height.baseVal.value/this.height}setScaling(t){this.targetSVGDoc.setAttribute("width",""+t*this.width),this.targetSVGDoc.setAttribute("height",""+t*this.height)}get clientWidth(){return this.targetSVGDoc.getBoundingClientRect().width}get clientHeight(){return this.targetSVGDoc.getBoundingClientRect().height}get horizontalClientScaling(){return this.clientWidth/this.width}get verticalClientScaling(){return this.clientHeight/this.height}get minClientX(){return this.targetSVGDoc.getBoundingClientRect().x}get minClientY(){return this.targetSVGDoc.getBoundingClientRect().y}fromClientX(t){return this.minX+(t-this.minClientX)/this.horizontalClientScaling}fromClientY(t){return this.minY+(t-this.minClientY)/this.verticalClientScaling}fromClientCoordinates(t,e){return[this.fromClientX(t),this.fromClientY(e)]}fromClientPoint(t){return{x:this.fromClientX(t.x),y:this.fromClientY(t.y)}}toClientX(t){return this.minClientX+this.horizontalClientScaling*(t-this.minX)}toClientY(t){return this.minClientY+this.verticalClientScaling*(t-this.minY)}toClientCoordinates(t,e){return[this.toClientX(t),this.toClientY(e)]}toClientPoint(t){return{x:this.toClientX(t.x),y:this.toClientY(t.y)}}}class d{constructor(t){this.targetSVGDoc=t}set(t){let e=this.targetSVGDoc.viewBox.baseVal;this.targetSVGDoc.setAttribute("width",t*e.width+"px"),this.targetSVGDoc.setAttribute("height",t*e.height+"px")}}class f{constructor(t){this.targetSVGDoc=t}get(){let t=this.targetSVGDoc.getBoundingClientRect(),e=this.targetSVGDoc.viewBox.baseVal;return t.width/e.width}}class p{constructor(t){this.targetSVGDoc=t}get(){let t=this.targetSVGDoc.getBoundingClientRect(),e=this.targetSVGDoc.viewBox.baseVal;return t.height/e.height}}function m(t){let e=t.parentNode;e&&e.appendChild(t)}function g(t){let e=t.parentNode;e&&e.prepend(t)}var y,v=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){y.set(this,void 0),function(t,e,n){if("function"==typeof e||!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");e.set(t,n)}(this,y,t)}toString(){return v(this,y,"f").innerHTML}set(t){v(this,y,"f").innerHTML=t}}y=new WeakMap;var b,x=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 _{constructor(t){b.set(this,void 0),function(t,e,n){if("function"==typeof e||!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");e.set(t,n)}(this,b,t)}toString(){return x(this,b,"f").outerHTML}set(t){let e=document.createElementNS("http://www.w3.org/2000/svg","svg");if(e.style.height="0px",document.body.append(e),e.innerHTML=t,!e.firstElementChild)throw new Error("Outer XML must encode an SVG element.");if(e.childNodes.length>1)throw new Error("Outer XML cannot encode multiple DOM nodes.");if(e.firstElementChild.tagName.toLowerCase()!=x(this,b,"f").tagName.toLowerCase())throw new Error("Outer XML must specify an SVG element with the same tag name as the target SVG element.");[...x(this,b,"f").attributes].forEach(t=>x(this,b,"f").removeAttribute(t.name)),[...e.firstElementChild.attributes].forEach(t=>x(this,b,"f").setAttribute(t.name,t.value)),x(this,b,"f").innerHTML=e.firstElementChild.innerHTML,e.remove()}}function N(t){return t instanceof SVGGraphicsElement}b=new WeakMap;var k=n(854);function S(t){return(0,k.isArray)(t)&&t.every(N)}})(),r})(),t.exports=e()},731:function(t){var e;e=()=>(()=>{"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={};t.r(e),t.d(e,{CenterPoint:()=>u});var n,r,i,s,o,a=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},h=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 u{constructor(t){n.add(this),r.set(this,void 0),i.set(this,{move:[]}),s.set(this,void 0),a(this,r,t,"f"),a(this,s,new MutationObserver(()=>h(this,n,"m",o).call(this,"move")),"f"),h(this,s,"f").observe(t,{attributes:!0,childList:!0,characterData:!0,subtree:!0})}get x(){let t=h(this,r,"f").getBBox();return t.x+t.width/2}set x(t){let e=this.x,n=[...h(this,r,"f").x.baseVal].map(t=>t.value);0!=n.length||n.push(0),n=n.map(n=>n+(t-e)),h(this,r,"f").setAttribute("x",n.join(", "))}get y(){let t=h(this,r,"f").getBBox();return t.y+t.height/2}set y(t){let e=this.y,n=[...h(this,r,"f").y.baseVal].map(t=>t.value);0!=n.length||n.push(0),n=n.map(n=>n+(t-e)),h(this,r,"f").setAttribute("y",n.join(", "))}addEventListener(t,e){h(this,i,"f")[t].push(e)}removeEventListener(t,e){h(this,i,"f")[t]=h(this,i,"f")[t].filter(t=>t!==e)}}return r=new WeakMap,i=new WeakMap,s=new WeakMap,n=new WeakSet,o=function(t){h(this,i,"f")[t].forEach(t=>t())},e})(),t.exports=e()},854: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){return"number"==typeof t}function r(t){return n(t)&&Number.isFinite(t)}function i(t){return n(t)&&!Number.isFinite(t)}function s(t){return r(t)&&t>0}function o(t){return r(t)&&t>=0}function a(t){return"string"==typeof t}function h(t){return null==t}function u(t){return"object"==typeof t&&null!==t}function l(t){return Array.isArray(t)}function c(t){return l(t)&&0==t.length}function d(t){return l(t)&&t.length>0}function f(t){return l(t)&&t.every(n)}function p(t){return f(t)&&t.length>0}function m(t){return l(t)&&t.every(r)}function g(t){return l(t)&&t.every(i)}function y(t){return l(t)&&t.every(a)}function v(t){return y(t)&&t.length>0}return t.r(e),t.d(e,{isArray:()=>l,isEmptyArray:()=>c,isFiniteNumber:()=>r,isFiniteNumbersArray:()=>m,isNonEmptyArray:()=>d,isNonEmptyNumbersArray:()=>p,isNonEmptyStringsArray:()=>v,isNonFiniteNumber:()=>i,isNonFiniteNumbersArray:()=>g,isNonNegativeFiniteNumber:()=>o,isNonNullObject:()=>u,isNullish:()=>h,isNumber:()=>n,isNumbersArray:()=>f,isPositiveFiniteNumber:()=>s,isString:()=>a,isStringsArray:()=>y}),e})()},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:()=>f,average:()=>r,clamp:()=>d,degrees:()=>g,flipAway:()=>w,isBetween:()=>l,isBetweenExclusive:()=>c,isBetweenInclusive:()=>l,max:()=>u,mean:()=>r,median:()=>a,min:()=>h,normalizeAngle:()=>v,radians:()=>y,sortNumbers:()=>i,sortNumbersAscending:()=>i,sortNumbersDescending:()=>p,sortedNumbers:()=>o,sortedNumbersAscending:()=>o,sortedNumbersDescending:()=>m,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 h(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 u(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 t<e?e:t>n?n:t}function f(t,e,n){return Math.abs(t-e)<=n}function p(t){i(t),t.reverse()}function m(t){var e=o(t);return e.reverse(),e}function g(t){return t*(180/Math.PI)}function y(t){return t*(Math.PI/180)}function v(t,e){void 0===e&&(e=-Math.PI);var n=t-e;return e+((n%=2*Math.PI)>=0?n:n+2*Math.PI)}function w(t,e){var n=(e=v(e,t))-t;return(n<Math.PI/2||n>3*Math.PI/2)&&(t+=Math.PI),t}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";n.r(r),n.d(r,{BasePair:()=>Pn,Nucleobase:()=>jn,seqSorted:()=>Dn});var t={};n.r(t),n.d(t,{cx:()=>Dt,cy:()=>Bt,height:()=>Rt,rx:()=>Lt,ry:()=>Wt,width:()=>It,x:()=>jt,y:()=>Pt});var e={};n.r(e),n.d(e,{from:()=>Ut,to:()=>Vt});var i={};n.r(i),n.d(i,{MorphArray:()=>Qt,height:()=>te,width:()=>Kt,x:()=>Zt,y:()=>Jt});var s={};n.r(s),n.d(s,{array:()=>Ee,clear:()=>Ce,move:()=>Te,plot:()=>Oe,size:()=>Le});var o={};n.r(o),n.d(o,{amove:()=>an,ax:()=>sn,ay:()=>on,build:()=>hn,center:()=>rn,cx:()=>en,cy:()=>nn,length:()=>Ze,move:()=>tn,plain:()=>Qe,x:()=>Je,y:()=>Ke});var a={};n.r(a),n.d(a,{dmove:()=>pn,dx:()=>mn,dy:()=>gn,height:()=>yn,move:()=>vn,size:()=>wn,width:()=>bn,x:()=>xn,y:()=>_n});const h={},u=[];function l(t,e){if(Array.isArray(t))for(const n of t)l(n,e);else if("object"!=typeof t)d(Object.getOwnPropertyNames(e)),h[t]=Object.assign(h[t]||{},e);else for(const e in t)l(e,t[e])}function c(t){return h[t]||{}}function d(t){u.push(...t)}function f(t,e){let n;const r=t.length,i=[];for(n=0;n<r;n++)i.push(e(t[n]));return i}function p(t){return t%360*Math.PI/180}function m(t){return t.charAt(0).toUpperCase()+t.slice(1)}function g(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 y(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:h}=e.bbox();s&&(r=r.includes("left")?a:r.includes("right")?a+n:a+n/2),o&&(i=i.includes("top")?h:i.includes("bottom")?h+t:h+t/2)}return[r,i]}const v=new Set(["desc","metadata","title"]),w=t=>v.has(t.nodeName),b=(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"))},x="http://www.w3.org/2000/svg",_="http://www.w3.org/2000/xmlns/",N="http://www.w3.org/1999/xlink",k={window:"undefined"==typeof window?null:window,document:"undefined"==typeof document?null:document};class S{}const M={},A="___SYMBOL___ROOT___";function E(t,e=x){return k.document.createElementNS(e,t)}function C(t,e=!1){if(t instanceof S)return t;if("object"==typeof t)return L(t);if(null==t)return new M[A];if("string"==typeof t&&"<"!==t.charAt(0))return L(k.document.querySelector(t));const n=e?k.document.createElement("div"):E("svg");return n.innerHTML=t,t=L(n.firstChild),n.removeChild(n.firstChild),t}function T(t,e){return e&&(e instanceof k.window.Node||e.ownerDocument&&e instanceof e.ownerDocument.defaultView.Node)?e:E(t)}function O(t){if(!t)return null;if(t.instance instanceof S)return t.instance;if("#document-fragment"===t.nodeName)return new M.Fragment(t);let e=m(t.nodeName||"Dom");return"LinearGradient"===e||"RadialGradient"===e?e="Gradient":M[e]||(e="Dom"),new M[e](t)}let L=O;function W(t,e=t.name,n=!1){return M[e]=t,n&&(M[A]=t),d(Object.getOwnPropertyNames(t.prototype)),t}let j=1e3;function P(t){return"Svgjs"+m(t)+j++}function D(t){for(let e=t.children.length-1;e>=0;e--)D(t.children[e]);return t.id?(t.id=P(t.nodeName),t):t}function B(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 I(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)}}l("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=C(t)).remove();const e=this.position();return this.parent().add(t,e),this},after:function(t){(t=C(t)).remove();const e=this.position();return this.parent().add(t,e+1),this},insertBefore:function(t){return(t=C(t)).before(this),this},insertAfter:function(t){return(t=C(t)).after(this),this}});const R=/^([+-]?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?)([a-z%]*)$/i,z=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i,F=/rgb\((\d+),(\d+),(\d+)\)/,q=/(#[a-z_][a-z0-9\-_]*)/i,U=/\)\s*,?\s*/,V=/\s/g,G=/^#[a-f0-9]{3}$|^#[a-f0-9]{6}$/i,H=/^rgb\(/,X=/^(\s+)?$/,Y=/^[+-]?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,$=/\.(jpg|jpeg|png|gif|svg)(\?[^=]+.*)?/i,Q=/[\s,]+/,Z=/[MLHVCSQTAZ]/i;function J(t){const e=Math.round(t),n=Math.max(0,Math.min(255,e)).toString(16);return 1===n.length?"0"+n:n}function K(t,e){for(let n=e.length;n--;)if(null==t[e[n]])return!1;return!0}function tt(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}l("Dom",{classes:function(){const t=this.attr("class");return null==t?[]:t.trim().split(Q)},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)}}),l("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]||X.test(t[e])?"":t[e])}return 2===arguments.length&&this.node.style.setProperty(t,null==e||X.test(e)?"":e),this},show:function(){return this.css("display","")},hide:function(){return this.css("display","none")},visible:function(){return"none"!==this.css("display")}}),l("Dom",{data:function(t,e,n){if(null==t)return this.data(f(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}}),l("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 et{constructor(...t){this.init(...t)}static isColor(t){return t&&(t instanceof et||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 et(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 et(t,o,a)}if("pastel"===t){const t=8*n()+86,e=17*n()+9,r=360*n();return new et(t,e,r,"lch")}if("dark"===t){const t=10+10*n(),e=50*n()+86,r=360*n();return new et(t,e,r,"lch")}if("rgb"===t){const t=255*n(),e=255*n(),r=255*n();return new et(t,e,r)}if("lab"===t){const t=100*n(),e=256*n()-128,r=256*n()-128;return new et(t,e,r,"lab")}if("grey"===t){const t=255*n();return new et(t,t,t)}throw new Error("Unsupported random color mode")}static test(t){return"string"==typeof t&&(G.test(t)||H.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 et(0,0,0,1,"cmyk"):new et((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),h=(o+a)/2,u=o===a,l=o-a;return new et(360*(u?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*(u?0:h>.5?l/(2-o-a):l/(o+a)),100*h,"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=K(t,"rgb")?{_a:t.r,_b:t.g,_c:t.b,_d:0,space:"rgb"}:K(t,"xyz")?{_a:t.x,_b:t.y,_c:t.z,_d:0,space:"xyz"}:K(t,"hsl")?{_a:t.h,_b:t.s,_c:t.l,_d:0,space:"hsl"}:K(t,"lab")?{_a:t.l,_b:t.a,_c:t.b,_d:0,space:"lab"}:K(t,"lch")?{_a:t.l,_b:t.c,_c:t.h,_d:0,space:"lch"}:K(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(H.test(t)){const e=t.replace(V,""),[n,r,i]=F.exec(e).slice(1,4).map(t=>parseInt(t));Object.assign(this,{_a:n,_b:r,_c:i,_d:0,space:"rgb"})}else{if(!G.test(t))throw Error("Unsupported string format, can't construct Color");{const e=t=>parseInt(t,16),[,n,r,i]=z.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:h}=this,u="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:h}:{};Object.assign(this,u)}lab(){const{x:t,y:e,z:n}=this.xyz();return new et(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 et(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,h=o-s/200,u=16/116,l=.008856,c=7.787;t=.95047*(a**3>l?a**3:(a-u)/c),e=1*(o**3>l?o**3:(o-u)/c),n=1.08883*(h**3>l?h**3:(h-u)/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,h=r>a?1.055*o(r,1/2.4)-.055:12.92*r,u=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 et(255*h,255*u,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 et(n,n,n);const r=n<.5?n*(1+e):n+e-n*e,i=2*n-r,s=255*tt(i,r,t+1/3),o=255*tt(i,r,t),a=255*tt(i,r,t-1/3);return new et(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 et(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(J);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,h=s>.04045?Math.pow((s+.055)/1.055,2.4):s/12.92,u=(.4124*o+.3576*a+.1805*h)/.95047,l=(.2126*o+.7152*a+.0722*h)/1,c=(.0193*o+.1192*a+.9505*h)/1.08883,d=u>.008856?Math.pow(u,1/3):7.787*u+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 et(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 nt{constructor(...t){this.init(...t)}clone(){return new nt(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){it.isMatrixLike(t)||(t=new it(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 rt(t,e,n){return Math.abs(e-t)<(n||1e-6)}class it{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,h=t.shear||0,u=t.rotate||t.theta||0,l=new nt(t.origin||t.around||t.ox||t.originX,t.oy||t.originY),c=l.x,d=l.y,f=new nt(t.position||t.px||t.positionX||NaN,t.py||t.positionY||NaN),p=f.x,m=f.y,g=new nt(t.translate||t.tx||t.translateX,t.ty||t.translateY),y=g.x,v=g.y,w=new nt(t.relative||t.rx||t.relativeX,t.ry||t.relativeY);return{scaleX:o,scaleY:a,skewX:i,skewY:s,shear:h,theta:u,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,h=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=h,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 it(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,h=n*s-r*i,u=h>0?1:-1,l=u*Math.sqrt(n*n+r*r),c=Math.atan2(u*r,u*n),d=180/Math.PI*c,f=Math.cos(c),p=Math.sin(c),m=(n*i+r*s)/h,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 it(t);return rt(this.a,e.a)&&rt(this.b,e.b)&&rt(this.c,e.c)&&rt(this.d,e.d)&&rt(this.e,e.e)&&rt(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=it.fromArray([1,0,0,1,0,0]);return t=t instanceof At?t.matrixify():"string"==typeof t?it.fromArray(t.split(Q).map(parseFloat)):Array.isArray(t)?it.fromArray(t):"object"==typeof t&&it.isMatrixLike(t)?t:"object"==typeof t?(new it).transform(t):6===arguments.length?it.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,h=-e/o,u=-n/o,l=t/o,c=-(a*i+u*s),d=-(h*i+l*s);return this.a=a,this.b=h,this.c=u,this.d=l,this.e=c,this.f=d,this}lmultiply(t){return this.clone().lmultiplyO(t)}lmultiplyO(t){const e=t instanceof it?t:new it(t);return it.matrixMultiply(e,this,this)}multiply(t){return this.clone().multiplyO(t)}multiplyO(t){const e=t instanceof it?t:new it(t);return it.matrixMultiply(this,e,this)}rotate(t,e,n){return this.clone().rotateO(t,e,n)}rotateO(t,e=0,n=0){t=p(t);const r=Math.cos(t),i=Math.sin(t),{a:s,b:o,c:a,d:h,e:u,f:l}=this;return this.a=s*r-o*i,this.b=o*r+s*i,this.c=a*r-h*i,this.d=h*r+a*i,this.e=u*r-l*i+n*i-e*r+e,this.f=l*r+u*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:h,f:u}=this;return this.a=i*t,this.b=s*e,this.c=o*t,this.d=a*e,this.e=h*t-n*t+n,this.f=u*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:h}=this;return this.a=r+i*t,this.c=s+o*t,this.e=a+h*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=p(t),e=p(e);const i=Math.tan(t),s=Math.tan(e),{a:o,b:a,c:h,d:u,e:l,f:c}=this;return this.a=o+a*i,this.b=a+o*s,this.c=h+u*i,this.d=u+h*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(it.isMatrixLike(t))return new it(t).multiplyO(this);const e=it.formatTransforms(t),{x:n,y:r}=new nt(e.ox,e.oy).transform(this),i=(new it).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 nt(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 st(){if(!st.nodes){const t=C().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;st.nodes={svg:t,path:e}}if(!st.nodes.svg.node.parentNode){const t=k.document.body||k.document.documentElement;st.nodes.svg.addTo(t)}return st.nodes}function ot(t){return!(t.width||t.height||t.x||t.y)}W(it,"Matrix");class at{constructor(...t){this.init(...t)}addOffset(){return this.x+=k.window.pageXOffset,this.y+=k.window.pageYOffset,new at(this)}init(t){return t="string"==typeof t?t.split(Q).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 ot(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 at(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 it||(t=new it(t));let e=1/0,n=-1/0,r=1/0,i=-1/0;return[new nt(this.x,this.y),new nt(this.x2,this.y),new nt(this.x,this.y2),new nt(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 at(e,r,n-e,i-r)}}function ht(t,e,n){let r;try{if(r=e(t.node),ot(r)&&(i=t.node)!==k.document&&!(k.document.documentElement.contains||function(t){for(;t.parentNode;)t=t.parentNode;return t===k.document}).call(k.document.documentElement,i))throw new Error("Element not in the dom")}catch(e){r=n(t)}var i;return r}l({viewbox:{viewbox(t,e,n,r){return null==t?new at(this.attr("viewBox")):this.attr("viewBox",new at(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 h=a/t;h===1/0&&(h=Number.MAX_SAFE_INTEGER/100),e=e||new nt(n/2/s+i.x,r/2/o+i.y);const u=new at(i).transform(new it({scale:h,origin:e}));return this.viewbox(u)}}}),W(at,"Box");class ut extends Array{constructor(t=[],...e){if(super(t,...e),"number"==typeof t)return this;this.length=0,this.push(...t)}}const lt=ut;B([ut],{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 ct=["toArray","constructor","each"];function dt(t,e){return new lt(f((e||k.document).querySelectorAll(t),function(t){return O(t)}))}ut.extend=function(t){t=t.reduce((t,e)=>(ct.includes(e)||"_"===e[0]||(e in Array.prototype&&(t["$"+e]=Array.prototype[e]),t[e]=function(...t){return this.each(e,...t)}),t),{}),B([ut],t)};let ft=0;const pt={};function mt(t){let e=t.getEventHolder();return e===k.window&&(e=pt),e.events||(e.events={}),e.events}function gt(t){return t.getEventTarget()}function yt(t,e,n,r,i){const s=n.bind(r||t),o=C(t),a=mt(o),h=gt(o);e=Array.isArray(e)?e:e.split(Q),n._svgjsListenerId||(n._svgjsListenerId=++ft),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,h.addEventListener(e,s,i||!1)})}function vt(t,e,n,r){const i=C(t),s=mt(i),o=gt(i);("function"!=typeof n||(n=n._svgjsListenerId))&&(e=Array.isArray(e)?e:(e||"").split(Q)).forEach(function(t){const e=t&&t.split(".")[0],a=t&&t.split(".")[1];let h,u;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(u in s[e][a])vt(o,[e,a].join("."),u);delete s[e][a]}}else if(a)for(t in s)for(h in s[t])a===h&&vt(o,[t,a].join("."));else if(e){if(s[e]){for(h in s[e])vt(o,[e,h].join("."));delete s[e]}}else{for(t in s)vt(o,t);!function(t){let e=t.getEventHolder();e===k.window&&(e=pt),e.events&&(e.events={})}(i)}})}class wt extends S{addEventListener(){}dispatch(t,e,n){return function(t,e,n,r){const i=gt(t);return e instanceof k.window.Event||(e=new k.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 vt(this,t,e,n),this}on(t,e,n,r){return yt(this,t,e,n,r),this}removeEventListener(){}}function bt(){}W(wt,"EventTarget");const xt={"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 _t 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(Q).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 Nt{constructor(...t){this.init(...t)}convert(t){return new Nt(this.value,t)}divide(t){return t=new Nt(t),new Nt(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(R))&&(this.value=parseFloat(e[1]),"%"===e[5]?this.value/=100:"s"===e[5]&&(this.value*=1e3),this.unit=e[5]):t instanceof Nt&&(this.value=t.valueOf(),this.unit=t.unit),this}minus(t){return t=new Nt(t),new Nt(this-t,this.unit||t.unit)}plus(t){return t=new Nt(t),new Nt(this+t,this.unit||t.unit)}times(t){return t=new Nt(t),new Nt(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 kt=new Set(["fill","stroke","color","bgcolor","stop-color","flood-color","lighting-color"]),St=[];class Mt extends wt{constructor(t,e){super(),this.node=t,this.type=t.nodeName,e&&t!==e&&this.attr(e)}add(t,e){return(t=C(t)).removeNamespace&&this.node instanceof k.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 C(t).put(this,e)}children(){return new lt(f(this.node.children,function(t){return O(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=D(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 Mt(E(t),e))}first(){return O(this.node.firstChild)}get(t){return O(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=P(this.type)),this.attr("id",t)}index(t){return[].slice.call(this.node.childNodes).indexOf(t.node)}last(){return O(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=O(e.node.parentNode),!t)return e;do{if("string"==typeof t?e.matches(t):e instanceof t)return e}while(e=O(e.node.parentNode));return e}put(t,e){return t=C(t),this.add(t,e),t}putIn(t,e){return C(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=C(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,x)}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=O(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=E("wrapper",n),i=k.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)}}B(Mt,{attr:function(t,e,n){if(null==t){t={},e=this.node.attributes;for(const n of e)t[n.nodeName]=Y.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))?xt[t]:Y.test(e)?parseFloat(e):e;"number"==typeof(e=St.reduce((e,n)=>n(t,e,this),e))?e=new Nt(e):kt.has(t)&&et.isColor(e)?e=new et(e):e.constructor===Array&&(e=new _t(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 dt(t,this.node)},findOne:function(t){return O(this.node.querySelector(t))}}),W(Mt,"Dom");class At extends Mt{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 Nt(t).plus(this.x()))}dy(t=0){return this.y(new Nt(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=C(t));const n=new lt;let r=this;for(;(r=r.parent())&&r.node!==k.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(q);return e?C(e[1]):null}root(){const t=this.parent(M[A]);return t&&t.root()}setData(t){return this.dom=t,this}size(t,e){const n=g(this,t,e);return this.width(new Nt(n.width)).height(new Nt(n.height))}width(t){return this.attr("width",t)}writeDataToDom(){return b(this,this.dom),super.writeDataToDom()}x(t){return this.attr("x",t)}y(t){return this.attr("y",t)}}B(At,{bbox:function(){const t=ht(this,t=>t.getBBox(),t=>{try{const e=t.clone().addTo(st().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 at(t)},rbox:function(t){const e=ht(this,t=>t.getBoundingClientRect(),t=>{throw new Error(`Getting rbox of element "${t.node.nodeName}" is not possible`)}),n=new at(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 nt(t,e).transformO(this.screenCTM().inverseO())},ctm:function(){return new it(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 it(e)}return new it(this.node.getScreenCTM())}catch(t){return console.warn(`Cannot get CTM from SVG node ${this.node.nodeName}. Is the element rendered?`),new it}}}),W(At,"Element");const Et={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 et||et.isRgb(e)||e instanceof At)this.attr(t,e);else for(n=Et[t].length-1;n>=0;n--)null!=e[Et[t][n]]&&this.attr(Et.prefix(t,Et[t][n]),e[Et[t][n]]);return this},l(["Element","Runner"],e)}),l(["Element","Runner"],{matrix:function(t,e,n,r,i,s){return null==t?new it(this):this.attr("transform",new it(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)}}),l("radius",{radius:function(t,e=t){return"radialGradient"===(this._element||this).type?this.attr("r",new Nt(t)):this.rx(t).ry(e)}}),l("Path",{length:function(){return this.node.getTotalLength()},pointAt:function(t){return new nt(this.node.getPointAtLength(t))}}),l(["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)}}),l("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},{})),l("Element",{untransform:function(){return this.attr("transform",null)},matrixify:function(){return(this.attr("transform")||"").split(U).slice(0,-1).map(function(t){const e=t.trim().split("(");return[e[0],e[1].split(Q).map(function(t){return parseFloat(t)})]}).reverse().reduce(function(t,e){return"matrix"===e[0]?t.lmultiply(it.fromArray(e[1])):t[e[0]].apply(t,e[1])},new it)},toParent:function(t,e){if(this===t)return this;if(w(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 it(this).decompose();return null==t?e:e[t]}it.isMatrixLike(t)||(t={...t,origin:y(t,this)});const n=new it(!0===e?this:e||!1).transform(t);return this.attr("transform",n)}});class Ct extends At{flatten(){return this.each(function(){if(this instanceof Ct)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()}}W(Ct,"Container");class Tt extends Ct{constructor(t,e=t){super(T("defs",t),e)}flatten(){return this}ungroup(){return this}}W(Tt,"Defs");class Ot extends At{}function Lt(t){return this.attr("rx",t)}function Wt(t){return this.attr("ry",t)}function jt(t){return null==t?this.cx()-this.rx():this.cx(t+this.rx())}function Pt(t){return null==t?this.cy()-this.ry():this.cy(t+this.ry())}function Dt(t){return this.attr("cx",t)}function Bt(t){return this.attr("cy",t)}function It(t){return null==t?2*this.rx():this.rx(new Nt(t).divide(2))}function Rt(t){return null==t?2*this.ry():this.ry(new Nt(t).divide(2))}W(Ot,"Shape");class zt extends Ot{constructor(t,e=t){super(T("ellipse",t),e)}size(t,e){const n=g(this,t,e);return this.rx(new Nt(n.width).divide(2)).ry(new Nt(n.height).divide(2))}}B(zt,t),l("Container",{ellipse:I(function(t=0,e=t){return this.put(new zt).size(t,e).move(0,0)})}),W(zt,"Ellipse");class Ft extends Mt{constructor(t=k.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 Mt(E("wrapper",n));return t.add(this.node.cloneNode(!0)),t.xml(!1,n)}return super.xml(t,!1,n)}}W(Ft,"Fragment");const qt=Ft;function Ut(t,e){return"radialGradient"===(this._element||this).type?this.attr({fx:new Nt(t),fy:new Nt(e)}):this.attr({x1:new Nt(t),y1:new Nt(e)})}function Vt(t,e){return"radialGradient"===(this._element||this).type?this.attr({cx:new Nt(t),cy:new Nt(e)}):this.attr({x2:new Nt(t),y2:new Nt(e)})}class Gt extends Ct{constructor(t,e){super(T(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 at}targets(){return dt("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()+")"}}B(Gt,e),l({Container:{gradient(...t){return this.defs().gradient(...t)}},Defs:{gradient:I(function(t,e){return this.put(new Gt(t)).update(e)})}}),W(Gt,"Gradient");class Ht extends Ct{constructor(t,e=t){super(T("pattern",t),e)}attr(t,e,n){return"transform"===t&&(t="patternTransform"),super.attr(t,e,n)}bbox(){return new at}targets(){return dt("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()+")"}}l({Container:{pattern(...t){return this.defs().pattern(...t)}},Defs:{pattern:I(function(t,e,n){return this.put(new Ht).update(n).attr({x:0,y:0,width:t,height:e,patternUnits:"userSpaceOnUse"})})}}),W(Ht,"Pattern");class Xt extends Ot{constructor(t,e=t){super(T("image",t),e)}load(t,e){if(!t)return this;const n=new k.window.Image;return yt(n,"load",function(t){const r=this.parent(Ht);0===this.width()&&0===this.height()&&this.size(n.width,n.height),r instanceof Ht&&0===r.width()&&0===r.height()&&r.size(this.width(),this.height()),"function"==typeof e&&e.call(this,t)},this),yt(n,"load error",function(){vt(n)}),this.attr("href",n.src=t,N)}}var Yt;Yt=function(t,e,n){return"fill"!==t&&"stroke"!==t||$.test(e)&&(e=n.root().defs().image(e)),e instanceof Xt&&(e=n.root().defs().pattern(0,0,t=>{t.add(e)})),e},St.push(Yt),l({Container:{image:I(function(t,e){return this.put(new Xt).size(0,0).load(t,e)})}}),W(Xt,"Image");class $t extends _t{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 at(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(Q).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){it.isMatrixLike(t)||(t=new it(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 Qt=$t;function Zt(t){return null==t?this.bbox().x:this.move(t,this.bbox().y)}function Jt(t){return null==t?this.bbox().y:this.move(this.bbox().x,t)}function Kt(t){const e=this.bbox();return null==t?e.width:this.size(t,e.height)}function te(t){const e=this.bbox();return null==t?e.height:this.size(e.width,t)}class ee extends Ot{constructor(t,e=t){super(T("line",t),e)}array(){return new $t([[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 $t(t).toLine(),this.attr(t))}size(t,e){const n=g(this,t,e);return this.attr(this.array().size(n.width,n.height).toLine())}}B(ee,i),l({Container:{line:I(function(...t){return ee.prototype.plot.apply(this.put(new ee),null!=t[0]?t:[0,0,0,0])})}}),W(ee,"Line");class ne extends Ct{constructor(t,e=t){super(T("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 re(t,e){return function(n){return null==n?this[t]:(this[t]=n,e&&e.call(this),this)}}l({Container:{marker(...t){return this.defs().marker(...t)}},Defs:{marker:I(function(t,e,n){return this.put(new ne).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 ne?arguments[1]:this.defs().marker(e,n,r),this.attr(i,t)}}}),W(ne,"Marker");const ie={"-":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 se{done(){return!1}}class oe extends se{constructor(t=">"){super(),this.ease=ie[t]||t}step(t,e,n){return"number"!=typeof t?n<1?t:e:t+(e-t)*this.ease(n)}}class ae extends se{constructor(t){super(),this.stepper=t}done(t){return t.done}step(t,e,n,r){return this.stepper(t,e,n,r)}}function he(){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}B(class extends ae{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:re("_duration",he),overshoot:re("_overshoot",he)}),B(class extends ae{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:re("_windup"),p:re("P"),i:re("I"),d:re("D")});const ue={M:2,L:2,H:1,V:1,C:6,S:4,Q:4,T:2,A:7,Z:0},le={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]]}},ce="mlhvqtcsaz".split("");for(let t=0,e=ce.length;t<e;++t)le[ce[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 le[t](e,n,r)}}(ce[t].toUpperCase());function de(t){return t.segment.length&&t.segment.length-1===ue[t.segment[0].toUpperCase()]}function fe(t,e){t.inNumber&&pe(t,!1);const n=Z.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 pe(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,de(t)&&me(t)}function me(t){t.inSegment=!1,t.absolute&&(t.segment=function(t){const e=t.segment[0];return le[e](t.segment.slice(1),t.p,t.p0)}(t)),t.segments.push(t.segment)}function ge(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 ye(t){return"E"===t.lastToken.toUpperCase()}const ve=new Set([" ",",","\t","\n","\r","\f"]);class we extends _t{bbox(){return st().path.setAttribute("d",this.toString()),new at(st.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 nt,p:new nt};for(;i.lastToken=r,r=t.charAt(n++);)if(i.inSegment||!fe(i,r))if("."!==r)if(isNaN(parseInt(r)))if(ve.has(r))i.inNumber&&pe(i,!1);else if("-"!==r&&"+"!==r)if("E"!==r.toUpperCase()){if(Z.test(r)){if(i.inNumber)pe(i,!1);else{if(!de(i))throw new Error("parser Error");me(i)}--n}}else i.number+=r,i.hasExponent=!0;else{if(i.inNumber&&!ye(i)){pe(i,!1),--n;continue}i.number+=r,i.inNumber=!0}else{if("0"===i.number||ge(i)){i.inNumber=!0,i.number=r,pe(i,!0);continue}i.inNumber=!0,i.number+=r}else{if(i.pointSeen||i.hasExponent){pe(i,!1),--n;continue}i.inNumber=!0,i.pointSeen=!0,i.number+=r}return i.inNumber&&pe(i,!1),i.inSegment&&de(i)&&me(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 be=t=>{const e=typeof t;return"number"===e?Nt:"string"===e?et.isColor(t)?et:Q.test(t)?Z.test(t)?we:_t:R.test(t)?Nt:_e:Me.indexOf(t.constructor)>-1?t.constructor:Array.isArray(t)?_t:"object"===e?Se:_e};class xe{constructor(t){this._stepper=t||new oe("-"),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(be(t));let e=new this._type(t);return this._type===et&&(e=this._to?e[this._to[4]]():this._from?e[this._from[4]]():e),this._type===Se&&(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 _e{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 Ne{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,Ne.defaults,t),this}toArray(){const t=this;return[t.scaleX,t.scaleY,t.shear,t.rotate,t.translateX,t.translateY,t.originX,t.originY]}}Ne.defaults={scaleX:1,scaleY:1,shear:0,rotate:0,translateX:0,translateY:0,originX:0,originY:0};const ke=(t,e)=>t[0]<e[0]?-1:t[0]>e[0]?1:0;class Se{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]===et&&t[n+7]!==e[n+7]){const e=t[n+7],r=new et(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=be(t[n]),i=new r(t[n]).toArray();e.push([n,r,i.length,...i])}return e.sort(ke),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 Me=[_e,Ne,Se];class Ae extends Ot{constructor(t,e=t){super(T("path",t),e)}array(){return this._array||(this._array=new we(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 we(t))}size(t,e){const n=g(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 Ee(){return this._array||(this._array=new $t(this.attr("points")))}function Ce(){return delete this._array,this}function Te(t,e){return this.attr("points",this.array().move(t,e))}function Oe(t){return null==t?this.array():this.clear().attr("points","string"==typeof t?t:this._array=new $t(t))}function Le(t,e){const n=g(this,t,e);return this.attr("points",this.array().size(n.width,n.height))}Ae.prototype.MorphArray=we,l({Container:{path:I(function(t){return this.put(new Ae).plot(t||new we)})}}),W(Ae,"Path");class We extends Ot{constructor(t,e=t){super(T("polygon",t),e)}}l({Container:{polygon:I(function(t){return this.put(new We).plot(t||new $t)})}}),B(We,i),B(We,s),W(We,"Polygon");class je extends Ot{constructor(t,e=t){super(T("polyline",t),e)}}l({Container:{polyline:I(function(t){return this.put(new je).plot(t||new $t)})}}),B(je,i),B(je,s),W(je,"Polyline");class Pe extends Ot{constructor(t,e=t){super(T("rect",t),e)}}B(Pe,{rx:Lt,ry:Wt}),l({Container:{rect:I(function(t,e){return this.put(new Pe).size(t,e)})}}),W(Pe,"Rect");class De{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 Be={nextDraw:null,frames:new De,timeouts:new De,immediates:new De,timer:()=>k.window.performance||k.window.Date,transforms:[],frame(t){const e=Be.frames.push({run:t});return null===Be.nextDraw&&(Be.nextDraw=k.window.requestAnimationFrame(Be._draw)),e},timeout(t,e){e=e||0;const n=Be.timer().now()+e,r=Be.timeouts.push({run:t,time:n});return null===Be.nextDraw&&(Be.nextDraw=k.window.requestAnimationFrame(Be._draw)),r},immediate(t){const e=Be.immediates.push(t);return null===Be.nextDraw&&(Be.nextDraw=k.window.requestAnimationFrame(Be._draw)),e},cancelFrame(t){null!=t&&Be.frames.remove(t)},clearTimeout(t){null!=t&&Be.timeouts.remove(t)},cancelImmediate(t){null!=t&&Be.immediates.remove(t)},_draw(t){let e=null;const n=Be.timeouts.last();for(;(e=Be.timeouts.shift())&&(t>=e.time?e.run():Be.timeouts.push(e),e!==n););let r=null;const i=Be.frames.last();for(;r!==i&&(r=Be.frames.shift());)r.run(t);let s=null;for(;s=Be.immediates.shift();)s();Be.nextDraw=Be.timeouts.first()||Be.frames.first()?k.window.requestAnimationFrame(Be._draw):null}},Ie=Be,Re=function(t){const e=t.start,n=t.runner.duration();return{start:e,duration:n,end:e+n,runner:t.runner}},ze=function(){const t=k.window;return(t.performance||t.Date).now()};class Fe extends wt{constructor(t=ze){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(Re);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 Ie.cancelFrame(this._nextFrame),this._nextFrame=null,t?this._stepImmediate():(this._paused||(this._nextFrame=Ie.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)}}l({Element:{timeline:function(t){return null==t?(this._timeline=this._timeline||new Fe,this._timeline):(this._timeline=t,this)}}});class qe extends wt{constructor(t){super(),this.id=qe.id++,t="function"==typeof(t=null==t?400:t)?new ae(t):t,this._element=null,this._timeline=null,this.done=!1,this._queue=[],this._duration="number"==typeof t&&t,this._isDeclarative=t instanceof ae,this._stepper=this._isDeclarative?t:new oe,this._history={},this.enabled=!0,this._time=0,this._lastTime=0,this._reseted=!0,this.transforms=new it,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 se||(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=qe.sanitise(t,e,n),i=new qe(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 it,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 oe(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)},h=i*(r+n)-r;return a=e<=0?Math.round(t(1e-5)):e<h?t(e):Math.round(t(h-1e-5)),a}const h=Math.floor(this.loops()),u=s&&h%2==0;return a=h+(u&&!o||o&&u?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||bt,runner:e||bt,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 Fe||(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 it,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}}qe.id=0;class Ue{constructor(t=new it,e=-1,n=!0){this.transforms=t,this.id=e,this.done=n}clearTransformsFromQueue(){}}B([qe,Ue],{mergeWith(t){return new Ue(t.transforms.lmultiply(this.transforms),t.id)}});const Ve=(t,e)=>t.lmultiplyO(e),Ge=t=>t.transforms;function He(){const t=this._transformationRunners.runners.map(Ge).reduce(Ve,new it);this.transform(t),this._transformationRunners.merge(),1===this._transformationRunners.length()&&(this._frameId=null)}class Xe{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 Ue).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}}l({Element:{animate(t,e,n){const r=qe.sanitise(t,e,n),i=this.timeline();return new qe(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(Ge).reduce(Ve,new it)},_addRunner(t){this._transformationRunners.add(t),Ie.cancelImmediate(this._frameId),this._frameId=Ie.immediate(He.bind(this))},_prepareRunner(){null==this._frameId&&(this._transformationRunners=(new Xe).add(new Ue(new it(this))))}}}),B(qe,{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 xe(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 Se(i.from()).valueOf();Object.assign(n,e),i.from(n)}const h=new Se(i.to()).valueOf();Object.assign(h,e),i.to(h),s=n,r=e}),this._rememberMorpher(t,i),this},zoom(t,e){if(this._tryRetarget("zoom",t,e))return this;let n=new xe(this._stepper).to(new Nt(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=it.isMatrixLike(t);n=null!=t.affine?t.affine:null!=n?n:!r;const i=new xe(this._stepper).type(n?Ne:it);let s,o,a,h,u;return this.queue(function(){o=o||this.element(),s=s||y(t,o),u=new it(e?void 0:o),o._addRunner(this),e||o._clearTransformRunnersBefore(this)},function(l){e||this.clearTransform();const{x:c,y:d}=new nt(s).transform(o._currentTransform(this));let f=new it({...t,origin:[c,d]}),p=this._isDeclarative&&a?a:u;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&&h&&(p.rotate=h)),i.from(p),i.to(f);const m=i.at(l);return h=m.rotate,a=new it(m),this.addTransform(a),o._addRunner(this),i.done()},function(e){(e.origin||"center").toString()!==(t.origin||"center").toString()&&(s=y(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 Nt(e),this._tryRetarget(t,e))return this;const n=new xe(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 Nt(t))}),this._rememberMorpher(t,n),this},_queueObject(t,e){if(this._tryRetarget(t,e))return this;const n=new xe(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 Nt(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 xe(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 at(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)}}),B(qe,{rx:Lt,ry:Wt,from:Ut,to:Vt}),W(qe,"Runner");class Ye extends Ct{constructor(t,e=t){super(T("svg",t),e),this.namespace()}defs(){return this.isRoot()?O(this.node.querySelector("defs"))||this.put(new Tt):this.root().defs()}isRoot(){return!this.node.parentNode||!(this.node.parentNode instanceof k.window.SVGElement)&&"#document-fragment"!==this.node.parentNode.nodeName}namespace(){return this.isRoot()?this.attr({xmlns:x,version:"1.1"}).attr("xmlns:xlink",N,_):this.root().namespace()}removeNamespace(){return this.attr({xmlns:null,version:null}).attr("xmlns:xlink",null,_).attr("xmlns:svgjs",null,_)}root(){return this.isRoot()?this:super.root()}}l({Container:{nested:I(function(){return this.put(new Ye)})}}),W(Ye,"Svg",!0);class $e extends Ct{constructor(t,e=t){super(T("symbol",t),e)}}function Qe(t){return!1===this._build&&this.clear(),this.node.appendChild(k.document.createTextNode(t)),this}function Ze(){return this.node.getComputedTextLength()}function Je(t,e=this.bbox()){return null==t?e.x:this.attr("x",this.attr("x")+t-e.x)}function Ke(t,e=this.bbox()){return null==t?e.y:this.attr("y",this.attr("y")+t-e.y)}function tn(t,e,n=this.bbox()){return this.x(t,n).y(e,n)}function en(t,e=this.bbox()){return null==t?e.cx:this.attr("x",this.attr("x")+t-e.cx)}function nn(t,e=this.bbox()){return null==t?e.cy:this.attr("y",this.attr("y")+t-e.cy)}function rn(t,e,n=this.bbox()){return this.cx(t,n).cy(e,n)}function sn(t){return this.attr("x",t)}function on(t){return this.attr("y",t)}function an(t,e){return this.ax(t).ay(e)}function hn(t){return this._build=!!t,this}l({Container:{symbol:I(function(){return this.put(new $e)})}}),W($e,"Symbol");class un extends Ot{constructor(t,e=t){super(T("text",t),e),this.dom.leading=this.dom.leading??new Nt(1.3),this._rebuild=!0,this._build=!1}leading(t){return null==t?this.dom.leading:(this.dom.leading=new Nt(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(w(this.node))return;const i=k.window.getComputedStyle(this.node).getPropertyValue("font-size"),s=n*new Nt(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 Nt(t.leading||1.3),this}writeDataToDom(){return b(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||w(e[r])?0===r&&(n=r+1):(r!==n&&3!==e[r].nodeType&&!0===O(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()}}B(un,o),l({Container:{text:I(function(t=""){return this.put(new un).text(t)}),plain:I(function(t=""){return this.put(new un).plain(t)})}}),W(un,"Text");class ln extends Ot{constructor(t,e=t){super(T("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 un))return this;const e=t.index(this),n=k.window.getComputedStyle(this.node).getPropertyValue("font-size"),r=t.dom.leading*new Nt(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)}}B(ln,o),l({Tspan:{tspan:I(function(t=""){const e=new ln;return this._build||this.clear(),this.put(e).text(t)})},Text:{newLine:function(t=""){return this.tspan(t).newLine()}}}),W(ln,"Tspan");class cn extends Ot{constructor(t,e=t){super(T("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 Nt(t).divide(2))}}B(cn,{x:jt,y:Pt,cx:Dt,cy:Bt,width:It,height:Rt}),l({Container:{circle:I(function(t=0){return this.put(new cn).size(t).move(0,0)})}}),W(cn,"Circle");class dn extends Ct{constructor(t,e=t){super(T("clipPath",t),e)}remove(){return this.targets().forEach(function(t){t.unclip()}),super.remove()}targets(){return dt("svg [clip-path*="+this.id()+"]")}}l({Container:{clip:I(function(){return this.defs().put(new dn)})},Element:{clipper(){return this.reference("clip-path")},clipWith(t){const e=t instanceof dn?t:this.parent().clip().add(t);return this.attr("clip-path","url(#"+e.id()+")")},unclip(){return this.attr("clip-path",null)}}}),W(dn,"ClipPath");class fn extends At{constructor(t,e=t){super(T("foreignObject",t),e)}}function pn(t,e){return this.children().forEach(n=>{let r;try{r=n.node instanceof k.window.SVGSVGElement?new at(n.attr(["x","y","width","height"])):n.bbox()}catch(t){return}const i=new it(n),s=i.translate(t,e).transform(i.inverse()),o=new nt(r.x,r.y).transform(s);n.move(o.x,o.y)}),this}function mn(t){return this.dmove(t,0)}function gn(t){return this.dmove(0,t)}function yn(t,e=this.bbox()){return null==t?e.height:this.size(e.width,t,e)}function vn(t=0,e=0,n=this.bbox()){const r=t-n.x,i=e-n.y;return this.dmove(r,i)}function wn(t,e,n=this.bbox()){const r=g(this,t,e,n),i=r.width/n.width,s=r.height/n.height;return this.children().forEach(t=>{const e=new nt(n).transform(new it(t).inverse());t.scale(i,s,e.x,e.y)}),this}function bn(t,e=this.bbox()){return null==t?e.width:this.size(t,e.height,e)}function xn(t,e=this.bbox()){return null==t?e.x:this.move(t,e.y,e)}function _n(t,e=this.bbox()){return null==t?e.y:this.move(e.x,t,e)}l({Container:{foreignObject:I(function(t,e){return this.put(new fn).size(t,e)})}}),W(fn,"ForeignObject");class Nn extends Ct{constructor(t,e=t){super(T("g",t),e)}}B(Nn,a),l({Container:{group:I(function(){return this.put(new Nn)})}}),W(Nn,"G");class kn extends Ct{constructor(t,e=t){super(T("a",t),e)}target(t){return this.attr("target",t)}to(t){return this.attr("href",t,N)}}B(kn,a),l({Container:{link:I(function(t){return this.put(new kn).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 kn,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}}}),W(kn,"A");class Sn extends Ct{constructor(t,e=t){super(T("mask",t),e)}remove(){return this.targets().forEach(function(t){t.unmask()}),super.remove()}targets(){return dt("svg [mask*="+this.id()+"]")}}l({Container:{mask:I(function(){return this.defs().put(new Sn)})},Element:{masker(){return this.reference("mask")},maskWith(t){const e=t instanceof Sn?t:this.parent().mask().add(t);return this.attr("mask","url(#"+e.id()+")")},unmask(){return this.attr("mask",null)}}}),W(Sn,"Mask");class Mn extends At{constructor(t,e=t){super(T("stop",t),e)}update(t){return("number"==typeof t||t instanceof Nt)&&(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 Nt(t.offset)),this}}l({Gradient:{stop:function(t,e,n){return this.put(new Mn).update(t,e,n)}}}),W(Mn,"Stop");class An extends At{constructor(t,e=t){super(T("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))}}l("Dom",{style(t,e){return this.put(new An).rule(t,e)},fontface(t,e,n){return this.put(new An).font(t,e,n)}}),W(An,"Style");class En extends un{constructor(t,e=t){super(T("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")}}l({Container:{textPath:I(function(t,e){return t instanceof un||(t=this.text(t)),t.path(e)})},Text:{path:I(function(t,e=!0){const n=new En;let r;if(t instanceof Ae||(t=this.defs().path(t)),n.attr("href","#"+t,N),e)for(;r=this.node.firstChild;)n.node.appendChild(r);return this.put(n)}),textPath(){return this.findOne("textPath")}},Path:{text:I(function(t){return t instanceof un||(t=(new un).addTo(this.parent()).text(t)),t.path(this)}),targets(){return dt("svg textPath").filter(t=>(t.attr("href")||"").includes(this.id()))}}}),En.prototype.MorphArray=we,W(En,"TextPath");class Cn extends Ot{constructor(t,e=t){super(T("use",t),e)}use(t,e){return this.attr("href",(e||"")+"#"+t,N)}}l({Container:{use:I(function(t,e){return this.put(new Cn).use(t,e)})}}),W(Cn,"Use"),B([Ye,$e,Xt,Ht,ne],c("viewbox")),B([ee,je,We,Ae],c("marker")),B(un,c("Text")),B(Ae,c("Path")),B(Tt,c("Defs")),B([un,ln],c("Tspan")),B([Pe,zt,Gt,qe],c("radius")),B(wt,c("EventTarget")),B(Mt,c("Dom")),B(At,c("Element")),B(Ot,c("Shape")),B([Ct,qt],c("Container")),B(Gt,c("Gradient")),B(qe,c("Runner")),lt.extend([...new Set(u)]),function(t=[]){Me.push(...[].concat(t))}([Nt,et,at,it,_t,$t,we,nt]),B(Me,{to(t){return(new xe).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 Tn=n(726),On=n(854),Ln=n(731),Wn=n(986);class jn{static create(t){let e=document.createElementNS("http://www.w3.org/2000/svg","text");e.textContent=t;let n=new jn(e);return n.assignUUID(),n.setAttributes(jn.defaultAttributes),n}static deserialized(t,e){var n;if(!(0,On.isNonNullObject)(t))throw new Error("Saved base must be an object.");let r=null!==(n=t.id)&&void 0!==n?n:t.textId;if(!r)throw new Error("Missing base ID.");if(!(0,On.isString)(r))throw new Error("Base IDs must be strings.");let i=e.domNode.querySelector("#"+r);if(!i)throw new Error("Unable to find nucleobase DOM node.");if(!(i instanceof SVGTextElement))throw new Error("Nucleobase DOM node must be an SVG text element.");return new jn(i)}constructor(t){this.domNode=t,this.centerPoint=new Ln.CenterPoint(t)}serialized(){if(!this.id)throw new Error("Nucleobase ID is falsy.");return{id:this.id}}appendTo(t){t.appendChild(this.domNode)}remove(){this.domNode.remove()}isIn(t){return t.contains(this.domNode)&&t!==this.domNode}hasParent(){return!!this.domNode.parentNode}bringToFront(){(0,Tn.bringToFront)(this.domNode)}sendToBack(){(0,Tn.sendToBack)(this.domNode)}getAttribute(t){return this.domNode.getAttribute(t)}setAttribute(t,e){this.domNode.setAttribute(t,e)}setAttributes(t){try{new un(this.domNode).attr(t)}catch(t){}}get id(){return this.domNode.id}assignUUID(){(0,Tn.assignUUID)(this.domNode)}get textContent(){return this.domNode.textContent}set textContent(t){this.domNode.textContent=t}isA(){var t;return"A"===(null===(t=this.textContent)||void 0===t?void 0:t.toUpperCase())}isU(){var t;return"U"===(null===(t=this.textContent)||void 0===t?void 0:t.toUpperCase())}isT(){var t;return"T"===(null===(t=this.textContent)||void 0===t?void 0:t.toUpperCase())}isG(){var t;return"G"===(null===(t=this.textContent)||void 0===t?void 0:t.toUpperCase())}isC(){var t;return"C"===(null===(t=this.textContent)||void 0===t?void 0:t.toUpperCase())}get bbox(){return this.domNode.getBBox()}getCenterPoint(){return this.centerPoint}setCenterPoint(t){this.centerPoint.x=t.x,this.centerPoint.y=t.y}maintainingCenterPoint(t){let{x:e,y:n}=this.centerPoint;t(),this.centerPoint.x=e,this.centerPoint.y=n}get boundingClientRect(){return this.domNode.getBoundingClientRect()}get clientCenterPoint(){let t=this.domNode.getBoundingClientRect();return{x:(0,Wn.mean)([t.left,t.right]),y:(0,Wn.mean)([t.top,t.bottom])}}getClientCenterPoint(){return this.clientCenterPoint}}jn.defaultAttributes={"font-family":"Arial","font-size":"9","font-weight":"700"},jn.defaultAttributeNames=["font-family","font-size","font-weight"];class Pn{constructor(t,e){this.base1=t,this.base2=e}[Symbol.iterator](){return[this.base1,this.base2].values()}isAU(){return this.base1.isA()&&this.base2.isU()||this.base1.isU()&&this.base2.isA()}isAT(){return this.base1.isA()&&this.base2.isT()||this.base1.isT()&&this.base2.isA()}isGC(){return this.base1.isG()&&this.base2.isC()||this.base1.isC()&&this.base2.isG()}isGU(){return this.base1.isG()&&this.base2.isU()||this.base1.isU()&&this.base2.isG()}isGT(){return this.base1.isG()&&this.base2.isT()||this.base1.isT()&&this.base2.isG()}}function Dn(t,e){let n=new Map;e.forEach((t,e)=>n.set(t,e));let r=[...t];return r.sort((t,e)=>{var r,i;return(null!==(r=n.get(t))&&void 0!==r?r:-1)-(null!==(i=n.get(e))&&void 0!==i?i:-1)}),r}})(),r})(),t.exports=e()},401(t,e,n){"use strict";n.d(e,{Ay:()=>f,Qs:()=>h,eB:()=>d,gP:()=>a,vM:()=>l,vw:()=>c,yZ:()=>u});var r=n(601),i=n.n(r),s=n(314),o=n.n(s)()(i());o.push([t.id,'.ANVAQUoGpnk43RSnGAKM {\n margin-top: 39px;\n\n display: flex;\n flex-direction: column;\n}\n\n.RAWN5K2ehadscPWlBK_9 {\n margin: 11px 0px 0px 12px;\n\n display: flex;\n flex-direction: column;\n}\n\n.RDvmUBCYTtjR2wzHlmxc .RAWN5K2ehadscPWlBK_9 {\n display: none;\n}\n\n.R1YlURzvulrm8_Yykjll {\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: white;\n\n user-select: none;\n -webkit-user-select: none;\n\n pointer-events: none;\n}\n\n.JuLTZXer4cr4ufASV85l {\n margin-top: 23px;\n\n display: flex;\n flex-direction: row;\n gap: 23px;\n}\n\n.nJxPkvauzUEG66FC0ZAb {\n display: none;\n flex-direction: column;\n}\n',""]);var a="ANVAQUoGpnk43RSnGAKM",h="RAWN5K2ehadscPWlBK_9",u="RDvmUBCYTtjR2wzHlmxc",l="R1YlURzvulrm8_Yykjll",c="JuLTZXer4cr4ufASV85l",d="nJxPkvauzUEG66FC0ZAb";const f=o},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:()=>h,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-radius: 2px;\n\n border: none;\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 background-color: white;\n\n pointer-events: auto;\n}\n\n.cstoj4QoATbKp66WQrBA:focus {\n outline: none;\n}\n',""]);var a="cstoj4QoATbKp66WQrBA";const h=o},420(t,e,n){"use strict";n.d(e,{Ay:()=>l,KQ:()=>a,UJ:()=>u,wx:()=>h});var r=n(601),i=n.n(r),s=n(314),o=n.n(s)()(i());o.push([t.id,'.wkp2L4HpJzRg7XSLEG0O {\n width: 290px;\n height: 524px;\n\n overflow: auto;\n\n border-radius: 15px;\n\n border: 1px solid #cacae4;\n\n padding: 23px 16px 50px 36px;\n\n background-color: rgba(0, 0, 0, 0.88);\n}\n\n.Y7tezdMOsnQfs2CQtMUR {\n margin: 0px;\n padding: 0px;\n\n font-family: "Open Sans", sans-serif;\n font-size: 31px;\n font-weight: 700;\n font-style: normal;\n color: white;\n\n user-select: none;\n -webkit-user-select: none;\n\n pointer-events: none;\n}\n\n.blLx0TnwxHwlX8qvUigb {\n margin: 27px 0px 0px 24px;\n\n /**\n * Prevents unwanted movement of the vertical scrollbar\n * when elements are deselected and reselected.\n */\n min-height: 2200px;\n\n display: flex;\n flex-direction: column;\n align-items: start;\n\n pointer-events: none;\n}\n',""]);var a="wkp2L4HpJzRg7XSLEG0O",h="Y7tezdMOsnQfs2CQtMUR",u="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}},543(t,e,n){var r;t=n.nmd(t),function(){var i,s="Expected a function",o="__lodash_hash_undefined__",a="__lodash_placeholder__",h=32,u=128,l=1/0,c=9007199254740991,d=NaN,f=4294967295,p=[["ary",u],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",h],["partialRight",64],["rearg",256]],m="[object Arguments]",g="[object Array]",y="[object Boolean]",v="[object Date]",w="[object Error]",b="[object Function]",x="[object GeneratorFunction]",_="[object Map]",N="[object Number]",k="[object Object]",S="[object Promise]",M="[object RegExp]",A="[object Set]",E="[object String]",C="[object Symbol]",T="[object WeakMap]",O="[object ArrayBuffer]",L="[object DataView]",W="[object Float32Array]",j="[object Float64Array]",P="[object Int8Array]",D="[object Int16Array]",B="[object Int32Array]",I="[object Uint8Array]",R="[object Uint8ClampedArray]",z="[object Uint16Array]",F="[object Uint32Array]",q=/\b__p \+= '';/g,U=/\b(__p \+=) '' \+/g,V=/(__e\(.*?\)|\b__t\)) \+\n'';/g,G=/&(?:amp|lt|gt|quot|#39);/g,H=/[&<>"']/g,X=RegExp(G.source),Y=RegExp(H.source),$=/<%-([\s\S]+?)%>/g,Q=/<%([\s\S]+?)%>/g,Z=/<%=([\s\S]+?)%>/g,J=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,K=/^\w*$/,tt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,et=/[\\^$.*+?()[\]{}|]/g,nt=RegExp(et.source),rt=/^\s+/,it=/\s/,st=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ot=/\{\n\/\* \[wrapped with (.+)\] \*/,at=/,? & /,ht=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ut=/[()=,{}\[\]\/\s]/,lt=/\\(\\)?/g,ct=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,dt=/\w*$/,ft=/^[-+]0x[0-9a-f]+$/i,pt=/^0b[01]+$/i,mt=/^\[object .+?Constructor\]$/,gt=/^0o[0-7]+$/i,yt=/^(?:0|[1-9]\d*)$/,vt=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,wt=/($^)/,bt=/['\n\r\u2028\u2029\\]/g,xt="\\ud800-\\udfff",_t="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Nt="\\u2700-\\u27bf",kt="a-z\\xdf-\\xf6\\xf8-\\xff",St="A-Z\\xc0-\\xd6\\xd8-\\xde",Mt="\\ufe0e\\ufe0f",At="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Et="["+xt+"]",Ct="["+At+"]",Tt="["+_t+"]",Ot="\\d+",Lt="["+Nt+"]",Wt="["+kt+"]",jt="[^"+xt+At+Ot+Nt+kt+St+"]",Pt="\\ud83c[\\udffb-\\udfff]",Dt="[^"+xt+"]",Bt="(?:\\ud83c[\\udde6-\\uddff]){2}",It="[\\ud800-\\udbff][\\udc00-\\udfff]",Rt="["+St+"]",zt="\\u200d",Ft="(?:"+Wt+"|"+jt+")",qt="(?:"+Rt+"|"+jt+")",Ut="(?:['’](?:d|ll|m|re|s|t|ve))?",Vt="(?:['’](?:D|LL|M|RE|S|T|VE))?",Gt="(?:"+Tt+"|"+Pt+")?",Ht="["+Mt+"]?",Xt=Ht+Gt+"(?:"+zt+"(?:"+[Dt,Bt,It].join("|")+")"+Ht+Gt+")*",Yt="(?:"+[Lt,Bt,It].join("|")+")"+Xt,$t="(?:"+[Dt+Tt+"?",Tt,Bt,It,Et].join("|")+")",Qt=RegExp("['’]","g"),Zt=RegExp(Tt,"g"),Jt=RegExp(Pt+"(?="+Pt+")|"+$t+Xt,"g"),Kt=RegExp([Rt+"?"+Wt+"+"+Ut+"(?="+[Ct,Rt,"$"].join("|")+")",qt+"+"+Vt+"(?="+[Ct,Rt+Ft,"$"].join("|")+")",Rt+"?"+Ft+"+"+Ut,Rt+"+"+Vt,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Ot,Yt].join("|"),"g"),te=RegExp("["+zt+xt+_t+Mt+"]"),ee=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,ne=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],re=-1,ie={};ie[W]=ie[j]=ie[P]=ie[D]=ie[B]=ie[I]=ie[R]=ie[z]=ie[F]=!0,ie[m]=ie[g]=ie[O]=ie[y]=ie[L]=ie[v]=ie[w]=ie[b]=ie[_]=ie[N]=ie[k]=ie[M]=ie[A]=ie[E]=ie[T]=!1;var se={};se[m]=se[g]=se[O]=se[L]=se[y]=se[v]=se[W]=se[j]=se[P]=se[D]=se[B]=se[_]=se[N]=se[k]=se[M]=se[A]=se[E]=se[C]=se[I]=se[R]=se[z]=se[F]=!0,se[w]=se[b]=se[T]=!1;var oe={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},ae=parseFloat,he=parseInt,ue="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,le="object"==typeof self&&self&&self.Object===Object&&self,ce=ue||le||Function("return this")(),de=e&&!e.nodeType&&e,fe=de&&t&&!t.nodeType&&t,pe=fe&&fe.exports===de,me=pe&&ue.process,ge=function(){try{return fe&&fe.require&&fe.require("util").types||me&&me.binding&&me.binding("util")}catch(t){}}(),ye=ge&&ge.isArrayBuffer,ve=ge&&ge.isDate,we=ge&&ge.isMap,be=ge&&ge.isRegExp,xe=ge&&ge.isSet,_e=ge&&ge.isTypedArray;function Ne(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}function ke(t,e,n,r){for(var i=-1,s=null==t?0:t.length;++i<s;){var o=t[i];e(r,o,n(o),t)}return r}function Se(t,e){for(var n=-1,r=null==t?0:t.length;++n<r&&!1!==e(t[n],n,t););return t}function Me(t,e){for(var n=null==t?0:t.length;n--&&!1!==e(t[n],n,t););return t}function Ae(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(!e(t[n],n,t))return!1;return!0}function Ee(t,e){for(var n=-1,r=null==t?0:t.length,i=0,s=[];++n<r;){var o=t[n];e(o,n,t)&&(s[i++]=o)}return s}function Ce(t,e){return!(null==t||!t.length)&&Re(t,e,0)>-1}function Te(t,e,n){for(var r=-1,i=null==t?0:t.length;++r<i;)if(n(e,t[r]))return!0;return!1}function Oe(t,e){for(var n=-1,r=null==t?0:t.length,i=Array(r);++n<r;)i[n]=e(t[n],n,t);return i}function Le(t,e){for(var n=-1,r=e.length,i=t.length;++n<r;)t[i+n]=e[n];return t}function We(t,e,n,r){var i=-1,s=null==t?0:t.length;for(r&&s&&(n=t[++i]);++i<s;)n=e(n,t[i],i,t);return n}function je(t,e,n,r){var i=null==t?0:t.length;for(r&&i&&(n=t[--i]);i--;)n=e(n,t[i],i,t);return n}function Pe(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1}var De=Ue("length");function Be(t,e,n){var r;return n(t,function(t,n,i){if(e(t,n,i))return r=n,!1}),r}function Ie(t,e,n,r){for(var i=t.length,s=n+(r?1:-1);r?s--:++s<i;)if(e(t[s],s,t))return s;return-1}function Re(t,e,n){return e==e?function(t,e,n){for(var r=n-1,i=t.length;++r<i;)if(t[r]===e)return r;return-1}(t,e,n):Ie(t,Fe,n)}function ze(t,e,n,r){for(var i=n-1,s=t.length;++i<s;)if(r(t[i],e))return i;return-1}function Fe(t){return t!=t}function qe(t,e){var n=null==t?0:t.length;return n?He(t,e)/n:d}function Ue(t){return function(e){return null==e?i:e[t]}}function Ve(t){return function(e){return null==t?i:t[e]}}function Ge(t,e,n,r,i){return i(t,function(t,i,s){n=r?(r=!1,t):e(n,t,i,s)}),n}function He(t,e){for(var n,r=-1,s=t.length;++r<s;){var o=e(t[r]);o!==i&&(n=n===i?o:n+o)}return n}function Xe(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}function Ye(t){return t?t.slice(0,dn(t)+1).replace(rt,""):t}function $e(t){return function(e){return t(e)}}function Qe(t,e){return Oe(e,function(e){return t[e]})}function Ze(t,e){return t.has(e)}function Je(t,e){for(var n=-1,r=t.length;++n<r&&Re(e,t[n],0)>-1;);return n}function Ke(t,e){for(var n=t.length;n--&&Re(e,t[n],0)>-1;);return n}var tn=Ve({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"}),en=Ve({"&":"&","<":"<",">":">",'"':""","'":"'"});function nn(t){return"\\"+oe[t]}function rn(t){return te.test(t)}function sn(t){var e=-1,n=Array(t.size);return t.forEach(function(t,r){n[++e]=[r,t]}),n}function on(t,e){return function(n){return t(e(n))}}function an(t,e){for(var n=-1,r=t.length,i=0,s=[];++n<r;){var o=t[n];o!==e&&o!==a||(t[n]=a,s[i++]=n)}return s}function hn(t){var e=-1,n=Array(t.size);return t.forEach(function(t){n[++e]=t}),n}function un(t){var e=-1,n=Array(t.size);return t.forEach(function(t){n[++e]=[t,t]}),n}function ln(t){return rn(t)?function(t){for(var e=Jt.lastIndex=0;Jt.test(t);)++e;return e}(t):De(t)}function cn(t){return rn(t)?function(t){return t.match(Jt)||[]}(t):function(t){return t.split("")}(t)}function dn(t){for(var e=t.length;e--&&it.test(t.charAt(e)););return e}var fn=Ve({"&":"&","<":"<",">":">",""":'"',"'":"'"}),pn=function t(e){var n,r=(e=null==e?ce:pn.defaults(ce.Object(),e,pn.pick(ce,ne))).Array,it=e.Date,xt=e.Error,_t=e.Function,Nt=e.Math,kt=e.Object,St=e.RegExp,Mt=e.String,At=e.TypeError,Et=r.prototype,Ct=_t.prototype,Tt=kt.prototype,Ot=e["__core-js_shared__"],Lt=Ct.toString,Wt=Tt.hasOwnProperty,jt=0,Pt=(n=/[^.]+$/.exec(Ot&&Ot.keys&&Ot.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",Dt=Tt.toString,Bt=Lt.call(kt),It=ce._,Rt=St("^"+Lt.call(Wt).replace(et,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),zt=pe?e.Buffer:i,Ft=e.Symbol,qt=e.Uint8Array,Ut=zt?zt.allocUnsafe:i,Vt=on(kt.getPrototypeOf,kt),Gt=kt.create,Ht=Tt.propertyIsEnumerable,Xt=Et.splice,Yt=Ft?Ft.isConcatSpreadable:i,$t=Ft?Ft.iterator:i,Jt=Ft?Ft.toStringTag:i,te=function(){try{var t=hs(kt,"defineProperty");return t({},"",{}),t}catch(t){}}(),oe=e.clearTimeout!==ce.clearTimeout&&e.clearTimeout,ue=it&&it.now!==ce.Date.now&&it.now,le=e.setTimeout!==ce.setTimeout&&e.setTimeout,de=Nt.ceil,fe=Nt.floor,me=kt.getOwnPropertySymbols,ge=zt?zt.isBuffer:i,De=e.isFinite,Ve=Et.join,mn=on(kt.keys,kt),gn=Nt.max,yn=Nt.min,vn=it.now,wn=e.parseInt,bn=Nt.random,xn=Et.reverse,_n=hs(e,"DataView"),Nn=hs(e,"Map"),kn=hs(e,"Promise"),Sn=hs(e,"Set"),Mn=hs(e,"WeakMap"),An=hs(kt,"create"),En=Mn&&new Mn,Cn={},Tn=Ds(_n),On=Ds(Nn),Ln=Ds(kn),Wn=Ds(Sn),jn=Ds(Mn),Pn=Ft?Ft.prototype:i,Dn=Pn?Pn.valueOf:i,Bn=Pn?Pn.toString:i;function In(t){if(ta(t)&&!Uo(t)&&!(t instanceof qn)){if(t instanceof Fn)return t;if(Wt.call(t,"__wrapped__"))return Bs(t)}return new Fn(t)}var Rn=function(){function t(){}return function(e){if(!Ko(e))return{};if(Gt)return Gt(e);t.prototype=e;var n=new t;return t.prototype=i,n}}();function zn(){}function Fn(t,e){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!e,this.__index__=0,this.__values__=i}function qn(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=f,this.__views__=[]}function Un(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function Vn(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function Gn(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function Hn(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new Gn;++e<n;)this.add(t[e])}function Xn(t){var e=this.__data__=new Vn(t);this.size=e.size}function Yn(t,e){var n=Uo(t),r=!n&&qo(t),i=!n&&!r&&Xo(t),s=!n&&!r&&!i&&ha(t),o=n||r||i||s,a=o?Xe(t.length,Mt):[],h=a.length;for(var u in t)!e&&!Wt.call(t,u)||o&&("length"==u||i&&("offset"==u||"parent"==u)||s&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||ms(u,h))||a.push(u);return a}function $n(t){var e=t.length;return e?t[Gr(0,e-1)]:i}function Qn(t,e){return Os(Mi(t),sr(e,0,t.length))}function Zn(t){return Os(Mi(t))}function Jn(t,e,n){(n!==i&&!Ro(t[e],n)||n===i&&!(e in t))&&rr(t,e,n)}function Kn(t,e,n){var r=t[e];Wt.call(t,e)&&Ro(r,n)&&(n!==i||e in t)||rr(t,e,n)}function tr(t,e){for(var n=t.length;n--;)if(Ro(t[n][0],e))return n;return-1}function er(t,e,n,r){return lr(t,function(t,i,s){e(r,t,n(t),s)}),r}function nr(t,e){return t&&Ai(e,Ta(e),t)}function rr(t,e,n){"__proto__"==e&&te?te(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}function ir(t,e){for(var n=-1,s=e.length,o=r(s),a=null==t;++n<s;)o[n]=a?i:Sa(t,e[n]);return o}function sr(t,e,n){return t==t&&(n!==i&&(t=t<=n?t:n),e!==i&&(t=t>=e?t:e)),t}function or(t,e,n,r,s,o){var a,h=1&e,u=2&e,l=4&e;if(n&&(a=s?n(t,r,s,o):n(t)),a!==i)return a;if(!Ko(t))return t;var c=Uo(t);if(c){if(a=function(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&Wt.call(t,"index")&&(n.index=t.index,n.input=t.input),n}(t),!h)return Mi(t,a)}else{var d=cs(t),f=d==b||d==x;if(Xo(t))return bi(t,h);if(d==k||d==m||f&&!s){if(a=u||f?{}:fs(t),!h)return u?function(t,e){return Ai(t,ls(t),e)}(t,function(t,e){return t&&Ai(e,Oa(e),t)}(a,t)):function(t,e){return Ai(t,us(t),e)}(t,nr(a,t))}else{if(!se[d])return s?t:{};a=function(t,e,n){var r,i=t.constructor;switch(e){case O:return xi(t);case y:case v:return new i(+t);case L:return function(t,e){var n=e?xi(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}(t,n);case W:case j:case P:case D:case B:case I:case R:case z:case F:return _i(t,n);case _:return new i;case N:case E:return new i(t);case M:return function(t){var e=new t.constructor(t.source,dt.exec(t));return e.lastIndex=t.lastIndex,e}(t);case A:return new i;case C:return r=t,Dn?kt(Dn.call(r)):{}}}(t,d,h)}}o||(o=new Xn);var p=o.get(t);if(p)return p;o.set(t,a),sa(t)?t.forEach(function(r){a.add(or(r,e,n,r,t,o))}):ea(t)&&t.forEach(function(r,i){a.set(i,or(r,e,n,i,t,o))});var g=c?i:(l?u?es:ts:u?Oa:Ta)(t);return Se(g||t,function(r,i){g&&(r=t[i=r]),Kn(a,i,or(r,e,n,i,t,o))}),a}function ar(t,e,n){var r=n.length;if(null==t)return!r;for(t=kt(t);r--;){var s=n[r],o=e[s],a=t[s];if(a===i&&!(s in t)||!o(a))return!1}return!0}function hr(t,e,n){if("function"!=typeof t)throw new At(s);return As(function(){t.apply(i,n)},e)}function ur(t,e,n,r){var i=-1,s=Ce,o=!0,a=t.length,h=[],u=e.length;if(!a)return h;n&&(e=Oe(e,$e(n))),r?(s=Te,o=!1):e.length>=200&&(s=Ze,o=!1,e=new Hn(e));t:for(;++i<a;){var l=t[i],c=null==n?l:n(l);if(l=r||0!==l?l:0,o&&c==c){for(var d=u;d--;)if(e[d]===c)continue t;h.push(l)}else s(e,c,r)||h.push(l)}return h}In.templateSettings={escape:$,evaluate:Q,interpolate:Z,variable:"",imports:{_:In}},In.prototype=zn.prototype,In.prototype.constructor=In,Fn.prototype=Rn(zn.prototype),Fn.prototype.constructor=Fn,qn.prototype=Rn(zn.prototype),qn.prototype.constructor=qn,Un.prototype.clear=function(){this.__data__=An?An(null):{},this.size=0},Un.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},Un.prototype.get=function(t){var e=this.__data__;if(An){var n=e[t];return n===o?i:n}return Wt.call(e,t)?e[t]:i},Un.prototype.has=function(t){var e=this.__data__;return An?e[t]!==i:Wt.call(e,t)},Un.prototype.set=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=An&&e===i?o:e,this},Vn.prototype.clear=function(){this.__data__=[],this.size=0},Vn.prototype.delete=function(t){var e=this.__data__,n=tr(e,t);return!(n<0||(n==e.length-1?e.pop():Xt.call(e,n,1),--this.size,0))},Vn.prototype.get=function(t){var e=this.__data__,n=tr(e,t);return n<0?i:e[n][1]},Vn.prototype.has=function(t){return tr(this.__data__,t)>-1},Vn.prototype.set=function(t,e){var n=this.__data__,r=tr(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this},Gn.prototype.clear=function(){this.size=0,this.__data__={hash:new Un,map:new(Nn||Vn),string:new Un}},Gn.prototype.delete=function(t){var e=os(this,t).delete(t);return this.size-=e?1:0,e},Gn.prototype.get=function(t){return os(this,t).get(t)},Gn.prototype.has=function(t){return os(this,t).has(t)},Gn.prototype.set=function(t,e){var n=os(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this},Hn.prototype.add=Hn.prototype.push=function(t){return this.__data__.set(t,o),this},Hn.prototype.has=function(t){return this.__data__.has(t)},Xn.prototype.clear=function(){this.__data__=new Vn,this.size=0},Xn.prototype.delete=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n},Xn.prototype.get=function(t){return this.__data__.get(t)},Xn.prototype.has=function(t){return this.__data__.has(t)},Xn.prototype.set=function(t,e){var n=this.__data__;if(n instanceof Vn){var r=n.__data__;if(!Nn||r.length<199)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new Gn(r)}return n.set(t,e),this.size=n.size,this};var lr=Ti(vr),cr=Ti(wr,!0);function dr(t,e){var n=!0;return lr(t,function(t,r,i){return n=!!e(t,r,i)}),n}function fr(t,e,n){for(var r=-1,s=t.length;++r<s;){var o=t[r],a=e(o);if(null!=a&&(h===i?a==a&&!aa(a):n(a,h)))var h=a,u=o}return u}function pr(t,e){var n=[];return lr(t,function(t,r,i){e(t,r,i)&&n.push(t)}),n}function mr(t,e,n,r,i){var s=-1,o=t.length;for(n||(n=ps),i||(i=[]);++s<o;){var a=t[s];e>0&&n(a)?e>1?mr(a,e-1,n,r,i):Le(i,a):r||(i[i.length]=a)}return i}var gr=Oi(),yr=Oi(!0);function vr(t,e){return t&&gr(t,e,Ta)}function wr(t,e){return t&&yr(t,e,Ta)}function br(t,e){return Ee(e,function(e){return Qo(t[e])})}function xr(t,e){for(var n=0,r=(e=gi(e,t)).length;null!=t&&n<r;)t=t[Ps(e[n++])];return n&&n==r?t:i}function _r(t,e,n){var r=e(t);return Uo(t)?r:Le(r,n(t))}function Nr(t){return null==t?t===i?"[object Undefined]":"[object Null]":Jt&&Jt in kt(t)?function(t){var e=Wt.call(t,Jt),n=t[Jt];try{t[Jt]=i;var r=!0}catch(t){}var s=Dt.call(t);return r&&(e?t[Jt]=n:delete t[Jt]),s}(t):function(t){return Dt.call(t)}(t)}function kr(t,e){return t>e}function Sr(t,e){return null!=t&&Wt.call(t,e)}function Mr(t,e){return null!=t&&e in kt(t)}function Ar(t,e,n){for(var s=n?Te:Ce,o=t[0].length,a=t.length,h=a,u=r(a),l=1/0,c=[];h--;){var d=t[h];h&&e&&(d=Oe(d,$e(e))),l=yn(d.length,l),u[h]=!n&&(e||o>=120&&d.length>=120)?new Hn(h&&d):i}d=t[0];var f=-1,p=u[0];t:for(;++f<o&&c.length<l;){var m=d[f],g=e?e(m):m;if(m=n||0!==m?m:0,!(p?Ze(p,g):s(c,g,n))){for(h=a;--h;){var y=u[h];if(!(y?Ze(y,g):s(t[h],g,n)))continue t}p&&p.push(g),c.push(m)}}return c}function Er(t,e,n){var r=null==(t=ks(t,e=gi(e,t)))?t:t[Ps(Ys(e))];return null==r?i:Ne(r,t,n)}function Cr(t){return ta(t)&&Nr(t)==m}function Tr(t,e,n,r,s){return t===e||(null==t||null==e||!ta(t)&&!ta(e)?t!=t&&e!=e:function(t,e,n,r,s,o){var a=Uo(t),h=Uo(e),u=a?g:cs(t),l=h?g:cs(e),c=(u=u==m?k:u)==k,d=(l=l==m?k:l)==k,f=u==l;if(f&&Xo(t)){if(!Xo(e))return!1;a=!0,c=!1}if(f&&!c)return o||(o=new Xn),a||ha(t)?Ji(t,e,n,r,s,o):function(t,e,n,r,i,s,o){switch(n){case L:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case O:return!(t.byteLength!=e.byteLength||!s(new qt(t),new qt(e)));case y:case v:case N:return Ro(+t,+e);case w:return t.name==e.name&&t.message==e.message;case M:case E:return t==e+"";case _:var a=sn;case A:var h=1&r;if(a||(a=hn),t.size!=e.size&&!h)return!1;var u=o.get(t);if(u)return u==e;r|=2,o.set(t,e);var l=Ji(a(t),a(e),r,i,s,o);return o.delete(t),l;case C:if(Dn)return Dn.call(t)==Dn.call(e)}return!1}(t,e,u,n,r,s,o);if(!(1&n)){var p=c&&Wt.call(t,"__wrapped__"),b=d&&Wt.call(e,"__wrapped__");if(p||b){var x=p?t.value():t,S=b?e.value():e;return o||(o=new Xn),s(x,S,n,r,o)}}return!!f&&(o||(o=new Xn),function(t,e,n,r,s,o){var a=1&n,h=ts(t),u=h.length;if(u!=ts(e).length&&!a)return!1;for(var l=u;l--;){var c=h[l];if(!(a?c in e:Wt.call(e,c)))return!1}var d=o.get(t),f=o.get(e);if(d&&f)return d==e&&f==t;var p=!0;o.set(t,e),o.set(e,t);for(var m=a;++l<u;){var g=t[c=h[l]],y=e[c];if(r)var v=a?r(y,g,c,e,t,o):r(g,y,c,t,e,o);if(!(v===i?g===y||s(g,y,n,r,o):v)){p=!1;break}m||(m="constructor"==c)}if(p&&!m){var w=t.constructor,b=e.constructor;w==b||!("constructor"in t)||!("constructor"in e)||"function"==typeof w&&w instanceof w&&"function"==typeof b&&b instanceof b||(p=!1)}return o.delete(t),o.delete(e),p}(t,e,n,r,s,o))}(t,e,n,r,Tr,s))}function Or(t,e,n,r){var s=n.length,o=s,a=!r;if(null==t)return!o;for(t=kt(t);s--;){var h=n[s];if(a&&h[2]?h[1]!==t[h[0]]:!(h[0]in t))return!1}for(;++s<o;){var u=(h=n[s])[0],l=t[u],c=h[1];if(a&&h[2]){if(l===i&&!(u in t))return!1}else{var d=new Xn;if(r)var f=r(l,c,u,t,e,d);if(!(f===i?Tr(c,l,3,r,d):f))return!1}}return!0}function Lr(t){return!(!Ko(t)||(e=t,Pt&&Pt in e))&&(Qo(t)?Rt:mt).test(Ds(t));var e}function Wr(t){return"function"==typeof t?t:null==t?nh:"object"==typeof t?Uo(t)?Ir(t[0],t[1]):Br(t):ch(t)}function jr(t){if(!bs(t))return mn(t);var e=[];for(var n in kt(t))Wt.call(t,n)&&"constructor"!=n&&e.push(n);return e}function Pr(t,e){return t<e}function Dr(t,e){var n=-1,i=Go(t)?r(t.length):[];return lr(t,function(t,r,s){i[++n]=e(t,r,s)}),i}function Br(t){var e=as(t);return 1==e.length&&e[0][2]?_s(e[0][0],e[0][1]):function(n){return n===t||Or(n,t,e)}}function Ir(t,e){return ys(t)&&xs(e)?_s(Ps(t),e):function(n){var r=Sa(n,t);return r===i&&r===e?Ma(n,t):Tr(e,r,3)}}function Rr(t,e,n,r,s){t!==e&&gr(e,function(o,a){if(s||(s=new Xn),Ko(o))!function(t,e,n,r,s,o,a){var h=Ss(t,n),u=Ss(e,n),l=a.get(u);if(l)Jn(t,n,l);else{var c=o?o(h,u,n+"",t,e,a):i,d=c===i;if(d){var f=Uo(u),p=!f&&Xo(u),m=!f&&!p&&ha(u);c=u,f||p||m?Uo(h)?c=h:Ho(h)?c=Mi(h):p?(d=!1,c=bi(u,!0)):m?(d=!1,c=_i(u,!0)):c=[]:ra(u)||qo(u)?(c=h,qo(h)?c=ga(h):Ko(h)&&!Qo(h)||(c=fs(u))):d=!1}d&&(a.set(u,c),s(c,u,r,o,a),a.delete(u)),Jn(t,n,c)}}(t,e,a,n,Rr,r,s);else{var h=r?r(Ss(t,a),o,a+"",t,e,s):i;h===i&&(h=o),Jn(t,a,h)}},Oa)}function zr(t,e){var n=t.length;if(n)return ms(e+=e<0?n:0,n)?t[e]:i}function Fr(t,e,n){e=e.length?Oe(e,function(t){return Uo(t)?function(e){return xr(e,1===t.length?t[0]:t)}:t}):[nh];var r=-1;e=Oe(e,$e(ss()));var i=Dr(t,function(t,n,i){var s=Oe(e,function(e){return e(t)});return{criteria:s,index:++r,value:t}});return function(t){var e=t.length;for(t.sort(function(t,e){return function(t,e,n){for(var r=-1,i=t.criteria,s=e.criteria,o=i.length,a=n.length;++r<o;){var h=Ni(i[r],s[r]);if(h)return r>=a?h:h*("desc"==n[r]?-1:1)}return t.index-e.index}(t,e,n)});e--;)t[e]=t[e].value;return t}(i)}function qr(t,e,n){for(var r=-1,i=e.length,s={};++r<i;){var o=e[r],a=xr(t,o);n(a,o)&&Qr(s,gi(o,t),a)}return s}function Ur(t,e,n,r){var i=r?ze:Re,s=-1,o=e.length,a=t;for(t===e&&(e=Mi(e)),n&&(a=Oe(t,$e(n)));++s<o;)for(var h=0,u=e[s],l=n?n(u):u;(h=i(a,l,h,r))>-1;)a!==t&&Xt.call(a,h,1),Xt.call(t,h,1);return t}function Vr(t,e){for(var n=t?e.length:0,r=n-1;n--;){var i=e[n];if(n==r||i!==s){var s=i;ms(i)?Xt.call(t,i,1):hi(t,i)}}return t}function Gr(t,e){return t+fe(bn()*(e-t+1))}function Hr(t,e){var n="";if(!t||e<1||e>c)return n;do{e%2&&(n+=t),(e=fe(e/2))&&(t+=t)}while(e);return n}function Xr(t,e){return Es(Ns(t,e,nh),t+"")}function Yr(t){return $n(Ra(t))}function $r(t,e){var n=Ra(t);return Os(n,sr(e,0,n.length))}function Qr(t,e,n,r){if(!Ko(t))return t;for(var s=-1,o=(e=gi(e,t)).length,a=o-1,h=t;null!=h&&++s<o;){var u=Ps(e[s]),l=n;if("__proto__"===u||"constructor"===u||"prototype"===u)return t;if(s!=a){var c=h[u];(l=r?r(c,u,h):i)===i&&(l=Ko(c)?c:ms(e[s+1])?[]:{})}Kn(h,u,l),h=h[u]}return t}var Zr=En?function(t,e){return En.set(t,e),t}:nh,Jr=te?function(t,e){return te(t,"toString",{configurable:!0,enumerable:!1,value:Ka(e),writable:!0})}:nh;function Kr(t){return Os(Ra(t))}function ti(t,e,n){var i=-1,s=t.length;e<0&&(e=-e>s?0:s+e),(n=n>s?s:n)<0&&(n+=s),s=e>n?0:n-e>>>0,e>>>=0;for(var o=r(s);++i<s;)o[i]=t[i+e];return o}function ei(t,e){var n;return lr(t,function(t,r,i){return!(n=e(t,r,i))}),!!n}function ni(t,e,n){var r=0,i=null==t?r:t.length;if("number"==typeof e&&e==e&&i<=2147483647){for(;r<i;){var s=r+i>>>1,o=t[s];null!==o&&!aa(o)&&(n?o<=e:o<e)?r=s+1:i=s}return i}return ri(t,e,nh,n)}function ri(t,e,n,r){var s=0,o=null==t?0:t.length;if(0===o)return 0;for(var a=(e=n(e))!=e,h=null===e,u=aa(e),l=e===i;s<o;){var c=fe((s+o)/2),d=n(t[c]),f=d!==i,p=null===d,m=d==d,g=aa(d);if(a)var y=r||m;else y=l?m&&(r||f):h?m&&f&&(r||!p):u?m&&f&&!p&&(r||!g):!p&&!g&&(r?d<=e:d<e);y?s=c+1:o=c}return yn(o,4294967294)}function ii(t,e){for(var n=-1,r=t.length,i=0,s=[];++n<r;){var o=t[n],a=e?e(o):o;if(!n||!Ro(a,h)){var h=a;s[i++]=0===o?0:o}}return s}function si(t){return"number"==typeof t?t:aa(t)?d:+t}function oi(t){if("string"==typeof t)return t;if(Uo(t))return Oe(t,oi)+"";if(aa(t))return Bn?Bn.call(t):"";var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}function ai(t,e,n){var r=-1,i=Ce,s=t.length,o=!0,a=[],h=a;if(n)o=!1,i=Te;else if(s>=200){var u=e?null:Hi(t);if(u)return hn(u);o=!1,i=Ze,h=new Hn}else h=e?[]:a;t:for(;++r<s;){var l=t[r],c=e?e(l):l;if(l=n||0!==l?l:0,o&&c==c){for(var d=h.length;d--;)if(h[d]===c)continue t;e&&h.push(c),a.push(l)}else i(h,c,n)||(h!==a&&h.push(c),a.push(l))}return a}function hi(t,e){var n=-1,r=(e=gi(e,t)).length;if(!r)return!0;for(var i=null==t||"object"!=typeof t&&"function"!=typeof t;++n<r;){var s=e[n];if("string"==typeof s){if("__proto__"===s&&!Wt.call(t,"__proto__"))return!1;if("constructor"===s&&n+1<r&&"string"==typeof e[n+1]&&"prototype"===e[n+1]){if(i&&0===n)continue;return!1}}}var o=ks(t,e);return null==o||delete o[Ps(Ys(e))]}function ui(t,e,n,r){return Qr(t,e,n(xr(t,e)),r)}function li(t,e,n,r){for(var i=t.length,s=r?i:-1;(r?s--:++s<i)&&e(t[s],s,t););return n?ti(t,r?0:s,r?s+1:i):ti(t,r?s+1:0,r?i:s)}function ci(t,e){var n=t;return n instanceof qn&&(n=n.value()),We(e,function(t,e){return e.func.apply(e.thisArg,Le([t],e.args))},n)}function di(t,e,n){var i=t.length;if(i<2)return i?ai(t[0]):[];for(var s=-1,o=r(i);++s<i;)for(var a=t[s],h=-1;++h<i;)h!=s&&(o[s]=ur(o[s]||a,t[h],e,n));return ai(mr(o,1),e,n)}function fi(t,e,n){for(var r=-1,s=t.length,o=e.length,a={};++r<s;){var h=r<o?e[r]:i;n(a,t[r],h)}return a}function pi(t){return Ho(t)?t:[]}function mi(t){return"function"==typeof t?t:nh}function gi(t,e){return Uo(t)?t:ys(t,e)?[t]:js(ya(t))}var yi=Xr;function vi(t,e,n){var r=t.length;return n=n===i?r:n,!e&&n>=r?t:ti(t,e,n)}var wi=oe||function(t){return ce.clearTimeout(t)};function bi(t,e){if(e)return t.slice();var n=t.length,r=Ut?Ut(n):new t.constructor(n);return t.copy(r),r}function xi(t){var e=new t.constructor(t.byteLength);return new qt(e).set(new qt(t)),e}function _i(t,e){var n=e?xi(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}function Ni(t,e){if(t!==e){var n=t!==i,r=null===t,s=t==t,o=aa(t),a=e!==i,h=null===e,u=e==e,l=aa(e);if(!h&&!l&&!o&&t>e||o&&a&&u&&!h&&!l||r&&a&&u||!n&&u||!s)return 1;if(!r&&!o&&!l&&t<e||l&&n&&s&&!r&&!o||h&&n&&s||!a&&s||!u)return-1}return 0}function ki(t,e,n,i){for(var s=-1,o=t.length,a=n.length,h=-1,u=e.length,l=gn(o-a,0),c=r(u+l),d=!i;++h<u;)c[h]=e[h];for(;++s<a;)(d||s<o)&&(c[n[s]]=t[s]);for(;l--;)c[h++]=t[s++];return c}function Si(t,e,n,i){for(var s=-1,o=t.length,a=-1,h=n.length,u=-1,l=e.length,c=gn(o-h,0),d=r(c+l),f=!i;++s<c;)d[s]=t[s];for(var p=s;++u<l;)d[p+u]=e[u];for(;++a<h;)(f||s<o)&&(d[p+n[a]]=t[s++]);return d}function Mi(t,e){var n=-1,i=t.length;for(e||(e=r(i));++n<i;)e[n]=t[n];return e}function Ai(t,e,n,r){var s=!n;n||(n={});for(var o=-1,a=e.length;++o<a;){var h=e[o],u=r?r(n[h],t[h],h,n,t):i;u===i&&(u=t[h]),s?rr(n,h,u):Kn(n,h,u)}return n}function Ei(t,e){return function(n,r){var i=Uo(n)?ke:er,s=e?e():{};return i(n,t,ss(r,2),s)}}function Ci(t){return Xr(function(e,n){var r=-1,s=n.length,o=s>1?n[s-1]:i,a=s>2?n[2]:i;for(o=t.length>3&&"function"==typeof o?(s--,o):i,a&&gs(n[0],n[1],a)&&(o=s<3?i:o,s=1),e=kt(e);++r<s;){var h=n[r];h&&t(e,h,r,o)}return e})}function Ti(t,e){return function(n,r){if(null==n)return n;if(!Go(n))return t(n,r);for(var i=n.length,s=e?i:-1,o=kt(n);(e?s--:++s<i)&&!1!==r(o[s],s,o););return n}}function Oi(t){return function(e,n,r){for(var i=-1,s=kt(e),o=r(e),a=o.length;a--;){var h=o[t?a:++i];if(!1===n(s[h],h,s))break}return e}}function Li(t){return function(e){var n=rn(e=ya(e))?cn(e):i,r=n?n[0]:e.charAt(0),s=n?vi(n,1).join(""):e.slice(1);return r[t]()+s}}function Wi(t){return function(e){return We(Qa(qa(e).replace(Qt,"")),t,"")}}function ji(t){return function(){var e=arguments;switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3]);case 5:return new t(e[0],e[1],e[2],e[3],e[4]);case 6:return new t(e[0],e[1],e[2],e[3],e[4],e[5]);case 7:return new t(e[0],e[1],e[2],e[3],e[4],e[5],e[6])}var n=Rn(t.prototype),r=t.apply(n,e);return Ko(r)?r:n}}function Pi(t){return function(e,n,r){var s=kt(e);if(!Go(e)){var o=ss(n,3);e=Ta(e),n=function(t){return o(s[t],t,s)}}var a=t(e,n,r);return a>-1?s[o?e[a]:a]:i}}function Di(t){return Ki(function(e){var n=e.length,r=n,o=Fn.prototype.thru;for(t&&e.reverse();r--;){var a=e[r];if("function"!=typeof a)throw new At(s);if(o&&!h&&"wrapper"==rs(a))var h=new Fn([],!0)}for(r=h?r:n;++r<n;){var u=rs(a=e[r]),l="wrapper"==u?ns(a):i;h=l&&vs(l[0])&&424==l[1]&&!l[4].length&&1==l[9]?h[rs(l[0])].apply(h,l[3]):1==a.length&&vs(a)?h[u]():h.thru(a)}return function(){var t=arguments,r=t[0];if(h&&1==t.length&&Uo(r))return h.plant(r).value();for(var i=0,s=n?e[i].apply(this,t):r;++i<n;)s=e[i].call(this,s);return s}})}function Bi(t,e,n,s,o,a,h,l,c,d){var f=e&u,p=1&e,m=2&e,g=24&e,y=512&e,v=m?i:ji(t);return function u(){for(var w=arguments.length,b=r(w),x=w;x--;)b[x]=arguments[x];if(g)var _=is(u),N=function(t,e){for(var n=t.length,r=0;n--;)t[n]===e&&++r;return r}(b,_);if(s&&(b=ki(b,s,o,g)),a&&(b=Si(b,a,h,g)),w-=N,g&&w<d){var k=an(b,_);return Vi(t,e,Bi,u.placeholder,n,b,k,l,c,d-w)}var S=p?n:this,M=m?S[t]:t;return w=b.length,l?b=function(t,e){for(var n=t.length,r=yn(e.length,n),s=Mi(t);r--;){var o=e[r];t[r]=ms(o,n)?s[o]:i}return t}(b,l):y&&w>1&&b.reverse(),f&&c<w&&(b.length=c),this&&this!==ce&&this instanceof u&&(M=v||ji(M)),M.apply(S,b)}}function Ii(t,e){return function(n,r){return function(t,e,n,r){return vr(t,function(t,i,s){e(r,n(t),i,s)}),r}(n,t,e(r),{})}}function Ri(t,e){return function(n,r){var s;if(n===i&&r===i)return e;if(n!==i&&(s=n),r!==i){if(s===i)return r;"string"==typeof n||"string"==typeof r?(n=oi(n),r=oi(r)):(n=si(n),r=si(r)),s=t(n,r)}return s}}function zi(t){return Ki(function(e){return e=Oe(e,$e(ss())),Xr(function(n){var r=this;return t(e,function(t){return Ne(t,r,n)})})})}function Fi(t,e){var n=(e=e===i?" ":oi(e)).length;if(n<2)return n?Hr(e,t):e;var r=Hr(e,de(t/ln(e)));return rn(e)?vi(cn(r),0,t).join(""):r.slice(0,t)}function qi(t){return function(e,n,s){return s&&"number"!=typeof s&&gs(e,n,s)&&(n=s=i),e=da(e),n===i?(n=e,e=0):n=da(n),function(t,e,n,i){for(var s=-1,o=gn(de((e-t)/(n||1)),0),a=r(o);o--;)a[i?o:++s]=t,t+=n;return a}(e,n,s=s===i?e<n?1:-1:da(s),t)}}function Ui(t){return function(e,n){return"string"==typeof e&&"string"==typeof n||(e=ma(e),n=ma(n)),t(e,n)}}function Vi(t,e,n,r,s,o,a,u,l,c){var d=8&e;e|=d?h:64,4&(e&=~(d?64:h))||(e&=-4);var f=[t,e,s,d?o:i,d?a:i,d?i:o,d?i:a,u,l,c],p=n.apply(i,f);return vs(t)&&Ms(p,f),p.placeholder=r,Cs(p,t,e)}function Gi(t){var e=Nt[t];return function(t,n){if(t=ma(t),(n=null==n?0:yn(fa(n),292))&&De(t)){var r=(ya(t)+"e").split("e");return+((r=(ya(e(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return e(t)}}var Hi=Sn&&1/hn(new Sn([,-0]))[1]==l?function(t){return new Sn(t)}:ah;function Xi(t){return function(e){var n=cs(e);return n==_?sn(e):n==A?un(e):function(t,e){return Oe(e,function(e){return[e,t[e]]})}(e,t(e))}}function Yi(t,e,n,o,l,c,d,f){var p=2&e;if(!p&&"function"!=typeof t)throw new At(s);var m=o?o.length:0;if(m||(e&=-97,o=l=i),d=d===i?d:gn(fa(d),0),f=f===i?f:fa(f),m-=l?l.length:0,64&e){var g=o,y=l;o=l=i}var v=p?i:ns(t),w=[t,e,n,o,l,g,y,c,d,f];if(v&&function(t,e){var n=t[1],r=e[1],i=n|r,s=i<131,o=r==u&&8==n||r==u&&256==n&&t[7].length<=e[8]||384==r&&e[7].length<=e[8]&&8==n;if(!s&&!o)return t;1&r&&(t[2]=e[2],i|=1&n?0:4);var h=e[3];if(h){var l=t[3];t[3]=l?ki(l,h,e[4]):h,t[4]=l?an(t[3],a):e[4]}(h=e[5])&&(l=t[5],t[5]=l?Si(l,h,e[6]):h,t[6]=l?an(t[5],a):e[6]),(h=e[7])&&(t[7]=h),r&u&&(t[8]=null==t[8]?e[8]:yn(t[8],e[8])),null==t[9]&&(t[9]=e[9]),t[0]=e[0],t[1]=i}(w,v),t=w[0],e=w[1],n=w[2],o=w[3],l=w[4],!(f=w[9]=w[9]===i?p?0:t.length:gn(w[9]-m,0))&&24&e&&(e&=-25),e&&1!=e)b=8==e||16==e?function(t,e,n){var s=ji(t);return function o(){for(var a=arguments.length,h=r(a),u=a,l=is(o);u--;)h[u]=arguments[u];var c=a<3&&h[0]!==l&&h[a-1]!==l?[]:an(h,l);return(a-=c.length)<n?Vi(t,e,Bi,o.placeholder,i,h,c,i,i,n-a):Ne(this&&this!==ce&&this instanceof o?s:t,this,h)}}(t,e,f):e!=h&&33!=e||l.length?Bi.apply(i,w):function(t,e,n,i){var s=1&e,o=ji(t);return function e(){for(var a=-1,h=arguments.length,u=-1,l=i.length,c=r(l+h),d=this&&this!==ce&&this instanceof e?o:t;++u<l;)c[u]=i[u];for(;h--;)c[u++]=arguments[++a];return Ne(d,s?n:this,c)}}(t,e,n,o);else var b=function(t,e,n){var r=1&e,i=ji(t);return function e(){return(this&&this!==ce&&this instanceof e?i:t).apply(r?n:this,arguments)}}(t,e,n);return Cs((v?Zr:Ms)(b,w),t,e)}function $i(t,e,n,r){return t===i||Ro(t,Tt[n])&&!Wt.call(r,n)?e:t}function Qi(t,e,n,r,s,o){return Ko(t)&&Ko(e)&&(o.set(e,t),Rr(t,e,i,Qi,o),o.delete(e)),t}function Zi(t){return ra(t)?i:t}function Ji(t,e,n,r,s,o){var a=1&n,h=t.length,u=e.length;if(h!=u&&!(a&&u>h))return!1;var l=o.get(t),c=o.get(e);if(l&&c)return l==e&&c==t;var d=-1,f=!0,p=2&n?new Hn:i;for(o.set(t,e),o.set(e,t);++d<h;){var m=t[d],g=e[d];if(r)var y=a?r(g,m,d,e,t,o):r(m,g,d,t,e,o);if(y!==i){if(y)continue;f=!1;break}if(p){if(!Pe(e,function(t,e){if(!Ze(p,e)&&(m===t||s(m,t,n,r,o)))return p.push(e)})){f=!1;break}}else if(m!==g&&!s(m,g,n,r,o)){f=!1;break}}return o.delete(t),o.delete(e),f}function Ki(t){return Es(Ns(t,i,Us),t+"")}function ts(t){return _r(t,Ta,us)}function es(t){return _r(t,Oa,ls)}var ns=En?function(t){return En.get(t)}:ah;function rs(t){for(var e=t.name+"",n=Cn[e],r=Wt.call(Cn,e)?n.length:0;r--;){var i=n[r],s=i.func;if(null==s||s==t)return i.name}return e}function is(t){return(Wt.call(In,"placeholder")?In:t).placeholder}function ss(){var t=In.iteratee||rh;return t=t===rh?Wr:t,arguments.length?t(arguments[0],arguments[1]):t}function os(t,e){var n,r,i=t.__data__;return("string"==(r=typeof(n=e))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?i["string"==typeof e?"string":"hash"]:i.map}function as(t){for(var e=Ta(t),n=e.length;n--;){var r=e[n],i=t[r];e[n]=[r,i,xs(i)]}return e}function hs(t,e){var n=function(t,e){return null==t?i:t[e]}(t,e);return Lr(n)?n:i}var us=me?function(t){return null==t?[]:(t=kt(t),Ee(me(t),function(e){return Ht.call(t,e)}))}:ph,ls=me?function(t){for(var e=[];t;)Le(e,us(t)),t=Vt(t);return e}:ph,cs=Nr;function ds(t,e,n){for(var r=-1,i=(e=gi(e,t)).length,s=!1;++r<i;){var o=Ps(e[r]);if(!(s=null!=t&&n(t,o)))break;t=t[o]}return s||++r!=i?s:!!(i=null==t?0:t.length)&&Jo(i)&&ms(o,i)&&(Uo(t)||qo(t))}function fs(t){return"function"!=typeof t.constructor||bs(t)?{}:Rn(Vt(t))}function ps(t){return Uo(t)||qo(t)||!!(Yt&&t&&t[Yt])}function ms(t,e){var n=typeof t;return!!(e=null==e?c:e)&&("number"==n||"symbol"!=n&&yt.test(t))&&t>-1&&t%1==0&&t<e}function gs(t,e,n){if(!Ko(n))return!1;var r=typeof e;return!!("number"==r?Go(n)&&ms(e,n.length):"string"==r&&e in n)&&Ro(n[e],t)}function ys(t,e){if(Uo(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!aa(t))||K.test(t)||!J.test(t)||null!=e&&t in kt(e)}function vs(t){var e=rs(t),n=In[e];if("function"!=typeof n||!(e in qn.prototype))return!1;if(t===n)return!0;var r=ns(n);return!!r&&t===r[0]}(_n&&cs(new _n(new ArrayBuffer(1)))!=L||Nn&&cs(new Nn)!=_||kn&&cs(kn.resolve())!=S||Sn&&cs(new Sn)!=A||Mn&&cs(new Mn)!=T)&&(cs=function(t){var e=Nr(t),n=e==k?t.constructor:i,r=n?Ds(n):"";if(r)switch(r){case Tn:return L;case On:return _;case Ln:return S;case Wn:return A;case jn:return T}return e});var ws=Ot?Qo:mh;function bs(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||Tt)}function xs(t){return t==t&&!Ko(t)}function _s(t,e){return function(n){return null!=n&&n[t]===e&&(e!==i||t in kt(n))}}function Ns(t,e,n){return e=gn(e===i?t.length-1:e,0),function(){for(var i=arguments,s=-1,o=gn(i.length-e,0),a=r(o);++s<o;)a[s]=i[e+s];s=-1;for(var h=r(e+1);++s<e;)h[s]=i[s];return h[e]=n(a),Ne(t,this,h)}}function ks(t,e){return e.length<2?t:xr(t,ti(e,0,-1))}function Ss(t,e){if(("constructor"!==e||"function"!=typeof t[e])&&"__proto__"!=e)return t[e]}var Ms=Ts(Zr),As=le||function(t,e){return ce.setTimeout(t,e)},Es=Ts(Jr);function Cs(t,e,n){var r=e+"";return Es(t,function(t,e){var n=e.length;if(!n)return t;var r=n-1;return e[r]=(n>1?"& ":"")+e[r],e=e.join(n>2?", ":" "),t.replace(st,"{\n/* [wrapped with "+e+"] */\n")}(r,function(t,e){return Se(p,function(n){var r="_."+n[0];e&n[1]&&!Ce(t,r)&&t.push(r)}),t.sort()}(function(t){var e=t.match(ot);return e?e[1].split(at):[]}(r),n)))}function Ts(t){var e=0,n=0;return function(){var r=vn(),s=16-(r-n);if(n=r,s>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(i,arguments)}}function Os(t,e){var n=-1,r=t.length,s=r-1;for(e=e===i?r:e;++n<e;){var o=Gr(n,s),a=t[o];t[o]=t[n],t[n]=a}return t.length=e,t}var Ls,Ws,js=(Ls=Wo(function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(tt,function(t,n,r,i){e.push(r?i.replace(lt,"$1"):n||t)}),e},function(t){return 500===Ws.size&&Ws.clear(),t}),Ws=Ls.cache,Ls);function Ps(t){if("string"==typeof t||aa(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}function Ds(t){if(null!=t){try{return Lt.call(t)}catch(t){}try{return t+""}catch(t){}}return""}function Bs(t){if(t instanceof qn)return t.clone();var e=new Fn(t.__wrapped__,t.__chain__);return e.__actions__=Mi(t.__actions__),e.__index__=t.__index__,e.__values__=t.__values__,e}var Is=Xr(function(t,e){return Ho(t)?ur(t,mr(e,1,Ho,!0)):[]}),Rs=Xr(function(t,e){var n=Ys(e);return Ho(n)&&(n=i),Ho(t)?ur(t,mr(e,1,Ho,!0),ss(n,2)):[]}),zs=Xr(function(t,e){var n=Ys(e);return Ho(n)&&(n=i),Ho(t)?ur(t,mr(e,1,Ho,!0),i,n):[]});function Fs(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var i=null==n?0:fa(n);return i<0&&(i=gn(r+i,0)),Ie(t,ss(e,3),i)}function qs(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var s=r-1;return n!==i&&(s=fa(n),s=n<0?gn(r+s,0):yn(s,r-1)),Ie(t,ss(e,3),s,!0)}function Us(t){return null!=t&&t.length?mr(t,1):[]}function Vs(t){return t&&t.length?t[0]:i}var Gs=Xr(function(t){var e=Oe(t,pi);return e.length&&e[0]===t[0]?Ar(e):[]}),Hs=Xr(function(t){var e=Ys(t),n=Oe(t,pi);return e===Ys(n)?e=i:n.pop(),n.length&&n[0]===t[0]?Ar(n,ss(e,2)):[]}),Xs=Xr(function(t){var e=Ys(t),n=Oe(t,pi);return(e="function"==typeof e?e:i)&&n.pop(),n.length&&n[0]===t[0]?Ar(n,i,e):[]});function Ys(t){var e=null==t?0:t.length;return e?t[e-1]:i}var $s=Xr(Qs);function Qs(t,e){return t&&t.length&&e&&e.length?Ur(t,e):t}var Zs=Ki(function(t,e){var n=null==t?0:t.length,r=ir(t,e);return Vr(t,Oe(e,function(t){return ms(t,n)?+t:t}).sort(Ni)),r});function Js(t){return null==t?t:xn.call(t)}var Ks=Xr(function(t){return ai(mr(t,1,Ho,!0))}),to=Xr(function(t){var e=Ys(t);return Ho(e)&&(e=i),ai(mr(t,1,Ho,!0),ss(e,2))}),eo=Xr(function(t){var e=Ys(t);return e="function"==typeof e?e:i,ai(mr(t,1,Ho,!0),i,e)});function no(t){if(!t||!t.length)return[];var e=0;return t=Ee(t,function(t){if(Ho(t))return e=gn(t.length,e),!0}),Xe(e,function(e){return Oe(t,Ue(e))})}function ro(t,e){if(!t||!t.length)return[];var n=no(t);return null==e?n:Oe(n,function(t){return Ne(e,i,t)})}var io=Xr(function(t,e){return Ho(t)?ur(t,e):[]}),so=Xr(function(t){return di(Ee(t,Ho))}),oo=Xr(function(t){var e=Ys(t);return Ho(e)&&(e=i),di(Ee(t,Ho),ss(e,2))}),ao=Xr(function(t){var e=Ys(t);return e="function"==typeof e?e:i,di(Ee(t,Ho),i,e)}),ho=Xr(no),uo=Xr(function(t){var e=t.length,n=e>1?t[e-1]:i;return n="function"==typeof n?(t.pop(),n):i,ro(t,n)});function lo(t){var e=In(t);return e.__chain__=!0,e}function co(t,e){return e(t)}var fo=Ki(function(t){var e=t.length,n=e?t[0]:0,r=this.__wrapped__,s=function(e){return ir(e,t)};return!(e>1||this.__actions__.length)&&r instanceof qn&&ms(n)?((r=r.slice(n,+n+(e?1:0))).__actions__.push({func:co,args:[s],thisArg:i}),new Fn(r,this.__chain__).thru(function(t){return e&&!t.length&&t.push(i),t})):this.thru(s)}),po=Ei(function(t,e,n){Wt.call(t,n)?++t[n]:rr(t,n,1)}),mo=Pi(Fs),go=Pi(qs);function yo(t,e){return(Uo(t)?Se:lr)(t,ss(e,3))}function vo(t,e){return(Uo(t)?Me:cr)(t,ss(e,3))}var wo=Ei(function(t,e,n){Wt.call(t,n)?t[n].push(e):rr(t,n,[e])}),bo=Xr(function(t,e,n){var i=-1,s="function"==typeof e,o=Go(t)?r(t.length):[];return lr(t,function(t){o[++i]=s?Ne(e,t,n):Er(t,e,n)}),o}),xo=Ei(function(t,e,n){rr(t,n,e)});function _o(t,e){return(Uo(t)?Oe:Dr)(t,ss(e,3))}var No=Ei(function(t,e,n){t[n?0:1].push(e)},function(){return[[],[]]}),ko=Xr(function(t,e){if(null==t)return[];var n=e.length;return n>1&&gs(t,e[0],e[1])?e=[]:n>2&&gs(e[0],e[1],e[2])&&(e=[e[0]]),Fr(t,mr(e,1),[])}),So=ue||function(){return ce.Date.now()};function Mo(t,e,n){return e=n?i:e,e=t&&null==e?t.length:e,Yi(t,u,i,i,i,i,e)}function Ao(t,e){var n;if("function"!=typeof e)throw new At(s);return t=fa(t),function(){return--t>0&&(n=e.apply(this,arguments)),t<=1&&(e=i),n}}var Eo=Xr(function(t,e,n){var r=1;if(n.length){var i=an(n,is(Eo));r|=h}return Yi(t,r,e,n,i)}),Co=Xr(function(t,e,n){var r=3;if(n.length){var i=an(n,is(Co));r|=h}return Yi(e,r,t,n,i)});function To(t,e,n){var r,o,a,h,u,l,c=0,d=!1,f=!1,p=!0;if("function"!=typeof t)throw new At(s);function m(e){var n=r,s=o;return r=o=i,c=e,h=t.apply(s,n)}function g(t){var n=t-l;return l===i||n>=e||n<0||f&&t-c>=a}function y(){var t=So();if(g(t))return v(t);u=As(y,function(t){var n=e-(t-l);return f?yn(n,a-(t-c)):n}(t))}function v(t){return u=i,p&&r?m(t):(r=o=i,h)}function w(){var t=So(),n=g(t);if(r=arguments,o=this,l=t,n){if(u===i)return function(t){return c=t,u=As(y,e),d?m(t):h}(l);if(f)return wi(u),u=As(y,e),m(l)}return u===i&&(u=As(y,e)),h}return e=ma(e)||0,Ko(n)&&(d=!!n.leading,a=(f="maxWait"in n)?gn(ma(n.maxWait)||0,e):a,p="trailing"in n?!!n.trailing:p),w.cancel=function(){u!==i&&wi(u),c=0,r=l=o=u=i},w.flush=function(){return u===i?h:v(So())},w}var Oo=Xr(function(t,e){return hr(t,1,e)}),Lo=Xr(function(t,e,n){return hr(t,ma(e)||0,n)});function Wo(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new At(s);var n=function(){var r=arguments,i=e?e.apply(this,r):r[0],s=n.cache;if(s.has(i))return s.get(i);var o=t.apply(this,r);return n.cache=s.set(i,o)||s,o};return n.cache=new(Wo.Cache||Gn),n}function jo(t){if("function"!=typeof t)throw new At(s);return function(){var e=arguments;switch(e.length){case 0:return!t.call(this);case 1:return!t.call(this,e[0]);case 2:return!t.call(this,e[0],e[1]);case 3:return!t.call(this,e[0],e[1],e[2])}return!t.apply(this,e)}}Wo.Cache=Gn;var Po=yi(function(t,e){var n=(e=1==e.length&&Uo(e[0])?Oe(e[0],$e(ss())):Oe(mr(e,1),$e(ss()))).length;return Xr(function(r){for(var i=-1,s=yn(r.length,n);++i<s;)r[i]=e[i].call(this,r[i]);return Ne(t,this,r)})}),Do=Xr(function(t,e){var n=an(e,is(Do));return Yi(t,h,i,e,n)}),Bo=Xr(function(t,e){var n=an(e,is(Bo));return Yi(t,64,i,e,n)}),Io=Ki(function(t,e){return Yi(t,256,i,i,i,e)});function Ro(t,e){return t===e||t!=t&&e!=e}var zo=Ui(kr),Fo=Ui(function(t,e){return t>=e}),qo=Cr(function(){return arguments}())?Cr:function(t){return ta(t)&&Wt.call(t,"callee")&&!Ht.call(t,"callee")},Uo=r.isArray,Vo=ye?$e(ye):function(t){return ta(t)&&Nr(t)==O};function Go(t){return null!=t&&Jo(t.length)&&!Qo(t)}function Ho(t){return ta(t)&&Go(t)}var Xo=ge||mh,Yo=ve?$e(ve):function(t){return ta(t)&&Nr(t)==v};function $o(t){if(!ta(t))return!1;var e=Nr(t);return e==w||"[object DOMException]"==e||"string"==typeof t.message&&"string"==typeof t.name&&!ra(t)}function Qo(t){if(!Ko(t))return!1;var e=Nr(t);return e==b||e==x||"[object AsyncFunction]"==e||"[object Proxy]"==e}function Zo(t){return"number"==typeof t&&t==fa(t)}function Jo(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=c}function Ko(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function ta(t){return null!=t&&"object"==typeof t}var ea=we?$e(we):function(t){return ta(t)&&cs(t)==_};function na(t){return"number"==typeof t||ta(t)&&Nr(t)==N}function ra(t){if(!ta(t)||Nr(t)!=k)return!1;var e=Vt(t);if(null===e)return!0;var n=Wt.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&Lt.call(n)==Bt}var ia=be?$e(be):function(t){return ta(t)&&Nr(t)==M},sa=xe?$e(xe):function(t){return ta(t)&&cs(t)==A};function oa(t){return"string"==typeof t||!Uo(t)&&ta(t)&&Nr(t)==E}function aa(t){return"symbol"==typeof t||ta(t)&&Nr(t)==C}var ha=_e?$e(_e):function(t){return ta(t)&&Jo(t.length)&&!!ie[Nr(t)]},ua=Ui(Pr),la=Ui(function(t,e){return t<=e});function ca(t){if(!t)return[];if(Go(t))return oa(t)?cn(t):Mi(t);if($t&&t[$t])return function(t){for(var e,n=[];!(e=t.next()).done;)n.push(e.value);return n}(t[$t]());var e=cs(t);return(e==_?sn:e==A?hn:Ra)(t)}function da(t){return t?(t=ma(t))===l||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}function fa(t){var e=da(t),n=e%1;return e==e?n?e-n:e:0}function pa(t){return t?sr(fa(t),0,f):0}function ma(t){if("number"==typeof t)return t;if(aa(t))return d;if(Ko(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=Ko(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=Ye(t);var n=pt.test(t);return n||gt.test(t)?he(t.slice(2),n?2:8):ft.test(t)?d:+t}function ga(t){return Ai(t,Oa(t))}function ya(t){return null==t?"":oi(t)}var va=Ci(function(t,e){if(bs(e)||Go(e))Ai(e,Ta(e),t);else for(var n in e)Wt.call(e,n)&&Kn(t,n,e[n])}),wa=Ci(function(t,e){Ai(e,Oa(e),t)}),ba=Ci(function(t,e,n,r){Ai(e,Oa(e),t,r)}),xa=Ci(function(t,e,n,r){Ai(e,Ta(e),t,r)}),_a=Ki(ir),Na=Xr(function(t,e){t=kt(t);var n=-1,r=e.length,s=r>2?e[2]:i;for(s&&gs(e[0],e[1],s)&&(r=1);++n<r;)for(var o=e[n],a=Oa(o),h=-1,u=a.length;++h<u;){var l=a[h],c=t[l];(c===i||Ro(c,Tt[l])&&!Wt.call(t,l))&&(t[l]=o[l])}return t}),ka=Xr(function(t){return t.push(i,Qi),Ne(Wa,i,t)});function Sa(t,e,n){var r=null==t?i:xr(t,e);return r===i?n:r}function Ma(t,e){return null!=t&&ds(t,e,Mr)}var Aa=Ii(function(t,e,n){null!=e&&"function"!=typeof e.toString&&(e=Dt.call(e)),t[e]=n},Ka(nh)),Ea=Ii(function(t,e,n){null!=e&&"function"!=typeof e.toString&&(e=Dt.call(e)),Wt.call(t,e)?t[e].push(n):t[e]=[n]},ss),Ca=Xr(Er);function Ta(t){return Go(t)?Yn(t):jr(t)}function Oa(t){return Go(t)?Yn(t,!0):function(t){if(!Ko(t))return function(t){var e=[];if(null!=t)for(var n in kt(t))e.push(n);return e}(t);var e=bs(t),n=[];for(var r in t)("constructor"!=r||!e&&Wt.call(t,r))&&n.push(r);return n}(t)}var La=Ci(function(t,e,n){Rr(t,e,n)}),Wa=Ci(function(t,e,n,r){Rr(t,e,n,r)}),ja=Ki(function(t,e){var n={};if(null==t)return n;var r=!1;e=Oe(e,function(e){return e=gi(e,t),r||(r=e.length>1),e}),Ai(t,es(t),n),r&&(n=or(n,7,Zi));for(var i=e.length;i--;)hi(n,e[i]);return n}),Pa=Ki(function(t,e){return null==t?{}:function(t,e){return qr(t,e,function(e,n){return Ma(t,n)})}(t,e)});function Da(t,e){if(null==t)return{};var n=Oe(es(t),function(t){return[t]});return e=ss(e),qr(t,n,function(t,n){return e(t,n[0])})}var Ba=Xi(Ta),Ia=Xi(Oa);function Ra(t){return null==t?[]:Qe(t,Ta(t))}var za=Wi(function(t,e,n){return e=e.toLowerCase(),t+(n?Fa(e):e)});function Fa(t){return $a(ya(t).toLowerCase())}function qa(t){return(t=ya(t))&&t.replace(vt,tn).replace(Zt,"")}var Ua=Wi(function(t,e,n){return t+(n?"-":"")+e.toLowerCase()}),Va=Wi(function(t,e,n){return t+(n?" ":"")+e.toLowerCase()}),Ga=Li("toLowerCase"),Ha=Wi(function(t,e,n){return t+(n?"_":"")+e.toLowerCase()}),Xa=Wi(function(t,e,n){return t+(n?" ":"")+$a(e)}),Ya=Wi(function(t,e,n){return t+(n?" ":"")+e.toUpperCase()}),$a=Li("toUpperCase");function Qa(t,e,n){return t=ya(t),(e=n?i:e)===i?function(t){return ee.test(t)}(t)?function(t){return t.match(Kt)||[]}(t):function(t){return t.match(ht)||[]}(t):t.match(e)||[]}var Za=Xr(function(t,e){try{return Ne(t,i,e)}catch(t){return $o(t)?t:new xt(t)}}),Ja=Ki(function(t,e){return Se(e,function(e){e=Ps(e),rr(t,e,Eo(t[e],t))}),t});function Ka(t){return function(){return t}}var th=Di(),eh=Di(!0);function nh(t){return t}function rh(t){return Wr("function"==typeof t?t:or(t,1))}var ih=Xr(function(t,e){return function(n){return Er(n,t,e)}}),sh=Xr(function(t,e){return function(n){return Er(t,n,e)}});function oh(t,e,n){var r=Ta(e),i=br(e,r);null!=n||Ko(e)&&(i.length||!r.length)||(n=e,e=t,t=this,i=br(e,Ta(e)));var s=!(Ko(n)&&"chain"in n&&!n.chain),o=Qo(t);return Se(i,function(n){var r=e[n];t[n]=r,o&&(t.prototype[n]=function(){var e=this.__chain__;if(s||e){var n=t(this.__wrapped__);return(n.__actions__=Mi(this.__actions__)).push({func:r,args:arguments,thisArg:t}),n.__chain__=e,n}return r.apply(t,Le([this.value()],arguments))})}),t}function ah(){}var hh=zi(Oe),uh=zi(Ae),lh=zi(Pe);function ch(t){return ys(t)?Ue(Ps(t)):function(t){return function(e){return xr(e,t)}}(t)}var dh=qi(),fh=qi(!0);function ph(){return[]}function mh(){return!1}var gh,yh=Ri(function(t,e){return t+e},0),vh=Gi("ceil"),wh=Ri(function(t,e){return t/e},1),bh=Gi("floor"),xh=Ri(function(t,e){return t*e},1),_h=Gi("round"),Nh=Ri(function(t,e){return t-e},0);return In.after=function(t,e){if("function"!=typeof e)throw new At(s);return t=fa(t),function(){if(--t<1)return e.apply(this,arguments)}},In.ary=Mo,In.assign=va,In.assignIn=wa,In.assignInWith=ba,In.assignWith=xa,In.at=_a,In.before=Ao,In.bind=Eo,In.bindAll=Ja,In.bindKey=Co,In.castArray=function(){if(!arguments.length)return[];var t=arguments[0];return Uo(t)?t:[t]},In.chain=lo,In.chunk=function(t,e,n){e=(n?gs(t,e,n):e===i)?1:gn(fa(e),0);var s=null==t?0:t.length;if(!s||e<1)return[];for(var o=0,a=0,h=r(de(s/e));o<s;)h[a++]=ti(t,o,o+=e);return h},In.compact=function(t){for(var e=-1,n=null==t?0:t.length,r=0,i=[];++e<n;){var s=t[e];s&&(i[r++]=s)}return i},In.concat=function(){var t=arguments.length;if(!t)return[];for(var e=r(t-1),n=arguments[0],i=t;i--;)e[i-1]=arguments[i];return Le(Uo(n)?Mi(n):[n],mr(e,1))},In.cond=function(t){var e=null==t?0:t.length,n=ss();return t=e?Oe(t,function(t){if("function"!=typeof t[1])throw new At(s);return[n(t[0]),t[1]]}):[],Xr(function(n){for(var r=-1;++r<e;){var i=t[r];if(Ne(i[0],this,n))return Ne(i[1],this,n)}})},In.conforms=function(t){return function(t){var e=Ta(t);return function(n){return ar(n,t,e)}}(or(t,1))},In.constant=Ka,In.countBy=po,In.create=function(t,e){var n=Rn(t);return null==e?n:nr(n,e)},In.curry=function t(e,n,r){var s=Yi(e,8,i,i,i,i,i,n=r?i:n);return s.placeholder=t.placeholder,s},In.curryRight=function t(e,n,r){var s=Yi(e,16,i,i,i,i,i,n=r?i:n);return s.placeholder=t.placeholder,s},In.debounce=To,In.defaults=Na,In.defaultsDeep=ka,In.defer=Oo,In.delay=Lo,In.difference=Is,In.differenceBy=Rs,In.differenceWith=zs,In.drop=function(t,e,n){var r=null==t?0:t.length;return r?ti(t,(e=n||e===i?1:fa(e))<0?0:e,r):[]},In.dropRight=function(t,e,n){var r=null==t?0:t.length;return r?ti(t,0,(e=r-(e=n||e===i?1:fa(e)))<0?0:e):[]},In.dropRightWhile=function(t,e){return t&&t.length?li(t,ss(e,3),!0,!0):[]},In.dropWhile=function(t,e){return t&&t.length?li(t,ss(e,3),!0):[]},In.fill=function(t,e,n,r){var s=null==t?0:t.length;return s?(n&&"number"!=typeof n&&gs(t,e,n)&&(n=0,r=s),function(t,e,n,r){var s=t.length;for((n=fa(n))<0&&(n=-n>s?0:s+n),(r=r===i||r>s?s:fa(r))<0&&(r+=s),r=n>r?0:pa(r);n<r;)t[n++]=e;return t}(t,e,n,r)):[]},In.filter=function(t,e){return(Uo(t)?Ee:pr)(t,ss(e,3))},In.flatMap=function(t,e){return mr(_o(t,e),1)},In.flatMapDeep=function(t,e){return mr(_o(t,e),l)},In.flatMapDepth=function(t,e,n){return n=n===i?1:fa(n),mr(_o(t,e),n)},In.flatten=Us,In.flattenDeep=function(t){return null!=t&&t.length?mr(t,l):[]},In.flattenDepth=function(t,e){return null!=t&&t.length?mr(t,e=e===i?1:fa(e)):[]},In.flip=function(t){return Yi(t,512)},In.flow=th,In.flowRight=eh,In.fromPairs=function(t){for(var e=-1,n=null==t?0:t.length,r={};++e<n;){var i=t[e];r[i[0]]=i[1]}return r},In.functions=function(t){return null==t?[]:br(t,Ta(t))},In.functionsIn=function(t){return null==t?[]:br(t,Oa(t))},In.groupBy=wo,In.initial=function(t){return null!=t&&t.length?ti(t,0,-1):[]},In.intersection=Gs,In.intersectionBy=Hs,In.intersectionWith=Xs,In.invert=Aa,In.invertBy=Ea,In.invokeMap=bo,In.iteratee=rh,In.keyBy=xo,In.keys=Ta,In.keysIn=Oa,In.map=_o,In.mapKeys=function(t,e){var n={};return e=ss(e,3),vr(t,function(t,r,i){rr(n,e(t,r,i),t)}),n},In.mapValues=function(t,e){var n={};return e=ss(e,3),vr(t,function(t,r,i){rr(n,r,e(t,r,i))}),n},In.matches=function(t){return Br(or(t,1))},In.matchesProperty=function(t,e){return Ir(t,or(e,1))},In.memoize=Wo,In.merge=La,In.mergeWith=Wa,In.method=ih,In.methodOf=sh,In.mixin=oh,In.negate=jo,In.nthArg=function(t){return t=fa(t),Xr(function(e){return zr(e,t)})},In.omit=ja,In.omitBy=function(t,e){return Da(t,jo(ss(e)))},In.once=function(t){return Ao(2,t)},In.orderBy=function(t,e,n,r){return null==t?[]:(Uo(e)||(e=null==e?[]:[e]),Uo(n=r?i:n)||(n=null==n?[]:[n]),Fr(t,e,n))},In.over=hh,In.overArgs=Po,In.overEvery=uh,In.overSome=lh,In.partial=Do,In.partialRight=Bo,In.partition=No,In.pick=Pa,In.pickBy=Da,In.property=ch,In.propertyOf=function(t){return function(e){return null==t?i:xr(t,e)}},In.pull=$s,In.pullAll=Qs,In.pullAllBy=function(t,e,n){return t&&t.length&&e&&e.length?Ur(t,e,ss(n,2)):t},In.pullAllWith=function(t,e,n){return t&&t.length&&e&&e.length?Ur(t,e,i,n):t},In.pullAt=Zs,In.range=dh,In.rangeRight=fh,In.rearg=Io,In.reject=function(t,e){return(Uo(t)?Ee:pr)(t,jo(ss(e,3)))},In.remove=function(t,e){var n=[];if(!t||!t.length)return n;var r=-1,i=[],s=t.length;for(e=ss(e,3);++r<s;){var o=t[r];e(o,r,t)&&(n.push(o),i.push(r))}return Vr(t,i),n},In.rest=function(t,e){if("function"!=typeof t)throw new At(s);return Xr(t,e=e===i?e:fa(e))},In.reverse=Js,In.sampleSize=function(t,e,n){return e=(n?gs(t,e,n):e===i)?1:fa(e),(Uo(t)?Qn:$r)(t,e)},In.set=function(t,e,n){return null==t?t:Qr(t,e,n)},In.setWith=function(t,e,n,r){return r="function"==typeof r?r:i,null==t?t:Qr(t,e,n,r)},In.shuffle=function(t){return(Uo(t)?Zn:Kr)(t)},In.slice=function(t,e,n){var r=null==t?0:t.length;return r?(n&&"number"!=typeof n&&gs(t,e,n)?(e=0,n=r):(e=null==e?0:fa(e),n=n===i?r:fa(n)),ti(t,e,n)):[]},In.sortBy=ko,In.sortedUniq=function(t){return t&&t.length?ii(t):[]},In.sortedUniqBy=function(t,e){return t&&t.length?ii(t,ss(e,2)):[]},In.split=function(t,e,n){return n&&"number"!=typeof n&&gs(t,e,n)&&(e=n=i),(n=n===i?f:n>>>0)?(t=ya(t))&&("string"==typeof e||null!=e&&!ia(e))&&!(e=oi(e))&&rn(t)?vi(cn(t),0,n):t.split(e,n):[]},In.spread=function(t,e){if("function"!=typeof t)throw new At(s);return e=null==e?0:gn(fa(e),0),Xr(function(n){var r=n[e],i=vi(n,0,e);return r&&Le(i,r),Ne(t,this,i)})},In.tail=function(t){var e=null==t?0:t.length;return e?ti(t,1,e):[]},In.take=function(t,e,n){return t&&t.length?ti(t,0,(e=n||e===i?1:fa(e))<0?0:e):[]},In.takeRight=function(t,e,n){var r=null==t?0:t.length;return r?ti(t,(e=r-(e=n||e===i?1:fa(e)))<0?0:e,r):[]},In.takeRightWhile=function(t,e){return t&&t.length?li(t,ss(e,3),!1,!0):[]},In.takeWhile=function(t,e){return t&&t.length?li(t,ss(e,3)):[]},In.tap=function(t,e){return e(t),t},In.throttle=function(t,e,n){var r=!0,i=!0;if("function"!=typeof t)throw new At(s);return Ko(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),To(t,e,{leading:r,maxWait:e,trailing:i})},In.thru=co,In.toArray=ca,In.toPairs=Ba,In.toPairsIn=Ia,In.toPath=function(t){return Uo(t)?Oe(t,Ps):aa(t)?[t]:Mi(js(ya(t)))},In.toPlainObject=ga,In.transform=function(t,e,n){var r=Uo(t),i=r||Xo(t)||ha(t);if(e=ss(e,4),null==n){var s=t&&t.constructor;n=i?r?new s:[]:Ko(t)&&Qo(s)?Rn(Vt(t)):{}}return(i?Se:vr)(t,function(t,r,i){return e(n,t,r,i)}),n},In.unary=function(t){return Mo(t,1)},In.union=Ks,In.unionBy=to,In.unionWith=eo,In.uniq=function(t){return t&&t.length?ai(t):[]},In.uniqBy=function(t,e){return t&&t.length?ai(t,ss(e,2)):[]},In.uniqWith=function(t,e){return e="function"==typeof e?e:i,t&&t.length?ai(t,i,e):[]},In.unset=function(t,e){return null==t||hi(t,e)},In.unzip=no,In.unzipWith=ro,In.update=function(t,e,n){return null==t?t:ui(t,e,mi(n))},In.updateWith=function(t,e,n,r){return r="function"==typeof r?r:i,null==t?t:ui(t,e,mi(n),r)},In.values=Ra,In.valuesIn=function(t){return null==t?[]:Qe(t,Oa(t))},In.without=io,In.words=Qa,In.wrap=function(t,e){return Do(mi(e),t)},In.xor=so,In.xorBy=oo,In.xorWith=ao,In.zip=ho,In.zipObject=function(t,e){return fi(t||[],e||[],Kn)},In.zipObjectDeep=function(t,e){return fi(t||[],e||[],Qr)},In.zipWith=uo,In.entries=Ba,In.entriesIn=Ia,In.extend=wa,In.extendWith=ba,oh(In,In),In.add=yh,In.attempt=Za,In.camelCase=za,In.capitalize=Fa,In.ceil=vh,In.clamp=function(t,e,n){return n===i&&(n=e,e=i),n!==i&&(n=(n=ma(n))==n?n:0),e!==i&&(e=(e=ma(e))==e?e:0),sr(ma(t),e,n)},In.clone=function(t){return or(t,4)},In.cloneDeep=function(t){return or(t,5)},In.cloneDeepWith=function(t,e){return or(t,5,e="function"==typeof e?e:i)},In.cloneWith=function(t,e){return or(t,4,e="function"==typeof e?e:i)},In.conformsTo=function(t,e){return null==e||ar(t,e,Ta(e))},In.deburr=qa,In.defaultTo=function(t,e){return null==t||t!=t?e:t},In.divide=wh,In.endsWith=function(t,e,n){t=ya(t),e=oi(e);var r=t.length,s=n=n===i?r:sr(fa(n),0,r);return(n-=e.length)>=0&&t.slice(n,s)==e},In.eq=Ro,In.escape=function(t){return(t=ya(t))&&Y.test(t)?t.replace(H,en):t},In.escapeRegExp=function(t){return(t=ya(t))&&nt.test(t)?t.replace(et,"\\$&"):t},In.every=function(t,e,n){var r=Uo(t)?Ae:dr;return n&&gs(t,e,n)&&(e=i),r(t,ss(e,3))},In.find=mo,In.findIndex=Fs,In.findKey=function(t,e){return Be(t,ss(e,3),vr)},In.findLast=go,In.findLastIndex=qs,In.findLastKey=function(t,e){return Be(t,ss(e,3),wr)},In.floor=bh,In.forEach=yo,In.forEachRight=vo,In.forIn=function(t,e){return null==t?t:gr(t,ss(e,3),Oa)},In.forInRight=function(t,e){return null==t?t:yr(t,ss(e,3),Oa)},In.forOwn=function(t,e){return t&&vr(t,ss(e,3))},In.forOwnRight=function(t,e){return t&&wr(t,ss(e,3))},In.get=Sa,In.gt=zo,In.gte=Fo,In.has=function(t,e){return null!=t&&ds(t,e,Sr)},In.hasIn=Ma,In.head=Vs,In.identity=nh,In.includes=function(t,e,n,r){t=Go(t)?t:Ra(t),n=n&&!r?fa(n):0;var i=t.length;return n<0&&(n=gn(i+n,0)),oa(t)?n<=i&&t.indexOf(e,n)>-1:!!i&&Re(t,e,n)>-1},In.indexOf=function(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var i=null==n?0:fa(n);return i<0&&(i=gn(r+i,0)),Re(t,e,i)},In.inRange=function(t,e,n){return e=da(e),n===i?(n=e,e=0):n=da(n),function(t,e,n){return t>=yn(e,n)&&t<gn(e,n)}(t=ma(t),e,n)},In.invoke=Ca,In.isArguments=qo,In.isArray=Uo,In.isArrayBuffer=Vo,In.isArrayLike=Go,In.isArrayLikeObject=Ho,In.isBoolean=function(t){return!0===t||!1===t||ta(t)&&Nr(t)==y},In.isBuffer=Xo,In.isDate=Yo,In.isElement=function(t){return ta(t)&&1===t.nodeType&&!ra(t)},In.isEmpty=function(t){if(null==t)return!0;if(Go(t)&&(Uo(t)||"string"==typeof t||"function"==typeof t.splice||Xo(t)||ha(t)||qo(t)))return!t.length;var e=cs(t);if(e==_||e==A)return!t.size;if(bs(t))return!jr(t).length;for(var n in t)if(Wt.call(t,n))return!1;return!0},In.isEqual=function(t,e){return Tr(t,e)},In.isEqualWith=function(t,e,n){var r=(n="function"==typeof n?n:i)?n(t,e):i;return r===i?Tr(t,e,i,n):!!r},In.isError=$o,In.isFinite=function(t){return"number"==typeof t&&De(t)},In.isFunction=Qo,In.isInteger=Zo,In.isLength=Jo,In.isMap=ea,In.isMatch=function(t,e){return t===e||Or(t,e,as(e))},In.isMatchWith=function(t,e,n){return n="function"==typeof n?n:i,Or(t,e,as(e),n)},In.isNaN=function(t){return na(t)&&t!=+t},In.isNative=function(t){if(ws(t))throw new xt("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Lr(t)},In.isNil=function(t){return null==t},In.isNull=function(t){return null===t},In.isNumber=na,In.isObject=Ko,In.isObjectLike=ta,In.isPlainObject=ra,In.isRegExp=ia,In.isSafeInteger=function(t){return Zo(t)&&t>=-9007199254740991&&t<=c},In.isSet=sa,In.isString=oa,In.isSymbol=aa,In.isTypedArray=ha,In.isUndefined=function(t){return t===i},In.isWeakMap=function(t){return ta(t)&&cs(t)==T},In.isWeakSet=function(t){return ta(t)&&"[object WeakSet]"==Nr(t)},In.join=function(t,e){return null==t?"":Ve.call(t,e)},In.kebabCase=Ua,In.last=Ys,In.lastIndexOf=function(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var s=r;return n!==i&&(s=(s=fa(n))<0?gn(r+s,0):yn(s,r-1)),e==e?function(t,e,n){for(var r=n+1;r--;)if(t[r]===e)return r;return r}(t,e,s):Ie(t,Fe,s,!0)},In.lowerCase=Va,In.lowerFirst=Ga,In.lt=ua,In.lte=la,In.max=function(t){return t&&t.length?fr(t,nh,kr):i},In.maxBy=function(t,e){return t&&t.length?fr(t,ss(e,2),kr):i},In.mean=function(t){return qe(t,nh)},In.meanBy=function(t,e){return qe(t,ss(e,2))},In.min=function(t){return t&&t.length?fr(t,nh,Pr):i},In.minBy=function(t,e){return t&&t.length?fr(t,ss(e,2),Pr):i},In.stubArray=ph,In.stubFalse=mh,In.stubObject=function(){return{}},In.stubString=function(){return""},In.stubTrue=function(){return!0},In.multiply=xh,In.nth=function(t,e){return t&&t.length?zr(t,fa(e)):i},In.noConflict=function(){return ce._===this&&(ce._=It),this},In.noop=ah,In.now=So,In.pad=function(t,e,n){t=ya(t);var r=(e=fa(e))?ln(t):0;if(!e||r>=e)return t;var i=(e-r)/2;return Fi(fe(i),n)+t+Fi(de(i),n)},In.padEnd=function(t,e,n){t=ya(t);var r=(e=fa(e))?ln(t):0;return e&&r<e?t+Fi(e-r,n):t},In.padStart=function(t,e,n){t=ya(t);var r=(e=fa(e))?ln(t):0;return e&&r<e?Fi(e-r,n)+t:t},In.parseInt=function(t,e,n){return n||null==e?e=0:e&&(e=+e),wn(ya(t).replace(rt,""),e||0)},In.random=function(t,e,n){if(n&&"boolean"!=typeof n&&gs(t,e,n)&&(e=n=i),n===i&&("boolean"==typeof e?(n=e,e=i):"boolean"==typeof t&&(n=t,t=i)),t===i&&e===i?(t=0,e=1):(t=da(t),e===i?(e=t,t=0):e=da(e)),t>e){var r=t;t=e,e=r}if(n||t%1||e%1){var s=bn();return yn(t+s*(e-t+ae("1e-"+((s+"").length-1))),e)}return Gr(t,e)},In.reduce=function(t,e,n){var r=Uo(t)?We:Ge,i=arguments.length<3;return r(t,ss(e,4),n,i,lr)},In.reduceRight=function(t,e,n){var r=Uo(t)?je:Ge,i=arguments.length<3;return r(t,ss(e,4),n,i,cr)},In.repeat=function(t,e,n){return e=(n?gs(t,e,n):e===i)?1:fa(e),Hr(ya(t),e)},In.replace=function(){var t=arguments,e=ya(t[0]);return t.length<3?e:e.replace(t[1],t[2])},In.result=function(t,e,n){var r=-1,s=(e=gi(e,t)).length;for(s||(s=1,t=i);++r<s;){var o=null==t?i:t[Ps(e[r])];o===i&&(r=s,o=n),t=Qo(o)?o.call(t):o}return t},In.round=_h,In.runInContext=t,In.sample=function(t){return(Uo(t)?$n:Yr)(t)},In.size=function(t){if(null==t)return 0;if(Go(t))return oa(t)?ln(t):t.length;var e=cs(t);return e==_||e==A?t.size:jr(t).length},In.snakeCase=Ha,In.some=function(t,e,n){var r=Uo(t)?Pe:ei;return n&&gs(t,e,n)&&(e=i),r(t,ss(e,3))},In.sortedIndex=function(t,e){return ni(t,e)},In.sortedIndexBy=function(t,e,n){return ri(t,e,ss(n,2))},In.sortedIndexOf=function(t,e){var n=null==t?0:t.length;if(n){var r=ni(t,e);if(r<n&&Ro(t[r],e))return r}return-1},In.sortedLastIndex=function(t,e){return ni(t,e,!0)},In.sortedLastIndexBy=function(t,e,n){return ri(t,e,ss(n,2),!0)},In.sortedLastIndexOf=function(t,e){if(null!=t&&t.length){var n=ni(t,e,!0)-1;if(Ro(t[n],e))return n}return-1},In.startCase=Xa,In.startsWith=function(t,e,n){return t=ya(t),n=null==n?0:sr(fa(n),0,t.length),e=oi(e),t.slice(n,n+e.length)==e},In.subtract=Nh,In.sum=function(t){return t&&t.length?He(t,nh):0},In.sumBy=function(t,e){return t&&t.length?He(t,ss(e,2)):0},In.template=function(t,e,n){var r=In.templateSettings;n&&gs(t,e,n)&&(e=i),t=ya(t),e=ba({},e,r,$i);var s,o,a=ba({},e.imports,r.imports,$i),h=Ta(a),u=Qe(a,h),l=0,c=e.interpolate||wt,d="__p += '",f=St((e.escape||wt).source+"|"+c.source+"|"+(c===Z?ct:wt).source+"|"+(e.evaluate||wt).source+"|$","g"),p="//# sourceURL="+(Wt.call(e,"sourceURL")?(e.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++re+"]")+"\n";t.replace(f,function(e,n,r,i,a,h){return r||(r=i),d+=t.slice(l,h).replace(bt,nn),n&&(s=!0,d+="' +\n__e("+n+") +\n'"),a&&(o=!0,d+="';\n"+a+";\n__p += '"),r&&(d+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),l=h+e.length,e}),d+="';\n";var m=Wt.call(e,"variable")&&e.variable;if(m){if(ut.test(m))throw new xt("Invalid `variable` option passed into `_.template`")}else d="with (obj) {\n"+d+"\n}\n";d=(o?d.replace(q,""):d).replace(U,"$1").replace(V,"$1;"),d="function("+(m||"obj")+") {\n"+(m?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(s?", __e = _.escape":"")+(o?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+d+"return __p\n}";var g=Za(function(){return _t(h,p+"return "+d).apply(i,u)});if(g.source=d,$o(g))throw g;return g},In.times=function(t,e){if((t=fa(t))<1||t>c)return[];var n=f,r=yn(t,f);e=ss(e),t-=f;for(var i=Xe(r,e);++n<t;)e(n);return i},In.toFinite=da,In.toInteger=fa,In.toLength=pa,In.toLower=function(t){return ya(t).toLowerCase()},In.toNumber=ma,In.toSafeInteger=function(t){return t?sr(fa(t),-9007199254740991,c):0===t?t:0},In.toString=ya,In.toUpper=function(t){return ya(t).toUpperCase()},In.trim=function(t,e,n){if((t=ya(t))&&(n||e===i))return Ye(t);if(!t||!(e=oi(e)))return t;var r=cn(t),s=cn(e);return vi(r,Je(r,s),Ke(r,s)+1).join("")},In.trimEnd=function(t,e,n){if((t=ya(t))&&(n||e===i))return t.slice(0,dn(t)+1);if(!t||!(e=oi(e)))return t;var r=cn(t);return vi(r,0,Ke(r,cn(e))+1).join("")},In.trimStart=function(t,e,n){if((t=ya(t))&&(n||e===i))return t.replace(rt,"");if(!t||!(e=oi(e)))return t;var r=cn(t);return vi(r,Je(r,cn(e))).join("")},In.truncate=function(t,e){var n=30,r="...";if(Ko(e)){var s="separator"in e?e.separator:s;n="length"in e?fa(e.length):n,r="omission"in e?oi(e.omission):r}var o=(t=ya(t)).length;if(rn(t)){var a=cn(t);o=a.length}if(n>=o)return t;var h=n-ln(r);if(h<1)return r;var u=a?vi(a,0,h).join(""):t.slice(0,h);if(s===i)return u+r;if(a&&(h+=u.length-h),ia(s)){if(t.slice(h).search(s)){var l,c=u;for(s.global||(s=St(s.source,ya(dt.exec(s))+"g")),s.lastIndex=0;l=s.exec(c);)var d=l.index;u=u.slice(0,d===i?h:d)}}else if(t.indexOf(oi(s),h)!=h){var f=u.lastIndexOf(s);f>-1&&(u=u.slice(0,f))}return u+r},In.unescape=function(t){return(t=ya(t))&&X.test(t)?t.replace(G,fn):t},In.uniqueId=function(t){var e=++jt;return ya(t)+e},In.upperCase=Ya,In.upperFirst=$a,In.each=yo,In.eachRight=vo,In.first=Vs,oh(In,(gh={},vr(In,function(t,e){Wt.call(In.prototype,e)||(gh[e]=t)}),gh),{chain:!1}),In.VERSION="4.17.23",Se(["bind","bindKey","curry","curryRight","partial","partialRight"],function(t){In[t].placeholder=In}),Se(["drop","take"],function(t,e){qn.prototype[t]=function(n){n=n===i?1:gn(fa(n),0);var r=this.__filtered__&&!e?new qn(this):this.clone();return r.__filtered__?r.__takeCount__=yn(n,r.__takeCount__):r.__views__.push({size:yn(n,f),type:t+(r.__dir__<0?"Right":"")}),r},qn.prototype[t+"Right"]=function(e){return this.reverse()[t](e).reverse()}}),Se(["filter","map","takeWhile"],function(t,e){var n=e+1,r=1==n||3==n;qn.prototype[t]=function(t){var e=this.clone();return e.__iteratees__.push({iteratee:ss(t,3),type:n}),e.__filtered__=e.__filtered__||r,e}}),Se(["head","last"],function(t,e){var n="take"+(e?"Right":"");qn.prototype[t]=function(){return this[n](1).value()[0]}}),Se(["initial","tail"],function(t,e){var n="drop"+(e?"":"Right");qn.prototype[t]=function(){return this.__filtered__?new qn(this):this[n](1)}}),qn.prototype.compact=function(){return this.filter(nh)},qn.prototype.find=function(t){return this.filter(t).head()},qn.prototype.findLast=function(t){return this.reverse().find(t)},qn.prototype.invokeMap=Xr(function(t,e){return"function"==typeof t?new qn(this):this.map(function(n){return Er(n,t,e)})}),qn.prototype.reject=function(t){return this.filter(jo(ss(t)))},qn.prototype.slice=function(t,e){t=fa(t);var n=this;return n.__filtered__&&(t>0||e<0)?new qn(n):(t<0?n=n.takeRight(-t):t&&(n=n.drop(t)),e!==i&&(n=(e=fa(e))<0?n.dropRight(-e):n.take(e-t)),n)},qn.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},qn.prototype.toArray=function(){return this.take(f)},vr(qn.prototype,function(t,e){var n=/^(?:filter|find|map|reject)|While$/.test(e),r=/^(?:head|last)$/.test(e),s=In[r?"take"+("last"==e?"Right":""):e],o=r||/^find/.test(e);s&&(In.prototype[e]=function(){var e=this.__wrapped__,a=r?[1]:arguments,h=e instanceof qn,u=a[0],l=h||Uo(e),c=function(t){var e=s.apply(In,Le([t],a));return r&&d?e[0]:e};l&&n&&"function"==typeof u&&1!=u.length&&(h=l=!1);var d=this.__chain__,f=!!this.__actions__.length,p=o&&!d,m=h&&!f;if(!o&&l){e=m?e:new qn(this);var g=t.apply(e,a);return g.__actions__.push({func:co,args:[c],thisArg:i}),new Fn(g,d)}return p&&m?t.apply(this,a):(g=this.thru(c),p?r?g.value()[0]:g.value():g)})}),Se(["pop","push","shift","sort","splice","unshift"],function(t){var e=Et[t],n=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",r=/^(?:pop|shift)$/.test(t);In.prototype[t]=function(){var t=arguments;if(r&&!this.__chain__){var i=this.value();return e.apply(Uo(i)?i:[],t)}return this[n](function(n){return e.apply(Uo(n)?n:[],t)})}}),vr(qn.prototype,function(t,e){var n=In[e];if(n){var r=n.name+"";Wt.call(Cn,r)||(Cn[r]=[]),Cn[r].push({name:e,func:n})}}),Cn[Bi(i,2).name]=[{name:"wrapper",func:i}],qn.prototype.clone=function(){var t=new qn(this.__wrapped__);return t.__actions__=Mi(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=Mi(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=Mi(this.__views__),t},qn.prototype.reverse=function(){if(this.__filtered__){var t=new qn(this);t.__dir__=-1,t.__filtered__=!0}else(t=this.clone()).__dir__*=-1;return t},qn.prototype.value=function(){var t=this.__wrapped__.value(),e=this.__dir__,n=Uo(t),r=e<0,i=n?t.length:0,s=function(t,e,n){for(var r=-1,i=n.length;++r<i;){var s=n[r],o=s.size;switch(s.type){case"drop":t+=o;break;case"dropRight":e-=o;break;case"take":e=yn(e,t+o);break;case"takeRight":t=gn(t,e-o)}}return{start:t,end:e}}(0,i,this.__views__),o=s.start,a=s.end,h=a-o,u=r?a:o-1,l=this.__iteratees__,c=l.length,d=0,f=yn(h,this.__takeCount__);if(!n||!r&&i==h&&f==h)return ci(t,this.__actions__);var p=[];t:for(;h--&&d<f;){for(var m=-1,g=t[u+=e];++m<c;){var y=l[m],v=y.iteratee,w=y.type,b=v(g);if(2==w)g=b;else if(!b){if(1==w)continue t;break t}}p[d++]=g}return p},In.prototype.at=fo,In.prototype.chain=function(){return lo(this)},In.prototype.commit=function(){return new Fn(this.value(),this.__chain__)},In.prototype.next=function(){this.__values__===i&&(this.__values__=ca(this.value()));var t=this.__index__>=this.__values__.length;return{done:t,value:t?i:this.__values__[this.__index__++]}},In.prototype.plant=function(t){for(var e,n=this;n instanceof zn;){var r=Bs(n);r.__index__=0,r.__values__=i,e?s.__wrapped__=r:e=r;var s=r;n=n.__wrapped__}return s.__wrapped__=t,e},In.prototype.reverse=function(){var t=this.__wrapped__;if(t instanceof qn){var e=t;return this.__actions__.length&&(e=new qn(this)),(e=e.reverse()).__actions__.push({func:co,args:[Js],thisArg:i}),new Fn(e,this.__chain__)}return this.thru(Js)},In.prototype.toJSON=In.prototype.valueOf=In.prototype.value=function(){return ci(this.__wrapped__,this.__actions__)},In.prototype.first=In.prototype.head,$t&&(In.prototype[$t]=function(){return this}),In}();ce._=pn,(r=function(){return pn}.call(e,n,e,t))===i||(t.exports=r)}.call(this)},584(t,e,n){"use strict";n.d(e,{Ay:()=>c,OW:()=>u,Qq:()=>h,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: white;\n\n pointer-events: auto;\n\n user-select: none;\n -webkit-user-select: none;\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",h="hcTi6yK4eMJ8Mc61rqGY",u="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:()=>v,IU:()=>f,QB:()=>y,Qs:()=>d,Te:()=>g,aW:()=>c,eB:()=>m,ho:()=>l,lf:()=>a,m9:()=>u,vw:()=>p,wx:()=>h});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: white;\n\n pointer-events: auto;\n\n user-select: none;\n -webkit-user-select: none;\n\n cursor: pointer;\n\n outline: none;\n}\n\n.sE2YASqaiPZdV9dz58A7:hover .u5w42CVwU4PQ7GiSuy4G {\n text-decoration: underline;\n}\n\n.TCp4dzyF9qmbX3ejDOkL {\n margin: 11px 0px 0px 12px;\n\n display: none;\n flex-direction: column;\n}\n\n.mOH6VML7hViujtEoNaOA .TCp4dzyF9qmbX3ejDOkL {\n display: flex;\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: white;\n\n user-select: none;\n -webkit-user-select: none;\n\n pointer-events: none;\n}\n\n.CEKK9ESfVFUX5lmGT49Q {\n margin-top: 21px;\n\n display: flex;\n flex-direction: row;\n gap: 23px;\n}\n\n.REx8U43f426EyuXTroHH {\n margin-top: 22px;\n\n display: none;\n}\n\n.vXdbsaENeFcx9uTlNetr {\n display: flex;\n flex-direction: row;\n align-items: center;\n}\n\n.a5Wi7rcTlB2tWpGwD8zf {\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: white;\n\n user-select: none;\n -webkit-user-select: none;\n\n pointer-events: none;\n}\n',""]);var a="dimGBV0h2P1QB3V_Zhmc",h="sE2YASqaiPZdV9dz58A7",u="BYZcOJiOX5zLxIrbc3gR",l="mOH6VML7hViujtEoNaOA",c="u5w42CVwU4PQ7GiSuy4G",d="TCp4dzyF9qmbX3ejDOkL",f="WOjw8GKoS54KQAOlumMa",p="CEKK9ESfVFUX5lmGT49Q",m="REx8U43f426EyuXTroHH",g="vXdbsaENeFcx9uTlNetr",y="a5Wi7rcTlB2tWpGwD8zf";const v=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:()=>u,ZZ:()=>a,o3:()=>h});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: white;\n\n user-select: none;\n -webkit-user-select: none;\n\n pointer-events: auto;\n}\n\n.P5PJGaHxnhsEaezm8Nhg {\n color: white;\n\n cursor: pointer;\n\n text-decoration: none;\n}\n\n.P5PJGaHxnhsEaezm8Nhg:hover {\n text-decoration: underline;\n}\n',""]);var a="rIHrsark1WbeRGC9M1ZY",h="P5PJGaHxnhsEaezm8Nhg";const u=o},692(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,h=s.flat?function(t){return s.flat.call(t)}:function(t){return s.concat.apply([],t)},u=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,b={type:!0,src:!0,nonce:!0,noModule:!0};function x(t,e,n){var r,i,s=(n=n||w).createElement("script");if(s.text=t,e)for(r in b)(i=e[r]||e.getAttribute&&e.getAttribute(r))&&s.setAttribute(r,i);n.head.appendChild(s).parentNode.removeChild(s)}function _(t){return null==t?t+"":"object"==typeof t||"function"==typeof t?c[d.call(t)]||"object":typeof t}var N="3.7.1",k=/HTML$/i,S=function(t,e){return new S.fn.init(t,e)};function M(t){var e=!!t&&"length"in t&&t.length,n=_(t);return!y(t)&&!v(t)&&("array"===n||0===e||"number"==typeof e&&e>0&&e-1 in t)}function A(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()}S.fn=S.prototype={jquery:N,constructor:S,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=S.merge(this.constructor(),t);return e.prevObject=this,e},each:function(t){return S.each(this,t)},map:function(t){return this.pushStack(S.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(S.grep(this,function(t,e){return(e+1)%2}))},odd:function(){return this.pushStack(S.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:u,sort:s.sort,splice:s.splice},S.extend=S.fn.extend=function(){var t,e,n,r,i,s,o=arguments[0]||{},a=1,h=arguments.length,u=!1;for("boolean"==typeof o&&(u=o,o=arguments[a]||{},a++),"object"==typeof o||y(o)||(o={}),a===h&&(o=this,a--);a<h;a++)if(null!=(t=arguments[a]))for(e in t)r=t[e],"__proto__"!==e&&o!==r&&(u&&r&&(S.isPlainObject(r)||(i=Array.isArray(r)))?(n=o[e],s=i&&!Array.isArray(n)?[]:i||S.isPlainObject(n)?n:{},i=!1,o[e]=S.extend(u,s,r)):void 0!==r&&(o[e]=r));return o},S.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){x(t,{nonce:e&&e.nonce},n)},each:function(t,e){var n,r=0;if(M(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+=S.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&&(M(Object(t))?S.merge(n,"string"==typeof t?[t]:t):u.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!k.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(M(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 h(o)},guid:1,support:g}),"function"==typeof Symbol&&(S.fn[Symbol.iterator]=s[Symbol.iterator]),S.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(t,e){c["[object "+e+"]"]=e.toLowerCase()});var E=s.pop,C=s.sort,T=s.splice,O="[\\x20\\t\\r\\n\\f]",L=new RegExp("^"+O+"+|((?:^|[^\\\\])(?:\\\\.)*)"+O+"+$","g");S.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 W=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g;function j(t,e){return e?"\0"===t?"�":t.slice(0,-1)+"\\"+t.charCodeAt(t.length-1).toString(16)+" ":"\\"+t}S.escapeSelector=function(t){return(t+"").replace(W,j)};var P=w,D=u;!function(){var t,e,n,i,o,h,u,c,d,p,m=D,y=S.expando,v=0,w=0,b=tt(),x=tt(),_=tt(),N=tt(),k=function(t,e){return t===e&&(o=!0),0},M="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",W="(?:\\\\[\\da-fA-F]{1,6}"+O+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",j="\\["+O+"*("+W+")(?:"+O+"*([*^$|!~]?=)"+O+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+W+"))|)"+O+"*\\]",B=":("+W+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+j+")*)|.*)\\)|)",I=new RegExp(O+"+","g"),R=new RegExp("^"+O+"*,"+O+"*"),z=new RegExp("^"+O+"*([>+~]|"+O+")"+O+"*"),F=new RegExp(O+"|>"),q=new RegExp(B),U=new RegExp("^"+W+"$"),V={ID:new RegExp("^#("+W+")"),CLASS:new RegExp("^\\.("+W+")"),TAG:new RegExp("^("+W+"|[*])"),ATTR:new RegExp("^"+j),PSEUDO:new RegExp("^"+B),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+O+"*(even|odd|(([+-]|)(\\d*)n|)"+O+"*(?:([+-]|)"+O+"*(\\d+)|))"+O+"*\\)|)","i"),bool:new RegExp("^(?:"+M+")$","i"),needsContext:new RegExp("^"+O+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+O+"*((?:-\\d)?\\d*)"+O+"*\\)|)(?=[^-]|$)","i")},G=/^(?:input|select|textarea|button)$/i,H=/^h\d$/i,X=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,Y=/[+~]/,$=new RegExp("\\\\[\\da-fA-F]{1,6}"+O+"?|\\\\([^\\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))},Z=function(){ht()},J=dt(function(t){return!0===t.disabled&&A(t,"fieldset")},{dir:"parentNode",next:"legend"});try{m.apply(s=a.call(P.childNodes),P.childNodes),s[P.childNodes.length].nodeType}catch(t){m={apply:function(t,e){D.apply(t,a.call(e))},call:function(t){D.apply(t,a.call(arguments,1))}}}function K(t,e,n,r){var i,s,o,a,u,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&&(ht(e),e=e||h,c)){if(11!==v&&(u=X.exec(t)))if(i=u[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(u[2])return m.apply(n,e.getElementsByTagName(t)),n;if((i=u[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&&(F.test(t)||z.test(t))){for((p=Y.test(t)&&at(e.parentNode)||e)==e&&g.scope||((a=e.getAttribute("id"))?a=S.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(L,"$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=h.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 A(e,"input")&&e.type===t}}function it(t){return function(e){return(A(e,"input")||A(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&&J(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 ht(t){var n,r=t?t.ownerDocument||t:P;return r!=h&&9===r.nodeType&&r.documentElement?(u=(h=r).documentElement,c=!S.isXMLDoc(h),p=u.matches||u.webkitMatchesSelector||u.msMatchesSelector,u.msMatchesSelector&&P!=h&&(n=h.defaultView)&&n.top!==n&&n.addEventListener("unload",Z),g.getById=nt(function(t){return u.appendChild(t).id=S.expando,!h.getElementsByName||!h.getElementsByName(S.expando).length}),g.disconnectedMatch=nt(function(t){return p.call(t,"*")}),g.scope=nt(function(){return h.querySelectorAll(":scope")}),g.cssHas=nt(function(){try{return h.querySelector(":has(*,:jqfake)"),!1}catch(t){return!0}}),g.getById?(e.filter.ID=function(t){var e=t.replace($,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($,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;u.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("\\["+O+"*(?:value|"+M+")"),t.querySelectorAll("[id~="+y+"-]").length||d.push("~="),t.querySelectorAll("a#"+y+"+*").length||d.push(".#.+[+~]"),t.querySelectorAll(":checked").length||d.push(":checked"),(e=h.createElement("input")).setAttribute("type","hidden"),t.appendChild(e).setAttribute("name","D"),u.appendChild(t).disabled=!0,2!==t.querySelectorAll(":disabled").length&&d.push(":enabled",":disabled"),(e=h.createElement("input")).setAttribute("name",""),t.appendChild(e),t.querySelectorAll("[name='']").length||d.push("\\["+O+"*name"+O+"*="+O+"*(?:''|\"\")")}),g.cssHas||d.push(":has"),d=d.length&&new RegExp(d.join("|")),k=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===h||t.ownerDocument==P&&K.contains(P,t)?-1:e===h||e.ownerDocument==P&&K.contains(P,e)?1:i?l.call(i,t)-l.call(i,e):0:4&n?-1:1)},h):h}for(t in K.matches=function(t,e){return K(t,null,null,e)},K.matchesSelector=function(t,e){if(ht(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,h,null,[t]).length>0},K.contains=function(t,e){return(t.ownerDocument||t)!=h&&ht(t),S.contains(t,e)},K.attr=function(t,n){(t.ownerDocument||t)!=h&&ht(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)},S.uniqueSort=function(t){var e,n=[],r=0,s=0;if(o=!g.sortStable,i=!g.sortStable&&a.call(t,0),C.call(t,k),o){for(;e=t[s++];)e===t[s]&&(r=n.push(s));for(;r--;)T.call(t,n[r],1)}return i=null,t},S.fn.uniqueSort=function(){return this.pushStack(S.uniqueSort(a.apply(this)))},e=S.expr={cacheLength:50,createPseudo:et,match:V,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($,Q),t[3]=(t[3]||t[4]||t[5]||"").replace($,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 V.CHILD.test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||"":n&&q.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($,Q).toLowerCase();return"*"===t?function(){return!0}:function(t){return A(t,e)}},CLASS:function(t){var e=b[t+" "];return e||(e=new RegExp("(^|"+O+")"+t+"("+O+"|$)"))&&b(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,h){var u,l,c,d,f,p=s!==o?"nextSibling":"previousSibling",m=e.parentNode,g=a&&e.nodeName.toLowerCase(),w=!h&&!a,b=!1;if(m){if(s){for(;p;){for(c=e;c=c[p];)if(a?A(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(b=(d=(u=(l=m[y]||(m[y]={}))[t]||[])[0]===v&&u[1])&&u[2],c=d&&m.childNodes[d];c=++d&&c&&c[p]||(b=d=0)||f.pop();)if(1===c.nodeType&&++b&&c===e){l[t]=[v,d,b];break}}else if(w&&(b=d=(u=(l=e[y]||(e[y]={}))[t]||[])[0]===v&&u[1]),!1===b)for(;(c=++d&&c&&c[p]||(b=d=0)||f.pop())&&(!(a?A(c,g):1===c.nodeType)||!++b||(w&&((l=c[y]||(c[y]={}))[t]=[v,b]),c!==e)););return(b-=i)===r||b%r===0&&b/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(L,"$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($,Q),function(e){return(e.textContent||S.text(e)).indexOf(t)>-1}}),lang:et(function(t){return U.test(t||"")||K.error("unsupported lang: "+t),t=t.replace($,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===u},focus:function(t){return t===function(){try{return h.activeElement}catch(t){}}()&&h.hasFocus()&&!!(t.type||t.href||~t.tabIndex)},enabled:st(!1),disabled:st(!0),checked:function(t){return A(t,"input")&&!!t.checked||A(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 H.test(t.nodeName)},input:function(t){return G.test(t.nodeName)},button:function(t){return A(t,"input")&&"button"===t.type||A(t,"button")},text:function(t){var e;return A(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 ut(){}function lt(t,n){var r,i,s,o,a,h,u,l=x[t+" "];if(l)return n?0:l.slice(0);for(a=t,h=[],u=e.preFilter;a;){for(o in r&&!(i=R.exec(a))||(i&&(a=a.slice(i[0].length)||a),h.push(s=[])),r=!1,(i=z.exec(a))&&(r=i.shift(),s.push({value:r,type:i[0].replace(L," ")}),a=a.slice(r.length)),e.filter)!(i=V[o].exec(a))||u[o]&&!(i=u[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):x(t,h).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,h){var u,l,c=[v,a];if(h){for(;e=e[r];)if((1===e.nodeType||o)&&t(e,n,h))return!0}else for(;e=e[r];)if(1===e.nodeType||o)if(l=e[y]||(e[y]={}),i&&A(e,i))e=e[r]||e;else{if((u=l[s])&&u[0]===v&&u[1]===a)return c[2]=u[2];if(l[s]=c,c[2]=t(e,n,h))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,h=t.length,u=null!=e;a<h;a++)(s=t[a])&&(n&&!n(s,r,i)||(o.push(s),u&&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,h){var u,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,h);if(n?n(w,f=i||(s?t:y||r)?[]:o,a,h):f=w,r)for(u=pt(f,g),r(u,[],a,h),c=u.length;c--;)(d=u[c])&&(f[g[c]]=!(w[g[c]]=d));if(s){if(i||t){if(i){for(u=[],c=f.length;c--;)(d=f[c])&&u.push(w[c]=d);i(null,f=[],u,h)}for(c=f.length;c--;)(d=f[c])&&(u=i?l.call(s,d):p[c])>-1&&(s[u]=!(o[u]=d))}}else f=pt(f===o?f.splice(y,f.length):f),i?i(null,o,f,h):m.apply(o,f)})}function gt(t){for(var r,i,s,o=t.length,a=e.relative[t[0].type],h=a||e.relative[" "],u=a?1:0,c=dt(function(t){return t===r},h,!0),d=dt(function(t){return l.call(r,t)>-1},h,!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}];u<o;u++)if(i=e.relative[t[u].type])f=[dt(ft(f),i)];else{if((i=e.filter[t[u].type].apply(null,t[u].matches))[y]){for(s=++u;s<o&&!e.relative[t[s].type];s++);return mt(u>1&&ft(f),u>1&&ct(t.slice(0,u-1).concat({value:" "===t[u-2].type?"*":""})).replace(L,"$1"),i,u<s&>(t.slice(u,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=_[t+" "];if(!a){for(r||(r=lt(t)),i=r.length;i--;)(a=gt(r[i]))[y]?s.push(a):o.push(a);a=_(t,function(t,r){var i=r.length>0,s=t.length>0,o=function(o,a,u,l,d){var f,p,g,y=0,w="0",b=o&&[],x=[],_=n,N=o||s&&e.find.TAG("*",d),k=v+=null==_?1:Math.random()||.1,M=N.length;for(d&&(n=a==h||a||d);w!==M&&null!=(f=N[w]);w++){if(s&&f){for(p=0,a||f.ownerDocument==h||(ht(f),u=!c);g=t[p++];)if(g(f,a||h,u)){m.call(l,f);break}d&&(v=k)}i&&((f=!g&&f)&&y--,o&&b.push(f))}if(y+=w,i&&w!==y){for(p=0;g=r[p++];)g(b,x,a,u);if(o){if(y>0)for(;w--;)b[w]||x[w]||(x[w]=E.call(l));x=pt(x)}m.apply(l,x),d&&!o&&x.length>0&&y+r.length>1&&S.uniqueSort(l)}return d&&(v=k,n=_),b};return i?et(o):o}(o,s)),a.selector=t}return a}function vt(t,n,r,i){var s,o,a,h,u,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($,Q),n)||[])[0]))return r;l&&(n=n.parentNode),t=t.slice(o.shift().value.length)}for(s=V.needsContext.test(t)?0:o.length;s--&&(a=o[s],!e.relative[h=a.type]);)if((u=e.find[h])&&(i=u(a.matches[0].replace($,Q),Y.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||Y.test(t)&&at(n.parentNode)||n),r}ut.prototype=e.filters=e.pseudos,e.setFilters=new ut,g.sortStable=y.split("").sort(k).join("")===y,ht(),g.sortDetached=nt(function(t){return 1&t.compareDocumentPosition(h.createElement("fieldset"))}),S.find=K,S.expr[":"]=S.expr.pseudos,S.unique=S.uniqueSort,K.compile=yt,K.select=vt,K.setDocument=ht,K.tokenize=lt,K.escape=S.escapeSelector,K.getText=S.text,K.isXML=S.isXMLDoc,K.selectors=S.expr,K.support=S.support,K.uniqueSort=S.uniqueSort}();var B=function(t,e,n){for(var r=[],i=void 0!==n;(t=t[e])&&9!==t.nodeType;)if(1===t.nodeType){if(i&&S(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=S.expr.match.needsContext,z=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function F(t,e,n){return y(e)?S.grep(t,function(t,r){return!!e.call(t,r,t)!==n}):e.nodeType?S.grep(t,function(t){return t===e!==n}):"string"!=typeof e?S.grep(t,function(t){return l.call(e,t)>-1!==n}):S.filter(e,t,n)}S.filter=function(t,e,n){var r=e[0];return n&&(t=":not("+t+")"),1===e.length&&1===r.nodeType?S.find.matchesSelector(r,t)?[r]:[]:S.find.matches(t,S.grep(e,function(t){return 1===t.nodeType}))},S.fn.extend({find:function(t){var e,n,r=this.length,i=this;if("string"!=typeof t)return this.pushStack(S(t).filter(function(){for(e=0;e<r;e++)if(S.contains(i[e],this))return!0}));for(n=this.pushStack([]),e=0;e<r;e++)S.find(t,i[e],n);return r>1?S.uniqueSort(n):n},filter:function(t){return this.pushStack(F(this,t||[],!1))},not:function(t){return this.pushStack(F(this,t||[],!0))},is:function(t){return!!F(this,"string"==typeof t&&R.test(t)?S(t):t||[],!1).length}});var q,U=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(S.fn.init=function(t,e,n){var r,i;if(!t)return this;if(n=n||q,"string"==typeof t){if(!(r="<"===t[0]&&">"===t[t.length-1]&&t.length>=3?[null,t,null]:U.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 S?e[0]:e,S.merge(this,S.parseHTML(r[1],e&&e.nodeType?e.ownerDocument||e:w,!0)),z.test(r[1])&&S.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(S):S.makeArray(t,this)}).prototype=S.fn,q=S(w);var V=/^(?:parents|prev(?:Until|All))/,G={children:!0,contents:!0,next:!0,prev:!0};function H(t,e){for(;(t=t[e])&&1!==t.nodeType;);return t}S.fn.extend({has:function(t){var e=S(t,this),n=e.length;return this.filter(function(){for(var t=0;t<n;t++)if(S.contains(this,e[t]))return!0})},closest:function(t,e){var n,r=0,i=this.length,s=[],o="string"!=typeof t&&S(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&&S.find.matchesSelector(n,t))){s.push(n);break}return this.pushStack(s.length>1?S.uniqueSort(s):s)},index:function(t){return t?"string"==typeof t?l.call(S(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(S.uniqueSort(S.merge(this.get(),S(t,e))))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),S.each({parent:function(t){var e=t.parentNode;return e&&11!==e.nodeType?e:null},parents:function(t){return B(t,"parentNode")},parentsUntil:function(t,e,n){return B(t,"parentNode",n)},next:function(t){return H(t,"nextSibling")},prev:function(t){return H(t,"previousSibling")},nextAll:function(t){return B(t,"nextSibling")},prevAll:function(t){return B(t,"previousSibling")},nextUntil:function(t,e,n){return B(t,"nextSibling",n)},prevUntil:function(t,e,n){return B(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:(A(t,"template")&&(t=t.content||t),S.merge([],t.childNodes))}},function(t,e){S.fn[t]=function(n,r){var i=S.map(this,e,n);return"Until"!==t.slice(-5)&&(r=n),r&&"string"==typeof r&&(i=S.filter(r,i)),this.length>1&&(G[t]||S.uniqueSort(i),V.test(t)&&i.reverse()),this.pushStack(i)}});var X=/[^\x20\t\r\n\f]+/g;function Y(t){return t}function $(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])}}S.Callbacks=function(t){t="string"==typeof t?function(t){var e={};return S.each(t.match(X)||[],function(t,n){e[n]=!0}),e}(t):S.extend({},t);var e,n,r,i,s=[],o=[],a=-1,h=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?[]:"")},u={add:function(){return s&&(n&&!e&&(a=s.length-1,o.push(n)),function e(n){S.each(n,function(n,r){y(r)?t.unique&&u.has(r)||s.push(r):r&&r.length&&"string"!==_(r)&&e(r)})}(arguments),n&&!e&&h()),this},remove:function(){return S.each(arguments,function(t,e){for(var n;(n=S.inArray(e,s,n))>-1;)s.splice(n,1),n<=a&&a--}),this},has:function(t){return t?S.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||h()),this},fire:function(){return u.fireWith(this,arguments),this},fired:function(){return!!r}};return u},S.extend({Deferred:function(t){var e=[["notify","progress",S.Callbacks("memory"),S.Callbacks("memory"),2],["resolve","done",S.Callbacks("once memory"),S.Callbacks("once memory"),0,"resolved"],["reject","fail",S.Callbacks("once memory"),S.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 S.Deferred(function(n){S.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,h=arguments,u=function(){var r,u;if(!(t<s)){if((r=n.apply(a,h))===e.promise())throw new TypeError("Thenable self-resolution");u=r&&("object"==typeof r||"function"==typeof r)&&r.then,y(u)?i?u.call(r,o(s,e,Y,i),o(s,e,$,i)):(s++,u.call(r,o(s,e,Y,i),o(s,e,$,i),o(s,e,Y,e.notifyWith))):(n!==Y&&(a=void 0,h=[r]),(i||e.resolveWith)(a,h))}},l=i?u:function(){try{u()}catch(r){S.Deferred.exceptionHook&&S.Deferred.exceptionHook(r,l.error),t+1>=s&&(n!==$&&(a=void 0,h=[r]),e.rejectWith(a,h))}};t?l():(S.Deferred.getErrorHook?l.error=S.Deferred.getErrorHook():S.Deferred.getStackHook&&(l.error=S.Deferred.getStackHook()),r.setTimeout(l))}}return S.Deferred(function(r){e[0][3].add(o(0,r,y(i)?i:Y,r.notifyWith)),e[1][3].add(o(0,r,y(t)?t:Y)),e[2][3].add(o(0,r,y(n)?n:$))}).promise()},promise:function(t){return null!=t?S.extend(t,i):i}},s={};return S.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=S.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 Z=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;S.Deferred.exceptionHook=function(t,e){r.console&&r.console.warn&&t&&Z.test(t.name)&&r.console.warn("jQuery.Deferred exception: "+t.message,t.stack,e)},S.readyException=function(t){r.setTimeout(function(){throw t})};var J=S.Deferred();function K(){w.removeEventListener("DOMContentLoaded",K),r.removeEventListener("load",K),S.ready()}S.fn.ready=function(t){return J.then(t).catch(function(t){S.readyException(t)}),this},S.extend({isReady:!1,readyWait:1,ready:function(t){(!0===t?--S.readyWait:S.isReady)||(S.isReady=!0,!0!==t&&--S.readyWait>0||J.resolveWith(w,[S]))}}),S.ready.then=J.then,"complete"===w.readyState||"loading"!==w.readyState&&!w.documentElement.doScroll?r.setTimeout(S.ready):(w.addEventListener("DOMContentLoaded",K),r.addEventListener("load",K));var tt=function(t,e,n,r,i,s,o){var a=0,h=t.length,u=null==n;if("object"===_(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),u&&(o?(e.call(t,r),e=null):(u=e,e=function(t,e,n){return u.call(S(t),n)})),e))for(;a<h;a++)e(t[a],n,o?r:r.call(t[a],a,e(t[a],n)));return i?t:u?e.call(t):h?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=S.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||S.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&&!S.isEmptyObject(e)}};var at=new ot,ht=new ot,ut=/^(?:\{[\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:ut.test(t)?JSON.parse(t):t)}(n)}catch(t){}ht.set(t,e,n)}else n=void 0;return n}S.extend({hasData:function(t){return ht.hasData(t)||at.hasData(t)},data:function(t,e,n){return ht.access(t,e,n)},removeData:function(t,e){ht.remove(t,e)},_data:function(t,e,n){return at.access(t,e,n)},_removeData:function(t,e){at.remove(t,e)}}),S.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=ht.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(){ht.set(this,t)}):tt(this,function(e){var n;if(s&&void 0===e)return void 0!==(n=ht.get(s,t))||void 0!==(n=ct(s,t))?n:void 0;this.each(function(){ht.set(this,t,e)})},null,e,arguments.length>1,null,!0)},removeData:function(t){return this.each(function(){ht.remove(this,t)})}}),S.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,S.makeArray(n)):r.push(n)),r||[]},dequeue:function(t,e){e=e||"fx";var n=S.queue(t,e),r=n.length,i=n.shift(),s=S._queueHooks(t,e);"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===e&&n.unshift("inprogress"),delete s.stop,i.call(t,function(){S.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:S.Callbacks("once memory").add(function(){at.remove(t,[e+"queue",n])})})}}),S.fn.extend({queue:function(t,e){var n=2;return"string"!=typeof t&&(e=t,t="fx",n--),arguments.length<n?S.queue(this[0],t):void 0===e?this:this.each(function(){var n=S.queue(this,t,e);S._queueHooks(this,t),"fx"===t&&"inprogress"!==n[0]&&S.dequeue(this,t)})},dequeue:function(t){return this.each(function(){S.dequeue(this,t)})},clearQueue:function(t){return this.queue(t||"fx",[])},promise:function(t,e){var n,r=1,i=S.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 S.contains(t.ownerDocument,t)},yt={composed:!0};mt.getRootNode&&(gt=function(t){return S.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"===S.css(t,"display")};function wt(t,e,n,r){var i,s,o=20,a=r?function(){return r.cur()}:function(){return S.css(t,e,"")},h=a(),u=n&&n[3]||(S.cssNumber[e]?"":"px"),l=t.nodeType&&(S.cssNumber[e]||"px"!==u&&+h)&&ft.exec(S.css(t,e));if(l&&l[3]!==u){for(h/=2,u=u||l[3],l=+h||1;o--;)S.style(t,e,l+u),(1-s)*(1-(s=a()/h||.5))<=0&&(o=0),l/=s;l*=2,S.style(t,e,l+u),n=n||[]}return n&&(l=+l||+h||0,i=n[1]?l+(n[1]+1)*n[2]:+n[2],r&&(r.unit=u,r.start=l,r.end=i)),i}var bt={};function xt(t){var e,n=t.ownerDocument,r=t.nodeName,i=bt[r];return i||(e=n.body.appendChild(n.createElement(r)),i=S.css(e,"display"),e.parentNode.removeChild(e),"none"===i&&(i="block"),bt[r]=i,i)}function _t(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]=xt(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}S.fn.extend({show:function(){return _t(this,!0)},hide:function(){return _t(this)},toggle:function(t){return"boolean"==typeof t?t?this.show():this.hide():this.each(function(){vt(this)?S(this).show():S(this).hide()})}});var Nt,kt,St=/^(?:checkbox|radio)$/i,Mt=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,At=/^$|^module$|\/(?:java|ecma)script/i;Nt=w.createDocumentFragment().appendChild(w.createElement("div")),(kt=w.createElement("input")).setAttribute("type","radio"),kt.setAttribute("checked","checked"),kt.setAttribute("name","t"),Nt.appendChild(kt),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 Et={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&&A(t,e)?S.merge([t],n):n}function Tt(t,e){for(var n=0,r=t.length;n<r;n++)at.set(t[n],"globalEval",!e||at.get(e[n],"globalEval"))}Et.tbody=Et.tfoot=Et.colgroup=Et.caption=Et.thead,Et.th=Et.td,g.option||(Et.optgroup=Et.option=[1,"<select multiple='multiple'>","</select>"]);var Ot=/<|&#?\w+;/;function Lt(t,e,n,r,i){for(var s,o,a,h,u,l,c=e.createDocumentFragment(),d=[],f=0,p=t.length;f<p;f++)if((s=t[f])||0===s)if("object"===_(s))S.merge(d,s.nodeType?[s]:s);else if(Ot.test(s)){for(o=o||c.appendChild(e.createElement("div")),a=(Mt.exec(s)||["",""])[1].toLowerCase(),h=Et[a]||Et._default,o.innerHTML=h[1]+S.htmlPrefilter(s)+h[2],l=h[0];l--;)o=o.lastChild;S.merge(d,o.childNodes),(o=c.firstChild).textContent=""}else d.push(e.createTextNode(s));for(c.textContent="",f=0;s=d[f++];)if(r&&S.inArray(s,r)>-1)i&&i.push(s);else if(u=gt(s),o=Ct(c.appendChild(s),"script"),u&&Tt(o),n)for(l=0;s=o[l++];)At.test(s.type||"")&&n.push(s);return c}var Wt=/^([^.]*)(?:\.(.+)|)/;function jt(){return!0}function Pt(){return!1}function Dt(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)Dt(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=Pt;else if(!i)return t;return 1===s&&(o=i,i=function(t){return S().off(t),o.apply(this,arguments)},i.guid=o.guid||(o.guid=S.guid++)),t.each(function(){S.event.add(this,e,i,r,n)})}function Bt(t,e,n){n?(at.set(t,e,!1),S.event.add(t,e,{namespace:!1,handler:function(t){var n,r=at.get(this,e);if(1&t.isTrigger&&this[e]){if(r)(S.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,S.event.trigger(r[0],r.slice(1),this)),t.stopPropagation(),t.isImmediatePropagationStopped=jt)}})):void 0===at.get(t,e)&&S.event.add(t,e,jt)}S.event={global:{},add:function(t,e,n,r,i){var s,o,a,h,u,l,c,d,f,p,m,g=at.get(t);if(st(t))for(n.handler&&(n=(s=n).handler,i=s.selector),i&&S.find.matchesSelector(mt,i),n.guid||(n.guid=S.guid++),(h=g.events)||(h=g.events=Object.create(null)),(o=g.handle)||(o=g.handle=function(e){return void 0!==S&&S.event.triggered!==e.type?S.event.dispatch.apply(t,arguments):void 0}),u=(e=(e||"").match(X)||[""]).length;u--;)f=m=(a=Wt.exec(e[u])||[])[1],p=(a[2]||"").split(".").sort(),f&&(c=S.event.special[f]||{},f=(i?c.delegateType:c.bindType)||f,c=S.event.special[f]||{},l=S.extend({type:f,origType:m,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&S.expr.match.needsContext.test(i),namespace:p.join(".")},s),(d=h[f])||((d=h[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),S.event.global[f]=!0)},remove:function(t,e,n,r,i){var s,o,a,h,u,l,c,d,f,p,m,g=at.hasData(t)&&at.get(t);if(g&&(h=g.events)){for(u=(e=(e||"").match(X)||[""]).length;u--;)if(f=m=(a=Wt.exec(e[u])||[])[1],p=(a[2]||"").split(".").sort(),f){for(c=S.event.special[f]||{},d=h[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)||S.removeEvent(t,f,g.handle),delete h[f])}else for(f in h)S.event.remove(t,f+e[u],n,r,!0);S.isEmptyObject(h)&&at.remove(t,"handle events")}},dispatch:function(t){var e,n,r,i,s,o,a=new Array(arguments.length),h=S.event.fix(t),u=(at.get(this,"events")||Object.create(null))[h.type]||[],l=S.event.special[h.type]||{};for(a[0]=h,e=1;e<arguments.length;e++)a[e]=arguments[e];if(h.delegateTarget=this,!l.preDispatch||!1!==l.preDispatch.call(this,h)){for(o=S.event.handlers.call(this,h,u),e=0;(i=o[e++])&&!h.isPropagationStopped();)for(h.currentTarget=i.elem,n=0;(s=i.handlers[n++])&&!h.isImmediatePropagationStopped();)h.rnamespace&&!1!==s.namespace&&!h.rnamespace.test(s.namespace)||(h.handleObj=s,h.data=s.data,void 0!==(r=((S.event.special[s.origType]||{}).handle||s.handler).apply(i.elem,a))&&!1===(h.result=r)&&(h.preventDefault(),h.stopPropagation()));return l.postDispatch&&l.postDispatch.call(this,h),h.result}},handlers:function(t,e){var n,r,i,s,o,a=[],h=e.delegateCount,u=t.target;if(h&&u.nodeType&&!("click"===t.type&&t.button>=1))for(;u!==this;u=u.parentNode||this)if(1===u.nodeType&&("click"!==t.type||!0!==u.disabled)){for(s=[],o={},n=0;n<h;n++)void 0===o[i=(r=e[n]).selector+" "]&&(o[i]=r.needsContext?S(i,this).index(u)>-1:S.find(i,this,null,[u]).length),o[i]&&s.push(r);s.length&&a.push({elem:u,handlers:s})}return u=this,h<e.length&&a.push({elem:u,handlers:e.slice(h)}),a},addProp:function(t,e){Object.defineProperty(S.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[S.expando]?t:new S.Event(t)},special:{load:{noBubble:!0},click:{setup:function(t){var e=this||t;return St.test(e.type)&&e.click&&A(e,"input")&&Bt(e,"click",!0),!1},trigger:function(t){var e=this||t;return St.test(e.type)&&e.click&&A(e,"input")&&Bt(e,"click"),!0},_default:function(t){var e=t.target;return St.test(e.type)&&e.click&&A(e,"input")&&at.get(e,"click")||A(e,"a")}},beforeunload:{postDispatch:function(t){void 0!==t.result&&t.originalEvent&&(t.originalEvent.returnValue=t.result)}}}},S.removeEvent=function(t,e,n){t.removeEventListener&&t.removeEventListener(e,n)},S.Event=function(t,e){if(!(this instanceof S.Event))return new S.Event(t,e);t&&t.type?(this.originalEvent=t,this.type=t.type,this.isDefaultPrevented=t.defaultPrevented||void 0===t.defaultPrevented&&!1===t.returnValue?jt:Pt,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&&S.extend(this,e),this.timeStamp=t&&t.timeStamp||Date.now(),this[S.expando]=!0},S.Event.prototype={constructor:S.Event,isDefaultPrevented:Pt,isPropagationStopped:Pt,isImmediatePropagationStopped:Pt,isSimulated:!1,preventDefault:function(){var t=this.originalEvent;this.isDefaultPrevented=jt,t&&!this.isSimulated&&t.preventDefault()},stopPropagation:function(){var t=this.originalEvent;this.isPropagationStopped=jt,t&&!this.isSimulated&&t.stopPropagation()},stopImmediatePropagation:function(){var t=this.originalEvent;this.isImmediatePropagationStopped=jt,t&&!this.isSimulated&&t.stopImmediatePropagation(),this.stopPropagation()}},S.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},S.event.addProp),S.each({focus:"focusin",blur:"focusout"},function(t,e){function n(t){if(w.documentMode){var n=at.get(this,"handle"),r=S.event.fix(t);r.type="focusin"===t.type?"focus":"blur",r.isSimulated=!0,n(t),r.target===r.currentTarget&&n(r)}else S.event.simulate(e,t.target,S.event.fix(t))}S.event.special[t]={setup:function(){var r;if(Bt(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 Bt(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},S.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))}}}),S.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(t,e){S.event.special[t]={delegateType:e,bindType:e,handle:function(t){var n,r=t.relatedTarget,i=t.handleObj;return r&&(r===this||S.contains(this,r))||(t.type=i.origType,n=i.handler.apply(this,arguments),t.type=e),n}}}),S.fn.extend({on:function(t,e,n,r){return Dt(this,t,e,n,r)},one:function(t,e,n,r){return Dt(this,t,e,n,r,1)},off:function(t,e,n){var r,i;if(t&&t.preventDefault&&t.handleObj)return r=t.handleObj,S(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=Pt),this.each(function(){S.event.remove(this,t,n,e)})}});var It=/<script|<style|<link/i,Rt=/checked\s*(?:[^=]|=\s*.checked.)/i,zt=/^\s*<!\[CDATA\[|\]\]>\s*$/g;function Ft(t,e){return A(t,"table")&&A(11!==e.nodeType?e:e.firstChild,"tr")&&S(t).children("tbody")[0]||t}function qt(t){return t.type=(null!==t.getAttribute("type"))+"/"+t.type,t}function Ut(t){return"true/"===(t.type||"").slice(0,5)?t.type=t.type.slice(5):t.removeAttribute("type"),t}function Vt(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++)S.event.add(e,i,a[i][n]);ht.hasData(t)&&(s=ht.access(t),o=S.extend({},s),ht.set(e,o))}}function Gt(t,e){var n=e.nodeName.toLowerCase();"input"===n&&St.test(t.type)?e.checked=t.checked:"input"!==n&&"textarea"!==n||(e.defaultValue=t.defaultValue)}function Ht(t,e,n,r){e=h(e);var i,s,o,a,u,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())),Ht(s,e,n,r)});if(d&&(s=(i=Lt(e,t[0].ownerDocument,!1,t,r)).firstChild,1===i.childNodes.length&&(i=s),s||r)){for(a=(o=S.map(Ct(i,"script"),qt)).length;c<d;c++)u=i,c!==f&&(u=S.clone(u,!0,!0),a&&S.merge(o,Ct(u,"script"))),n.call(t[c],u,c);if(a)for(l=o[o.length-1].ownerDocument,S.map(o,Ut),c=0;c<a;c++)u=o[c],At.test(u.type||"")&&!at.access(u,"globalEval")&&S.contains(l,u)&&(u.src&&"module"!==(u.type||"").toLowerCase()?S._evalUrl&&!u.noModule&&S._evalUrl(u.src,{nonce:u.nonce||u.getAttribute("nonce")},l):x(u.textContent.replace(zt,""),u,l))}return t}function Xt(t,e,n){for(var r,i=e?S.filter(e,t):t,s=0;null!=(r=i[s]);s++)n||1!==r.nodeType||S.cleanData(Ct(r)),r.parentNode&&(n&>(r)&&Tt(Ct(r,"script")),r.parentNode.removeChild(r));return t}S.extend({htmlPrefilter:function(t){return t},clone:function(t,e,n){var r,i,s,o,a=t.cloneNode(!0),h=gt(t);if(!(g.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||S.isXMLDoc(t)))for(o=Ct(a),r=0,i=(s=Ct(t)).length;r<i;r++)Gt(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++)Vt(s[r],o[r]);else Vt(t,a);return(o=Ct(a,"script")).length>0&&Tt(o,!h&&Ct(t,"script")),a},cleanData:function(t){for(var e,n,r,i=S.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]?S.event.remove(n,r):S.removeEvent(n,r,e.handle);n[at.expando]=void 0}n[ht.expando]&&(n[ht.expando]=void 0)}}}),S.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?S.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 Ht(this,arguments,function(t){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Ft(this,t).appendChild(t)})},prepend:function(){return Ht(this,arguments,function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=Ft(this,t);e.insertBefore(t,e.firstChild)}})},before:function(){return Ht(this,arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this)})},after:function(){return Ht(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&&(S.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 S.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)&&!Et[(Mt.exec(t)||["",""])[1].toLowerCase()]){t=S.htmlPrefilter(t);try{for(;n<r;n++)1===(e=this[n]||{}).nodeType&&(S.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 Ht(this,arguments,function(e){var n=this.parentNode;S.inArray(this,t)<0&&(S.cleanData(Ct(this)),n&&n.replaceChild(e,this))},t)}}),S.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(t,e){S.fn[t]=function(t){for(var n,r=[],i=S(t),s=i.length-1,o=0;o<=s;o++)n=o===s?this:this.clone(!0),S(i[o])[e](n),u.apply(r,n.get());return this.pushStack(r)}});var Yt=new RegExp("^("+dt+")(?!px)[a-z%]+$","i"),$t=/^--/,Qt=function(t){var e=t.ownerDocument.defaultView;return e&&e.opener||(e=r),e.getComputedStyle(t)},Zt=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},Jt=new RegExp(pt.join("|"),"i");function Kt(t,e,n){var r,i,s,o,a=$t.test(e),h=t.style;return(n=n||Qt(t))&&(o=n.getPropertyValue(e)||n[e],a&&o&&(o=o.replace(L,"$1")||void 0),""!==o||gt(t)||(o=S.style(t,e)),!g.pixelBoxStyles()&&Yt.test(o)&&Jt.test(e)&&(r=h.width,i=h.minWidth,s=h.maxWidth,h.minWidth=h.maxWidth=h.width=o,o=n.width,h.width=r,h.minWidth=i,h.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){u.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(u).appendChild(l);var t=r.getComputedStyle(l);n="1%"!==t.top,h=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(u),l=null}}function e(t){return Math.round(parseFloat(t))}var n,i,s,o,a,h,u=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,S.extend(g,{boxSizingReliable:function(){return t(),i},pixelBoxStyles:function(){return t(),o},pixelPosition:function(){return t(),n},reliableMarginLeft:function(){return t(),h},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 S.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 he(t,e,n){var r=ft.exec(e);return r?Math.max(0,r[2]-(n||0))+(r[3]||"px"):e}function ue(t,e,n,r,i,s){var o="width"===e?1:0,a=0,h=0,u=0;if(n===(r?"border":"content"))return 0;for(;o<4;o+=2)"margin"===n&&(u+=S.css(t,n+pt[o],!0,i)),r?("content"===n&&(h-=S.css(t,"padding"+pt[o],!0,i)),"margin"!==n&&(h-=S.css(t,"border"+pt[o]+"Width",!0,i))):(h+=S.css(t,"padding"+pt[o],!0,i),"padding"!==n?h+=S.css(t,"border"+pt[o]+"Width",!0,i):a+=S.css(t,"border"+pt[o]+"Width",!0,i));return!r&&s>=0&&(h+=Math.max(0,Math.ceil(t["offset"+e[0].toUpperCase()+e.slice(1)]-s-h-a-.5))||0),h+u}function le(t,e,n){var r=Qt(t),i=(!g.boxSizingReliable()||n)&&"border-box"===S.css(t,"boxSizing",!1,r),s=i,o=Kt(t,e,r),a="offset"+e[0].toUpperCase()+e.slice(1);if(Yt.test(o)){if(!n)return o;o="auto"}return(!g.boxSizingReliable()&&i||!g.reliableTrDimensions()&&A(t,"tr")||"auto"===o||!parseFloat(o)&&"inline"===S.css(t,"display",!1,r))&&t.getClientRects().length&&(i="border-box"===S.css(t,"boxSizing",!1,r),(s=a in t)&&(o=t[a])),(o=parseFloat(o)||0)+ue(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)}S.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),h=$t.test(e),u=t.style;if(h||(e=ie(a)),o=S.cssHooks[e]||S.cssHooks[a],void 0===n)return o&&"get"in o&&void 0!==(i=o.get(t,!1,r))?i:u[e];"string"==(s=typeof n)&&(i=ft.exec(n))&&i[1]&&(n=wt(t,e,i),s="number"),null!=n&&n==n&&("number"!==s||h||(n+=i&&i[3]||(S.cssNumber[a]?"":"px")),g.clearCloneStyle||""!==n||0!==e.indexOf("background")||(u[e]="inherit"),o&&"set"in o&&void 0===(n=o.set(t,n,r))||(h?u.setProperty(e,n):u[e]=n))}},css:function(t,e,n,r){var i,s,o,a=it(e);return $t.test(e)||(e=ie(a)),(o=S.cssHooks[e]||S.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}}),S.each(["height","width"],function(t,e){S.cssHooks[e]={get:function(t,n,r){if(n)return!se.test(S.css(t,"display"))||t.getClientRects().length&&t.getBoundingClientRect().width?le(t,e,r):Zt(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"===S.css(t,"boxSizing",!1,s),h=r?ue(t,e,r,a,s):0;return a&&o&&(h-=Math.ceil(t["offset"+e[0].toUpperCase()+e.slice(1)]-parseFloat(s[e])-ue(t,e,"border",!1,s)-.5)),h&&(i=ft.exec(n))&&"px"!==(i[3]||"px")&&(t.style[e]=n,n=S.css(t,e)),he(0,n,h)}}}),S.cssHooks.marginLeft=te(g.reliableMarginLeft,function(t,e){if(e)return(parseFloat(Kt(t,"marginLeft"))||t.getBoundingClientRect().left-Zt(t,{marginLeft:0},function(){return t.getBoundingClientRect().left}))+"px"}),S.each({margin:"",padding:"",border:"Width"},function(t,e){S.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&&(S.cssHooks[t+e].set=he)}),S.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]]=S.css(t,e[o],!1,r);return s}return void 0!==n?S.style(t,e,n):S.css(t,e)},t,e,arguments.length>1)}}),S.Tween=ce,ce.prototype={constructor:ce,init:function(t,e,n,r,i,s){this.elem=t,this.prop=n,this.easing=i||S.easing._default,this.options=e,this.start=this.now=this.cur(),this.end=r,this.unit=s||(S.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=S.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=S.css(t.elem,t.prop,""))&&"auto"!==e?e:0},set:function(t){S.fx.step[t.prop]?S.fx.step[t.prop](t):1!==t.elem.nodeType||!S.cssHooks[t.prop]&&null==t.elem.style[ie(t.prop)]?t.elem[t.prop]=t.now:S.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)}},S.easing={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2},_default:"swing"},S.fx=ce.prototype.init,S.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,S.fx.interval),S.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=(be.tweeners[e]||[]).concat(be.tweeners["*"]),s=0,o=i.length;s<o;s++)if(r=i[s].call(n,e,t))return r}function be(t,e,n){var r,i,s=0,o=be.prefilters.length,a=S.Deferred().always(function(){delete h.elem}),h=function(){if(i)return!1;for(var e=de||ye(),n=Math.max(0,u.startTime+u.duration-e),r=1-(n/u.duration||0),s=0,o=u.tweens.length;s<o;s++)u.tweens[s].run(r);return a.notifyWith(t,[u,r,n]),r<1&&o?n:(o||a.notifyWith(t,[u,1,0]),a.resolveWith(t,[u]),!1)},u=a.promise({elem:t,props:S.extend({},e),opts:S.extend(!0,{specialEasing:{},easing:S.easing._default},n),originalProperties:e,originalOptions:n,startTime:de||ye(),duration:n.duration,tweens:[],createTween:function(e,n){var r=S.Tween(t,u.opts,e,n,u.opts.specialEasing[e]||u.opts.easing);return u.tweens.push(r),r},stop:function(e){var n=0,r=e?u.tweens.length:0;if(i)return this;for(i=!0;n<r;n++)u.tweens[n].run(1);return e?(a.notifyWith(t,[u,1,0]),a.resolveWith(t,[u,e])):a.rejectWith(t,[u,e]),this}}),l=u.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=S.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,u.opts.specialEasing);s<o;s++)if(r=be.prefilters[s].call(u,t,l,u.opts))return y(r.stop)&&(S._queueHooks(u.elem,u.opts.queue).stop=r.stop.bind(r)),r;return S.map(l,we,u),y(u.opts.start)&&u.opts.start.call(t,u),u.progress(u.opts.progress).done(u.opts.done,u.opts.complete).fail(u.opts.fail).always(u.opts.always),S.fx.timer(S.extend(h,{elem:t,anim:u,queue:u.opts.queue})),u}S.Animation=S.extend(be,{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],be.tweeners[n]=be.tweeners[n]||[],be.tweeners[n].unshift(e)},prefilters:[function(t,e,n){var r,i,s,o,a,h,u,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=S._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--,S.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]||S.style(t,r)}if((h=!S.isEmptyObject(e))||!S.isEmptyObject(f))for(r in c&&1===t.nodeType&&(n.overflow=[p.overflow,p.overflowX,p.overflowY],null==(u=g&&g.display)&&(u=at.get(t,"display")),"none"===(l=S.css(t,"display"))&&(u?l=u:(_t([t],!0),u=t.style.display||u,l=S.css(t,"display"),_t([t]))),("inline"===l||"inline-block"===l&&null!=u)&&"none"===S.css(t,"float")&&(h||(d.done(function(){p.display=u}),null==u&&(l=p.display,u="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]})),h=!1,f)h||(g?"hidden"in g&&(m=g.hidden):g=at.access(t,"fxshow",{display:u}),s&&(g.hidden=!m),m&&_t([t],!0),d.done(function(){for(r in m||_t([t]),at.remove(t,"fxshow"),f)S.style(t,r,f[r])})),h=we(m?g[r]:0,r,d),r in g||(g[r]=h.start,m&&(h.end=h.start,h.start=0))}],prefilter:function(t,e){e?be.prefilters.unshift(t):be.prefilters.push(t)}}),S.speed=function(t,e,n){var r=t&&"object"==typeof t?S.extend({},t):{complete:n||!n&&e||y(t)&&t,duration:t,easing:n&&e||e&&!y(e)&&e};return S.fx.off?r.duration=0:"number"!=typeof r.duration&&(r.duration in S.fx.speeds?r.duration=S.fx.speeds[r.duration]:r.duration=S.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&&S.dequeue(this,r.queue)},r},S.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=S.isEmptyObject(t),s=S.speed(e,n,r),o=function(){var e=be(this,S.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=S.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||S.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=S.timers,o=r?r.length:0;for(n.finish=!0,S.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})}}),S.each(["toggle","show","hide"],function(t,e){var n=S.fn[e];S.fn[e]=function(t,r,i){return null==t||"boolean"==typeof t?n.apply(this,arguments):this.animate(ve(e,!0),t,r,i)}}),S.each({slideDown:ve("show"),slideUp:ve("hide"),slideToggle:ve("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(t,e){S.fn[t]=function(t,n,r){return this.animate(e,t,n,r)}}),S.timers=[],S.fx.tick=function(){var t,e=0,n=S.timers;for(de=Date.now();e<n.length;e++)(t=n[e])()||n[e]!==t||n.splice(e--,1);n.length||S.fx.stop(),de=void 0},S.fx.timer=function(t){S.timers.push(t),S.fx.start()},S.fx.interval=13,S.fx.start=function(){fe||(fe=!0,ge())},S.fx.stop=function(){fe=null},S.fx.speeds={slow:600,fast:200,_default:400},S.fn.delay=function(t,e){return t=S.fx&&S.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 xe,_e=S.expr.attrHandle;S.fn.extend({attr:function(t,e){return tt(this,S.attr,t,e,arguments.length>1)},removeAttr:function(t){return this.each(function(){S.removeAttr(this,t)})}}),S.extend({attr:function(t,e,n){var r,i,s=t.nodeType;if(3!==s&&8!==s&&2!==s)return void 0===t.getAttribute?S.prop(t,e,n):(1===s&&S.isXMLDoc(t)||(i=S.attrHooks[e.toLowerCase()]||(S.expr.match.bool.test(e)?xe:void 0)),void 0!==n?null===n?void S.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=S.find.attr(t,e))?void 0:r)},attrHooks:{type:{set:function(t,e){if(!g.radioValue&&"radio"===e&&A(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)}}),xe={set:function(t,e,n){return!1===e?S.removeAttr(t,n):t.setAttribute(n,n),n}},S.each(S.expr.match.bool.source.match(/\w+/g),function(t,e){var n=_e[e]||S.find.attr;_e[e]=function(t,e,r){var i,s,o=e.toLowerCase();return r||(s=_e[o],_e[o]=i,i=null!=n(t,e,r)?o:null,_e[o]=s),i}});var Ne=/^(?:input|select|textarea|button)$/i,ke=/^(?:a|area)$/i;function Se(t){return(t.match(X)||[]).join(" ")}function Me(t){return t.getAttribute&&t.getAttribute("class")||""}function Ae(t){return Array.isArray(t)?t:"string"==typeof t&&t.match(X)||[]}S.fn.extend({prop:function(t,e){return tt(this,S.prop,t,e,arguments.length>1)},removeProp:function(t){return this.each(function(){delete this[S.propFix[t]||t]})}}),S.extend({prop:function(t,e,n){var r,i,s=t.nodeType;if(3!==s&&8!==s&&2!==s)return 1===s&&S.isXMLDoc(t)||(e=S.propFix[e]||e,i=S.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=S.find.attr(t,"tabindex");return e?parseInt(e,10):Ne.test(t.nodeName)||ke.test(t.nodeName)&&t.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),g.optSelected||(S.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)}}),S.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){S.propFix[this.toLowerCase()]=this}),S.fn.extend({addClass:function(t){var e,n,r,i,s,o;return y(t)?this.each(function(e){S(this).addClass(t.call(this,e,Me(this)))}):(e=Ae(t)).length?this.each(function(){if(r=Me(this),n=1===this.nodeType&&" "+Se(r)+" "){for(s=0;s<e.length;s++)i=e[s],n.indexOf(" "+i+" ")<0&&(n+=i+" ");o=Se(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){S(this).removeClass(t.call(this,e,Me(this)))}):arguments.length?(e=Ae(t)).length?this.each(function(){if(r=Me(this),n=1===this.nodeType&&" "+Se(r)+" "){for(s=0;s<e.length;s++)for(i=e[s];n.indexOf(" "+i+" ")>-1;)n=n.replace(" "+i+" "," ");o=Se(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){S(this).toggleClass(t.call(this,n,Me(this),e),e)}):"boolean"==typeof e&&a?e?this.addClass(t):this.removeClass(t):(n=Ae(t),this.each(function(){if(a)for(s=S(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=Me(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&&(" "+Se(Me(n))+" ").indexOf(e)>-1)return!0;return!1}});var Ee=/\r/g;S.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,S(this).val()):t)?i="":"number"==typeof i?i+="":Array.isArray(i)&&(i=S.map(i,function(t){return null==t?"":t+""})),(e=S.valHooks[this.type]||S.valHooks[this.nodeName.toLowerCase()])&&"set"in e&&void 0!==e.set(this,i,"value")||(this.value=i))})):i?(e=S.valHooks[i.type]||S.valHooks[i.nodeName.toLowerCase()])&&"get"in e&&void 0!==(n=e.get(i,"value"))?n:"string"==typeof(n=i.value)?n.replace(Ee,""):null==n?"":n:void 0}}),S.extend({valHooks:{option:{get:function(t){var e=S.find.attr(t,"value");return null!=e?e:Se(S.text(t))}},select:{get:function(t){var e,n,r,i=t.options,s=t.selectedIndex,o="select-one"===t.type,a=o?null:[],h=o?s+1:i.length;for(r=s<0?h:o?s:0;r<h;r++)if(((n=i[r]).selected||r===s)&&!n.disabled&&(!n.parentNode.disabled||!A(n.parentNode,"optgroup"))){if(e=S(n).val(),o)return e;a.push(e)}return a},set:function(t,e){for(var n,r,i=t.options,s=S.makeArray(e),o=i.length;o--;)((r=i[o]).selected=S.inArray(S.valHooks.option.get(r),s)>-1)&&(n=!0);return n||(t.selectedIndex=-1),s}}}}),S.each(["radio","checkbox"],function(){S.valHooks[this]={set:function(t,e){if(Array.isArray(e))return t.checked=S.inArray(S(t).val(),e)>-1}},g.checkOn||(S.valHooks[this].get=function(t){return null===t.getAttribute("value")?"on":t.value})});var Ce=r.location,Te={guid:Date.now()},Oe=/\?/;S.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||S.error("Invalid XML: "+(n?S.map(n.childNodes,function(t){return t.textContent}).join("\n"):t)),e};var Le=/^(?:focusinfocus|focusoutblur)$/,We=function(t){t.stopPropagation()};S.extend(S.event,{trigger:function(t,e,n,i){var s,o,a,h,u,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&&!Le.test(m+S.event.triggered)&&(m.indexOf(".")>-1&&(g=m.split("."),m=g.shift(),g.sort()),u=m.indexOf(":")<0&&"on"+m,(t=t[S.expando]?t:new S.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]:S.makeArray(e,[t]),c=S.event.special[m]||{},i||!c.trigger||!1!==c.trigger.apply(n,e))){if(!i&&!c.noBubble&&!v(n)){for(h=c.delegateType||m,Le.test(h+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?h:c.bindType||m,(l=(at.get(o,"events")||Object.create(null))[t.type]&&at.get(o,"handle"))&&l.apply(o,e),(l=u&&o[u])&&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)||u&&y(n[m])&&!v(n)&&((a=n[u])&&(n[u]=null),S.event.triggered=m,t.isPropagationStopped()&&d.addEventListener(m,We),n[m](),t.isPropagationStopped()&&d.removeEventListener(m,We),S.event.triggered=void 0,a&&(n[u]=a)),t.result}},simulate:function(t,e,n){var r=S.extend(new S.Event,n,{type:t,isSimulated:!0});S.event.trigger(r,null,e)}}),S.fn.extend({trigger:function(t,e){return this.each(function(){S.event.trigger(t,e,this)})},triggerHandler:function(t,e){var n=this[0];if(n)return S.event.trigger(t,e,n,!0)}});var je=/\[\]$/,Pe=/\r?\n/g,De=/^(?:submit|button|image|reset|file)$/i,Be=/^(?:input|select|textarea|keygen)/i;function Ie(t,e,n,r){var i;if(Array.isArray(e))S.each(e,function(e,i){n||je.test(t)?r(t,i):Ie(t+"["+("object"==typeof i&&null!=i?e:"")+"]",i,n,r)});else if(n||"object"!==_(e))r(t,e);else for(i in e)Ie(t+"["+i+"]",e[i],n,r)}S.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&&!S.isPlainObject(t))S.each(t,function(){i(this.name,this.value)});else for(n in t)Ie(n,t[n],e,i);return r.join("&")},S.fn.extend({serialize:function(){return S.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var t=S.prop(this,"elements");return t?S.makeArray(t):this}).filter(function(){var t=this.type;return this.name&&!S(this).is(":disabled")&&Be.test(this.nodeName)&&!De.test(t)&&(this.checked||!St.test(t))}).map(function(t,e){var n=S(this).val();return null==n?null:Array.isArray(n)?S.map(n,function(t){return{name:e.name,value:t.replace(Pe,"\r\n")}}):{name:e.name,value:n.replace(Pe,"\r\n")}}).get()}});var Re=/%20/g,ze=/#.*$/,Fe=/([?&])_=[^&]*/,qe=/^(.*?):[ \t]*([^\r\n]*)$/gm,Ue=/^(?:GET|HEAD)$/,Ve=/^\/\//,Ge={},He={},Xe="*/".concat("*"),Ye=w.createElement("a");function $e(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===He;function o(a){var h;return i[a]=!0,S.each(t[a]||[],function(t,a){var u=a(e,n,r);return"string"!=typeof u||s||i[u]?s?!(h=u):void 0:(e.dataTypes.unshift(u),o(u),!1)}),h}return o(e.dataTypes[0])||!i["*"]&&o("*")}function Ze(t,e){var n,r,i=S.ajaxSettings.flatOptions||{};for(n in e)void 0!==e[n]&&((i[n]?t:r||(r={}))[n]=e[n]);return r&&S.extend(!0,t,r),t}Ye.href=Ce.href,S.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":S.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(t,e){return e?Ze(Ze(t,S.ajaxSettings),e):Ze(S.ajaxSettings,t)},ajaxPrefilter:$e(Ge),ajaxTransport:$e(He),ajax:function(t,e){"object"==typeof t&&(e=t,t=void 0),e=e||{};var n,i,s,o,a,h,u,l,c,d,f=S.ajaxSetup({},e),p=f.context||f,m=f.context&&(p.nodeType||p.jquery)?S(p):S.event,g=S.Deferred(),y=S.Callbacks("once memory"),v=f.statusCode||{},b={},x={},_="canceled",N={readyState:0,getResponseHeader:function(t){var e;if(u){if(!o)for(o={};e=qe.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 u?s:null},setRequestHeader:function(t,e){return null==u&&(t=x[t.toLowerCase()]=x[t.toLowerCase()]||t,b[t]=e),this},overrideMimeType:function(t){return null==u&&(f.mimeType=t),this},statusCode:function(t){var e;if(t)if(u)N.always(t[N.status]);else for(e in t)v[e]=[v[e],t[e]];return this},abort:function(t){var e=t||_;return n&&n.abort(e),k(0,e),this}};if(g.promise(N),f.url=((t||f.url||Ce.href)+"").replace(Ve,Ce.protocol+"//"),f.type=e.method||e.type||f.method||f.type,f.dataTypes=(f.dataType||"*").toLowerCase().match(X)||[""],null==f.crossDomain){h=w.createElement("a");try{h.href=f.url,h.href=h.href,f.crossDomain=Ye.protocol+"//"+Ye.host!=h.protocol+"//"+h.host}catch(t){f.crossDomain=!0}}if(f.data&&f.processData&&"string"!=typeof f.data&&(f.data=S.param(f.data,f.traditional)),Qe(Ge,f,e,N),u)return N;for(c in(l=S.event&&f.global)&&0===S.active++&&S.event.trigger("ajaxStart"),f.type=f.type.toUpperCase(),f.hasContent=!Ue.test(f.type),i=f.url.replace(ze,""),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+=(Oe.test(i)?"&":"?")+f.data,delete f.data),!1===f.cache&&(i=i.replace(Fe,"$1"),d=(Oe.test(i)?"&":"?")+"_="+Te.guid+++d),f.url=i+d),f.ifModified&&(S.lastModified[i]&&N.setRequestHeader("If-Modified-Since",S.lastModified[i]),S.etag[i]&&N.setRequestHeader("If-None-Match",S.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)||u))return N.abort();if(_="abort",y.add(f.complete),N.done(f.success),N.fail(f.error),n=Qe(He,f,e,N)){if(N.readyState=1,l&&m.trigger("ajaxSend",[N,f]),u)return N;f.async&&f.timeout>0&&(a=r.setTimeout(function(){N.abort("timeout")},f.timeout));try{u=!1,n.send(b,k)}catch(t){if(u)throw t;k(-1,t)}}else k(-1,"No Transport");function k(t,e,o,h){var c,d,w,b,x,_=e;u||(u=!0,a&&r.clearTimeout(a),n=void 0,s=h||"",N.readyState=t>0?4:0,c=t>=200&&t<300||304===t,o&&(b=function(t,e,n){for(var r,i,s,o,a=t.contents,h=t.dataTypes;"*"===h[0];)h.shift(),void 0===r&&(r=t.mimeType||e.getResponseHeader("Content-Type"));if(r)for(i in a)if(a[i]&&a[i].test(r)){h.unshift(i);break}if(h[0]in n)s=h[0];else{for(i in n){if(!h[0]||t.converters[i+" "+h[0]]){s=i;break}o||(o=i)}s=s||o}if(s)return s!==h[0]&&h.unshift(s),n[s]}(f,N,o)),!c&&S.inArray("script",f.dataTypes)>-1&&S.inArray("json",f.dataTypes)<0&&(f.converters["text script"]=function(){}),b=function(t,e,n,r){var i,s,o,a,h,u={},l=t.dataTypes.slice();if(l[1])for(o in t.converters)u[o.toLowerCase()]=t.converters[o];for(s=l.shift();s;)if(t.responseFields[s]&&(n[t.responseFields[s]]=e),!h&&r&&t.dataFilter&&(e=t.dataFilter(e,t.dataType)),h=s,s=l.shift())if("*"===s)s=h;else if("*"!==h&&h!==s){if(!(o=u[h+" "+s]||u["* "+s]))for(i in u)if((a=i.split(" "))[1]===s&&(o=u[h+" "+a[0]]||u["* "+a[0]])){!0===o?o=u[i]:!0!==u[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 "+h+" to "+s}}}return{state:"success",data:e}}(f,b,N,c),c?(f.ifModified&&((x=N.getResponseHeader("Last-Modified"))&&(S.lastModified[i]=x),(x=N.getResponseHeader("etag"))&&(S.etag[i]=x)),204===t||"HEAD"===f.type?_="nocontent":304===t?_="notmodified":(_=b.state,d=b.data,c=!(w=b.error))):(w=_,!t&&_||(_="error",t<0&&(t=0))),N.status=t,N.statusText=(e||_)+"",c?g.resolveWith(p,[d,_,N]):g.rejectWith(p,[N,_,w]),N.statusCode(v),v=void 0,l&&m.trigger(c?"ajaxSuccess":"ajaxError",[N,f,c?d:w]),y.fireWith(p,[N,_]),l&&(m.trigger("ajaxComplete",[N,f]),--S.active||S.event.trigger("ajaxStop")))}return N},getJSON:function(t,e,n){return S.get(t,e,n,"json")},getScript:function(t,e){return S.get(t,void 0,e,"script")}}),S.each(["get","post"],function(t,e){S[e]=function(t,n,r,i){return y(n)&&(i=i||r,r=n,n=void 0),S.ajax(S.extend({url:t,type:e,dataType:i,data:n,success:r},S.isPlainObject(t)&&t))}}),S.ajaxPrefilter(function(t){var e;for(e in t.headers)"content-type"===e.toLowerCase()&&(t.contentType=t.headers[e]||"")}),S._evalUrl=function(t,e,n){return S.ajax({url:t,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(t){S.globalEval(t,e,n)}})},S.fn.extend({wrapAll:function(t){var e;return this[0]&&(y(t)&&(t=t.call(this[0])),e=S(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){S(this).wrapInner(t.call(this,e))}):this.each(function(){var e=S(this),n=e.contents();n.length?n.wrapAll(t):e.append(t)})},wrap:function(t){var e=y(t);return this.each(function(n){S(this).wrapAll(e?t.call(this,n):t)})},unwrap:function(t){return this.parent(t).not("body").each(function(){S(this).replaceWith(this.childNodes)}),this}}),S.expr.pseudos.hidden=function(t){return!S.expr.pseudos.visible(t)},S.expr.pseudos.visible=function(t){return!!(t.offsetWidth||t.offsetHeight||t.getClientRects().length)},S.ajaxSettings.xhr=function(){try{return new r.XMLHttpRequest}catch(t){}};var Je={0:200,1223:204},Ke=S.ajaxSettings.xhr();g.cors=!!Ke&&"withCredentials"in Ke,g.ajax=Ke=!!Ke,S.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(Je[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()}}}),S.ajaxPrefilter(function(t){t.crossDomain&&(t.contents.script=!1)}),S.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 S.globalEval(t),t}}}),S.ajaxPrefilter("script",function(t){void 0===t.cache&&(t.cache=!1),t.crossDomain&&(t.type="GET")}),S.ajaxTransport("script",function(t){var e,n;if(t.crossDomain||t.scriptAttrs)return{send:function(r,i){e=S("<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=/(=)\?(?=&|$)|\?\?/;S.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var t=en.pop()||S.expando+"_"+Te.guid++;return this[t]=!0,t}}),S.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+=(Oe.test(t.url)?"&":"?")+t.jsonp+"="+i),t.converters["script json"]=function(){return o||S.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?S(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),S.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=z.exec(t))?[e.createElement(i[1])]:(i=Lt([t],e,s),s&&s.length&&S(s).remove(),S.merge([],i.childNodes)));var r,i,s},S.fn.load=function(t,e,n){var r,i,s,o=this,a=t.indexOf(" ");return a>-1&&(r=Se(t.slice(a)),t=t.slice(0,a)),y(e)?(n=e,e=void 0):e&&"object"==typeof e&&(i="POST"),o.length>0&&S.ajax({url:t,type:i||"GET",dataType:"html",data:e}).done(function(t){s=arguments,o.html(r?S("<div>").append(S.parseHTML(t)).find(r):t)}).always(n&&function(t,e){o.each(function(){n.apply(this,s||[t.responseText,e,t])})}),this},S.expr.pseudos.animated=function(t){return S.grep(S.timers,function(e){return t===e.elem}).length},S.offset={setOffset:function(t,e,n){var r,i,s,o,a,h,u=S.css(t,"position"),l=S(t),c={};"static"===u&&(t.style.position="relative"),a=l.offset(),s=S.css(t,"top"),h=S.css(t,"left"),("absolute"===u||"fixed"===u)&&(s+h).indexOf("auto")>-1?(o=(r=l.position()).top,i=r.left):(o=parseFloat(s)||0,i=parseFloat(h)||0),y(e)&&(e=e.call(t,n,S.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)}},S.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(e){S.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"===S.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"===S.css(t,"position");)t=t.parentNode;t&&t!==r&&1===t.nodeType&&((i=S(t).offset()).top+=S.css(t,"borderTopWidth",!0),i.left+=S.css(t,"borderLeftWidth",!0))}return{top:e.top-i.top-S.css(r,"marginTop",!0),left:e.left-i.left-S.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var t=this.offsetParent;t&&"static"===S.css(t,"position");)t=t.offsetParent;return t||mt})}}),S.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,e){var n="pageYOffset"===e;S.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)}}),S.each(["top","left"],function(t,e){S.cssHooks[e]=te(g.pixelPosition,function(t,n){if(n)return n=Kt(t,e),Yt.test(n)?S(t).position()[e]+"px":n})}),S.each({Height:"height",Width:"width"},function(t,e){S.each({padding:"inner"+t,content:e,"":"outer"+t},function(n,r){S.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?S.css(e,n,a):S.style(e,n,i,a)},e,o?i:void 0,o)}})}),S.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(t,e){S.fn[e]=function(t){return this.on(e,t)}}),S.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)}}),S.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){S.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;S.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||S.guid++,i},S.holdReady=function(t){t?S.readyWait++:S.ready(!0)},S.isArray=Array.isArray,S.parseJSON=JSON.parse,S.nodeName=A,S.isFunction=y,S.isWindow=v,S.camelCase=it,S.type=_,S.now=Date.now,S.isNumeric=function(t){var e=S.type(t);return("number"===e||"string"===e)&&!isNaN(t-parseFloat(t))},S.trim=function(t){return null==t?"":(t+"").replace(rn,"$1")},void 0===(n=function(){return S}.apply(e,[]))||(t.exports=n);var sn=r.jQuery,on=r.$;return S.noConflict=function(t){return r.$===S&&(r.$=on),t&&r.jQuery===S&&(r.jQuery=sn),S},void 0===i&&(r.jQuery=r.$=S),S})},704(t){var e;e=()=>(()=>{var t={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 h=t[a],u=r.base?h[0]+r.base:h[0],l=s[u]||0,c="".concat(u," ").concat(l);s[u]=l+1;var d=n(c),f={css:h[1],media:h[2],sourceMap:h[3],supports:h[4],layer:h[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 h=r(t,i),u=0;u<s.length;u++){var l=n(s[u]);0===e[l].references&&(e[l].updater(),e.splice(l,1))}s=h}}},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))}}},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 h=this[a][0];null!=h&&(o[h]=!0)}for(var u=0;u<t.length;u++){var l=[].concat(t[u]);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}},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}},601:t=>{"use strict";t.exports=function(t){return t[1]}},645:function(t){var e;e=()=>(()=>{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:()=>f,average:()=>r,clamp:()=>d,degrees:()=>g,flipAway:()=>w,isBetween:()=>l,isBetweenExclusive:()=>c,isBetweenInclusive:()=>l,max:()=>u,mean:()=>r,median:()=>a,min:()=>h,normalizeAngle:()=>v,radians:()=>y,sortNumbers:()=>i,sortNumbersAscending:()=>i,sortNumbersDescending:()=>p,sortedNumbers:()=>o,sortedNumbersAscending:()=>o,sortedNumbersDescending:()=>m,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 h(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 u(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 t<e?e:t>n?n:t}function f(t,e,n){return Math.abs(t-e)<=n}function p(t){i(t),t.reverse()}function m(t){var e=o(t);return e.reverse(),e}function g(t){return t*(180/Math.PI)}function y(t){return t*(Math.PI/180)}function v(t,e){void 0===e&&(e=-Math.PI);var n=t-e;return e+((n%=2*Math.PI)>=0?n:n+2*Math.PI)}function w(t,e){var n=(e=v(e,t))-t;return(n<Math.PI/2||n>3*Math.PI/2)&&(t+=Math.PI),t}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";n.r(r),n.d(r,{Box:()=>e});var t=n(986);class e{static bounding(n){let r=n.map(t=>e.matching(t)),i=(0,t.min)(r.map(t=>t.left)),s=(0,t.min)(r.map(t=>t.top)),o=(0,t.max)(r.map(t=>t.right))-i,a=(0,t.max)(r.map(t=>t.bottom))-s;return new e(i,s,o,a)}static matching(t){let{x:n,y:r,width:i,height:s}=t;return new e(n,r,i,s)}constructor(t,e,n,r){this.x=t,this.y=e,this.width=n,this.height=r}get centerX(){return this.minX+this.width/2}get centerY(){return this.minY+this.height/2}get minX(){return this.x}get minY(){return this.y}get maxX(){return this.minX+this.width}get maxY(){return this.minY+this.height}get top(){return this.minY}get right(){return this.maxX}get bottom(){return this.maxY}get left(){return this.minX}isBoundedBy(t){let n=e.matching(t);return this.minX>=n.minX&&this.minY>=n.minY&&this.maxX<=n.maxX&&this.maxY<=n.maxY}padded(t,n){return"number"!=typeof n&&(n=t),new e(this.x-t,this.y-n,this.width+2*t,this.height+2*n)}peripheralPoint(t){let e=this.width/2,n=this.height/2,r=Math.pow(Math.pow(e,2)+Math.pow(n,2),.5),i=this.centerX+r*Math.cos(t),s=this.centerY+r*Math.sin(t),o=r;return Math.abs(this.centerX-i)>e&&(o=Math.abs(e/Math.cos(t)),o=Number.isFinite(o)?o:n),Math.abs(this.centerY-s)>n&&(o=Math.abs(n/Math.sin(t)),o=Number.isFinite(o)?o:e),{x:this.centerX+o*Math.cos(t),y:this.centerY+o*Math.sin(t)}}}})(),r})(),t.exports=e()},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)}},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)}}}},865:(t,e,n)=>{"use strict";n.d(e,{Ay:()=>c,JJ:()=>l,Qq:()=>h,YL:()=>a,jJ:()=>u});var r=n(601),i=n.n(r),s=n(314),o=n.n(s)()(i());o.push([t.id,'.DKvRm2Iz8xnCJ3FyFRDv {\n position: fixed;\n\n display: flex;\n flex-direction: column;\n align-items: center;\n\n animation: zVywckd26nkyhEbH637w 1.5s;\n\n pointer-events: none;\n}\n\n@keyframes zVywckd26nkyhEbH637w {\n 0% {\n opacity: 0;\n }\n 66.6% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n}\n\n.p5_D557pe0GpEcfAZAWo {\n margin: 0px;\n padding: 10px 19px;\n\n border: 1px solid #d0d0e9;\n border-radius: 5px;\n\n background-color: black;\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\n.D8UCSOzbDas70ahLaazC {\n border-style: solid;\n border-color: #d0d0e9 transparent transparent transparent;\n border-width: 18px 9px;\n margin-top: -1px;\n}\n\n.RCKbqYEd_F2wRTu_tJpk {\n border-style: solid;\n border-color: black transparent transparent transparent;\n border-width: 17px 8px;\n margin-top: -37px;\n}\n',""]);var a="DKvRm2Iz8xnCJ3FyFRDv",h="p5_D557pe0GpEcfAZAWo",u="D8UCSOzbDas70ahLaazC",l="RCKbqYEd_F2wRTu_tJpk";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.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={};return(()=>{"use strict";n.r(r),n.d(r,{Tooltip:()=>L});var t=n(72),e=n.n(t),i=n(825),s=n.n(i),o=n(659),a=n.n(o),h=n(56),u=n.n(h),l=n(540),c=n.n(l),d=n(113),f=n.n(d),p=n(865),m={};m.styleTagTransform=f(),m.setAttributes=u(),m.insert=a().bind(null,"head"),m.domAPI=s(),m.insertStyleElement=c(),e()(p.Ay,m),p.Ay&&p.Ay.locals&&p.Ay.locals;var g,y,v,w,b,x,_,N,k,S,M,A,E,C=n(645),T=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)},O=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 L{constructor(t){g.add(this),y.set(this,document.createElement("div")),v.set(this,document.createElement("p")),w.set(this,document.createElement("div")),b.set(this,document.createElement("div")),x.set(this,5),_.set(this,0),N.set(this,void 0),k.set(this,()=>{}),S.set(this,()=>{}),T(this,y,"f").classList.add(p.YL),T(this,v,"f").classList.add(p.Qq),T(this,v,"f").textContent=null!=t?t:"",T(this,y,"f").append(T(this,v,"f")),T(this,w,"f").classList.add(p.jJ),T(this,y,"f").append(T(this,w,"f")),T(this,b,"f").classList.add(p.JJ),T(this,y,"f").append(T(this,b,"f"))}get textContent(){return T(this,v,"f").textContent}set textContent(t){let e=!T(this,g,"m",E).call(this);T(this,g,"m",A).call(this),T(this,v,"f").textContent=t,e&&T(this,g,"m",M).call(this)}get owner(){return T(this,N,"f")}set owner(t){T(this,N,"f")&&(T(this,N,"f").removeEventListener("mouseover",T(this,k,"f")),T(this,N,"f").removeEventListener("mouseout",T(this,S,"f"))),O(this,N,t,"f"),t&&(t.addEventListener("mouseover",()=>T(this,g,"m",M).call(this)),t.addEventListener("mouseout",()=>T(this,g,"m",A).call(this)))}get padding(){return T(this,x,"f")}set padding(t){O(this,x,t,"f"),T(this,g,"m",E).call(this)||(T(this,g,"m",A).call(this),T(this,g,"m",M).call(this))}get pointerDisplacement(){return T(this,_,"f")}set pointerDisplacement(t){O(this,_,t,"f"),T(this,g,"m",E).call(this)||(T(this,g,"m",A).call(this),T(this,g,"m",M).call(this))}}y=new WeakMap,v=new WeakMap,w=new WeakMap,b=new WeakMap,x=new WeakMap,_=new WeakMap,N=new WeakMap,k=new WeakMap,S=new WeakMap,g=new WeakSet,M=function(){if(T(this,y,"f").style.left="0px",T(this,y,"f").style.top="0px",T(this,w,"f").style.marginLeft=`${T(this,_,"f")}px`,T(this,b,"f").style.marginLeft=`${T(this,_,"f")}px`,document.body.append(T(this,y,"f")),!T(this,N,"f"))return;let t=T(this,y,"f").getBoundingClientRect().width,e=T(this,v,"f").getBoundingClientRect().height+T(this,w,"f").getBoundingClientRect().height/2-1,n=C.Box.matching(T(this,N,"f").getBoundingClientRect()).padded(T(this,x,"f"));T(this,y,"f").style.left=n.peripheralPoint(3*Math.PI/2).x-t/2-T(this,_,"f")/2+"px",T(this,y,"f").style.top=n.peripheralPoint(3*Math.PI/2).y-e+"px"},A=function(){T(this,y,"f").remove()},E=function(){return!document.body.contains(T(this,y,"f"))}})(),r})(),t.exports=e()},705(t,e,n){"use strict";n.d(e,{Ay:()=>p,Ol:()=>d,Qs:()=>h,Se:()=>a,eB:()=>f,vM:()=>l,vw:()=>c,yZ:()=>u});var r=n(601),i=n.n(r),s=n(314),o=n.n(s)()(i());o.push([t.id,'.LtjvWfQ5DEgLE0jZ1VYc {\n margin-top: 39px;\n\n display: flex;\n flex-direction: column;\n}\n\n.Nc_rMplF2zhIq3zYlKFl {\n margin: 11px 0px 0px 12px;\n\n display: flex;\n flex-direction: column;\n}\n\n.UArJtlXrClYUqKvYzpXe .Nc_rMplF2zhIq3zYlKFl {\n display: none;\n}\n\n.rgGEAvKvdVba2DrspkU6 {\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: white;\n\n user-select: none;\n -webkit-user-select: none;\n\n pointer-events: none;\n}\n\n.mLPVUA5YiyA4OksC17sb {\n margin-top: 23px;\n\n display: flex;\n flex-direction: row;\n gap: 23px;\n}\n\n.pCuHfZ8GeFUaELxeOyqs {\n margin-top: 29px;\n\n display: flex;\n flex-direction: column;\n gap: 10px;\n}\n\n.IhPX3q3sGT4fPIlgUdp1 {\n display: none;\n flex-direction: column;\n}\n',""]);var a="LtjvWfQ5DEgLE0jZ1VYc",h="Nc_rMplF2zhIq3zYlKFl",u="UArJtlXrClYUqKvYzpXe",l="rgGEAvKvdVba2DrspkU6",c="mLPVUA5YiyA4OksC17sb",d="pCuHfZ8GeFUaELxeOyqs",f="IhPX3q3sGT4fPIlgUdp1";const p=o},709(t,e,n){"use strict";n.d(e,{A:()=>h,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 h=o},723(t,e,n){"use strict";n.d(e,{Ay:()=>l,Wu:()=>h,kL:()=>a,r9:()=>u});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 align-self: start;\n\n pointer-events: auto;\n}\n\n.vDAwbQmWCc39SmNMFRtv {\n margin: 0px;\n\n border: none;\n\n padding: 3px 15px;\n border-radius: 2px;\n\n font-family: "Open Sans", sans-serif;\n font-size: 11px;\n font-weight: 700;\n font-style: normal;\n color: #001010;\n\n background-color: #8cdede;\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: #3a8f8f;\n\n pointer-events: none;\n}\n\n.vDAwbQmWCc39SmNMFRtv:hover {\n background-color: #3ca9a9;\n}\n\n.vDAwbQmWCc39SmNMFRtv:active {\n background-color: #1a7676;\n}\n\n.vDAwbQmWCc39SmNMFRtv:focus {\n outline: none;\n}\n',""]);var a="X7DPHJCVbRpHEB9gcm0Z",h="vDAwbQmWCc39SmNMFRtv",u="BAlKKbk1BfHF_fPz1gpc";const l=o},726(t){var e;e=()=>(()=>{var t={854: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){return"number"==typeof t}function r(t){return n(t)&&Number.isFinite(t)}function i(t){return n(t)&&!Number.isFinite(t)}function s(t){return r(t)&&t>0}function o(t){return r(t)&&t>=0}function a(t){return"string"==typeof t}function h(t){return null==t}function u(t){return"object"==typeof t&&null!==t}function l(t){return Array.isArray(t)}function c(t){return l(t)&&0==t.length}function d(t){return l(t)&&t.length>0}function f(t){return l(t)&&t.every(n)}function p(t){return f(t)&&t.length>0}function m(t){return l(t)&&t.every(r)}function g(t){return l(t)&&t.every(i)}function y(t){return l(t)&&t.every(a)}function v(t){return y(t)&&t.length>0}return t.r(e),t.d(e,{isArray:()=>l,isEmptyArray:()=>c,isFiniteNumber:()=>r,isFiniteNumbersArray:()=>m,isNonEmptyArray:()=>d,isNonEmptyNumbersArray:()=>p,isNonEmptyStringsArray:()=>v,isNonFiniteNumber:()=>i,isNonFiniteNumbersArray:()=>g,isNonNegativeFiniteNumber:()=>o,isNonNullObject:()=>u,isNullish:()=>h,isNumber:()=>n,isNumbersArray:()=>f,isPositiveFiniteNumber:()=>s,isString:()=>a,isStringsArray:()=>y}),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,e){for(let[n,r]of Object.entries(e))t.setAttribute(n,r)}n.r(r),n.d(r,{CoordinateSystem:()=>c,HorizontalClientScaling:()=>f,InnerXML:()=>w,OuterXML:()=>_,Scaling:()=>d,VerticalClientScaling:()=>p,assignUUID:()=>l,bringToFront:()=>m,drawOnCanvas:()=>A,isSVGGraphicsElement:()=>N,isSVGGraphicsElementsArray:()=>S,sendToBack:()=>g,setAttributes:()=>t});const e={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};var i,s=new Uint8Array(16);function o(){if(!i&&!(i="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return i(s)}for(var a=[],h=0;h<256;++h)a.push((h+256).toString(16).slice(1));const u=function(t,n,r){if(e.randomUUID&&!n&&!t)return e.randomUUID();var i=(t=t||{}).random||(t.rng||o)();if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,n){r=r||0;for(var s=0;s<16;++s)n[r+s]=i[s];return n}return function(t,e=0){return(a[t[e+0]]+a[t[e+1]]+a[t[e+2]]+a[t[e+3]]+"-"+a[t[e+4]]+a[t[e+5]]+"-"+a[t[e+6]]+a[t[e+7]]+"-"+a[t[e+8]]+a[t[e+9]]+"-"+a[t[e+10]]+a[t[e+11]]+a[t[e+12]]+a[t[e+13]]+a[t[e+14]]+a[t[e+15]]).toLowerCase()}(i)};function l(t){t.id="uuid-"+u()}class c{constructor(t){this.targetSVGDoc=t}get width(){return this.targetSVGDoc.viewBox.baseVal.width}get height(){return this.targetSVGDoc.viewBox.baseVal.height}get minX(){return this.targetSVGDoc.viewBox.baseVal.x}get maxX(){return this.minX+this.width}get minY(){return this.targetSVGDoc.viewBox.baseVal.y}get maxY(){return this.minY+this.height}get horizontalScaling(){return this.targetSVGDoc.width.baseVal.value/this.width}get verticalScaling(){return this.targetSVGDoc.height.baseVal.value/this.height}setScaling(t){this.targetSVGDoc.setAttribute("width",""+t*this.width),this.targetSVGDoc.setAttribute("height",""+t*this.height)}get clientWidth(){return this.targetSVGDoc.getBoundingClientRect().width}get clientHeight(){return this.targetSVGDoc.getBoundingClientRect().height}get horizontalClientScaling(){return this.clientWidth/this.width}get verticalClientScaling(){return this.clientHeight/this.height}get minClientX(){return this.targetSVGDoc.getBoundingClientRect().x}get minClientY(){return this.targetSVGDoc.getBoundingClientRect().y}fromClientX(t){return this.minX+(t-this.minClientX)/this.horizontalClientScaling}fromClientY(t){return this.minY+(t-this.minClientY)/this.verticalClientScaling}fromClientCoordinates(t,e){return[this.fromClientX(t),this.fromClientY(e)]}fromClientPoint(t){return{x:this.fromClientX(t.x),y:this.fromClientY(t.y)}}toClientX(t){return this.minClientX+this.horizontalClientScaling*(t-this.minX)}toClientY(t){return this.minClientY+this.verticalClientScaling*(t-this.minY)}toClientCoordinates(t,e){return[this.toClientX(t),this.toClientY(e)]}toClientPoint(t){return{x:this.toClientX(t.x),y:this.toClientY(t.y)}}}class d{constructor(t){this.targetSVGDoc=t}set(t){let e=this.targetSVGDoc.viewBox.baseVal;this.targetSVGDoc.setAttribute("width",t*e.width+"px"),this.targetSVGDoc.setAttribute("height",t*e.height+"px")}}class f{constructor(t){this.targetSVGDoc=t}get(){let t=this.targetSVGDoc.getBoundingClientRect(),e=this.targetSVGDoc.viewBox.baseVal;return t.width/e.width}}class p{constructor(t){this.targetSVGDoc=t}get(){let t=this.targetSVGDoc.getBoundingClientRect(),e=this.targetSVGDoc.viewBox.baseVal;return t.height/e.height}}function m(t){let e=t.parentNode;e&&e.appendChild(t)}function g(t){let e=t.parentNode;e&&e.prepend(t)}var y,v=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){y.set(this,void 0),function(t,e,n){if("function"==typeof e||!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");e.set(t,n)}(this,y,t)}toString(){return v(this,y,"f").innerHTML}set(t){v(this,y,"f").innerHTML=t}}y=new WeakMap;var b,x=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 _{constructor(t){b.set(this,void 0),function(t,e,n){if("function"==typeof e||!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");e.set(t,n)}(this,b,t)}toString(){return x(this,b,"f").outerHTML}set(t){let e=document.createElementNS("http://www.w3.org/2000/svg","svg");if(e.style.height="0px",document.body.append(e),e.innerHTML=t,!e.firstElementChild)throw new Error("Outer XML must encode an SVG element.");if(e.childNodes.length>1)throw new Error("Outer XML cannot encode multiple DOM nodes.");if(e.firstElementChild.tagName.toLowerCase()!=x(this,b,"f").tagName.toLowerCase())throw new Error("Outer XML must specify an SVG element with the same tag name as the target SVG element.");[...x(this,b,"f").attributes].forEach(t=>x(this,b,"f").removeAttribute(t.name)),[...e.firstElementChild.attributes].forEach(t=>x(this,b,"f").setAttribute(t.name,t.value)),x(this,b,"f").innerHTML=e.firstElementChild.innerHTML,e.remove()}}function N(t){return t instanceof SVGGraphicsElement}b=new WeakMap;var k=n(854);function S(t){return(0,k.isArray)(t)&&t.every(N)}var M=function(t,e,n,r){return new(n||(n=Promise))(function(i,s){function o(t){try{h(r.next(t))}catch(t){s(t)}}function a(t){try{h(r.throw(t))}catch(t){s(t)}}function h(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n(function(t){t(e)})).then(o,a)}h((r=r.apply(t,e||[])).next())})};function A(t){return M(this,void 0,void 0,function*(){let e=document.createElement("canvas");e.style.position="fixed",e.style.display="none",e.style.pointerEvents="none",document.body.append(e),e.width=t.width.baseVal.value,e.height=t.height.baseVal.value;let n=e.getContext("2d");if(!n)throw new Error("Unable to get canvas context.");let r=(new XMLSerializer).serializeToString(t),i=new Image;return i.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(r),yield i.decode(),n.drawImage(i,0,0,t.width.baseVal.value,t.height.baseVal.value),e.remove(),e.style.position="",e.style.display="",e.style.pointerEvents="",e})}})(),r})(),t.exports=e()},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)}}}},854(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){return"number"==typeof t}function r(t){return n(t)&&Number.isFinite(t)}function i(t){return n(t)&&!Number.isFinite(t)}function s(t){return r(t)&&t>0}function o(t){return r(t)&&t>=0}function a(t){return"string"==typeof t}function h(t){return null==t}function u(t){return"object"==typeof t&&null!==t}function l(t){return Array.isArray(t)}function c(t){return l(t)&&0==t.length}function d(t){return l(t)&&t.length>0}function f(t){return l(t)&&t.every(n)}function p(t){return f(t)&&t.length>0}function m(t){return l(t)&&t.every(r)}function g(t){return l(t)&&t.every(i)}function y(t){return l(t)&&t.every(a)}function v(t){return y(t)&&t.length>0}return t.r(e),t.d(e,{isArray:()=>l,isEmptyArray:()=>c,isFiniteNumber:()=>r,isFiniteNumbersArray:()=>m,isNonEmptyArray:()=>d,isNonEmptyNumbersArray:()=>p,isNonEmptyStringsArray:()=>v,isNonFiniteNumber:()=>i,isNonFiniteNumbersArray:()=>g,isNonNegativeFiniteNumber:()=>o,isNonNullObject:()=>u,isNullish:()=>h,isNumber:()=>n,isNumbersArray:()=>f,isPositiveFiniteNumber:()=>s,isString:()=>a,isStringsArray:()=>y}),e})()},881(t,e,n){"use strict";n.d(e,{A:()=>f,k:()=>d});var r=n(601),i=n.n(r),s=n(314),o=n.n(s),a=n(417),h=n.n(a),u=new URL(n(889),n.b),l=o()(i()),c=h()(u);l.push([t.id,`.pMUxgRC_f4NzkoelkDpX {\n appearance: none;\n\n margin: 0px;\n padding: 0px;\n\n border: none;\n outline: none;\n\n border-radius: 1px;\n\n width: 15px;\n height: 15px;\n\n background-color: white;\n\n cursor: pointer;\n}\n\n.pMUxgRC_f4NzkoelkDpX:checked {\n background-color: rgb(255, 194, 194);\n\n background-image: url(${c});\n}\n`,""]);var d="pMUxgRC_f4NzkoelkDpX";const f=l},887(t,e,n){"use strict";n.d(e,{Ay:()=>l,Qq:()=>h,lI:()=>a,r9:()=>u});var r=n(601),i=n.n(r),s=n(314),o=n.n(s)()(i());o.push([t.id,'.XCtUcg96Mkd2YGqGvTjm {\n position: relative;\n\n align-self: start;\n\n pointer-events: auto;\n}\n\n.qTVXpnB_go4Q_8V0QAhx {\n margin: 0px;\n padding: 0px;\n\n font-family: "Open Sans", sans-serif;\n font-size: 11px;\n font-weight: 700;\n font-style: normal;\n color: #10ffff;\n\n user-select: none;\n -webkit-user-select: none;\n\n pointer-events: auto;\n\n cursor: pointer;\n}\n\n.XCtUcg96Mkd2YGqGvTjm:hover .qTVXpnB_go4Q_8V0QAhx {\n text-decoration: underline;\n}\n\n.IgtWfVpmdN_e04k18xHb {\n cursor: default;\n}\n\n.IgtWfVpmdN_e04k18xHb .qTVXpnB_go4Q_8V0QAhx {\n pointer-events: none;\n\n color: #097676;\n}\n\n.IgtWfVpmdN_e04k18xHb:hover .qTVXpnB_go4Q_8V0QAhx {\n text-decoration: none;\n}\n',""]);var a="XCtUcg96Mkd2YGqGvTjm",h="qTVXpnB_go4Q_8V0QAhx",u="IgtWfVpmdN_e04k18xHb";const l=o},889(t){"use strict";t.exports="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxNSAxNSI+PHBhdGggZmlsbD0ibm9uZSIgc3Ryb2tlPSJibGFjayIgc3Ryb2tlLWxpbmVjYXA9IiIgc3Ryb2tlLWxpbmVqb2luPSIiIHN0cm9rZS13aWR0aD0iMiIgZD0iTTMuNSA4LjUgTDcuNSAxMS41IEwgMTEuNSAzLjUiLz48L3N2Zz4="},924(t,e,n){"use strict";n.d(e,{Ay:()=>g,QB:()=>m,Qs:()=>h,Te:()=>p,VX:()=>c,eB:()=>f,ho:()=>u,iE:()=>d,qM:()=>a,vM:()=>l});var r=n(601),i=n.n(r),s=n(314),o=n.n(s)()(i());o.push([t.id,'.O0vrEVyGT_aFy6tF68Na {\n margin-top: 39px;\n\n display: flex;\n flex-direction: column;\n}\n\n.VFDUY2z_WgJp1fVc8TCw {\n margin: 11px 0px 0px 12px;\n\n display: none;\n flex-direction: column;\n}\n\n.dJmYzq3wi8hxLecdDaOF .VFDUY2z_WgJp1fVc8TCw {\n display: flex;\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: white;\n\n user-select: none;\n -webkit-user-select: none;\n\n pointer-events: none;\n}\n\n.GZP6NKFkjkjlFVlDU6AZ {\n margin-top: 20px;\n\n display: flex;\n flex-direction: row;\n align-items: center;\n}\n\n.f1LDX7M42DUD9AT6Mh5p {\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: white;\n\n user-select: none;\n -webkit-user-select: none;\n\n pointer-events: none;\n}\n\n.wq_gmBRSZasSLYaUmdWp {\n display: none;\n flex-direction: column;\n}\n\n.niaBwqy1zBIMYC42Y7LP {\n margin-top: 27px;\n\n display: flex;\n flex-direction: row;\n align-items: center;\n}\n\n._YkLdMiLPhNIvuLLypQE {\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: white;\n\n user-select: none;\n -webkit-user-select: none;\n\n pointer-events: none;\n}\n',""]);var a="O0vrEVyGT_aFy6tF68Na",h="VFDUY2z_WgJp1fVc8TCw",u="dJmYzq3wi8hxLecdDaOF",l="Z3lHB1W2K4m8JuZOnWs9",c="GZP6NKFkjkjlFVlDU6AZ",d="f1LDX7M42DUD9AT6Mh5p",f="wq_gmBRSZasSLYaUmdWp",p="niaBwqy1zBIMYC42Y7LP",m="_YkLdMiLPhNIvuLLypQE";const g=o},933(t,e,n){"use strict";n.d(e,{Ay:()=>u,Pf:()=>h,Te:()=>a});var r=n(601),i=n.n(r),s=n(314),o=n.n(s)()(i());o.push([t.id,'.cl_Un57i0HIsdQnuxSY0 {\n display: flex;\n flex-direction: row;\n align-items: center;\n}\n\n.GQe6FmedcfLCp15a2z6w {\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: white;\n\n user-select: none;\n -webkit-user-select: none;\n\n pointer-events: none;\n}\n',""]);var a="cl_Un57i0HIsdQnuxSY0",h="GQe6FmedcfLCp15a2z6w";const u=o},965(t,e,n){"use strict";n.d(e,{Ay:()=>l,Qs:()=>h,fS:()=>a,yZ:()=>u});var r=n(601),i=n.n(r),s=n(314),o=n.n(s)()(i());o.push([t.id,".nsoFbJ7bgx_BnBY0KjvC {\n margin-top: 39px;\n\n display: flex;\n flex-direction: column;\n}\n\n.k7K01e2GUrQW3HOTGKLg {\n margin: 13px 0px 0px 12px;\n\n display: flex;\n flex-direction: column;\n}\n\n.uQ4YNz02_aOj4lo6H7WY .k7K01e2GUrQW3HOTGKLg {\n display: none;\n}\n",""]);var a="nsoFbJ7bgx_BnBY0KjvC",h="k7K01e2GUrQW3HOTGKLg",u="uQ4YNz02_aOj4lo6H7WY";const l=o}},e={};function n(r){var i=e[r];if(void 0!==i)return i.exports;var s=e[r]={id:r,loaded:!1,exports:{}};return t[r].call(s.exports,s,s.exports,n),s.loaded=!0,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.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),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.nmd=t=>(t.paths=[],t.children||(t.children=[]),t),n.b="undefined"!=typeof document&&document.baseURI||self.location.href,n.nc=void 0;var r={};return(()=>{"use strict";n.r(r),n.d(r,{EditingForm:()=>wp});var t={};n.r(t),n.d(t,{cx:()=>Ie,cy:()=>Re,height:()=>Fe,rx:()=>je,ry:()=>Pe,width:()=>ze,x:()=>De,y:()=>Be});var e={};n.r(e),n.d(e,{from:()=>Ge,to:()=>He});var i={};n.r(i),n.d(i,{MorphArray:()=>Je,height:()=>nn,width:()=>en,x:()=>Ke,y:()=>tn});var s={};n.r(s),n.d(s,{array:()=>On,clear:()=>Ln,move:()=>Wn,plot:()=>jn,size:()=>Pn});var o={};n.r(o),n.d(o,{amove:()=>ur,ax:()=>ar,ay:()=>hr,build:()=>lr,center:()=>or,cx:()=>ir,cy:()=>sr,length:()=>tr,move:()=>rr,plain:()=>Kn,x:()=>er,y:()=>nr});var a={};n.r(a),n.d(a,{dmove:()=>gr,dx:()=>yr,dy:()=>vr,height:()=>wr,move:()=>br,size:()=>xr,width:()=>_r,x:()=>Nr,y:()=>kr});var h=n(72),u=n.n(h),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),b=n(420),x={};x.styleTagTransform=w(),x.setAttributes=m(),x.insert=f().bind(null,"head"),x.domAPI=c(),x.insertStyleElement=y(),u()(b.Ay,x),b.Ay&&b.Ay.locals&&b.Ay.locals;var _=n(633),N={};N.styleTagTransform=w(),N.setAttributes=m(),N.insert=f().bind(null,"head"),N.domAPI=c(),N.insertStyleElement=y(),u()(_.Ay,N),_.Ay&&_.Ay.locals&&_.Ay.locals;var k=n(584),S={};S.styleTagTransform=w(),S.setAttributes=m(),S.insert=f().bind(null,"head"),S.domAPI=c(),S.insertStyleElement=y(),u()(k.Ay,S),k.Ay&&k.Ay.locals&&k.Ay.locals;var M,A=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 E{constructor(t,e){this.domNode=document.createElement("div"),this.caret=new C,M.set(this,document.createElement("p")),this.domNode.classList.add(k.kY),!e||(this.domNode.onclick=e),this.caret.domNode.style.marginRight="6px",this.caret.domNode.style.pointerEvents="auto",this.domNode.append(this.caret.domNode),A(this,M,"f").classList.add(k.Qq),!t||(this.textContent=t),this.domNode.append(A(this,M,"f"))}get textContent(){return A(this,M,"f").textContent}set textContent(t){A(this,M,"f").textContent=t}}M=new WeakMap;class C{constructor(){this.domNode=document.createElementNS("http://www.w3.org/2000/svg","svg"),this.domNode.classList.add(k.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="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"\n fill="none"\n ></path>\n '}pointRight(){this.domNode.classList.remove(k.Z7)}pointDown(){this.domNode.classList.add(k.Z7)}}var T=n(887),O={};O.styleTagTransform=w(),O.setAttributes=m(),O.insert=f().bind(null,"head"),O.domAPI=c(),O.insertStyleElement=y(),u()(T.Ay,O),T.Ay&&T.Ay.locals&&T.Ay.locals;var L,W=n(704),j=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 P{constructor(t,e){this.domNode=document.createElement("div"),L.set(this,document.createElement("p")),this.tooltip=new W.Tooltip(""),!e||(this.domNode.onclick=e),this.domNode.classList.add(T.lI),j(this,L,"f").classList.add(T.Qq),j(this,L,"f").textContent=null!=t?t:"",this.domNode.append(j(this,L,"f")),this.tooltip.owner=this.domNode}get textContent(){return j(this,L,"f").textContent}set textContent(t){j(this,L,"f").textContent=t}disable(){this.domNode.classList.add(T.r9)}enable(){this.domNode.classList.remove(T.r9)}}L=new WeakMap;var D=n(419),B={};B.styleTagTransform=w(),B.setAttributes=m(),B.insert=f().bind(null,"head"),B.domAPI=c(),B.insertStyleElement=y(),u()(D.A,B),D.A&&D.A.locals&&D.A.locals;var I,R;class z{constructor(t){I.add(this),this.props=t,this.domNode=document.createElement("input"),this.domNode.type="text",this.domNode.classList.add(D.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,I,"m",R).call(this)),this.domNode.addEventListener("keydown",t=>{"enter"==t.key.toLowerCase()&&this.domNode.blur()})}}I=new WeakSet,R=function(){var t;(null===(t=this.props)||void 0===t?void 0:t.onSubmit)&&this.props.onSubmit()};var F=n(678),q={};q.styleTagTransform=w(),q.setAttributes=m(),q.insert=f().bind(null,"head"),q.domAPI=c(),q.insertStyleElement=y(),u()(F.Ay,q),F.Ay&&F.Ay.locals&&F.Ay.locals;var U,V,G=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},H=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 X{constructor(t,e){this.name=t,this.domNode=document.createElement("label"),U.set(this,void 0),V.set(this,void 0),this.domNode.classList.add(F.ZZ),G(this,U,e,"f"),G(this,V,document.createElement("a"),"f"),H(this,V,"f").textContent=t,H(this,V,"f").target="_blank",H(this,V,"f").rel="noopener noreferrer",H(this,V,"f").style.marginLeft="8px",this.domNode.append(e,H(this,V,"f"))}get infoLink(){return H(this,V,"f").href}set infoLink(t){H(this,V,"f").href=t,t?H(this,V,"f").classList.add(F.o3):H(this,V,"f").classList.remove(F.o3)}}U=new WeakMap,V=new WeakMap;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,Y.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,Y,new X(t,e),"f"),this.domNode.style.cursor="text"}get domNode(){return $(this,Y,"f").domNode}get infoLink(){return $(this,Y,"f").infoLink}set infoLink(t){$(this,Y,"f").infoLink=t}}Y=new WeakMap;var Z=n(881),J={};J.styleTagTransform=w(),J.setAttributes=m(),J.insert=f().bind(null,"head"),J.domAPI=c(),J.insertStyleElement=y(),u()(Z.A,J),Z.A&&Z.A.locals&&Z.A.locals;class K{constructor(){this.domNode=document.createElement("input"),this.domNode.type="checkbox",this.domNode.classList.add(Z.k)}}var tt,et=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 nt{constructor(t,e){this.name=t,tt.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,tt,new X(t,e),"f"),this.domNode.style.cursor="pointer"}get domNode(){return et(this,tt,"f").domNode}get infoLink(){return et(this,tt,"f").infoLink}set infoLink(t){et(this,tt,"f").infoLink=t}}tt=new WeakMap;var rt=n(709),it={};it.styleTagTransform=w(),it.setAttributes=m(),it.insert=f().bind(null,"head"),it.domAPI=c(),it.insertStyleElement=y(),u()(rt.A,it),rt.A&&rt.A.locals&&rt.A.locals;class st{constructor(){this.domNode=document.createElement("input"),this.domNode.type="color",this.domNode.classList.add(rt.V)}}var ot,at=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 ht{constructor(t,e){this.name=t,ot.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,ot,new X(t,e),"f"),this.domNode.style.cursor="pointer"}get domNode(){return at(this,ot,"f").domNode}get infoLink(){return at(this,ot,"f").infoLink}set infoLink(t){at(this,ot,"f").infoLink=t}}ot=new WeakMap;const ut={},lt=[];function ct(t,e){if(Array.isArray(t))for(const n of t)ct(n,e);else if("object"!=typeof t)ft(Object.getOwnPropertyNames(e)),ut[t]=Object.assign(ut[t]||{},e);else for(const e in t)ct(e,t[e])}function dt(t){return ut[t]||{}}function ft(t){lt.push(...t)}function pt(t,e){let n;const r=t.length,i=[];for(n=0;n<r;n++)i.push(e(t[n]));return i}function mt(t){return t%360*Math.PI/180}function gt(t){return t.replace(/([A-Z])/g,function(t,e){return"-"+e.toLowerCase()})}function yt(t){return t.charAt(0).toUpperCase()+t.slice(1)}function vt(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 wt(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:h}=e.bbox();s&&(r=r.includes("left")?a:r.includes("right")?a+n:a+n/2),o&&(i=i.includes("top")?h:i.includes("bottom")?h+t:h+t/2)}return[r,i]}const bt=new Set(["desc","metadata","title"]),xt=t=>bt.has(t.nodeName),_t=(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"))},Nt="http://www.w3.org/2000/svg",kt="http://www.w3.org/2000/xmlns/",St="http://www.w3.org/1999/xlink",Mt={window:"undefined"==typeof window?null:window,document:"undefined"==typeof document?null:document};class At{}const Et={},Ct="___SYMBOL___ROOT___";function Tt(t,e=Nt){return Mt.document.createElementNS(e,t)}function Ot(t,e=!1){if(t instanceof At)return t;if("object"==typeof t)return jt(t);if(null==t)return new Et[Ct];if("string"==typeof t&&"<"!==t.trim().charAt(0))return jt(Mt.document.querySelector(t));const n=e?Mt.document.createElement("div"):Tt("svg");return n.innerHTML=t.trim(),t=jt(n.firstElementChild),n.removeChild(n.firstElementChild),t}function Lt(t,e){return e&&(e instanceof Mt.window.Node||e.ownerDocument&&e instanceof e.ownerDocument.defaultView.Node)?e:Tt(t)}function Wt(t){if(!t)return null;if(t.instance instanceof At)return t.instance;if("#document-fragment"===t.nodeName)return new Et.Fragment(t);let e=yt(t.nodeName||"Dom");return"LinearGradient"===e||"RadialGradient"===e?e="Gradient":Et[e]||(e="Dom"),new Et[e](t)}let jt=Wt;function Pt(t,e=t.name,n=!1){return Et[e]=t,n&&(Et[Ct]=t),ft(Object.getOwnPropertyNames(t.prototype)),t}let Dt=1e3;function Bt(t){return"Svgjs"+yt(t)+Dt++}function It(t){for(let e=t.children.length-1;e>=0;e--)It(t.children[e]);return t.id?(t.id=Bt(t.nodeName),t):t}function Rt(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 zt(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)}}ct("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=Ot(t)).remove();const e=this.position();return this.parent().add(t,e),this},after:function(t){(t=Ot(t)).remove();const e=this.position();return this.parent().add(t,e+1),this},insertBefore:function(t){return(t=Ot(t)).before(this),this},insertAfter:function(t){return(t=Ot(t)).after(this),this}});const Ft=/^([+-]?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?)([a-z%]*)$/i,qt=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i,Ut=/rgb\((\d+),(\d+),(\d+)\)/,Vt=/(#[a-z_][a-z0-9\-_]*)/i,Gt=/\)\s*,?\s*/,Ht=/\s/g,Xt=/^#[a-f0-9]{3}$|^#[a-f0-9]{6}$/i,Yt=/^rgb\(/,$t=/^(\s+)?$/,Qt=/^[+-]?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,Zt=/\.(jpg|jpeg|png|gif|svg)(\?[^=]+.*)?/i,Jt=/[\s,]+/,Kt=/[MLHVCSQTAZ]/i;function te(t){const e=Math.round(t),n=Math.max(0,Math.min(255,e)).toString(16);return 1===n.length?"0"+n:n}function ee(t,e){for(let n=e.length;n--;)if(null==t[e[n]])return!1;return!0}function ne(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}ct("Dom",{classes:function(){const t=this.attr("class");return null==t?[]:t.trim().split(Jt)},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)}}),ct("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]||$t.test(t[e])?"":t[e])}return 2===arguments.length&&this.node.style.setProperty(t,null==e||$t.test(e)?"":e),this},show:function(){return this.css("display","")},hide:function(){return this.css("display","none")},visible:function(){return"none"!==this.css("display")}}),ct("Dom",{data:function(t,e,n){if(null==t)return this.data(pt(function(t,e){let n;const r=t.length,i=[];for(n=0;n<r;n++)e(t[n])&&i.push(t[n]);return i}(this.node.attributes,t=>0===t.nodeName.indexOf("data-")),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}}),ct("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 re{constructor(...t){this.init(...t)}static isColor(t){return t&&(t instanceof re||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 re(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 re(t,o,a)}if("pastel"===t){const t=8*n()+86,e=17*n()+9,r=360*n();return new re(t,e,r,"lch")}if("dark"===t){const t=10+10*n(),e=50*n()+86,r=360*n();return new re(t,e,r,"lch")}if("rgb"===t){const t=255*n(),e=255*n(),r=255*n();return new re(t,e,r)}if("lab"===t){const t=100*n(),e=256*n()-128,r=256*n()-128;return new re(t,e,r,"lab")}if("grey"===t){const t=255*n();return new re(t,t,t)}throw new Error("Unsupported random color mode")}static test(t){return"string"==typeof t&&(Xt.test(t)||Yt.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 re(0,0,0,1,"cmyk"):new re((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),h=(o+a)/2,u=o===a,l=o-a;return new re(360*(u?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*(u?0:h>.5?l/(2-o-a):l/(o+a)),100*h,"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=ee(t,"rgb")?{_a:t.r,_b:t.g,_c:t.b,_d:0,space:"rgb"}:ee(t,"xyz")?{_a:t.x,_b:t.y,_c:t.z,_d:0,space:"xyz"}:ee(t,"hsl")?{_a:t.h,_b:t.s,_c:t.l,_d:0,space:"hsl"}:ee(t,"lab")?{_a:t.l,_b:t.a,_c:t.b,_d:0,space:"lab"}:ee(t,"lch")?{_a:t.l,_b:t.c,_c:t.h,_d:0,space:"lch"}:ee(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(Yt.test(t)){const e=t.replace(Ht,""),[n,r,i]=Ut.exec(e).slice(1,4).map(t=>parseInt(t));Object.assign(this,{_a:n,_b:r,_c:i,_d:0,space:"rgb"})}else{if(!Xt.test(t))throw Error("Unsupported string format, can't construct Color");{const e=t=>parseInt(t,16),[,n,r,i]=qt.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:h}=this,u="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:h}:{};Object.assign(this,u)}lab(){const{x:t,y:e,z:n}=this.xyz();return new re(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 re(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,h=o-s/200,u=16/116,l=.008856,c=7.787;t=.95047*(a**3>l?a**3:(a-u)/c),e=1*(o**3>l?o**3:(o-u)/c),n=1.08883*(h**3>l?h**3:(h-u)/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,h=r>a?1.055*o(r,1/2.4)-.055:12.92*r,u=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 re(255*h,255*u,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 re(n,n,n);const r=n<.5?n*(1+e):n+e-n*e,i=2*n-r,s=255*ne(i,r,t+1/3),o=255*ne(i,r,t),a=255*ne(i,r,t-1/3);return new re(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 re(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(te);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,h=s>.04045?Math.pow((s+.055)/1.055,2.4):s/12.92,u=(.4124*o+.3576*a+.1805*h)/.95047,l=(.2126*o+.7152*a+.0722*h)/1,c=(.0193*o+.1192*a+.9505*h)/1.08883,d=u>.008856?Math.pow(u,1/3):7.787*u+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 re(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 ie{constructor(...t){this.init(...t)}clone(){return new ie(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){oe.isMatrixLike(t)||(t=new oe(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 se(t,e,n){return Math.abs(e-t)<(n||1e-6)}class oe{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,h=t.shear||0,u=t.rotate||t.theta||0,l=new ie(t.origin||t.around||t.ox||t.originX,t.oy||t.originY),c=l.x,d=l.y,f=new ie(t.position||t.px||t.positionX||NaN,t.py||t.positionY||NaN),p=f.x,m=f.y,g=new ie(t.translate||t.tx||t.translateX,t.ty||t.translateY),y=g.x,v=g.y,w=new ie(t.relative||t.rx||t.relativeX,t.ry||t.relativeY);return{scaleX:o,scaleY:a,skewX:i,skewY:s,shear:h,theta:u,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,h=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=h,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 oe(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,h=n*s-r*i,u=h>0?1:-1,l=u*Math.sqrt(n*n+r*r),c=Math.atan2(u*r,u*n),d=180/Math.PI*c,f=Math.cos(c),p=Math.sin(c),m=(n*i+r*s)/h,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 oe(t);return se(this.a,e.a)&&se(this.b,e.b)&&se(this.c,e.c)&&se(this.d,e.d)&&se(this.e,e.e)&&se(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=oe.fromArray([1,0,0,1,0,0]);return t=t instanceof Ce?t.matrixify():"string"==typeof t?oe.fromArray(t.split(Jt).map(parseFloat)):Array.isArray(t)?oe.fromArray(t):"object"==typeof t&&oe.isMatrixLike(t)?t:"object"==typeof t?(new oe).transform(t):6===arguments.length?oe.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,h=-e/o,u=-n/o,l=t/o,c=-(a*i+u*s),d=-(h*i+l*s);return this.a=a,this.b=h,this.c=u,this.d=l,this.e=c,this.f=d,this}lmultiply(t){return this.clone().lmultiplyO(t)}lmultiplyO(t){const e=t instanceof oe?t:new oe(t);return oe.matrixMultiply(e,this,this)}multiply(t){return this.clone().multiplyO(t)}multiplyO(t){const e=t instanceof oe?t:new oe(t);return oe.matrixMultiply(this,e,this)}rotate(t,e,n){return this.clone().rotateO(t,e,n)}rotateO(t,e=0,n=0){t=mt(t);const r=Math.cos(t),i=Math.sin(t),{a:s,b:o,c:a,d:h,e:u,f:l}=this;return this.a=s*r-o*i,this.b=o*r+s*i,this.c=a*r-h*i,this.d=h*r+a*i,this.e=u*r-l*i+n*i-e*r+e,this.f=l*r+u*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:h,f:u}=this;return this.a=i*t,this.b=s*e,this.c=o*t,this.d=a*e,this.e=h*t-n*t+n,this.f=u*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:h}=this;return this.a=r+i*t,this.c=s+o*t,this.e=a+h*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=mt(t),e=mt(e);const i=Math.tan(t),s=Math.tan(e),{a:o,b:a,c:h,d:u,e:l,f:c}=this;return this.a=o+a*i,this.b=a+o*s,this.c=h+u*i,this.d=u+h*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(oe.isMatrixLike(t))return new oe(t).multiplyO(this);const e=oe.formatTransforms(t),{x:n,y:r}=new ie(e.ox,e.oy).transform(this),i=(new oe).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 ie(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 ae(){if(!ae.nodes){const t=Ot().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;ae.nodes={svg:t,path:e}}if(!ae.nodes.svg.node.parentNode){const t=Mt.document.body||Mt.document.documentElement;ae.nodes.svg.addTo(t)}return ae.nodes}function he(t){return!(t.width||t.height||t.x||t.y)}Pt(oe,"Matrix");class ue{constructor(...t){this.init(...t)}addOffset(){return this.x+=Mt.window.pageXOffset,this.y+=Mt.window.pageYOffset,new ue(this)}init(t){return t="string"==typeof t?t.split(Jt).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 he(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 ue(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 oe||(t=new oe(t));let e=1/0,n=-1/0,r=1/0,i=-1/0;return[new ie(this.x,this.y),new ie(this.x2,this.y),new ie(this.x,this.y2),new ie(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 ue(e,r,n-e,i-r)}}function le(t,e,n){let r;try{if(r=e(t.node),he(r)&&(i=t.node)!==Mt.document&&!(Mt.document.documentElement.contains||function(t){for(;t.parentNode;)t=t.parentNode;return t===Mt.document}).call(Mt.document.documentElement,i))throw new Error("Element not in the dom")}catch(e){r=n(t)}var i;return r}ct({viewbox:{viewbox(t,e,n,r){return null==t?new ue(this.attr("viewBox")):this.attr("viewBox",new ue(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 h=a/t;h===1/0&&(h=Number.MAX_SAFE_INTEGER/100),e=e||new ie(n/2/s+i.x,r/2/o+i.y);const u=new ue(i).transform(new oe({scale:h,origin:e}));return this.viewbox(u)}}}),Pt(ue,"Box");class ce extends Array{constructor(t=[],...e){if(super(t,...e),"number"==typeof t)return this;this.length=0,this.push(...t)}}const de=ce;Rt([ce],{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 fe=["toArray","constructor","each"];function pe(t,e){return new de(pt((e||Mt.document).querySelectorAll(t),function(t){return Wt(t)}))}ce.extend=function(t){t=t.reduce((t,e)=>(fe.includes(e)||"_"===e[0]||(e in Array.prototype&&(t["$"+e]=Array.prototype[e]),t[e]=function(...t){return this.each(e,...t)}),t),{}),Rt([ce],t)};let me=0;const ge={};function ye(t){let e=t.getEventHolder();return e===Mt.window&&(e=ge),e.events||(e.events={}),e.events}function ve(t){return t.getEventTarget()}function we(t,e,n,r,i){const s=n.bind(r||t),o=Ot(t),a=ye(o),h=ve(o);e=Array.isArray(e)?e:e.split(Jt),n._svgjsListenerId||(n._svgjsListenerId=++me),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,h.addEventListener(e,s,i||!1)})}function be(t,e,n,r){const i=Ot(t),s=ye(i),o=ve(i);("function"!=typeof n||(n=n._svgjsListenerId))&&(e=Array.isArray(e)?e:(e||"").split(Jt)).forEach(function(t){const e=t&&t.split(".")[0],a=t&&t.split(".")[1];let h,u;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(u in s[e][a])be(o,[e,a].join("."),u);delete s[e][a]}}else if(a)for(t in s)for(h in s[t])a===h&&be(o,[t,a].join("."));else if(e){if(s[e]){for(h in s[e])be(o,[e,h].join("."));delete s[e]}}else{for(t in s)be(o,t);!function(t){let e=t.getEventHolder();e===Mt.window&&(e=ge),e.events&&(e.events={})}(i)}})}class xe extends At{addEventListener(){}dispatch(t,e,n){return function(t,e,n,r){const i=ve(t);return e instanceof Mt.window.Event||(e=new Mt.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 be(this,t,e,n),this}on(t,e,n,r){return we(this,t,e,n,r),this}removeEventListener(){}}function _e(){}Pt(xe,"EventTarget");const Ne={"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 ke 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(Jt).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 Se{constructor(...t){this.init(...t)}convert(t){return new Se(this.value,t)}divide(t){return t=new Se(t),new Se(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(Ft))&&(this.value=parseFloat(e[1]),"%"===e[5]?this.value/=100:"s"===e[5]&&(this.value*=1e3),this.unit=e[5]):t instanceof Se&&(this.value=t.valueOf(),this.unit=t.unit),this}minus(t){return t=new Se(t),new Se(this-t,this.unit||t.unit)}plus(t){return t=new Se(t),new Se(this+t,this.unit||t.unit)}times(t){return t=new Se(t),new Se(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 Me=new Set(["fill","stroke","color","bgcolor","stop-color","flood-color","lighting-color"]),Ae=[];class Ee extends xe{constructor(t,e){super(),this.node=t,this.type=t.nodeName,e&&t!==e&&this.attr(e)}add(t,e){return(t=Ot(t)).removeNamespace&&this.node instanceof Mt.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 Ot(t).put(this,e)}children(){return new de(pt(this.node.children,function(t){return Wt(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=It(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 Ee(Tt(t),e))}first(){return Wt(this.node.firstChild)}get(t){return Wt(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=Bt(this.type)),this.attr("id",t)}index(t){return[].slice.call(this.node.childNodes).indexOf(t.node)}last(){return Wt(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=Wt(e.node.parentNode),!t)return e;do{if("string"==typeof t?e.matches(t):e instanceof t)return e}while(e=Wt(e.node.parentNode));return e}put(t,e){return t=Ot(t),this.add(t,e),t}putIn(t,e){return Ot(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=Ot(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,Nt)}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=Wt(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=Tt("wrapper",n),i=Mt.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)}}Rt(Ee,{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))?Ne[t]:Qt.test(e)?parseFloat(e):e;"number"==typeof(e=Ae.reduce((e,n)=>n(t,e,this),e))?e=new Se(e):Me.has(t)&&re.isColor(e)?e=new re(e):e.constructor===Array&&(e=new ke(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 pe(t,this.node)},findOne:function(t){return Wt(this.node.querySelector(t))}}),Pt(Ee,"Dom");class Ce extends Ee{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 Se(t).plus(this.x()))}dy(t=0){return this.y(new Se(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=Ot(t));const n=new de;let r=this;for(;(r=r.parent())&&r.node!==Mt.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(Vt);return e?Ot(e[1]):null}root(){const t=this.parent(Et[Ct]);return t&&t.root()}setData(t){return this.dom=t,this}size(t,e){const n=vt(this,t,e);return this.width(new Se(n.width)).height(new Se(n.height))}width(t){return this.attr("width",t)}writeDataToDom(){return _t(this,this.dom),super.writeDataToDom()}x(t){return this.attr("x",t)}y(t){return this.attr("y",t)}}Rt(Ce,{bbox:function(){const t=le(this,t=>t.getBBox(),t=>{try{const e=t.clone().addTo(ae().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 ue(t)},rbox:function(t){const e=le(this,t=>t.getBoundingClientRect(),t=>{throw new Error(`Getting rbox of element "${t.node.nodeName}" is not possible`)}),n=new ue(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 ie(t,e).transformO(this.screenCTM().inverseO())},ctm:function(){return new oe(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 oe(e)}return new oe(this.node.getScreenCTM())}catch(t){return console.warn(`Cannot get CTM from SVG node ${this.node.nodeName}. Is the element rendered?`),new oe}}}),Pt(Ce,"Element");const Te={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 re||re.isRgb(e)||e instanceof Ce)this.attr(t,e);else for(n=Te[t].length-1;n>=0;n--)null!=e[Te[t][n]]&&this.attr(Te.prefix(t,Te[t][n]),e[Te[t][n]]);return this},ct(["Element","Runner"],e)}),ct(["Element","Runner"],{matrix:function(t,e,n,r,i,s){return null==t?new oe(this):this.attr("transform",new oe(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)}}),ct("radius",{radius:function(t,e=t){return"radialGradient"===(this._element||this).type?this.attr("r",new Se(t)):this.rx(t).ry(e)}}),ct("Path",{length:function(){return this.node.getTotalLength()},pointAt:function(t){return new ie(this.node.getPointAtLength(t))}}),ct(["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)}}),ct("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},{})),ct("Element",{untransform:function(){return this.attr("transform",null)},matrixify:function(){return(this.attr("transform")||"").split(Gt).slice(0,-1).map(function(t){const e=t.trim().split("(");return[e[0],e[1].split(Jt).map(function(t){return parseFloat(t)})]}).reverse().reduce(function(t,e){return"matrix"===e[0]?t.lmultiply(oe.fromArray(e[1])):t[e[0]].apply(t,e[1])},new oe)},toParent:function(t,e){if(this===t)return this;if(xt(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 oe(this).decompose();return null==t?e:e[t]}oe.isMatrixLike(t)||(t={...t,origin:wt(t,this)});const n=new oe(!0===e?this:e||!1).transform(t);return this.attr("transform",n)}});class Oe extends Ce{flatten(){return this.each(function(){if(this instanceof Oe)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()}}Pt(Oe,"Container");class Le extends Oe{constructor(t,e=t){super(Lt("defs",t),e)}flatten(){return this}ungroup(){return this}}Pt(Le,"Defs");class We extends Ce{}function je(t){return this.attr("rx",t)}function Pe(t){return this.attr("ry",t)}function De(t){return null==t?this.cx()-this.rx():this.cx(t+this.rx())}function Be(t){return null==t?this.cy()-this.ry():this.cy(t+this.ry())}function Ie(t){return this.attr("cx",t)}function Re(t){return this.attr("cy",t)}function ze(t){return null==t?2*this.rx():this.rx(new Se(t).divide(2))}function Fe(t){return null==t?2*this.ry():this.ry(new Se(t).divide(2))}Pt(We,"Shape");class qe extends We{constructor(t,e=t){super(Lt("ellipse",t),e)}size(t,e){const n=vt(this,t,e);return this.rx(new Se(n.width).divide(2)).ry(new Se(n.height).divide(2))}}Rt(qe,t),ct("Container",{ellipse:zt(function(t=0,e=t){return this.put(new qe).size(t,e).move(0,0)})}),Pt(qe,"Ellipse");class Ue extends Ee{constructor(t=Mt.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 Ee(Tt("wrapper",n));return t.add(this.node.cloneNode(!0)),t.xml(!1,n)}return super.xml(t,!1,n)}}Pt(Ue,"Fragment");const Ve=Ue;function Ge(t,e){return"radialGradient"===(this._element||this).type?this.attr({fx:new Se(t),fy:new Se(e)}):this.attr({x1:new Se(t),y1:new Se(e)})}function He(t,e){return"radialGradient"===(this._element||this).type?this.attr({cx:new Se(t),cy:new Se(e)}):this.attr({x2:new Se(t),y2:new Se(e)})}class Xe extends Oe{constructor(t,e){super(Lt(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 ue}targets(){return pe("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()+")"}}Rt(Xe,e),ct({Container:{gradient(...t){return this.defs().gradient(...t)}},Defs:{gradient:zt(function(t,e){return this.put(new Xe(t)).update(e)})}}),Pt(Xe,"Gradient");class Ye extends Oe{constructor(t,e=t){super(Lt("pattern",t),e)}attr(t,e,n){return"transform"===t&&(t="patternTransform"),super.attr(t,e,n)}bbox(){return new ue}targets(){return pe("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()+")"}}ct({Container:{pattern(...t){return this.defs().pattern(...t)}},Defs:{pattern:zt(function(t,e,n){return this.put(new Ye).update(n).attr({x:0,y:0,width:t,height:e,patternUnits:"userSpaceOnUse"})})}}),Pt(Ye,"Pattern");class $e extends We{constructor(t,e=t){super(Lt("image",t),e)}load(t,e){if(!t)return this;const n=new Mt.window.Image;return we(n,"load",function(t){const r=this.parent(Ye);0===this.width()&&0===this.height()&&this.size(n.width,n.height),r instanceof Ye&&0===r.width()&&0===r.height()&&r.size(this.width(),this.height()),"function"==typeof e&&e.call(this,t)},this),we(n,"load error",function(){be(n)}),this.attr("href",n.src=t,St)}}var Qe;Qe=function(t,e,n){return"fill"!==t&&"stroke"!==t||Zt.test(e)&&(e=n.root().defs().image(e)),e instanceof $e&&(e=n.root().defs().pattern(0,0,t=>{t.add(e)})),e},Ae.push(Qe),ct({Container:{image:zt(function(t,e){return this.put(new $e).size(0,0).load(t,e)})}}),Pt($e,"Image");class Ze extends ke{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 ue(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(Jt).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){oe.isMatrixLike(t)||(t=new oe(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 Je=Ze;function Ke(t){return null==t?this.bbox().x:this.move(t,this.bbox().y)}function tn(t){return null==t?this.bbox().y:this.move(this.bbox().x,t)}function en(t){const e=this.bbox();return null==t?e.width:this.size(t,e.height)}function nn(t){const e=this.bbox();return null==t?e.height:this.size(e.width,t)}class rn extends We{constructor(t,e=t){super(Lt("line",t),e)}array(){return new Ze([[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 Ze(t).toLine(),this.attr(t))}size(t,e){const n=vt(this,t,e);return this.attr(this.array().size(n.width,n.height).toLine())}}Rt(rn,i),ct({Container:{line:zt(function(...t){return rn.prototype.plot.apply(this.put(new rn),null!=t[0]?t:[0,0,0,0])})}}),Pt(rn,"Line");class sn extends Oe{constructor(t,e=t){super(Lt("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 on(t,e){return function(n){return null==n?this[t]:(this[t]=n,e&&e.call(this),this)}}ct({Container:{marker(...t){return this.defs().marker(...t)}},Defs:{marker:zt(function(t,e,n){return this.put(new sn).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 sn?arguments[1]:this.defs().marker(e,n,r),this.attr(i,t)}}}),Pt(sn,"Marker");const an={"-":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 hn{done(){return!1}}class un extends hn{constructor(t=">"){super(),this.ease=an[t]||t}step(t,e,n){return"number"!=typeof t?n<1?t:e:t+(e-t)*this.ease(n)}}class ln extends hn{constructor(t){super(),this.stepper=t}done(t){return t.done}step(t,e,n,r){return this.stepper(t,e,n,r)}}function cn(){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}Rt(class extends ln{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:on("_duration",cn),overshoot:on("_overshoot",cn)}),Rt(class extends ln{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:on("_windup"),p:on("P"),i:on("I"),d:on("D")});const dn={M:2,L:2,H:1,V:1,C:6,S:4,Q:4,T:2,A:7,Z:0},fn={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]]}},pn="mlhvqtcsaz".split("");for(let t=0,e=pn.length;t<e;++t)fn[pn[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 fn[t](e,n,r)}}(pn[t].toUpperCase());function mn(t){return t.segment.length&&t.segment.length-1===dn[t.segment[0].toUpperCase()]}function gn(t,e){t.inNumber&&yn(t,!1);const n=Kt.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 yn(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,mn(t)&&vn(t)}function vn(t){t.inSegment=!1,t.absolute&&(t.segment=function(t){const e=t.segment[0];return fn[e](t.segment.slice(1),t.p,t.p0)}(t)),t.segments.push(t.segment)}function wn(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 bn(t){return"E"===t.lastToken.toUpperCase()}const xn=new Set([" ",",","\t","\n","\r","\f"]);class _n extends ke{bbox(){return ae().path.setAttribute("d",this.toString()),new ue(ae.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 ie,p:new ie};for(;i.lastToken=r,r=t.charAt(n++);)if(i.inSegment||!gn(i,r))if("."!==r)if(isNaN(parseInt(r)))if(xn.has(r))i.inNumber&&yn(i,!1);else if("-"!==r&&"+"!==r)if("E"!==r.toUpperCase()){if(Kt.test(r)){if(i.inNumber)yn(i,!1);else{if(!mn(i))throw new Error("parser Error");vn(i)}--n}}else i.number+=r,i.hasExponent=!0;else{if(i.inNumber&&!bn(i)){yn(i,!1),--n;continue}i.number+=r,i.inNumber=!0}else{if("0"===i.number||wn(i)){i.inNumber=!0,i.number=r,yn(i,!0);continue}i.inNumber=!0,i.number+=r}else{if(i.pointSeen||i.hasExponent){yn(i,!1),--n;continue}i.inNumber=!0,i.pointSeen=!0,i.number+=r}return i.inNumber&&yn(i,!1),i.inSegment&&mn(i)&&vn(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 Nn=t=>{const e=typeof t;return"number"===e?Se:"string"===e?re.isColor(t)?re:Jt.test(t)?Kt.test(t)?_n:ke:Ft.test(t)?Se:Sn:Cn.indexOf(t.constructor)>-1?t.constructor:Array.isArray(t)?ke:"object"===e?En:Sn};class kn{constructor(t){this._stepper=t||new un("-"),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(Nn(t));let e=new this._type(t);return this._type===re&&(e=this._to?e[this._to[4]]():this._from?e[this._from[4]]():e),this._type===En&&(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 Sn{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 Mn{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,Mn.defaults,t),this}toArray(){const t=this;return[t.scaleX,t.scaleY,t.shear,t.rotate,t.translateX,t.translateY,t.originX,t.originY]}}Mn.defaults={scaleX:1,scaleY:1,shear:0,rotate:0,translateX:0,translateY:0,originX:0,originY:0};const An=(t,e)=>t[0]<e[0]?-1:t[0]>e[0]?1:0;class En{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]===re&&t[n+7]!==e[n+7]){const e=t[n+7],r=new re(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=Nn(t[n]),i=new r(t[n]).toArray();e.push([n,r,i.length,...i])}return e.sort(An),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 Cn=[Sn,Mn,En];class Tn extends We{constructor(t,e=t){super(Lt("path",t),e)}array(){return this._array||(this._array=new _n(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 _n(t))}size(t,e){const n=vt(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 On(){return this._array||(this._array=new Ze(this.attr("points")))}function Ln(){return delete this._array,this}function Wn(t,e){return this.attr("points",this.array().move(t,e))}function jn(t){return null==t?this.array():this.clear().attr("points","string"==typeof t?t:this._array=new Ze(t))}function Pn(t,e){const n=vt(this,t,e);return this.attr("points",this.array().size(n.width,n.height))}Tn.prototype.MorphArray=_n,ct({Container:{path:zt(function(t){return this.put(new Tn).plot(t||new _n)})}}),Pt(Tn,"Path");class Dn extends We{constructor(t,e=t){super(Lt("polygon",t),e)}}ct({Container:{polygon:zt(function(t){return this.put(new Dn).plot(t||new Ze)})}}),Rt(Dn,i),Rt(Dn,s),Pt(Dn,"Polygon");class Bn extends We{constructor(t,e=t){super(Lt("polyline",t),e)}}ct({Container:{polyline:zt(function(t){return this.put(new Bn).plot(t||new Ze)})}}),Rt(Bn,i),Rt(Bn,s),Pt(Bn,"Polyline");class In extends We{constructor(t,e=t){super(Lt("rect",t),e)}}Rt(In,{rx:je,ry:Pe}),ct({Container:{rect:zt(function(t,e){return this.put(new In).size(t,e)})}}),Pt(In,"Rect");class Rn{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 zn={nextDraw:null,frames:new Rn,timeouts:new Rn,immediates:new Rn,timer:()=>Mt.window.performance||Mt.window.Date,transforms:[],frame(t){const e=zn.frames.push({run:t});return null===zn.nextDraw&&(zn.nextDraw=Mt.window.requestAnimationFrame(zn._draw)),e},timeout(t,e){e=e||0;const n=zn.timer().now()+e,r=zn.timeouts.push({run:t,time:n});return null===zn.nextDraw&&(zn.nextDraw=Mt.window.requestAnimationFrame(zn._draw)),r},immediate(t){const e=zn.immediates.push(t);return null===zn.nextDraw&&(zn.nextDraw=Mt.window.requestAnimationFrame(zn._draw)),e},cancelFrame(t){null!=t&&zn.frames.remove(t)},clearTimeout(t){null!=t&&zn.timeouts.remove(t)},cancelImmediate(t){null!=t&&zn.immediates.remove(t)},_draw(t){let e=null;const n=zn.timeouts.last();for(;(e=zn.timeouts.shift())&&(t>=e.time?e.run():zn.timeouts.push(e),e!==n););let r=null;const i=zn.frames.last();for(;r!==i&&(r=zn.frames.shift());)r.run(t);let s=null;for(;s=zn.immediates.shift();)s();zn.nextDraw=zn.timeouts.first()||zn.frames.first()?Mt.window.requestAnimationFrame(zn._draw):null}},Fn=zn,qn=function(t){const e=t.start,n=t.runner.duration();return{start:e,duration:n,end:e+n,runner:t.runner}},Un=function(){const t=Mt.window;return(t.performance||t.Date).now()};class Vn extends xe{constructor(t=Un){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(qn);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 Fn.cancelFrame(this._nextFrame),this._nextFrame=null,t?this._stepImmediate():(this._paused||(this._nextFrame=Fn.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)}}ct({Element:{timeline:function(t){return null==t?(this._timeline=this._timeline||new Vn,this._timeline):(this._timeline=t,this)}}});class Gn extends xe{constructor(t){super(),this.id=Gn.id++,t="function"==typeof(t=null==t?400:t)?new ln(t):t,this._element=null,this._timeline=null,this.done=!1,this._queue=[],this._duration="number"==typeof t&&t,this._isDeclarative=t instanceof ln,this._stepper=this._isDeclarative?t:new un,this._history={},this.enabled=!0,this._time=0,this._lastTime=0,this._reseted=!0,this.transforms=new oe,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 hn||(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=Gn.sanitise(t,e,n),i=new Gn(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 oe,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 un(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)},h=i*(r+n)-r;return a=e<=0?Math.round(t(1e-5)):e<h?t(e):Math.round(t(h-1e-5)),a}const h=Math.floor(this.loops()),u=s&&h%2==0;return a=h+(u&&!o||o&&u?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||_e,runner:e||_e,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 Vn||(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 oe,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}}Gn.id=0;class Hn{constructor(t=new oe,e=-1,n=!0){this.transforms=t,this.id=e,this.done=n}clearTransformsFromQueue(){}}Rt([Gn,Hn],{mergeWith(t){return new Hn(t.transforms.lmultiply(this.transforms),t.id)}});const Xn=(t,e)=>t.lmultiplyO(e),Yn=t=>t.transforms;function $n(){const t=this._transformationRunners.runners.map(Yn).reduce(Xn,new oe);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 Hn).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}}ct({Element:{animate(t,e,n){const r=Gn.sanitise(t,e,n),i=this.timeline();return new Gn(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(Yn).reduce(Xn,new oe)},_addRunner(t){this._transformationRunners.add(t),Fn.cancelImmediate(this._frameId),this._frameId=Fn.immediate($n.bind(this))},_prepareRunner(){null==this._frameId&&(this._transformationRunners=(new Qn).add(new Hn(new oe(this))))}}}),Rt(Gn,{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 kn(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 En(i.from()).valueOf();Object.assign(n,e),i.from(n)}const h=new En(i.to()).valueOf();Object.assign(h,e),i.to(h),s=n,r=e}),this._rememberMorpher(t,i),this},zoom(t,e){if(this._tryRetarget("zoom",t,e))return this;let n=new kn(this._stepper).to(new Se(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=oe.isMatrixLike(t);n=null!=t.affine?t.affine:null!=n?n:!r;const i=new kn(this._stepper).type(n?Mn:oe);let s,o,a,h,u;return this.queue(function(){o=o||this.element(),s=s||wt(t,o),u=new oe(e?void 0:o),o._addRunner(this),e||o._clearTransformRunnersBefore(this)},function(l){e||this.clearTransform();const{x:c,y:d}=new ie(s).transform(o._currentTransform(this));let f=new oe({...t,origin:[c,d]}),p=this._isDeclarative&&a?a:u;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&&h&&(p.rotate=h)),i.from(p),i.to(f);const m=i.at(l);return h=m.rotate,a=new oe(m),this.addTransform(a),o._addRunner(this),i.done()},function(e){(e.origin||"center").toString()!==(t.origin||"center").toString()&&(s=wt(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 Se(e),this._tryRetarget(t,e))return this;const n=new kn(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 Se(t))}),this._rememberMorpher(t,n),this},_queueObject(t,e){if(this._tryRetarget(t,e))return this;const n=new kn(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 Se(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 kn(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 ue(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)}}),Rt(Gn,{rx:je,ry:Pe,from:Ge,to:He}),Pt(Gn,"Runner");class Zn extends Oe{constructor(t,e=t){super(Lt("svg",t),e),this.namespace()}defs(){return this.isRoot()?Wt(this.node.querySelector("defs"))||this.put(new Le):this.root().defs()}isRoot(){return!this.node.parentNode||!(this.node.parentNode instanceof Mt.window.SVGElement)&&"#document-fragment"!==this.node.parentNode.nodeName}namespace(){return this.isRoot()?this.attr({xmlns:Nt,version:"1.1"}).attr("xmlns:xlink",St,kt):this.root().namespace()}removeNamespace(){return this.attr({xmlns:null,version:null}).attr("xmlns:xlink",null,kt).attr("xmlns:svgjs",null,kt)}root(){return this.isRoot()?this:super.root()}}ct({Container:{nested:zt(function(){return this.put(new Zn)})}}),Pt(Zn,"Svg",!0);class Jn extends Oe{constructor(t,e=t){super(Lt("symbol",t),e)}}function Kn(t){return!1===this._build&&this.clear(),this.node.appendChild(Mt.document.createTextNode(t)),this}function tr(){return this.node.getComputedTextLength()}function er(t,e=this.bbox()){return null==t?e.x:this.attr("x",this.attr("x")+t-e.x)}function nr(t,e=this.bbox()){return null==t?e.y:this.attr("y",this.attr("y")+t-e.y)}function rr(t,e,n=this.bbox()){return this.x(t,n).y(e,n)}function ir(t,e=this.bbox()){return null==t?e.cx:this.attr("x",this.attr("x")+t-e.cx)}function sr(t,e=this.bbox()){return null==t?e.cy:this.attr("y",this.attr("y")+t-e.cy)}function or(t,e,n=this.bbox()){return this.cx(t,n).cy(e,n)}function ar(t){return this.attr("x",t)}function hr(t){return this.attr("y",t)}function ur(t,e){return this.ax(t).ay(e)}function lr(t){return this._build=!!t,this}ct({Container:{symbol:zt(function(){return this.put(new Jn)})}}),Pt(Jn,"Symbol");class cr extends We{constructor(t,e=t){super(Lt("text",t),e),this.dom.leading=this.dom.leading??new Se(1.3),this._rebuild=!0,this._build=!1}leading(t){return null==t?this.dom.leading:(this.dom.leading=new Se(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(xt(this.node))return;const i=Mt.window.getComputedStyle(this.node).getPropertyValue("font-size"),s=n*new Se(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 Se(t.leading||1.3),this}writeDataToDom(){return _t(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||xt(e[r])?0===r&&(n=r+1):(r!==n&&3!==e[r].nodeType&&!0===Wt(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()}}Rt(cr,o),ct({Container:{text:zt(function(t=""){return this.put(new cr).text(t)}),plain:zt(function(t=""){return this.put(new cr).plain(t)})}}),Pt(cr,"Text");class dr extends We{constructor(t,e=t){super(Lt("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 cr))return this;const e=t.index(this),n=Mt.window.getComputedStyle(this.node).getPropertyValue("font-size"),r=t.dom.leading*new Se(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)}}Rt(dr,o),ct({Tspan:{tspan:zt(function(t=""){const e=new dr;return this._build||this.clear(),this.put(e).text(t)})},Text:{newLine:function(t=""){return this.tspan(t).newLine()}}}),Pt(dr,"Tspan");class fr extends We{constructor(t,e=t){super(Lt("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 Se(t).divide(2))}}Rt(fr,{x:De,y:Be,cx:Ie,cy:Re,width:ze,height:Fe}),ct({Container:{circle:zt(function(t=0){return this.put(new fr).size(t).move(0,0)})}}),Pt(fr,"Circle");class pr extends Oe{constructor(t,e=t){super(Lt("clipPath",t),e)}remove(){return this.targets().forEach(function(t){t.unclip()}),super.remove()}targets(){return pe("svg [clip-path*="+this.id()+"]")}}ct({Container:{clip:zt(function(){return this.defs().put(new pr)})},Element:{clipper(){return this.reference("clip-path")},clipWith(t){const e=t instanceof pr?t:this.parent().clip().add(t);return this.attr("clip-path","url(#"+e.id()+")")},unclip(){return this.attr("clip-path",null)}}}),Pt(pr,"ClipPath");class mr extends Ce{constructor(t,e=t){super(Lt("foreignObject",t),e)}}function gr(t,e){return this.children().forEach(n=>{let r;try{r=n.node instanceof Mt.window.SVGSVGElement?new ue(n.attr(["x","y","width","height"])):n.bbox()}catch(t){return}const i=new oe(n),s=i.translate(t,e).transform(i.inverse()),o=new ie(r.x,r.y).transform(s);n.move(o.x,o.y)}),this}function yr(t){return this.dmove(t,0)}function vr(t){return this.dmove(0,t)}function wr(t,e=this.bbox()){return null==t?e.height:this.size(e.width,t,e)}function br(t=0,e=0,n=this.bbox()){const r=t-n.x,i=e-n.y;return this.dmove(r,i)}function xr(t,e,n=this.bbox()){const r=vt(this,t,e,n),i=r.width/n.width,s=r.height/n.height;return this.children().forEach(t=>{const e=new ie(n).transform(new oe(t).inverse());t.scale(i,s,e.x,e.y)}),this}function _r(t,e=this.bbox()){return null==t?e.width:this.size(t,e.height,e)}function Nr(t,e=this.bbox()){return null==t?e.x:this.move(t,e.y,e)}function kr(t,e=this.bbox()){return null==t?e.y:this.move(e.x,t,e)}ct({Container:{foreignObject:zt(function(t,e){return this.put(new mr).size(t,e)})}}),Pt(mr,"ForeignObject");class Sr extends Oe{constructor(t,e=t){super(Lt("g",t),e)}}Rt(Sr,a),ct({Container:{group:zt(function(){return this.put(new Sr)})}}),Pt(Sr,"G");class Mr extends Oe{constructor(t,e=t){super(Lt("a",t),e)}target(t){return this.attr("target",t)}to(t){return this.attr("href",t,St)}}Rt(Mr,a),ct({Container:{link:zt(function(t){return this.put(new Mr).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 Mr,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}}}),Pt(Mr,"A");class Ar extends Oe{constructor(t,e=t){super(Lt("mask",t),e)}remove(){return this.targets().forEach(function(t){t.unmask()}),super.remove()}targets(){return pe("svg [mask*="+this.id()+"]")}}ct({Container:{mask:zt(function(){return this.defs().put(new Ar)})},Element:{masker(){return this.reference("mask")},maskWith(t){const e=t instanceof Ar?t:this.parent().mask().add(t);return this.attr("mask","url(#"+e.id()+")")},unmask(){return this.attr("mask",null)}}}),Pt(Ar,"Mask");class Er extends Ce{constructor(t,e=t){super(Lt("stop",t),e)}update(t){return("number"==typeof t||t instanceof Se)&&(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 Se(t.offset)),this}}ct({Gradient:{stop:function(t,e,n){return this.put(new Er).update(t,e,n)}}}),Pt(Er,"Stop");class Cr extends Ce{constructor(t,e=t){super(Lt("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+=gt(t)+":"+e[t]+";";return n+="}",n}(t,e))}}ct("Dom",{style(t,e){return this.put(new Cr).rule(t,e)},fontface(t,e,n){return this.put(new Cr).font(t,e,n)}}),Pt(Cr,"Style");class Tr extends cr{constructor(t,e=t){super(Lt("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")}}ct({Container:{textPath:zt(function(t,e){return t instanceof cr||(t=this.text(t)),t.path(e)})},Text:{path:zt(function(t,e=!0){const n=new Tr;let r;if(t instanceof Tn||(t=this.defs().path(t)),n.attr("href","#"+t,St),e)for(;r=this.node.firstChild;)n.node.appendChild(r);return this.put(n)}),textPath(){return this.findOne("textPath")}},Path:{text:zt(function(t){return t instanceof cr||(t=(new cr).addTo(this.parent()).text(t)),t.path(this)}),targets(){return pe("svg textPath").filter(t=>(t.attr("href")||"").includes(this.id()))}}}),Tr.prototype.MorphArray=_n,Pt(Tr,"TextPath");class Or extends We{constructor(t,e=t){super(Lt("use",t),e)}use(t,e){return this.attr("href",(e||"")+"#"+t,St)}}ct({Container:{use:zt(function(t,e){return this.put(new Or).use(t,e)})}}),Pt(Or,"Use"),Rt([Zn,Jn,$e,Ye,sn],dt("viewbox")),Rt([rn,Bn,Dn,Tn],dt("marker")),Rt(cr,dt("Text")),Rt(Tn,dt("Path")),Rt(Le,dt("Defs")),Rt([cr,dr],dt("Tspan")),Rt([In,qe,Xe,Gn],dt("radius")),Rt(xe,dt("EventTarget")),Rt(Ee,dt("Dom")),Rt(Ce,dt("Element")),Rt(We,dt("Shape")),Rt([Oe,Ve],dt("Container")),Rt(Xe,dt("Gradient")),Rt(Gn,dt("Runner")),de.extend([...new Set(lt)]),function(t=[]){Cn.push(...[].concat(t))}([Se,re,ue,oe,ke,Ze,_n,ie]),Rt(Cn,{to(t){return(new kn).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 Lr,Wr,jr,Pr,Dr,Br,Ir,Rr,zr,Fr,qr,Ur,Vr,Gr,Hr,Xr,Yr,$r,Qr,Zr,Jr,Kr,ti,ei,ni,ri,ii,si,oi,ai,hi,ui,li,ci,di,fi,pi,mi,gi,yi,vi,wi,bi,xi,_i,Ni,ki,Si,Mi,Ai,Ei,Ci,Ti,Oi,Li,Wi,ji,Pi,Di,Bi,Ii,Ri,zi,Fi,qi,Ui,Vi,Gi,Hi,Xi,Yi,$i,Qi,Zi,Ji,Ki,ts,es,ns,rs,is,ss,os,as,hs,us,ls,cs,ds,fs,ps,ms,gs,ys,vs,ws,bs,xs=n(169),_s=n(726),Ns=n(692),ks=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},Ss=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 Ms{constructor(t){Lr.add(this),Wr.set(this,void 0),this.domNode=document.createElement("div"),jr.set(this,new As),Pr.set(this,document.createElement("div")),Dr.set(this,void 0),Br.set(this,void 0),Ir.set(this,document.createElement("div")),Rr.set(this,void 0),zr.set(this,void 0),Fr.set(this,void 0),qr.set(this,void 0),Ur.set(this,void 0),Vr.set(this,void 0),Gr.set(this,void 0),Hr.set(this,void 0),Xr.set(this,void 0),Yr.set(this,void 0),$r.set(this,void 0),Qr.set(this,void 0),ks(this,Wr,t,"f"),this.domNode.classList.add(_.lf),Ss(this,jr,"f").domNode.addEventListener("click",()=>this.domNode.classList.toggle(_.ho)),this.domNode.append(Ss(this,jr,"f").domNode),Ss(this,Pr,"f").classList.add(_.Qs),this.domNode.append(Ss(this,Pr,"f")),ks(this,Dr,new Es(t),"f"),Ss(this,Pr,"f").append(Ss(this,Dr,"f").domNode),ks(this,Br,new Cs(t),"f"),Ss(this,Pr,"f").append(Ss(this,Br,"f").domNode),Ss(this,Ir,"f").classList.add(_.eB),Ss(this,Pr,"f").append(Ss(this,Ir,"f")),t.selectedBases.addEventListener("change",()=>{document.body.contains(this.domNode)&&([...t.selectedBases].length>0?Ss(this,Lr,"m",Jr).call(this):Ss(this,Lr,"m",Kr).call(this))}),ks(this,Rr,new Ts(t),"f"),Ss(this,Ir,"f").append(Ss(this,Rr,"f").domNode),ks(this,zr,new Os(t),"f"),Ss(this,Ir,"f").append(Ss(this,zr,"f").domNode),ks(this,Fr,new Ls(t),"f"),Ss(this,Ir,"f").append(Ss(this,Fr,"f").domNode),ks(this,qr,new Ws(t),"f"),Ss(this,Ir,"f").append(Ss(this,qr,"f").domNode),ks(this,Ur,new js(t),"f"),Ss(this,Ir,"f").append(Ss(this,Ur,"f").domNode),ks(this,Vr,new Ps(t),"f"),Ss(this,Ir,"f").append(Ss(this,Vr,"f").domNode),ks(this,Gr,new Ds(t),"f"),Ss(this,Ir,"f").append(Ss(this,Gr,"f").domNode),ks(this,Hr,new Bs(t),"f"),Ss(this,Ir,"f").append(Ss(this,Hr,"f").domNode),ks(this,Xr,new Is(t),"f"),Ss(this,Ir,"f").append(Ss(this,Xr,"f").domNode),ks(this,Yr,new Fs(t),"f"),Ss(this,Ir,"f").append(Ss(this,Yr,"f").domNode),ks(this,$r,new qs(t),"f"),Ss(this,Ir,"f").append(Ss(this,$r,"f").domNode),ks(this,Qr,new Us(t),"f"),Ss(this,Ir,"f").append(Ss(this,Qr,"f").domNode)}refresh(){Ss(this,Lr,"a",Zr).forEach(t=>t.refresh()),[...Ss(this,Wr,"f").selectedBases].length>0?Ss(this,Lr,"m",Jr).call(this):Ss(this,Lr,"m",Kr).call(this)}}Wr=new WeakMap,jr=new WeakMap,Pr=new WeakMap,Dr=new WeakMap,Br=new WeakMap,Ir=new WeakMap,Rr=new WeakMap,zr=new WeakMap,Fr=new WeakMap,qr=new WeakMap,Ur=new WeakMap,Vr=new WeakMap,Gr=new WeakMap,Hr=new WeakMap,Xr=new WeakMap,Yr=new WeakMap,$r=new WeakMap,Qr=new WeakMap,Lr=new WeakSet,Zr=function(){return[Ss(this,Dr,"f"),Ss(this,Br,"f"),Ss(this,Rr,"f"),Ss(this,zr,"f"),Ss(this,Fr,"f"),Ss(this,qr,"f"),Ss(this,Ur,"f"),Ss(this,Vr,"f"),Ss(this,Gr,"f"),Ss(this,Hr,"f"),Ss(this,Xr,"f"),Ss(this,Yr,"f"),Ss(this,$r,"f"),Ss(this,Qr,"f")]},Jr=function(){Ss(this,Ir,"f").style.display="block"},Kr=function(){Ss(this,Ir,"f").style.display="none"};class As{constructor(){this.domNode=document.createElement("div"),ti.set(this,document.createElementNS("http://www.w3.org/2000/svg","svg")),ei.set(this,document.createElement("p")),this.domNode.classList.add(_.wx),Ss(this,ti,"f").classList.add(_.m9),Ss(this,ti,"f").setAttribute("viewBox","0 0 6 10"),Ss(this,ti,"f").setAttribute("width","6"),Ss(this,ti,"f").setAttribute("height","10"),Ss(this,ti,"f").innerHTML='\n <path\n d="M 1 1 L 5 5 L 1 9"\n stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"\n fill="none"\n ></path>\n ',this.domNode.append(Ss(this,ti,"f")),Ss(this,ei,"f").classList.add(_.aW),Ss(this,ei,"f").textContent="Bases",this.domNode.append(Ss(this,ei,"f"))}}ti=new WeakMap,ei=new WeakMap;class Es{constructor(t){ni.set(this,void 0),this.domNode=document.createElement("p"),ri.set(this,document.createElement("span")),ii.set(this,document.createElement("span")),ks(this,ni,t,"f"),this.domNode.classList.add(_.IU),Ss(this,ri,"f").style.fontWeight="700",this.domNode.append(Ss(this,ri,"f"),Ss(this,ii,"f")),Ss(this,ni,"f").selectedBases.addEventListener("change",()=>document.body.contains(this.domNode)?this.refresh():{}),this.refresh()}refresh(){let t=[...Ss(this,ni,"f").selectedBases].length;Ss(this,ri,"f").textContent=`${t}`,Ss(this,ii,"f").textContent=1==t?" base is selected.":" bases are selected."}}ni=new WeakMap,ri=new WeakMap,ii=new WeakMap;class Cs{constructor(t){si.add(this),oi.set(this,void 0),this.domNode=document.createElement("div"),ai.set(this,new E),hi.set(this,document.createElement("div")),ui.set(this,{All:new P("All",()=>Ss(this,si,"m",di).call(this)),None:new P("None",()=>Ss(this,si,"m",fi).call(this)),A:new P("A",()=>Ss(this,si,"m",pi).call(this,"A")),U:new P("U",()=>Ss(this,si,"m",pi).call(this,"U")),G:new P("G",()=>Ss(this,si,"m",pi).call(this,"G")),C:new P("C",()=>Ss(this,si,"m",pi).call(this,"C")),T:new P("T",()=>Ss(this,si,"m",pi).call(this,"T")),a:new P("a",()=>Ss(this,si,"m",pi).call(this,"a")),u:new P("u",()=>Ss(this,si,"m",pi).call(this,"u")),g:new P("g",()=>Ss(this,si,"m",pi).call(this,"g")),c:new P("c",()=>Ss(this,si,"m",pi).call(this,"c")),t:new P("t",()=>Ss(this,si,"m",pi).call(this,"t")),Outlined:new P("Outlined",()=>Ss(this,si,"m",mi).call(this)),Paired:new P("Paired",()=>Ss(this,si,"m",gi).call(this)),Unpaired:new P("Unpaired",()=>Ss(this,si,"m",yi).call(this))}),li.set(this,void 0),ks(this,oi,t,"f"),this.domNode.classList.add(_.vw),Ss(this,ai,"f").textContent="Select:",Ss(this,ai,"f").domNode.addEventListener("click",()=>Ss(this,si,"m",ci).call(this)),this.domNode.append(Ss(this,ai,"f").domNode);let e=document.createElement("div");Ns(e).css({marginTop:"1.5px",display:"flex",flexDirection:"column",gap:"6px"}),this.domNode.append(e);let n=document.createElement("div");Ns(n).css({display:"flex",flexDirection:"row",gap:"23px"}),n.append(...["All","None"].map(t=>Ss(this,ui,"f")[t].domNode)),e.append(n),Ns(Ss(this,hi,"f")).css({display:"flex",flexDirection:"column",gap:"6px"}),e.append(Ss(this,hi,"f")),Ss(this,hi,"f").style.display="none",Ss(this,ai,"f").caret.pointRight();let r=document.createElement("div");Ns(r).css({display:"flex",flexDirection:"row",gap:"17px"}),r.append(...["A","U","G","C","T"].map(t=>Ss(this,ui,"f")[t].domNode)),Ss(this,hi,"f").append(r);let i=document.createElement("div");Ns(i).css({display:"flex",flexDirection:"row",gap:"18px"}),i.append(...["a","u","g","c","t"].map(t=>Ss(this,ui,"f")[t].domNode)),Ss(this,hi,"f").append(i),Ss(this,hi,"f").append(Ss(this,ui,"f").Outlined.domNode);let s=document.createElement("div");Ns(s).css({display:"flex",flexDirection:"row",gap:"18px"}),s.append(...["Paired","Unpaired"].map(t=>Ss(this,ui,"f")[t].domNode)),Ss(this,hi,"f").append(s),t.selectedBases.addEventListener("change",()=>document.body.contains(this.domNode)?this.refresh():{}),t.selectedOutlines.addEventListener("change",()=>document.body.contains(this.domNode)?this.refresh():{}),ks(this,li,new MutationObserver(()=>document.body.contains(this.domNode)?this.refresh():{}),"f"),Ss(this,li,"f").observe(t.drawing.domNode,{childList:!0,subtree:!0}),this.refresh()}refresh(){let t=[...Ss(this,oi,"f").drawing.bases],e=new Set([...Ss(this,oi,"f").drawing.secondaryBonds].flatMap(t=>[t.base1,t.base2])),n=t.filter(t=>!e.has(t)),r=new Set(Ss(this,oi,"f").selectedBases),i=[...Ss(this,oi,"f").selectedOutlines];0==t.length?(Ss(this,ui,"f").All.disable(),Ss(this,ui,"f").All.tooltip.textContent="There are no bases in the drawing."):r.size==t.length?(Ss(this,ui,"f").All.disable(),Ss(this,ui,"f").All.tooltip.textContent="All bases are already selected."):(Ss(this,ui,"f").All.enable(),Ss(this,ui,"f").All.tooltip.textContent="Select all bases."),0==r.size?(Ss(this,ui,"f").None.disable(),Ss(this,ui,"f").None.tooltip.textContent="No bases are selected."):(Ss(this,ui,"f").None.enable(),Ss(this,ui,"f").None.tooltip.textContent="Deselect all bases."),["A","U","G","C","T","a","u","g","c","t"].forEach(e=>{let n=t.filter(t=>t.textContent==e),i=Ss(this,ui,"f")[e];0==n.length?(i.disable(),i.tooltip.textContent=`No bases have the letter "${e}".`):n.every(t=>r.has(t))?(i.disable(),i.tooltip.textContent=`All bases with the letter "${e}" are already selected.`):(i.enable(),i.tooltip.textContent=`Select all bases with the letter "${e}".`)}),0==i.length?(Ss(this,ui,"f").Outlined.disable(),Ss(this,ui,"f").Outlined.tooltip.textContent="No outlines are selected."):i.map(t=>t.owner).every(t=>r.has(t))?(Ss(this,ui,"f").Outlined.disable(),Ss(this,ui,"f").Outlined.tooltip.textContent="All bases outlined by the selected outlines are already selected."):(Ss(this,ui,"f").Outlined.enable(),Ss(this,ui,"f").Outlined.tooltip.textContent="Select bases outlined by the selected outlines."),0==e.size?(Ss(this,ui,"f").Paired.disable(),Ss(this,ui,"f").Paired.tooltip.textContent="There are no paired bases in the drawing."):[...e].every(t=>r.has(t))?(Ss(this,ui,"f").Paired.disable(),Ss(this,ui,"f").Paired.tooltip.textContent="All paired bases are already selected."):(Ss(this,ui,"f").Paired.enable(),Ss(this,ui,"f").Paired.tooltip.textContent="Select all paired bases."),0==n.length?(Ss(this,ui,"f").Unpaired.disable(),Ss(this,ui,"f").Unpaired.tooltip.textContent="There are no unpaired bases in the drawing."):n.every(t=>r.has(t))?(Ss(this,ui,"f").Unpaired.disable(),Ss(this,ui,"f").Unpaired.tooltip.textContent="All unpaired bases are already selected."):(Ss(this,ui,"f").Unpaired.enable(),Ss(this,ui,"f").Unpaired.tooltip.textContent="Select all unpaired bases.")}}oi=new WeakMap,ai=new WeakMap,hi=new WeakMap,ui=new WeakMap,li=new WeakMap,si=new WeakSet,ci=function(){let t="none"!=Ss(this,hi,"f").style.display;Ss(this,hi,"f").style.display=t?"none":"flex",t?Ss(this,ai,"f").caret.pointRight():Ss(this,ai,"f").caret.pointDown()},di=function(){Ss(this,oi,"f").addToSelected([...Ss(this,oi,"f").drawing.bases])},fi=function(){Ss(this,oi,"f").removeFromSelected([...Ss(this,oi,"f").drawing.bases])},pi=function(t){Ss(this,oi,"f").addToSelected([...Ss(this,oi,"f").drawing.bases].filter(e=>e.domNode.textContent==t))},mi=function(){Ss(this,oi,"f").addToSelected([...Ss(this,oi,"f").selectedOutlines].map(t=>t.owner))},gi=function(){Ss(this,oi,"f").addToSelected([...Ss(this,oi,"f").drawing.secondaryBonds].flatMap(t=>[t.base1,t.base2]))},yi=function(){let t=new Set([...Ss(this,oi,"f").drawing.secondaryBonds].flatMap(t=>[t.base1,t.base2]));Ss(this,oi,"f").addToSelected([...Ss(this,oi,"f").drawing.bases].filter(e=>!t.has(e)))};class Ts{constructor(t){vi.add(this),wi.set(this,void 0),this.domNode=document.createElement("div"),bi.set(this,document.createElement("p")),xi.set(this,new P),_i.set(this,new P),ks(this,wi,t,"f"),this.domNode.classList.add(_.Te),Ss(this,bi,"f").classList.add(_.QB),Ss(this,bi,"f").textContent="Send to:",this.domNode.append(Ss(this,bi,"f")),Ss(this,xi,"f").domNode.addEventListener("click",()=>Ss(this,vi,"m",Ni).call(this)),Ss(this,xi,"f").textContent="Front",Ss(this,xi,"f").domNode.style.marginLeft="26px",this.domNode.append(Ss(this,xi,"f").domNode),Ss(this,_i,"f").domNode.addEventListener("click",()=>Ss(this,vi,"m",ki).call(this)),Ss(this,_i,"f").textContent="Back",Ss(this,_i,"f").domNode.style.marginLeft="28px",this.domNode.append(Ss(this,_i,"f").domNode),t.selectedBases.addEventListener("change",()=>document.body.contains(this.domNode)?this.refresh():{}),this.refresh()}refresh(){Ss(this,vi,"m",Si).call(this),Ss(this,vi,"m",Mi).call(this)}}wi=new WeakMap,bi=new WeakMap,xi=new WeakMap,_i=new WeakMap,vi=new WeakSet,Ni=function(){let t=[...Ss(this,wi,"f").selectedBases];0!=t.length?(Ss(this,wi,"f").pushUndoStack(),t.forEach(t=>(0,_s.bringToFront)(t.domNode))):this.refresh()},ki=function(){let t=[...Ss(this,wi,"f").selectedBases];0!=t.length?(Ss(this,wi,"f").pushUndoStack(),t.forEach(t=>(0,_s.sendToBack)(t.domNode))):this.refresh()},Si=function(){0==[...Ss(this,wi,"f").selectedBases].length?(Ss(this,xi,"f").disable(),Ss(this,xi,"f").tooltip.textContent="No bases are selected."):(Ss(this,xi,"f").enable(),Ss(this,xi,"f").tooltip.textContent="Bring the selected bases to the front.")},Mi=function(){0==[...Ss(this,wi,"f").selectedBases].length?(Ss(this,_i,"f").disable(),Ss(this,_i,"f").tooltip.textContent="No bases are selected."):(Ss(this,_i,"f").enable(),Ss(this,_i,"f").tooltip.textContent="Send the selected bases to the back.")};class Os{constructor(t){Ai.add(this),Ei.set(this,void 0),Ci.set(this,new z({onSubmit:()=>Ss(this,Ai,"m",Oi).call(this)})),Ti.set(this,void 0),ks(this,Ei,t,"f"),ks(this,Ti,new Q("Text Content",Ss(this,Ci,"f").domNode),"f"),Ss(this,Ti,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/API/Node/textContent",this.domNode.style.marginTop="23px",this.domNode.style.alignSelf="start",Ss(this,Ei,"f").selectedBases.addEventListener("change",()=>document.body.contains(this.domNode)?this.refresh():{}),new MutationObserver(()=>document.body.contains(this.domNode)?this.refresh():{}).observe(Ss(this,Ei,"f").drawing.domNode,{characterData:!0,subtree:!0}),this.refresh()}get domNode(){return Ss(this,Ti,"f").domNode}refresh(){let t=[...Ss(this,Ei,"f").selectedBases];try{Ss(this,Ci,"f").domNode.value=(0,xs.consensusValue)(t.map(t=>{var e;return null!==(e=t.textContent)&&void 0!==e?e:""}))}catch(t){Ss(this,Ci,"f").domNode.value=""}}}Ei=new WeakMap,Ci=new WeakMap,Ti=new WeakMap,Ai=new WeakSet,Oi=function(){var t;let e=null!==(t=Ss(this,Ci,"f").domNode.value)&&void 0!==t?t:"";if(e=e.trim(),!e)return void this.refresh();let n=[...Ss(this,Ei,"f").selectedBases];0==n.length||n.every(t=>t.textContent===e)||(Ss(this,Ei,"f").pushUndoStack(),n.forEach(t=>t.maintainingCenterPoint(()=>t.textContent=e))),this.refresh()};class Ls{constructor(t){Li.set(this,void 0),Wi.set(this,void 0),ji.set(this,void 0),ks(this,Li,t,"f"),ks(this,Wi,new Hs(t,"fill"),"f"),ks(this,ji,new Q("Fill",Ss(this,Wi,"f").domNode),"f"),Ss(this,ji,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/fill",Ns(this.domNode).css({marginTop:"10px",alignSelf:"start"}),this.refresh()}get domNode(){return Ss(this,ji,"f").domNode}refresh(){Ss(this,Wi,"f").refresh()}}Li=new WeakMap,Wi=new WeakMap,ji=new WeakMap;class Ws{constructor(t){Pi.add(this),Di.set(this,void 0),Bi.set(this,new st),Ii.set(this,void 0),Ri.set(this,void 0),zi.set(this,void 0),ks(this,Di,t,"f"),Ss(this,Bi,"f").domNode.addEventListener("input",()=>Ss(this,Pi,"m",Fi).call(this)),ks(this,Ii,new ht("Fill Color",Ss(this,Bi,"f").domNode),"f"),Ns(this.domNode).css({marginTop:"12px",alignSelf:"start"}),Ss(this,Di,"f").selectedBases.addEventListener("change",()=>ks(this,Ri,void 0,"f")),Ss(this,Bi,"f").domNode.addEventListener("focus",()=>ks(this,zi,Ss(this,Bi,"f").domNode.value,"f")),Ss(this,Di,"f").selectedBases.addEventListener("change",()=>document.body.contains(this.domNode)?this.refresh():{}),new MutationObserver(()=>document.body.contains(this.domNode)?this.refresh():{}).observe(Ss(this,Di,"f").drawing.domNode,{attributes:!0,attributeFilter:["fill"],subtree:!0}),this.refresh()}get domNode(){return Ss(this,Ii,"f").domNode}refresh(){let t=[...Ss(this,Di,"f").selectedBases];if(0!=t.length)try{let e=t.map(t=>window.getComputedStyle(t.domNode).fill).map(t=>new re(t));Ss(this,Bi,"f").domNode.value=(0,xs.consensusValue)(e.map(t=>t.toHex().toLowerCase()))}catch(t){Ss(this,Bi,"f").domNode.value="#000000"}else Ss(this,Bi,"f").domNode.value="#000000"}}Di=new WeakMap,Bi=new WeakMap,Ii=new WeakMap,Ri=new WeakMap,zi=new WeakMap,Pi=new WeakSet,Fi=function(){if(Ss(this,Bi,"f").domNode.value===Ss(this,zi,"f"))return;let t=[...Ss(this,Di,"f").selectedBases];0!=t.length?(t.every(t=>{var e;return(null===(e=t.getAttribute("fill"))||void 0===e?void 0:e.toLowerCase())===Ss(this,Bi,"f").domNode.value.toLowerCase()})||((Ss(this,Di,"f").undoStack.isEmpty()||Ss(this,Di,"f").undoStack.peek()!==Ss(this,Ri,"f"))&&(Ss(this,Di,"f").pushUndoStack(),ks(this,Ri,Ss(this,Di,"f").undoStack.peek(),"f")),t.forEach(t=>t.setAttribute("fill",Ss(this,Bi,"f").domNode.value.toLowerCase()))),this.refresh()):this.refresh()};class js{constructor(t){qi.set(this,void 0),Ui.set(this,void 0),Vi.set(this,void 0),ks(this,qi,t,"f"),ks(this,Ui,new Hs(t,"fill-opacity"),"f"),ks(this,Vi,new Q("Fill Opacity",Ss(this,Ui,"f").domNode),"f"),Ss(this,Vi,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/fill-opacity",Ns(this.domNode).css({marginTop:"12px",alignSelf:"start"}),this.refresh()}get domNode(){return Ss(this,Vi,"f").domNode}refresh(){Ss(this,Ui,"f").refresh()}}qi=new WeakMap,Ui=new WeakMap,Vi=new WeakMap;class Ps{constructor(t){Gi.set(this,void 0),Hi.set(this,void 0),Xi.set(this,void 0),ks(this,Gi,t,"f"),ks(this,Hi,new Hs(t,"font-family"),"f"),ks(this,Xi,new Q("Font Family",Ss(this,Hi,"f").domNode),"f"),Ss(this,Xi,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/font-family",Ns(this.domNode).css({marginTop:"10px",alignSelf:"start"}),this.refresh()}get domNode(){return Ss(this,Xi,"f").domNode}refresh(){Ss(this,Hi,"f").refresh()}}Gi=new WeakMap,Hi=new WeakMap,Xi=new WeakMap;class Ds{constructor(t){Yi.set(this,void 0),$i.set(this,void 0),Qi.set(this,void 0),ks(this,Yi,t,"f"),ks(this,$i,new Hs(t,"font-size"),"f"),ks(this,Qi,new Q("Font Size",Ss(this,$i,"f").domNode),"f"),Ss(this,Qi,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/font-size",Ns(this.domNode).css({marginTop:"10px",alignSelf:"start"}),this.refresh()}get domNode(){return Ss(this,Qi,"f").domNode}refresh(){Ss(this,$i,"f").refresh()}}Yi=new WeakMap,$i=new WeakMap,Qi=new WeakMap;class Bs{constructor(t){Zi.set(this,void 0),Ji.set(this,void 0),Ki.set(this,void 0),ks(this,Zi,t,"f"),ks(this,Ji,new Hs(t,"font-weight"),"f"),ks(this,Ki,new Q("Font Weight",Ss(this,Ji,"f").domNode),"f"),Ss(this,Ki,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/font-weight",Ns(this.domNode).css({marginTop:"10px",alignSelf:"start"}),this.refresh()}get domNode(){return Ss(this,Ki,"f").domNode}refresh(){Ss(this,Ji,"f").refresh()}}Zi=new WeakMap,Ji=new WeakMap,Ki=new WeakMap;class Is{constructor(t){ts.add(this),es.set(this,void 0),ns.set(this,new K),rs.set(this,void 0),ks(this,es,t,"f"),Ss(this,ns,"f").domNode.addEventListener("change",()=>Ss(this,ts,"m",is).call(this)),ks(this,rs,new nt("Bold",Ss(this,ns,"f").domNode),"f"),Ns(this.domNode).css({marginTop:"12px",alignSelf:"start"}),Ss(this,es,"f").selectedBases.addEventListener("change",()=>document.body.contains(this.domNode)?this.refresh():{}),new MutationObserver(()=>document.body.contains(this.domNode)?this.refresh():{}).observe(Ss(this,es,"f").drawing.domNode,{attributes:!0,attributeFilter:["font-weight"],subtree:!0}),this.refresh()}get domNode(){return Ss(this,rs,"f").domNode}refresh(){let t=[...Ss(this,es,"f").selectedBases];0==t.length?Ss(this,ns,"f").domNode.checked=!1:Ss(this,ns,"f").domNode.checked=t.every(Rs)}}function Rs(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 zs(t){return!Rs(t)}es=new WeakMap,ns=new WeakMap,rs=new WeakMap,ts=new WeakSet,is=function(){let t=[...Ss(this,es,"f").selectedBases];0!=t.length?Ss(this,ns,"f").domNode.checked&&t.every(Rs)?this.refresh():Ss(this,ns,"f").domNode.checked||!t.every(zs)?(Ss(this,es,"f").pushUndoStack(),t.forEach(t=>{t.maintainingCenterPoint(()=>{Ss(this,ns,"f").domNode.checked&&zs(t)?t.setAttribute("font-weight","700"):!Ss(this,ns,"f").domNode.checked&&Rs(t)&&t.setAttribute("font-weight","400")})}),this.refresh(),Ss(this,ns,"f").domNode.blur()):this.refresh():this.refresh()};class Fs{constructor(t){ss.set(this,void 0),os.set(this,void 0),as.set(this,void 0),ks(this,ss,t,"f"),ks(this,os,new Hs(t,"font-style"),"f"),ks(this,as,new Q("Font Style",Ss(this,os,"f").domNode),"f"),Ss(this,as,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/font-style",Ns(this.domNode).css({marginTop:"12px",alignSelf:"start"}),this.refresh()}get domNode(){return Ss(this,as,"f").domNode}refresh(){Ss(this,os,"f").refresh()}}ss=new WeakMap,os=new WeakMap,as=new WeakMap;class qs{constructor(t){hs.set(this,void 0),us.set(this,void 0),ls.set(this,void 0),ks(this,hs,t,"f"),ks(this,us,new Hs(t,"text-decoration"),"f"),ks(this,ls,new Q("Text Decoration",Ss(this,us,"f").domNode),"f"),Ss(this,ls,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/text-decoration",Ns(this.domNode).css({marginTop:"10px",alignSelf:"start"}),this.refresh()}get domNode(){return Ss(this,ls,"f").domNode}refresh(){Ss(this,us,"f").refresh()}}hs=new WeakMap,us=new WeakMap,ls=new WeakMap;class Us{constructor(t){cs.add(this),ds.set(this,void 0),fs.set(this,new K),ps.set(this,void 0),ks(this,ds,t,"f"),Ss(this,fs,"f").domNode.addEventListener("change",()=>Ss(this,cs,"m",ms).call(this)),ks(this,ps,new nt("Underlined",Ss(this,fs,"f").domNode),"f"),Ns(this.domNode).css({marginTop:"12px",alignSelf:"start"}),Ss(this,ds,"f").selectedBases.addEventListener("change",()=>document.body.contains(this.domNode)?this.refresh():{}),new MutationObserver(()=>document.body.contains(this.domNode)?this.refresh():{}).observe(Ss(this,ds,"f").drawing.domNode,{attributes:!0,attributeFilter:["text-decoration"],subtree:!0}),this.refresh()}get domNode(){return Ss(this,ps,"f").domNode}refresh(){let t=[...Ss(this,ds,"f").selectedBases];0==t.length?Ss(this,fs,"f").domNode.checked=!1:Ss(this,fs,"f").domNode.checked=t.every(Vs)}}function Vs(t){let e=t.getAttribute("text-decoration");return null!==e&&e.split(/\s/).map(t=>t.toLowerCase()).includes("underline")}function Gs(t){return!Vs(t)}ds=new WeakMap,fs=new WeakMap,ps=new WeakMap,cs=new WeakSet,ms=function(){let t=[...Ss(this,ds,"f").selectedBases];0!=t.length?Ss(this,fs,"f").domNode.checked&&t.every(Vs)?this.refresh():Ss(this,fs,"f").domNode.checked||!t.every(Gs)?(Ss(this,ds,"f").pushUndoStack(),t.forEach(t=>{t.maintainingCenterPoint(()=>{Ss(this,fs,"f").domNode.checked&&Gs(t)?t.setAttribute("text-decoration","underline"):!Ss(this,fs,"f").domNode.checked&&Vs(t)&&t.setAttribute("text-decoration","")})}),this.refresh(),Ss(this,fs,"f").domNode.blur()):this.refresh():this.refresh()};class Hs{constructor(t,e){gs.add(this),ys.set(this,void 0),vs.set(this,void 0),ws.set(this,new z({onSubmit:()=>Ss(this,gs,"m",bs).call(this)})),ks(this,ys,t,"f"),ks(this,vs,e,"f"),Ss(this,ys,"f").selectedBases.addEventListener("change",()=>document.body.contains(this.domNode)?this.refresh():{}),new MutationObserver(()=>document.body.contains(this.domNode)?this.refresh():{}).observe(Ss(this,ys,"f").drawing.domNode,{attributes:!0,subtree:!0}),this.refresh()}get domNode(){return Ss(this,ws,"f").domNode}refresh(){let t=[...Ss(this,ys,"f").selectedBases];try{Ss(this,ws,"f").domNode.value=(0,xs.consensusValue)(t.map(t=>{var e;return null!==(e=t.getAttribute(Ss(this,vs,"f")))&&void 0!==e?e:""}))}catch(t){Ss(this,ws,"f").domNode.value=""}}}ys=new WeakMap,vs=new WeakMap,ws=new WeakMap,gs=new WeakSet,bs=function(){let t=Ss(this,ws,"f").domNode.value,e=[...Ss(this,ys,"f").selectedBases];0==e.length||e.every(e=>e.getAttribute(Ss(this,vs,"f"))===t)||(Ss(this,ys,"f").pushUndoStack(),e.forEach(e=>e.maintainingCenterPoint(()=>e.setAttribute(Ss(this,vs,"f"),t)))),this.refresh()};var Xs=n(924),Ys={};Ys.styleTagTransform=w(),Ys.setAttributes=m(),Ys.insert=f().bind(null,"head"),Ys.domAPI=c(),Ys.insertStyleElement=y(),u()(Xs.Ay,Ys),Xs.Ay&&Xs.Ay.locals&&Xs.Ay.locals;var $s=n(723),Qs={};Qs.styleTagTransform=w(),Qs.setAttributes=m(),Qs.insert=f().bind(null,"head"),Qs.domAPI=c(),Qs.insertStyleElement=y(),u()($s.Ay,Qs),$s.Ay&&$s.Ay.locals&&$s.Ay.locals;var Zs,Js=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 Ks{constructor(t,e){this.domNode=document.createElement("div"),Zs.set(this,document.createElement("p")),this.tooltip=new W.Tooltip(""),this.domNode.classList.add($s.kL),Js(this,Zs,"f").classList.add($s.Wu),!t||(this.textContent=t),!e||(this.onClick=e),this.domNode.append(Js(this,Zs,"f")),this.tooltip.owner=this.domNode}get textContent(){return Js(this,Zs,"f").textContent}set textContent(t){Js(this,Zs,"f").textContent=t}get onClick(){return Js(this,Zs,"f").onclick}set onClick(t){Js(this,Zs,"f").onclick=t}click(){Js(this,Zs,"f").click()}disable(){Js(this,Zs,"f").classList.add($s.r9)}enable(){Js(this,Zs,"f").classList.remove($s.r9)}isDisabled(){return Js(this,Zs,"f").classList.contains($s.r9)}isEnabled(){return!this.isDisabled()}}Zs=new WeakMap;var to,eo,no,ro,io,so,oo,ao,ho,uo,lo,co,fo,po,mo,go,yo,vo,wo,bo,xo,_o,No,ko,So,Mo,Ao,Eo,Co,To,Oo,Lo,Wo,jo,Po,Do,Bo,Io,Ro,zo,Fo,qo,Uo,Vo,Go,Ho,Xo,Yo,$o,Qo,Zo,Jo,Ko,ta,ea,na,ra,ia,sa,oa,aa,ha,ua,la,ca,da,fa,pa,ma,ga,ya,va,wa,ba,xa,_a,Na,ka,Sa,Ma,Aa,Ea,Ca,Ta,Oa,La,Wa,ja,Pa,Da,Ba,Ia,Ra,za,Fa,qa,Ua,Va=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},Ga=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 Ha{constructor(t){to.add(this),eo.set(this,void 0),this.domNode=document.createElement("div"),no.set(this,new E),ro.set(this,document.createElement("div")),io.set(this,void 0),so.set(this,document.createElement("div")),oo.set(this,void 0),ao.set(this,void 0),ho.set(this,void 0),uo.set(this,void 0),lo.set(this,void 0),co.set(this,void 0),fo.set(this,void 0),po.set(this,void 0),mo.set(this,void 0),go.set(this,void 0),yo.set(this,void 0),vo.set(this,void 0),wo.set(this,void 0),Va(this,eo,t,"f"),this.domNode.classList.add(Xs.qM),Ga(this,no,"f").textContent="Outlines",Ga(this,no,"f").domNode.addEventListener("click",()=>this.toggle()),this.domNode.append(Ga(this,no,"f").domNode),Ga(this,ro,"f").classList.add(Xs.Qs),this.domNode.append(Ga(this,ro,"f")),Va(this,io,new Xa(t),"f"),Ga(this,ro,"f").append(Ga(this,io,"f").domNode),Va(this,oo,new Ya(t),"f"),Ga(this,ro,"f").append(Ga(this,oo,"f").domNode),Va(this,ao,new $a(t),"f"),Ga(this,ro,"f").append(Ga(this,ao,"f").domNode),Va(this,ho,new Qa(t),"f"),Ga(this,ro,"f").append(Ga(this,ho,"f").domNode),Ga(this,so,"f").classList.add(Xs.eB),Ga(this,ro,"f").append(Ga(this,so,"f")),t.selectedOutlines.addEventListener("change",()=>{document.body.contains(this.domNode)&&([...t.selectedOutlines].length>0?Ga(this,to,"m",xo).call(this):Ga(this,to,"m",_o).call(this))}),Va(this,uo,new Za(t),"f"),Ga(this,so,"f").append(Ga(this,uo,"f").domNode),Va(this,lo,new Ja(t),"f"),Ga(this,so,"f").append(Ga(this,lo,"f").domNode),Va(this,co,new Ka(t),"f"),Ga(this,so,"f").append(Ga(this,co,"f").domNode),Va(this,fo,new th(t),"f"),Ga(this,so,"f").append(Ga(this,fo,"f").domNode),Va(this,po,new eh(t),"f"),Ga(this,so,"f").append(Ga(this,po,"f").domNode),Va(this,mo,new nh(t),"f"),Ga(this,so,"f").append(Ga(this,mo,"f").domNode),Va(this,go,new rh(t),"f"),Ga(this,so,"f").append(Ga(this,go,"f").domNode),Va(this,yo,new ih(t),"f"),Ga(this,so,"f").append(Ga(this,yo,"f").domNode),Va(this,vo,new sh(t),"f"),Ga(this,so,"f").append(Ga(this,vo,"f").domNode),Va(this,wo,new oh(t),"f"),Ga(this,so,"f").append(Ga(this,wo,"f").domNode)}isOpen(){return this.domNode.classList.contains(Xs.ho)}toggle(){this.isOpen()?(this.domNode.classList.remove(Xs.ho),Ga(this,no,"f").caret.pointRight()):(this.domNode.classList.add(Xs.ho),Ga(this,no,"f").caret.pointDown())}refresh(){Ga(this,to,"a",bo).forEach(t=>t.refresh()),[...Ga(this,eo,"f").selectedOutlines].length>0?Ga(this,to,"m",xo).call(this):Ga(this,to,"m",_o).call(this)}}eo=new WeakMap,no=new WeakMap,ro=new WeakMap,io=new WeakMap,so=new WeakMap,oo=new WeakMap,ao=new WeakMap,ho=new WeakMap,uo=new WeakMap,lo=new WeakMap,co=new WeakMap,fo=new WeakMap,po=new WeakMap,mo=new WeakMap,go=new WeakMap,yo=new WeakMap,vo=new WeakMap,wo=new WeakMap,to=new WeakSet,bo=function(){return[Ga(this,io,"f"),Ga(this,oo,"f"),Ga(this,ao,"f"),Ga(this,ho,"f"),Ga(this,uo,"f"),Ga(this,lo,"f"),Ga(this,co,"f"),Ga(this,fo,"f"),Ga(this,po,"f"),Ga(this,mo,"f"),Ga(this,go,"f"),Ga(this,yo,"f"),Ga(this,vo,"f"),Ga(this,wo,"f")]},xo=function(){Ga(this,so,"f").style.display="flex"},_o=function(){Ga(this,so,"f").style.display="none"};class Xa{constructor(t){No.set(this,void 0),this.domNode=document.createElement("p"),ko.set(this,document.createElement("span")),So.set(this,document.createElement("span")),Va(this,No,t,"f"),this.domNode.classList.add(Xs.vM),Ga(this,ko,"f").style.fontWeight="700",this.domNode.append(Ga(this,ko,"f"),Ga(this,So,"f")),Ga(this,No,"f").selectedOutlines.addEventListener("change",()=>document.body.contains(this.domNode)?this.refresh():{}),this.refresh()}refresh(){let t=[...Ga(this,No,"f").selectedOutlines].length;Ga(this,ko,"f").textContent=`${t}`,Ga(this,So,"f").textContent=1==t?" outline is selected.":" outlines are selected."}}No=new WeakMap,ko=new WeakMap,So=new WeakMap;class Ya{constructor(t){Mo.add(this),Ao.set(this,void 0),this.domNode=document.createElement("div"),Eo.set(this,document.createElement("p")),Co.set(this,new P),To.set(this,new P),Oo.set(this,new P),Lo.set(this,void 0),Va(this,Ao,t,"f"),this.domNode.classList.add(Xs.VX),Ga(this,Eo,"f").classList.add(Xs.iE),Ga(this,Eo,"f").textContent="Select:",this.domNode.append(Ga(this,Eo,"f")),Ga(this,Co,"f").domNode.addEventListener("click",()=>Ga(this,Mo,"m",Wo).call(this)),Ga(this,Co,"f").textContent="All",Ga(this,Co,"f").domNode.style.marginLeft="20px",this.domNode.append(Ga(this,Co,"f").domNode),Ga(this,To,"f").domNode.addEventListener("click",()=>Ga(this,Mo,"m",jo).call(this)),Ga(this,To,"f").textContent="Outlining",Ga(this,To,"f").domNode.style.marginLeft="17px",this.domNode.append(Ga(this,To,"f").domNode),Ga(this,Oo,"f").domNode.addEventListener("click",()=>Ga(this,Mo,"m",Po).call(this)),Ga(this,Oo,"f").textContent="None",Ga(this,Oo,"f").domNode.style.marginLeft="17px",this.domNode.append(Ga(this,Oo,"f").domNode),t.selectedOutlines.addEventListener("change",()=>document.body.contains(this.domNode)?this.refresh():{}),Va(this,Lo,new MutationObserver(()=>document.body.contains(this.domNode)?this.refresh():{}),"f"),Ga(this,Lo,"f").observe(t.drawing.domNode,{childList:!0,subtree:!0}),this.refresh()}refresh(){Ga(this,Mo,"m",Do).call(this),Ga(this,Mo,"m",Bo).call(this),Ga(this,Mo,"m",Io).call(this)}}Ao=new WeakMap,Eo=new WeakMap,Co=new WeakMap,To=new WeakMap,Oo=new WeakMap,Lo=new WeakMap,Mo=new WeakSet,Wo=function(){let t=[...Ga(this,Ao,"f").drawing.outlines];Ga(this,Ao,"f").addToSelected(t)},jo=function(){let t=new Set(Ga(this,Ao,"f").selectedBases),e=[...Ga(this,Ao,"f").drawing.outlines];Ga(this,Ao,"f").addToSelected(e.filter(e=>t.has(e.owner)))},Po=function(){let t=[...Ga(this,Ao,"f").drawing.outlines];Ga(this,Ao,"f").removeFromSelected(t)},Do=function(){let t=[...Ga(this,Ao,"f").drawing.outlines],e=[...Ga(this,Ao,"f").selectedOutlines];0==t.length?(Ga(this,Co,"f").disable(),Ga(this,Co,"f").tooltip.textContent="There are no outlines in the drawing."):e.length==t.length?(Ga(this,Co,"f").disable(),Ga(this,Co,"f").tooltip.textContent="All outlines are already selected."):(Ga(this,Co,"f").enable(),Ga(this,Co,"f").tooltip.textContent="Select all outlines.")},Bo=function(){let t=[...Ga(this,Ao,"f").drawing.outlines],e=new Set(Ga(this,Ao,"f").selectedBases),n=t.filter(t=>e.has(t.owner)),r=new Set(Ga(this,Ao,"f").selectedOutlines);0==e.size?(Ga(this,To,"f").disable(),Ga(this,To,"f").tooltip.textContent="No bases are selected."):0==n.length?(Ga(this,To,"f").disable(),Ga(this,To,"f").tooltip.textContent="No selected bases are outlined."):n.every(t=>r.has(t))?(Ga(this,To,"f").disable(),Ga(this,To,"f").tooltip.textContent="All outlines outlining the selected bases are already selected."):(Ga(this,To,"f").enable(),Ga(this,To,"f").tooltip.textContent="Select outlines outlining the selected bases.")},Io=function(){0==[...Ga(this,Ao,"f").selectedOutlines].length?(Ga(this,Oo,"f").disable(),Ga(this,Oo,"f").tooltip.textContent="No outlines are selected."):(Ga(this,Oo,"f").enable(),Ga(this,Oo,"f").tooltip.textContent="Deselect all outlines.")};class $a{constructor(t){Ro.add(this),zo.set(this,void 0),this.domNode=document.createElement("div"),Fo.set(this,new Ks("Add",()=>Ga(this,Ro,"m",Ho).call(this))),qo.set(this,new K),Uo.set(this,new nt("Only add missing outlines",Ga(this,qo,"f").domNode)),Vo.set(this,void 0),Va(this,zo,t,"f"),this.domNode.style.marginTop="29px",this.domNode.style.display="flex",this.domNode.style.flexDirection="column",this.domNode.append(Ga(this,Fo,"f").domNode),Ga(this,qo,"f").domNode.checked=!0,Ga(this,Uo,"f").domNode.style.margin="10px 0px 0px 10px",Ga(this,Uo,"f").domNode.style.alignSelf="start",this.domNode.append(Ga(this,Uo,"f").domNode),t.selectedBases.addEventListener("change",()=>document.body.contains(this.domNode)?this.refresh():{}),Va(this,Vo,new MutationObserver(()=>document.body.contains(this.domNode)?this.refresh():{}),"f"),Ga(this,Vo,"f").observe(t.drawing.domNode,{childList:!0,subtree:!0}),Ga(this,qo,"f").domNode.addEventListener("change",()=>this.refresh()),this.refresh()}refresh(){let t=[...Ga(this,zo,"f").selectedBases],e=[...Ga(this,zo,"f").drawing.outlines],n=new Set(e.map(t=>t.owner)),r=t.filter(t=>!n.has(t));0==t.length?(Ga(this,Fo,"f").disable(),Ga(this,Fo,"f").tooltip.textContent="No bases are selected."):Ga(this,Ro,"a",Go)&&0==r.length?(Ga(this,Fo,"f").disable(),Ga(this,Fo,"f").tooltip.textContent="The selected bases are already outlined."):(Ga(this,Fo,"f").enable(),Ga(this,Fo,"f").tooltip.textContent="Outline the selected bases.")}}zo=new WeakMap,Fo=new WeakMap,qo=new WeakMap,Uo=new WeakMap,Vo=new WeakMap,Ro=new WeakSet,Go=function(){return Ga(this,qo,"f").domNode.checked},Ho=function(){let t=[...Ga(this,zo,"f").selectedBases];if(0==t.length)return;let e=[...Ga(this,zo,"f").drawing.outlines],n=new Set(e.map(t=>t.owner)),r=t.filter(t=>!n.has(t)),i=Ga(this,Ro,"a",Go)?r:t;if(0==i.length)return;Ga(this,zo,"f").pushUndoStack();let s=i.map(t=>Ga(this,zo,"f").drawing.outline(t));Ga(this,zo,"f").addToSelected(s),this.refresh()};class Qa{constructor(t){Xo.set(this,void 0),Yo.set(this,new Ks("Remove",()=>this.press())),Va(this,Xo,t,"f"),this.domNode.style.marginTop="18px",Ga(this,Xo,"f").selectedOutlines.addEventListener("change",()=>document.body.contains(this.domNode)?this.refresh():{}),this.refresh()}get domNode(){return Ga(this,Yo,"f").domNode}press(){let t=[...Ga(this,Xo,"f").selectedOutlines];0!=t.length?(Ga(this,Xo,"f").pushUndoStack(),t.forEach(t=>t.domNode.remove()),this.refresh()):this.refresh()}refresh(){0==[...Ga(this,Xo,"f").selectedOutlines].length?(Ga(this,Yo,"f").disable(),Ga(this,Yo,"f").tooltip.textContent="No outlines are selected."):(Ga(this,Yo,"f").enable(),Ga(this,Yo,"f").tooltip.textContent="Remove the selected outlines from the drawing.")}}Xo=new WeakMap,Yo=new WeakMap;class Za{constructor(t){$o.add(this),Qo.set(this,void 0),this.domNode=document.createElement("div"),Zo.set(this,document.createElement("p")),Jo.set(this,new P),Ko.set(this,new P),Va(this,Qo,t,"f"),this.domNode.classList.add(Xs.Te),Ga(this,Zo,"f").classList.add(Xs.QB),Ga(this,Zo,"f").textContent="Send to:",this.domNode.append(Ga(this,Zo,"f")),Ga(this,Jo,"f").domNode.addEventListener("click",()=>Ga(this,$o,"m",ta).call(this)),Ga(this,Jo,"f").textContent="Front",Ga(this,Jo,"f").domNode.style.marginLeft="24px",this.domNode.append(Ga(this,Jo,"f").domNode),Ga(this,Ko,"f").domNode.addEventListener("click",()=>Ga(this,$o,"m",ea).call(this)),Ga(this,Ko,"f").textContent="Back",Ga(this,Ko,"f").domNode.style.marginLeft="28px",this.domNode.append(Ga(this,Ko,"f").domNode),t.selectedOutlines.addEventListener("change",()=>document.body.contains(this.domNode)?this.refresh():{}),this.refresh()}refresh(){Ga(this,$o,"m",na).call(this),Ga(this,$o,"m",ra).call(this)}}Qo=new WeakMap,Zo=new WeakMap,Jo=new WeakMap,Ko=new WeakMap,$o=new WeakSet,ta=function(){let t=[...Ga(this,Qo,"f").selectedOutlines];0!=t.length?(Ga(this,Qo,"f").pushUndoStack(),t.forEach(t=>(0,_s.bringToFront)(t.domNode)),this.refresh()):this.refresh()},ea=function(){let t=[...Ga(this,Qo,"f").selectedOutlines];0!=t.length?(Ga(this,Qo,"f").pushUndoStack(),t.forEach(t=>(0,_s.sendToBack)(t.domNode)),this.refresh()):this.refresh()},na=function(){0==[...Ga(this,Qo,"f").selectedOutlines].length?(Ga(this,Jo,"f").disable(),Ga(this,Jo,"f").tooltip.textContent="No outlines are selected."):(Ga(this,Jo,"f").enable(),Ga(this,Jo,"f").tooltip.textContent="Bring the selected outlines to the front.")},ra=function(){0==[...Ga(this,Qo,"f").selectedOutlines].length?(Ga(this,Ko,"f").disable(),Ga(this,Ko,"f").tooltip.textContent="No outlines are selected."):(Ga(this,Ko,"f").enable(),Ga(this,Ko,"f").tooltip.textContent="Send selected outlines to the back.")};class Ja{constructor(t){ia.set(this,void 0),sa.set(this,void 0),oa.set(this,void 0),Va(this,ia,t,"f"),Va(this,sa,new ah(t,"r"),"f"),Va(this,oa,new Q("Radius",Ga(this,sa,"f").domNode),"f"),Ga(this,oa,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Attribute/r",this.domNode.style.marginTop="24px",this.domNode.style.alignSelf="start",this.refresh()}get domNode(){return Ga(this,oa,"f").domNode}refresh(){Ga(this,sa,"f").refresh()}}ia=new WeakMap,sa=new WeakMap,oa=new WeakMap;class Ka{constructor(t){aa.set(this,void 0),ha.set(this,void 0),ua.set(this,void 0),Va(this,aa,t,"f"),Va(this,ha,new ah(t,"fill"),"f"),Va(this,ua,new Q("Fill",Ga(this,ha,"f").domNode),"f"),Ga(this,ua,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Attribute/fill",Ns(this.domNode).css({marginTop:"10px",alignSelf:"start"}),this.refresh()}get domNode(){return Ga(this,ua,"f").domNode}refresh(){Ga(this,ha,"f").refresh()}}aa=new WeakMap,ha=new WeakMap,ua=new WeakMap;class th{constructor(t){la.add(this),ca.set(this,void 0),da.set(this,new st),fa.set(this,void 0),pa.set(this,void 0),ma.set(this,void 0),Va(this,ca,t,"f"),Ga(this,da,"f").domNode.addEventListener("input",()=>Ga(this,la,"m",ga).call(this)),Va(this,fa,new ht("Fill Color",Ga(this,da,"f").domNode),"f"),Ns(this.domNode).css({marginTop:"12px",alignSelf:"start"}),Ga(this,ca,"f").selectedOutlines.addEventListener("change",()=>Va(this,pa,void 0,"f")),Ga(this,da,"f").domNode.addEventListener("focus",()=>Va(this,ma,Ga(this,da,"f").domNode.value,"f")),Ga(this,ca,"f").selectedOutlines.addEventListener("change",()=>document.body.contains(this.domNode)?this.refresh():{}),new MutationObserver(()=>document.body.contains(this.domNode)?this.refresh():{}).observe(Ga(this,ca,"f").drawing.domNode,{attributes:!0,attributeFilter:["fill"],subtree:!0}),this.refresh()}get domNode(){return Ga(this,fa,"f").domNode}refresh(){let t=[...Ga(this,ca,"f").selectedOutlines];if(0!=t.length)try{let e=t.map(t=>window.getComputedStyle(t.domNode).fill).map(t=>new re(t));Ga(this,da,"f").domNode.value=(0,xs.consensusValue)(e.map(t=>t.toHex().toLowerCase()))}catch(t){Ga(this,da,"f").domNode.value="#000000"}else Ga(this,da,"f").domNode.value="#000000"}}ca=new WeakMap,da=new WeakMap,fa=new WeakMap,pa=new WeakMap,ma=new WeakMap,la=new WeakSet,ga=function(){if(Ga(this,da,"f").domNode.value===Ga(this,ma,"f"))return;let t=[...Ga(this,ca,"f").selectedOutlines];0!=t.length?(t.every(t=>{var e;return(null===(e=t.domNode.getAttribute("fill"))||void 0===e?void 0:e.toLowerCase())===Ga(this,da,"f").domNode.value.toLowerCase()})||((Ga(this,ca,"f").undoStack.isEmpty()||Ga(this,ca,"f").undoStack.peek()!==Ga(this,pa,"f"))&&(Ga(this,ca,"f").pushUndoStack(),Va(this,pa,Ga(this,ca,"f").undoStack.peek(),"f")),t.forEach(t=>t.domNode.setAttribute("fill",Ga(this,da,"f").domNode.value.toLowerCase()))),this.refresh()):this.refresh()};class eh{constructor(t){ya.set(this,void 0),va.set(this,void 0),wa.set(this,void 0),Va(this,ya,t,"f"),Va(this,va,new ah(t,"fill-opacity"),"f"),Va(this,wa,new Q("Fill Opacity",Ga(this,va,"f").domNode),"f"),Ga(this,wa,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Attribute/fill-opacity",Ns(this.domNode).css({marginTop:"12px",alignSelf:"start"}),this.refresh()}get domNode(){return Ga(this,wa,"f").domNode}refresh(){Ga(this,va,"f").refresh()}}ya=new WeakMap,va=new WeakMap,wa=new WeakMap;class nh{constructor(t){ba.set(this,void 0),xa.set(this,void 0),_a.set(this,void 0),Va(this,ba,t,"f"),Va(this,xa,new ah(t,"stroke"),"f"),Va(this,_a,new Q("Stroke",Ga(this,xa,"f").domNode),"f"),Ga(this,_a,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Attribute/stroke",Ns(this.domNode).css({marginTop:"10px",alignSelf:"start"}),this.refresh()}get domNode(){return Ga(this,_a,"f").domNode}refresh(){Ga(this,xa,"f").refresh()}}ba=new WeakMap,xa=new WeakMap,_a=new WeakMap;class rh{constructor(t){Na.add(this),ka.set(this,void 0),Sa.set(this,new st),Ma.set(this,void 0),Aa.set(this,void 0),Ea.set(this,void 0),Va(this,ka,t,"f"),Ga(this,Sa,"f").domNode.addEventListener("input",()=>Ga(this,Na,"m",Ca).call(this)),Va(this,Ma,new ht("Stroke Color",Ga(this,Sa,"f").domNode),"f"),Ns(this.domNode).css({marginTop:"12px",alignSelf:"start"}),Ga(this,ka,"f").selectedOutlines.addEventListener("change",()=>Va(this,Aa,void 0,"f")),Ga(this,Sa,"f").domNode.addEventListener("focus",()=>Va(this,Ea,Ga(this,Sa,"f").domNode.value,"f")),Ga(this,ka,"f").selectedOutlines.addEventListener("change",()=>document.body.contains(this.domNode)?this.refresh():{}),new MutationObserver(()=>document.body.contains(this.domNode)?this.refresh():{}).observe(Ga(this,ka,"f").drawing.domNode,{attributes:!0,attributeFilter:["stroke"],subtree:!0}),this.refresh()}get domNode(){return Ga(this,Ma,"f").domNode}refresh(){let t=[...Ga(this,ka,"f").selectedOutlines];if(0!=t.length)try{let e=t.map(t=>window.getComputedStyle(t.domNode).stroke).map(t=>new re(t));Ga(this,Sa,"f").domNode.value=(0,xs.consensusValue)(e.map(t=>t.toHex().toLowerCase()))}catch(t){Ga(this,Sa,"f").domNode.value="#000000"}else Ga(this,Sa,"f").domNode.value="#000000"}}ka=new WeakMap,Sa=new WeakMap,Ma=new WeakMap,Aa=new WeakMap,Ea=new WeakMap,Na=new WeakSet,Ca=function(){if(Ga(this,Sa,"f").domNode.value===Ga(this,Ea,"f"))return;let t=[...Ga(this,ka,"f").selectedOutlines];0!=t.length?(t.every(t=>{var e;return(null===(e=t.domNode.getAttribute("stroke"))||void 0===e?void 0:e.toLowerCase())===Ga(this,Sa,"f").domNode.value.toLowerCase()})||((Ga(this,ka,"f").undoStack.isEmpty()||Ga(this,ka,"f").undoStack.peek()!==Ga(this,Aa,"f"))&&(Ga(this,ka,"f").pushUndoStack(),Va(this,Aa,Ga(this,ka,"f").undoStack.peek(),"f")),t.forEach(t=>t.domNode.setAttribute("stroke",Ga(this,Sa,"f").domNode.value.toLowerCase()))),this.refresh()):this.refresh()};class ih{constructor(t){Ta.set(this,void 0),Oa.set(this,void 0),La.set(this,void 0),Va(this,Ta,t,"f"),Va(this,Oa,new ah(t,"stroke-opacity"),"f"),Va(this,La,new Q("Stroke Opacity",Ga(this,Oa,"f").domNode),"f"),Ga(this,La,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Attribute/stroke-opacity",Ns(this.domNode).css({marginTop:"12px",alignSelf:"start"}),this.refresh()}get domNode(){return Ga(this,La,"f").domNode}refresh(){Ga(this,Oa,"f").refresh()}}Ta=new WeakMap,Oa=new WeakMap,La=new WeakMap;class sh{constructor(t){Wa.set(this,void 0),ja.set(this,void 0),Pa.set(this,void 0),Va(this,Wa,t,"f"),Va(this,ja,new ah(t,"stroke-width"),"f"),Va(this,Pa,new Q("Stroke Width",Ga(this,ja,"f").domNode),"f"),Ga(this,Pa,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Attribute/stroke-width",Ns(this.domNode).css({marginTop:"10px",alignSelf:"start"}),this.refresh()}get domNode(){return Ga(this,Pa,"f").domNode}refresh(){Ga(this,ja,"f").refresh()}}Wa=new WeakMap,ja=new WeakMap,Pa=new WeakMap;class oh{constructor(t){Da.set(this,void 0),Ba.set(this,void 0),Ia.set(this,void 0),Va(this,Da,t,"f"),Va(this,Ba,new ah(t,"stroke-dasharray"),"f"),Va(this,Ia,new Q("Stroke Dash-Array",Ga(this,Ba,"f").domNode),"f"),Ga(this,Ia,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Attribute/stroke-dasharray",Ns(this.domNode).css({marginTop:"10px",alignSelf:"start"}),this.refresh()}get domNode(){return Ga(this,Ia,"f").domNode}refresh(){Ga(this,Ba,"f").refresh()}}Da=new WeakMap,Ba=new WeakMap,Ia=new WeakMap;class ah{constructor(t,e){Ra.add(this),za.set(this,void 0),Fa.set(this,void 0),qa.set(this,new z({onSubmit:()=>Ga(this,Ra,"m",Ua).call(this)})),Va(this,za,t,"f"),Va(this,Fa,e,"f"),Ga(this,za,"f").selectedOutlines.addEventListener("change",()=>document.body.contains(this.domNode)?this.refresh():{}),new MutationObserver(()=>document.body.contains(this.domNode)?this.refresh():{}).observe(Ga(this,za,"f").drawing.domNode,{attributes:!0,subtree:!0}),this.refresh()}get domNode(){return Ga(this,qa,"f").domNode}refresh(){let t=[...Ga(this,za,"f").selectedOutlines];try{Ga(this,qa,"f").domNode.value=(0,xs.consensusValue)(t.map(t=>{var e;return null!==(e=t.domNode.getAttribute(Ga(this,Fa,"f")))&&void 0!==e?e:""}))}catch(t){Ga(this,qa,"f").domNode.value=""}}}za=new WeakMap,Fa=new WeakMap,qa=new WeakMap,Ra=new WeakSet,Ua=function(){let t=Ga(this,qa,"f").domNode.value,e=[...Ga(this,za,"f").selectedOutlines];0==e.length||e.every(e=>e.domNode.getAttribute(Ga(this,Fa,"f"))===t)||(Ga(this,za,"f").pushUndoStack(),e.forEach(e=>e.domNode.setAttribute(Ga(this,Fa,"f"),t))),this.refresh()};var hh=n(313),uh={};uh.styleTagTransform=w(),uh.setAttributes=m(),uh.insert=f().bind(null,"head"),uh.domAPI=c(),uh.insertStyleElement=y(),u()(hh.Ay,uh),hh.Ay&&hh.Ay.locals&&hh.Ay.locals;var lh=n(933),ch={};ch.styleTagTransform=w(),ch.setAttributes=m(),ch.insert=f().bind(null,"head"),ch.domAPI=c(),ch.insertStyleElement=y(),u()(lh.Ay,ch),lh.Ay&&lh.Ay.locals&&lh.Ay.locals;var dh,fh,ph,mh,gh,yh,vh,wh,bh=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},xh=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 _h{constructor(t,e){dh.add(this),fh.set(this,void 0),ph.set(this,void 0),this.domNode=document.createElement("div"),mh.set(this,document.createElement("p")),this.buttons={Front:new P("Front",()=>xh(this,dh,"m",gh).call(this)),Back:new P("Back",()=>xh(this,dh,"m",yh).call(this))},vh.set(this,{refresh:[]}),bh(this,fh,t,"f"),bh(this,ph,e,"f"),this.domNode.classList.add(lh.Te),xh(this,mh,"f").classList.add(lh.Pf),xh(this,mh,"f").textContent="Send to:",this.domNode.append(xh(this,mh,"f")),this.buttons.Front.domNode.style.marginLeft="24px",this.domNode.append(this.buttons.Front.domNode),this.buttons.Back.domNode.style.marginLeft="28px",this.domNode.append(this.buttons.Back.domNode),t.addEventListener("change",()=>{!document.body.contains(this.domNode)||this.refresh()}),this.refresh()}refresh(){let t=[...xh(this,fh,"f")];0==t.length?this.buttons.Front.disable():this.buttons.Front.enable(),0==t.length?this.buttons.Back.disable():this.buttons.Back.enable(),xh(this,dh,"m",wh).call(this,"refresh")}addEventListener(t,e){xh(this,vh,"f")[t].push(e)}removeEventListener(t,e){xh(this,vh,"f")[t]=xh(this,vh,"f")[t].filter(t=>t!==e)}}fh=new WeakMap,ph=new WeakMap,mh=new WeakMap,vh=new WeakMap,dh=new WeakSet,gh=function(){let t=[...xh(this,fh,"f")];0!=t.length?(xh(this,ph,"f").pushUndoStack(),t.forEach(t=>(0,_s.bringToFront)(t.domNode)),this.refresh()):this.refresh()},yh=function(){let t=[...xh(this,fh,"f")];0!=t.length?(xh(this,ph,"f").pushUndoStack(),t.forEach(t=>(0,_s.sendToBack)(t.domNode)),this.refresh()):this.refresh()},wh=function(t){xh(this,vh,"f")[t].forEach(t=>t())};var Nh,kh,Sh,Mh,Ah,Eh,Ch,Th,Oh,Lh,Wh,jh,Ph,Dh,Bh,Ih,Rh,zh,Fh,qh,Uh,Vh,Gh,Hh,Xh,Yh,$h,Qh,Zh,Jh,Kh,tu,eu,nu,ru,iu,su,ou,au,hu,uu,lu,cu,du,fu,pu,mu,gu,yu,vu,wu,bu,xu,_u,Nu,ku,Su,Mu,Au,Eu=n(854),Cu=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},Tu=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 Ou{constructor(t){Nh.add(this),kh.set(this,void 0),this.domNode=document.createElement("div"),Sh.set(this,new E("Numberings",()=>this.toggle())),Mh.set(this,document.createElement("div")),Ah.set(this,void 0),Eh.set(this,void 0),Ch.set(this,void 0),Th.set(this,void 0),Oh.set(this,void 0),Cu(this,kh,t,"f"),this.domNode.classList.add(hh.HS),this.domNode.append(Tu(this,Sh,"f").domNode),Tu(this,Mh,"f").classList.add(hh.Qs),this.domNode.append(Tu(this,Mh,"f")),Cu(this,Ah,new Lu(t),"f"),Tu(this,Mh,"f").append(Tu(this,Ah,"f").domNode),Cu(this,Eh,new Wu(t),"f"),Tu(this,Mh,"f").append(Tu(this,Eh,"f").domNode),Cu(this,Ch,new ju(t),"f"),Tu(this,Mh,"f").append(Tu(this,Ch,"f").domNode),Cu(this,Th,new Pu(t),"f"),Tu(this,Mh,"f").append(Tu(this,Th,"f").domNode),Cu(this,Oh,new Du(t),"f"),Tu(this,Mh,"f").append(Tu(this,Oh,"f").domNode)}toggle(){this.isCollapsed()?this.expand():this.collapse()}isCollapsed(){return this.domNode.classList.contains(hh.yZ)}collapse(){this.domNode.classList.add(hh.yZ)}expand(){this.domNode.classList.remove(hh.yZ)}refresh(){Tu(this,Nh,"a",Lh).forEach(t=>t.refresh())}}kh=new WeakMap,Sh=new WeakMap,Mh=new WeakMap,Ah=new WeakMap,Eh=new WeakMap,Ch=new WeakMap,Th=new WeakMap,Oh=new WeakMap,Nh=new WeakSet,Lh=function(){return[Tu(this,Ah,"f"),Tu(this,Eh,"f"),Tu(this,Ch,"f"),Tu(this,Th,"f"),Tu(this,Oh,"f")]};class Lu{constructor(t){Wh.set(this,void 0),this.domNode=document.createElement("p"),jh.set(this,document.createElement("span")),Ph.set(this,document.createElement("span")),Cu(this,Wh,t,"f"),this.domNode.classList.add(hh.vM),Tu(this,jh,"f").style.fontWeight="700",this.domNode.append(Tu(this,jh,"f"),Tu(this,Ph,"f")),Tu(this,Wh,"f").selectedNumberings.addEventListener("change",()=>{!document.body.contains(this.domNode)||this.refresh()}),this.refresh()}refresh(){let t=[...Tu(this,Wh,"f").selectedNumberings].length;Tu(this,jh,"f").textContent=`${t}`,Tu(this,Ph,"f").textContent=1==t?" numbering is selected.":" numberings are selected."}}Wh=new WeakMap,jh=new WeakMap,Ph=new WeakMap;class Wu{constructor(t){Dh.add(this),Bh.set(this,void 0),this.domNode=document.createElement("div"),Ih.set(this,document.createElement("p")),Rh.set(this,{All:new P("All",()=>Tu(this,Dh,"m",Fh).call(this)),Numbering:new P("Numbering",()=>Tu(this,Dh,"m",qh).call(this)),None:new P("None",()=>Tu(this,Dh,"m",Uh).call(this))}),zh.set(this,void 0),Cu(this,Bh,t,"f"),this.domNode.classList.add(hh.vw),Tu(this,Ih,"f").classList.add(hh.KI),Tu(this,Ih,"f").textContent="Select:",this.domNode.append(Tu(this,Ih,"f")),Tu(this,Rh,"f").All.domNode.style.marginLeft="20px",Tu(this,Rh,"f").Numbering.domNode.style.marginLeft="17px",Tu(this,Rh,"f").None.domNode.style.marginLeft="17px",this.domNode.append(...["All","Numbering","None"].map(t=>Tu(this,Rh,"f")[t].domNode)),t.selectedNumberings.addEventListener("change",()=>{!document.body.contains(this.domNode)||this.refresh()}),Cu(this,zh,new MutationObserver(()=>{!document.body.contains(this.domNode)||this.refresh()}),"f"),Tu(this,zh,"f").observe(t.drawing.domNode,{childList:!0,subtree:!0}),this.refresh()}refresh(){let t=[...Tu(this,Bh,"f").drawing.numberings],e=new Set(Tu(this,Bh,"f").selectedNumberings);0==t.length?(Tu(this,Rh,"f").All.disable(),Tu(this,Rh,"f").All.tooltip.textContent="There are no numberings in the drawing."):e.size==t.length?(Tu(this,Rh,"f").All.disable(),Tu(this,Rh,"f").All.tooltip.textContent="All numberings are already selected."):(Tu(this,Rh,"f").All.enable(),Tu(this,Rh,"f").All.tooltip.textContent="Select all numberings.");let n=new Set(Tu(this,Bh,"f").selectedBases),r=t.filter(t=>n.has(t.owner));0==n.size?(Tu(this,Rh,"f").Numbering.disable(),Tu(this,Rh,"f").Numbering.tooltip.textContent="No bases are selected."):0==r.length?(Tu(this,Rh,"f").Numbering.disable(),Tu(this,Rh,"f").Numbering.tooltip.textContent="None of the selected bases are numbered."):r.every(t=>e.has(t))?(Tu(this,Rh,"f").Numbering.disable(),Tu(this,Rh,"f").Numbering.tooltip.textContent="All numberings numbering the selected bases are already selected."):(Tu(this,Rh,"f").Numbering.enable(),Tu(this,Rh,"f").Numbering.tooltip.textContent="Select numberings numbering the selected bases."),0==e.size?(Tu(this,Rh,"f").None.disable(),Tu(this,Rh,"f").None.tooltip.textContent="No numberings are selected."):(Tu(this,Rh,"f").None.enable(),Tu(this,Rh,"f").None.tooltip.textContent="Deselect all numberings.")}}Bh=new WeakMap,Ih=new WeakMap,Rh=new WeakMap,zh=new WeakMap,Dh=new WeakSet,Fh=function(){Tu(this,Bh,"f").addToSelected([...Tu(this,Bh,"f").drawing.numberings])},qh=function(){let t=new Set(Tu(this,Bh,"f").selectedBases);Tu(this,Bh,"f").addToSelected([...Tu(this,Bh,"f").drawing.numberings].filter(e=>t.has(e.owner)))},Uh=function(){Tu(this,Bh,"f").removeFromSelected([...Tu(this,Bh,"f").drawing.numberings])};class ju{constructor(t){Vh.add(this),Gh.set(this,void 0),this.domNode=document.createElement("div"),Hh.set(this,new Ks("Add",()=>Tu(this,Vh,"m",Qh).call(this))),Xh.set(this,new K),Yh.set(this,new nt("Only add missing numberings",Tu(this,Xh,"f").domNode)),$h.set(this,void 0),Cu(this,Gh,t,"f"),this.domNode.classList.add(hh.Ol),this.domNode.append(Tu(this,Hh,"f").domNode),Tu(this,Xh,"f").domNode.checked=!0,Tu(this,Yh,"f").domNode.style.margin="10px 0px 0px 10px",Tu(this,Yh,"f").domNode.style.alignSelf="start",this.domNode.append(Tu(this,Yh,"f").domNode),t.selectedBases.addEventListener("change",()=>{!document.body.contains(this.domNode)||this.refresh()}),Cu(this,$h,new MutationObserver(()=>{!document.body.contains(this.domNode)||this.refresh()}),"f"),Tu(this,$h,"f").observe(t.drawing.domNode,{childList:!0,subtree:!0}),Tu(this,Xh,"f").domNode.addEventListener("change",()=>this.refresh()),this.refresh()}refresh(){let t=[...Tu(this,Gh,"f").selectedBases],e=[...Tu(this,Gh,"f").drawing.numberings],n=new Set(e.map(t=>t.owner)),r=t.filter(t=>!n.has(t));0==t.length?(Tu(this,Hh,"f").disable(),Tu(this,Hh,"f").tooltip.textContent="No bases are selected."):Tu(this,Xh,"f").domNode.checked&&0==r.length?(Tu(this,Hh,"f").disable(),Tu(this,Hh,"f").tooltip.textContent="All selected bases are already numbered."):(Tu(this,Hh,"f").enable(),Tu(this,Hh,"f").tooltip.textContent="Number the selected bases.")}}Gh=new WeakMap,Hh=new WeakMap,Xh=new WeakMap,Yh=new WeakMap,$h=new WeakMap,Vh=new WeakSet,Qh=function(){let t=[...Tu(this,Gh,"f").drawing.bases],e=[...Tu(this,Gh,"f").selectedBases];if(0==e.length)return;let n=[...Tu(this,Gh,"f").drawing.numberings],r=new Set(n.map(t=>t.owner)),i=e.filter(t=>!r.has(t)),s=Tu(this,Xh,"f").domNode.checked?i:e;if(0==s.length)return;Tu(this,Gh,"f").pushUndoStack();let o=s.flatMap(e=>{let n=t.indexOf(e)+1;return Tu(this,Gh,"f").drawing.number(e,n)});Tu(this,Gh,"f").addToSelected(o),this.refresh()};class Pu{constructor(t){Zh.set(this,void 0),Jh.set(this,new Ks("Remove",()=>this.press())),Cu(this,Zh,t,"f"),this.domNode.style.marginTop="18px",Tu(this,Zh,"f").selectedOutlines.addEventListener("change",()=>{!document.body.contains(this.domNode)||this.refresh()}),this.refresh()}get domNode(){return Tu(this,Jh,"f").domNode}press(){let t=[...Tu(this,Zh,"f").selectedNumberings];0!=t.length?(Tu(this,Zh,"f").pushUndoStack(),t.forEach(t=>t.domNode.remove()),this.refresh()):this.refresh()}refresh(){0==[...Tu(this,Zh,"f").selectedNumberings].length?(Tu(this,Jh,"f").disable(),Tu(this,Jh,"f").tooltip.textContent="No numberings are selected."):(Tu(this,Jh,"f").enable(),Tu(this,Jh,"f").tooltip.textContent="Remove the selected numberings from the drawing.")}}Zh=new WeakMap,Jh=new WeakMap;class Du{constructor(t){Kh.add(this),tu.set(this,void 0),this.domNode=document.createElement("div"),eu.set(this,void 0),nu.set(this,void 0),ru.set(this,void 0),iu.set(this,void 0),Cu(this,tu,t,"f"),this.domNode.classList.add(hh.y1),t.selectedNumberings.addEventListener("change",()=>{document.body.contains(this.domNode)&&([...t.selectedNumberings].length>0?this.show():this.hide())}),Cu(this,eu,new Bu(t),"f"),this.domNode.append(Tu(this,eu,"f").domNode),Cu(this,nu,new Iu(t),"f"),this.domNode.append(Tu(this,nu,"f").domNode),Cu(this,ru,new Ru(t),"f"),this.domNode.append(Tu(this,ru,"f").domNode),Cu(this,iu,new Fu(t),"f"),this.domNode.append(Tu(this,iu,"f").domNode)}show(){this.domNode.style.display="flex"}hide(){this.domNode.style.display="none"}refresh(){Tu(this,Kh,"a",su).forEach(t=>t.refresh()),[...Tu(this,tu,"f").selectedNumberings].length>0?this.show():this.hide()}}tu=new WeakMap,eu=new WeakMap,nu=new WeakMap,ru=new WeakMap,iu=new WeakMap,Kh=new WeakSet,su=function(){return[Tu(this,eu,"f"),Tu(this,nu,"f"),Tu(this,ru,"f"),Tu(this,iu,"f")]};class Bu{constructor(t){ou.add(this),au.set(this,void 0),hu.set(this,void 0),Cu(this,au,t,"f");let e=t.selectedNumberings;Cu(this,hu,new _h(e,t),"f"),this.domNode.style.marginTop="26px",Tu(this,hu,"f").addEventListener("refresh",()=>Tu(this,ou,"m",uu).call(this)),this.refresh()}get domNode(){return Tu(this,hu,"f").domNode}refresh(){Tu(this,hu,"f").refresh()}}au=new WeakMap,hu=new WeakMap,ou=new WeakSet,uu=function(){let t=[...Tu(this,au,"f").selectedNumberings];Tu(this,hu,"f").buttons.Front.tooltip.textContent=0==t.length?"No numberings are selected.":"Bring the selected numberings to the front.",Tu(this,hu,"f").buttons.Back.tooltip.textContent=0==t.length?"No numberings are selected.":"Send the selected numberings to the back."};class Iu{constructor(t){lu.add(this),cu.set(this,void 0),du.set(this,new z({onSubmit:()=>Tu(this,lu,"m",pu).call(this)})),fu.set(this,void 0),Cu(this,cu,t,"f"),Cu(this,fu,new Q("Text Content",Tu(this,du,"f").domNode),"f"),Tu(this,fu,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/API/Node/textContent",this.domNode.style.marginTop="23px",this.domNode.style.alignSelf="start",Tu(this,cu,"f").selectedNumberings.addEventListener("change",()=>{!document.body.contains(this.domNode)||this.refresh()}),new MutationObserver(()=>{!document.body.contains(this.domNode)||this.refresh()}).observe(Tu(this,cu,"f").drawing.domNode,{characterData:!0,subtree:!0}),this.refresh()}get domNode(){return Tu(this,fu,"f").domNode}refresh(){let t=[...Tu(this,cu,"f").selectedNumberings];try{Tu(this,du,"f").domNode.value=(0,xs.consensusValue)(t.map(t=>t.domNode.textContent))}catch(t){Tu(this,du,"f").domNode.value=""}}}cu=new WeakMap,du=new WeakMap,fu=new WeakMap,lu=new WeakSet,pu=function(){var t;let e=null!==(t=Tu(this,du,"f").domNode.value)&&void 0!==t?t:"";if(e=e.trim(),!e)return void this.refresh();let n=[...Tu(this,cu,"f").selectedNumberings];0==n.length||n.every(t=>t.domNode.textContent===e)||(Tu(this,cu,"f").pushUndoStack(),n.forEach(t=>{t.domNode.textContent=e,t.displacement.magnitude+=1,t.displacement.magnitude-=1})),this.refresh()};class Ru{constructor(t){mu.add(this),gu.set(this,void 0),this.domNode=document.createElement("div"),yu.set(this,{x:new z({onSubmit:()=>Tu(this,mu,"m",wu).call(this,"x")}),y:new z({onSubmit:()=>Tu(this,mu,"m",wu).call(this,"y")}),magnitude:new z({onSubmit:()=>Tu(this,mu,"m",wu).call(this,"magnitude")}),direction:new z({onSubmit:()=>Tu(this,mu,"m",wu).call(this,"direction")})}),vu.set(this,void 0),Cu(this,gu,t,"f"),this.domNode.classList.add(hh.m2),Cu(this,vu,{x:new Q("X",Tu(this,yu,"f").x.domNode),y:new Q("Y",Tu(this,yu,"f").y.domNode),magnitude:new Q("Magnitude",Tu(this,yu,"f").magnitude.domNode),direction:new Q("Direction",Tu(this,yu,"f").direction.domNode)},"f"),zu.forEach(t=>{Tu(this,vu,"f")[t].domNode.style.marginTop="10px",Tu(this,vu,"f")[t].domNode.style.alignSelf="start"}),Tu(this,vu,"f").magnitude.domNode.style.marginTop="14px",this.domNode.append(...zu.map(t=>Tu(this,vu,"f")[t].domNode)),Tu(this,gu,"f").selectedNumberings.addEventListener("change",()=>{!document.body.contains(this.domNode)||this.refresh()}),new MutationObserver(()=>{!document.body.contains(this.domNode)||this.refresh()}).observe(Tu(this,gu,"f").drawing.domNode,{attributes:!0,attributeFilter:["data-displacement"],subtree:!0}),this.refresh()}refresh(){let t=[...Tu(this,gu,"f").selectedNumberings];zu.forEach(e=>{try{Tu(this,yu,"f")[e].domNode.value=`${(0,xs.consensusValue)(t.map(t=>t.displacement[e]))}`}catch(t){Tu(this,yu,"f")[e].domNode.value=""}})}}gu=new WeakMap,yu=new WeakMap,vu=new WeakMap,mu=new WeakSet,wu=function(t){let e=Number.parseFloat(Tu(this,yu,"f")[t].domNode.value);if(!(0,Eu.isFiniteNumber)(e))return void this.refresh();let n=[...Tu(this,gu,"f").selectedNumberings];0!=n.length?(n.every(n=>n.displacement[t]===e)||(Tu(this,gu,"f").pushUndoStack(),n.forEach(n=>n.displacement[t]=e)),this.refresh()):this.refresh()};const zu=["x","y","magnitude","direction"];class Fu{constructor(t){bu.set(this,void 0),xu.set(this,void 0),_u.set(this,void 0),Cu(this,bu,t,"f"),Cu(this,xu,new qu("fill",t),"f"),Cu(this,_u,new Q("Fill",Tu(this,xu,"f").domNode),"f"),Tu(this,_u,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/fill",this.domNode.style.marginTop="14px",this.domNode.style.alignSelf="start",this.refresh()}get domNode(){return Tu(this,_u,"f").domNode}refresh(){Tu(this,xu,"f").refresh()}}bu=new WeakMap,xu=new WeakMap,_u=new WeakMap;class qu{constructor(t,e){Nu.add(this),ku.set(this,void 0),Su.set(this,void 0),Mu.set(this,new z({onSubmit:()=>Tu(this,Nu,"m",Au).call(this)})),Cu(this,ku,t,"f"),Cu(this,Su,e,"f"),Tu(this,Su,"f").selectedNumberings.addEventListener("change",()=>{!document.body.contains(this.domNode)||this.refresh()}),new MutationObserver(()=>{!document.body.contains(this.domNode)||this.refresh()}).observe(Tu(this,Su,"f").drawing.domNode,{attributes:!0,subtree:!0}),this.refresh()}get domNode(){return Tu(this,Mu,"f").domNode}refresh(){let t=[...Tu(this,Su,"f").selectedNumberings];try{Tu(this,Mu,"f").domNode.value=(0,xs.consensusValue)(t.map(t=>{var e;return null!==(e=t.domNode.getAttribute(Tu(this,ku,"f")))&&void 0!==e?e:""}))}catch(t){Tu(this,Mu,"f").domNode.value=""}}}ku=new WeakMap,Su=new WeakMap,Mu=new WeakMap,Nu=new WeakSet,Au=function(){let t=Tu(this,Mu,"f").domNode.value,e=[...Tu(this,Su,"f").selectedNumberings];0!=e.length?(e.every(e=>e.domNode.getAttribute(Tu(this,ku,"f"))===t)||(Tu(this,Su,"f").pushUndoStack(),e.forEach(e=>{e.domNode.setAttribute(Tu(this,ku,"f"),t),e.displacement.magnitude+=1,e.displacement.magnitude-=1})),this.refresh()):this.refresh()};var Uu=n(401),Vu={};Vu.styleTagTransform=w(),Vu.setAttributes=m(),Vu.insert=f().bind(null,"head"),Vu.domAPI=c(),Vu.insertStyleElement=y(),u()(Uu.Ay,Vu),Uu.Ay&&Uu.Ay.locals&&Uu.Ay.locals;var Gu,Hu,Xu,Yu,$u,Qu,Zu,Ju,Ku=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},tl=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 el{constructor(t,e,n){Gu.add(this),Hu.set(this,void 0),Xu.set(this,void 0),Yu.set(this,void 0),$u.set(this,new z({onSubmit:()=>tl(this,Gu,"m",Zu).call(this)})),Qu.set(this,{edit:[]}),Ku(this,Hu,t,"f"),Ku(this,Xu,e,"f"),Ku(this,Yu,n,"f"),e.addEventListener("change",()=>{!document.body.contains(this.domNode)||this.refresh()}),new MutationObserver(()=>{!document.body.contains(this.domNode)||this.refresh()}).observe(n.drawing.domNode,{attributes:!0,attributeFilter:[t],subtree:!0}),this.refresh()}get domNode(){return tl(this,$u,"f").domNode}refresh(){try{tl(this,$u,"f").domNode.value=(0,xs.consensusValue)([...tl(this,Xu,"f")].map(t=>{var e;return null!==(e=t.domNode.getAttribute(tl(this,Hu,"f")))&&void 0!==e?e:""}))}catch(t){tl(this,$u,"f").domNode.value=""}}addEventListener(t,e){tl(this,Qu,"f")[t].push(e)}}Hu=new WeakMap,Xu=new WeakMap,Yu=new WeakMap,$u=new WeakMap,Qu=new WeakMap,Gu=new WeakSet,Zu=function(){let t=tl(this,$u,"f").domNode.value,e=[...tl(this,Xu,"f")];0==e.length||e.every(e=>e.domNode.getAttribute(tl(this,Hu,"f"))===t)?this.refresh():(tl(this,Yu,"f").pushUndoStack(),e.forEach(e=>e.domNode.setAttribute(tl(this,Hu,"f"),t)),tl(this,Gu,"m",Ju).call(this,"edit"))},Ju=function(t){tl(this,Qu,"f")[t].forEach(t=>t())};var nl,rl,il,sl,ol,al,hl,ul,ll=n(543),cl=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},dl=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 fl{constructor(t,e,n){nl.add(this),rl.set(this,void 0),il.set(this,void 0),sl.set(this,void 0),ol.set(this,new st),al.set(this,void 0),hl.set(this,void 0),cl(this,rl,t,"f"),cl(this,il,e,"f"),cl(this,sl,n,"f"),dl(this,ol,"f").domNode.addEventListener("input",()=>dl(this,nl,"m",ul).call(this)),e.addEventListener("change",()=>cl(this,al,void 0,"f")),dl(this,ol,"f").domNode.addEventListener("focus",()=>cl(this,hl,dl(this,ol,"f").domNode.value,"f")),e.addEventListener("change",()=>{!document.body.contains(this.domNode)||this.refresh()}),new MutationObserver(()=>{!document.body.contains(this.domNode)||this.refresh()}).observe(n.drawing.domNode,{attributes:!0,attributeFilter:[t],subtree:!0}),this.refresh()}get domNode(){return dl(this,ol,"f").domNode}refresh(){let t=[...dl(this,il,"f")];if(0!=t.length)try{let e=ll.camelCase(dl(this,rl,"f")),n=t.map(t=>window.getComputedStyle(t.domNode)[e]).map(t=>new re(t));dl(this,ol,"f").domNode.value=(0,xs.consensusValue)(n.map(t=>t.toHex().toLowerCase()))}catch(t){dl(this,ol,"f").domNode.value="#000000"}else dl(this,ol,"f").domNode.value="#000000"}}rl=new WeakMap,il=new WeakMap,sl=new WeakMap,ol=new WeakMap,al=new WeakMap,hl=new WeakMap,nl=new WeakSet,ul=function(){if(dl(this,ol,"f").domNode.value===dl(this,hl,"f"))return;let t=[...dl(this,il,"f")];0!=t.length?t.every(t=>{var e;return(null===(e=t.domNode.getAttribute(dl(this,rl,"f")))||void 0===e?void 0:e.toLowerCase())===dl(this,ol,"f").domNode.value.toLowerCase()})?this.refresh():((dl(this,sl,"f").undoStack.isEmpty()||dl(this,sl,"f").undoStack.peek()!==dl(this,al,"f"))&&(dl(this,sl,"f").pushUndoStack(),cl(this,al,dl(this,sl,"f").undoStack.peek(),"f")),t.forEach(t=>t.domNode.setAttribute(dl(this,rl,"f"),dl(this,ol,"f").domNode.value.toLowerCase()))):this.refresh()};var pl,ml,gl,yl,vl,wl,bl,xl,_l,Nl,kl,Sl,Ml,Al,El,Cl,Tl,Ol,Ll,Wl,jl,Pl,Dl,Bl,Il,Rl,zl,Fl,ql,Ul,Vl,Gl,Hl,Xl,Yl,$l,Ql,Zl,Jl,Kl,tc,ec,nc,rc,ic,sc,oc,ac,hc,uc,lc,cc,dc,fc,pc,mc,gc,yc,vc,wc,bc,xc,_c,Nc,kc=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},Sc=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 Mc{constructor(t){pl.add(this),ml.set(this,void 0),this.domNode=document.createElement("div"),gl.set(this,new E("Primary Bonds",()=>this.toggle())),yl.set(this,document.createElement("div")),vl.set(this,void 0),wl.set(this,void 0),bl.set(this,document.createElement("div")),xl.set(this,void 0),_l.set(this,void 0),Nl.set(this,void 0),kl.set(this,void 0),Sl.set(this,void 0),Ml.set(this,void 0),Al.set(this,void 0),El.set(this,void 0),Cl.set(this,void 0),kc(this,ml,t,"f"),this.domNode.classList.add(Uu.gP),this.domNode.append(Sc(this,gl,"f").domNode),Sc(this,yl,"f").classList.add(Uu.Qs),this.domNode.append(Sc(this,yl,"f")),kc(this,vl,new Ac(t),"f"),Sc(this,yl,"f").append(Sc(this,vl,"f").domNode),kc(this,wl,new Ec(t),"f"),Sc(this,yl,"f").append(Sc(this,wl,"f").domNode),Sc(this,bl,"f").classList.add(Uu.eB),Sc(this,yl,"f").append(Sc(this,bl,"f")),t.selectedPrimaryBonds.addEventListener("change",()=>{document.body.contains(this.domNode)&&(0==[...t.selectedPrimaryBonds].length?Sc(this,pl,"m",Ol).call(this):Sc(this,pl,"m",Ll).call(this))}),kc(this,xl,new Cc(t),"f"),Sc(this,bl,"f").append(Sc(this,xl,"f").domNode),kc(this,_l,new Tc(t),"f"),Sc(this,bl,"f").append(Sc(this,_l,"f").domNode),kc(this,Nl,new Oc(t),"f"),Sc(this,bl,"f").append(Sc(this,Nl,"f").domNode),kc(this,kl,new Lc(t),"f"),Sc(this,bl,"f").append(Sc(this,kl,"f").domNode),kc(this,Sl,new Wc(t),"f"),Sc(this,bl,"f").append(Sc(this,Sl,"f").domNode),kc(this,Ml,new jc(t),"f"),Sc(this,bl,"f").append(Sc(this,Ml,"f").domNode),kc(this,Al,new Pc(t),"f"),Sc(this,bl,"f").append(Sc(this,Al,"f").domNode),kc(this,El,new Dc(t),"f"),Sc(this,bl,"f").append(Sc(this,El,"f").domNode),kc(this,Cl,new Bc(t),"f"),Sc(this,bl,"f").append(Sc(this,Cl,"f").domNode),this.collapse(),this.refresh()}isCollapsed(){return this.domNode.classList.contains(Uu.yZ)}collapse(){this.domNode.classList.add(Uu.yZ),Sc(this,gl,"f").caret.pointRight()}expand(){this.domNode.classList.remove(Uu.yZ),Sc(this,gl,"f").caret.pointDown()}toggle(){this.isCollapsed()?this.expand():this.collapse()}refresh(){Sc(this,pl,"a",Tl).forEach(t=>t.refresh()),0==[...Sc(this,ml,"f").selectedPrimaryBonds].length?Sc(this,pl,"m",Ol).call(this):Sc(this,pl,"m",Ll).call(this)}}ml=new WeakMap,gl=new WeakMap,yl=new WeakMap,vl=new WeakMap,wl=new WeakMap,bl=new WeakMap,xl=new WeakMap,_l=new WeakMap,Nl=new WeakMap,kl=new WeakMap,Sl=new WeakMap,Ml=new WeakMap,Al=new WeakMap,El=new WeakMap,Cl=new WeakMap,pl=new WeakSet,Tl=function(){return[Sc(this,vl,"f"),Sc(this,wl,"f"),Sc(this,xl,"f"),Sc(this,_l,"f"),Sc(this,Nl,"f"),Sc(this,kl,"f"),Sc(this,Sl,"f"),Sc(this,Ml,"f"),Sc(this,Al,"f"),Sc(this,El,"f"),Sc(this,Cl,"f")]},Ol=function(){Sc(this,bl,"f").style.display="none"},Ll=function(){Sc(this,bl,"f").style.display="flex"};class Ac{constructor(t){Wl.set(this,void 0),this.domNode=document.createElement("p"),jl.set(this,document.createElement("span")),Pl.set(this,document.createElement("span")),kc(this,Wl,t,"f"),this.domNode.classList.add(Uu.vM),Sc(this,jl,"f").style.fontWeight="700",this.domNode.append(Sc(this,jl,"f"),Sc(this,Pl,"f")),Sc(this,Wl,"f").selectedPrimaryBonds.addEventListener("change",()=>{!document.body.contains(this.domNode)||this.refresh()}),this.refresh()}refresh(){let t=[...Sc(this,Wl,"f").selectedPrimaryBonds].length;Sc(this,jl,"f").textContent=`${t}`,Sc(this,Pl,"f").textContent=1==t?" primary bond is selected.":" primary bonds are selected."}}Wl=new WeakMap,jl=new WeakMap,Pl=new WeakMap;class Ec{constructor(t){Dl.add(this),Bl.set(this,void 0),this.domNode=document.createElement("div"),Il.set(this,new E("Select:",()=>this.toggle())),Rl.set(this,{All:new P("All",()=>Sc(this,Dl,"m",Vl).call(this)),None:new P("None",()=>Sc(this,Dl,"m",Gl).call(this)),Between:new P("Between",()=>Sc(this,Dl,"m",Hl).call(this)),Connecting:new P("Connecting",()=>Sc(this,Dl,"m",Yl).call(this))}),zl.set(this,document.createElement("div")),Fl.set(this,document.createElement("div")),ql.set(this,document.createElement("div")),Ul.set(this,void 0),kc(this,Bl,t,"f"),this.domNode.classList.add(Uu.vw),this.domNode.append(Sc(this,Il,"f").domNode),Ns(Sc(this,zl,"f")).css({marginTop:"1.5px",display:"flex",flexDirection:"column",gap:"10px"}),this.domNode.append(Sc(this,zl,"f")),Ns(Sc(this,Fl,"f")).css({display:"flex",flexDirection:"row",gap:"27px"}),Sc(this,Fl,"f").append(...["All","None"].map(t=>Sc(this,Rl,"f")[t].domNode)),Sc(this,zl,"f").append(Sc(this,Fl,"f")),Ns(Sc(this,ql,"f")).css({display:"flex",flexDirection:"row",gap:"20px"}),Sc(this,ql,"f").append(...["Between","Connecting"].map(t=>Sc(this,Rl,"f")[t].domNode)),Sc(this,zl,"f").append(Sc(this,ql,"f")),Sc(this,ql,"f").style.display="none",Sc(this,Il,"f").caret.pointRight(),t.selectedPrimaryBonds.addEventListener("change",()=>document.body.contains(this.domNode)?this.refresh():{}),t.selectedBases.addEventListener("change",()=>document.body.contains(this.domNode)?this.refresh():{}),kc(this,Ul,new MutationObserver(()=>document.body.contains(this.domNode)?this.refresh():{}),"f"),Sc(this,Ul,"f").observe(t.drawing.domNode,{childList:!0,subtree:!0}),this.refresh()}toggle(){this.isCollapsed()?this.expand():this.collapse()}isCollapsed(){return"none"==Sc(this,ql,"f").style.display}collapse(){Sc(this,ql,"f").style.display="none",Sc(this,Il,"f").caret.pointRight()}expand(){Sc(this,ql,"f").style.display="flex",Sc(this,Il,"f").caret.pointDown()}refresh(){let t=[...Sc(this,Bl,"f").drawing.primaryBonds],e=new Set(Sc(this,Bl,"f").selectedPrimaryBonds);0==t.length?(Sc(this,Rl,"f").All.disable(),Sc(this,Rl,"f").All.tooltip.textContent="There are no primary bonds in the drawing."):t.every(t=>e.has(t))?(Sc(this,Rl,"f").All.disable(),Sc(this,Rl,"f").All.tooltip.textContent="All primary bonds are already selected."):(Sc(this,Rl,"f").All.enable(),Sc(this,Rl,"f").All.tooltip.textContent="Select all primary bonds."),0==e.size?(Sc(this,Rl,"f").None.disable(),Sc(this,Rl,"f").None.tooltip.textContent="No primary bonds are selected."):(Sc(this,Rl,"f").None.enable(),Sc(this,Rl,"f").None.tooltip.textContent="Deselect all primary bonds.");let n=[...Sc(this,Bl,"f").selectedBases],r=Sc(this,Dl,"a",Xl);0==n.length?(Sc(this,Rl,"f").Between.disable(),Sc(this,Rl,"f").Between.tooltip.textContent="No bases are selected."):r.every(t=>e.has(t))?(Sc(this,Rl,"f").Between.disable(),Sc(this,Rl,"f").Between.tooltip.textContent="All primary bonds between the selected bases are already selected."):(Sc(this,Rl,"f").Between.enable(),Sc(this,Rl,"f").Between.tooltip.textContent="Select primary bonds between the selected bases.");let i=Sc(this,Dl,"a",$l);0==n.length?(Sc(this,Rl,"f").Connecting.disable(),Sc(this,Rl,"f").Connecting.tooltip.textContent="No bases are selected."):i.every(t=>e.has(t))?(Sc(this,Rl,"f").Connecting.disable(),Sc(this,Rl,"f").Connecting.tooltip.textContent="All primary bonds connecting the selected bases are already selected."):(Sc(this,Rl,"f").Connecting.enable(),Sc(this,Rl,"f").Connecting.tooltip.textContent="Select primary bonds connecting the selected bases.")}}Bl=new WeakMap,Il=new WeakMap,Rl=new WeakMap,zl=new WeakMap,Fl=new WeakMap,ql=new WeakMap,Ul=new WeakMap,Dl=new WeakSet,Vl=function(){Sc(this,Bl,"f").addToSelected([...Sc(this,Bl,"f").drawing.primaryBonds])},Gl=function(){Sc(this,Bl,"f").removeFromSelected([...Sc(this,Bl,"f").drawing.primaryBonds])},Hl=function(){Sc(this,Bl,"f").addToSelected(Sc(this,Dl,"a",Xl))},Xl=function(){let t=new Set(Sc(this,Bl,"f").selectedBases);return[...Sc(this,Bl,"f").drawing.primaryBonds].filter(e=>t.has(e.base1)&&t.has(e.base2))},Yl=function(){Sc(this,Bl,"f").addToSelected(Sc(this,Dl,"a",$l))},$l=function(){let t=new Set(Sc(this,Bl,"f").selectedBases);return[...Sc(this,Bl,"f").drawing.primaryBonds].filter(e=>t.has(e.base1)||t.has(e.base2))};class Cc{constructor(t){Ql.add(this),Zl.set(this,void 0),Jl.set(this,void 0),kc(this,Zl,t,"f");let e=t.selectedPrimaryBonds;kc(this,Jl,new _h(e,t),"f"),this.domNode.style.marginTop="26px",Sc(this,Jl,"f").addEventListener("refresh",()=>Sc(this,Ql,"m",Kl).call(this)),this.refresh()}get domNode(){return Sc(this,Jl,"f").domNode}refresh(){Sc(this,Jl,"f").refresh()}}Zl=new WeakMap,Jl=new WeakMap,Ql=new WeakSet,Kl=function(){let t=[...Sc(this,Zl,"f").selectedPrimaryBonds];Sc(this,Jl,"f").buttons.Front.tooltip.textContent=0==t.length?"No primary bonds are selected.":"Bring the selected primary bonds to the front.",Sc(this,Jl,"f").buttons.Back.tooltip.textContent=0==t.length?"No primary bonds are selected.":"Send the selected primary bonds to the back."};class Tc{constructor(t){tc.set(this,void 0),ec.set(this,void 0),nc.set(this,void 0),kc(this,tc,t,"f");let e=t.selectedPrimaryBonds;kc(this,ec,new el("stroke",e,t),"f"),kc(this,nc,new Q("Stroke",Sc(this,ec,"f").domNode),"f"),Sc(this,nc,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Attribute/stroke",this.domNode.style.marginTop="21px",this.domNode.style.alignSelf="start",this.refresh()}get domNode(){return Sc(this,nc,"f").domNode}refresh(){Sc(this,ec,"f").refresh()}}tc=new WeakMap,ec=new WeakMap,nc=new WeakMap;class Oc{constructor(t){rc.set(this,void 0),ic.set(this,void 0),sc.set(this,void 0),kc(this,rc,t,"f");let e=t.selectedPrimaryBonds;kc(this,ic,new fl("stroke",e,t),"f"),kc(this,sc,new ht("Stroke Color",Sc(this,ic,"f").domNode),"f"),Sc(this,sc,"f").domNode.style.marginTop="12px",Sc(this,sc,"f").domNode.style.alignSelf="start",this.refresh()}get domNode(){return Sc(this,sc,"f").domNode}refresh(){Sc(this,ic,"f").refresh()}}rc=new WeakMap,ic=new WeakMap,sc=new WeakMap;class Lc{constructor(t){oc.set(this,void 0),ac.set(this,void 0),hc.set(this,void 0),kc(this,oc,t,"f");let e=t.selectedPrimaryBonds;kc(this,ac,new el("stroke-opacity",e,t),"f"),kc(this,hc,new Q("Stroke Opacity",Sc(this,ac,"f").domNode),"f"),Sc(this,hc,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Attribute/stroke-opacity",this.domNode.style.marginTop="12px",this.domNode.style.alignSelf="start",this.refresh()}get domNode(){return Sc(this,hc,"f").domNode}refresh(){Sc(this,ac,"f").refresh()}}oc=new WeakMap,ac=new WeakMap,hc=new WeakMap;class Wc{constructor(t){uc.set(this,void 0),lc.set(this,void 0),cc.set(this,void 0),kc(this,uc,t,"f");let e=t.selectedPrimaryBonds;kc(this,lc,new el("stroke-width",e,t),"f"),kc(this,cc,new Q("Stroke Width",Sc(this,lc,"f").domNode),"f"),Sc(this,cc,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Attribute/stroke-width",this.domNode.style.marginTop="10px",this.domNode.style.alignSelf="start",this.refresh()}get domNode(){return Sc(this,cc,"f").domNode}refresh(){Sc(this,lc,"f").refresh()}}uc=new WeakMap,lc=new WeakMap,cc=new WeakMap;class jc{constructor(t){dc.set(this,void 0),fc.set(this,void 0),pc.set(this,void 0),kc(this,dc,t,"f");let e=t.selectedPrimaryBonds;kc(this,fc,new el("stroke-linecap",e,t),"f"),kc(this,pc,new Q("Stroke Line-Cap",Sc(this,fc,"f").domNode),"f"),Sc(this,pc,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Attribute/stroke-linecap",this.domNode.style.marginTop="10px",this.domNode.style.alignSelf="start",this.refresh()}get domNode(){return Sc(this,pc,"f").domNode}refresh(){Sc(this,fc,"f").refresh()}}dc=new WeakMap,fc=new WeakMap,pc=new WeakMap;class Pc{constructor(t){mc.set(this,void 0),gc.set(this,void 0),yc.set(this,void 0),kc(this,mc,t,"f");let e=t.selectedPrimaryBonds;kc(this,gc,new el("stroke-dasharray",e,t),"f"),kc(this,yc,new Q("Stroke Dash-Array",Sc(this,gc,"f").domNode),"f"),Sc(this,yc,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Attribute/stroke-dasharray",this.domNode.style.marginTop="10px",this.domNode.style.alignSelf="start",this.refresh()}get domNode(){return Sc(this,yc,"f").domNode}refresh(){Sc(this,gc,"f").refresh()}}mc=new WeakMap,gc=new WeakMap,yc=new WeakMap;class Dc{constructor(t){vc.set(this,void 0),wc.set(this,void 0),bc.set(this,void 0),kc(this,vc,t,"f");let e=t.selectedPrimaryBonds;kc(this,wc,new el("data-base-padding1",e,t),"f"),Sc(this,wc,"f").addEventListener("edit",()=>{[...e].forEach(t=>{let e=t.basePadding1;t.basePadding1+=1,t.basePadding1=e})}),kc(this,bc,new Q("Base Padding 1",Sc(this,wc,"f").domNode),"f"),this.domNode.style.marginTop="10px",this.domNode.style.alignSelf="start",this.refresh()}get domNode(){return Sc(this,bc,"f").domNode}refresh(){Sc(this,wc,"f").refresh()}}vc=new WeakMap,wc=new WeakMap,bc=new WeakMap;class Bc{constructor(t){xc.set(this,void 0),_c.set(this,void 0),Nc.set(this,void 0),kc(this,xc,t,"f");let e=t.selectedPrimaryBonds;kc(this,_c,new el("data-base-padding2",e,t),"f"),Sc(this,_c,"f").addEventListener("edit",()=>{[...e].forEach(t=>{let e=t.basePadding2;t.basePadding2+=1,t.basePadding2=e})}),kc(this,Nc,new Q("Base Padding 2",Sc(this,_c,"f").domNode),"f"),this.domNode.style.marginTop="10px",this.domNode.style.alignSelf="start",this.refresh()}get domNode(){return Sc(this,Nc,"f").domNode}refresh(){Sc(this,_c,"f").refresh()}}xc=new WeakMap,_c=new WeakMap,Nc=new WeakMap;var Ic=n(358),Rc=n(705),zc={};zc.styleTagTransform=w(),zc.setAttributes=m(),zc.insert=f().bind(null,"head"),zc.domAPI=c(),zc.insertStyleElement=y(),u()(Rc.Ay,zc),Rc.Ay&&Rc.Ay.locals&&Rc.Ay.locals;var Fc,qc,Uc,Vc,Gc,Hc,Xc,Yc,$c,Qc,Zc,Jc,Kc,td,ed,nd,rd,id,sd,od,ad,hd,ud,ld,cd,dd,fd,pd,md,gd,yd,vd,wd,bd,xd,_d,Nd,kd,Sd,Md,Ad,Ed,Cd,Td,Od,Ld,Wd,jd,Pd,Dd,Bd,Id,Rd,zd,Fd,qd,Ud,Vd,Gd,Hd,Xd,Yd,$d,Qd,Zd,Jd,Kd,tf,ef,nf,rf,sf,of,af,hf,uf,lf,cf,df,ff,pf,mf,gf,yf=n(127),vf=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},wf=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 bf{constructor(t){Fc.add(this),qc.set(this,void 0),this.domNode=document.createElement("div"),Uc.set(this,new E("Secondary Bonds",()=>this.toggle())),Vc.set(this,document.createElement("div")),Gc.set(this,void 0),Hc.set(this,void 0),Xc.set(this,void 0),Yc.set(this,void 0),$c.set(this,document.createElement("div")),Qc.set(this,void 0),Zc.set(this,void 0),Jc.set(this,void 0),Kc.set(this,void 0),td.set(this,void 0),ed.set(this,void 0),nd.set(this,void 0),rd.set(this,void 0),id.set(this,void 0),vf(this,qc,t,"f"),this.domNode.classList.add(Rc.Se),this.domNode.append(wf(this,Uc,"f").domNode),wf(this,Vc,"f").classList.add(Rc.Qs),this.domNode.append(wf(this,Vc,"f")),vf(this,Gc,new xf(t),"f"),wf(this,Vc,"f").append(wf(this,Gc,"f").domNode),vf(this,Hc,new _f(t),"f"),wf(this,Vc,"f").append(wf(this,Hc,"f").domNode),vf(this,Xc,new Nf(t),"f"),wf(this,Vc,"f").append(wf(this,Xc,"f").domNode),vf(this,Yc,new kf(t),"f"),wf(this,Vc,"f").append(wf(this,Yc,"f").domNode),wf(this,$c,"f").classList.add(Rc.eB),wf(this,Vc,"f").append(wf(this,$c,"f")),t.selectedSecondaryBonds.addEventListener("change",()=>{document.body.contains(this.domNode)&&(0==[...t.selectedSecondaryBonds].length?wf(this,Fc,"m",ad).call(this):wf(this,Fc,"m",od).call(this))}),vf(this,Qc,new Sf(t),"f"),wf(this,$c,"f").append(wf(this,Qc,"f").domNode),vf(this,Zc,new Mf(t),"f"),wf(this,$c,"f").append(wf(this,Zc,"f").domNode),vf(this,Jc,new Af(t),"f"),wf(this,$c,"f").append(wf(this,Jc,"f").domNode),vf(this,Kc,new Ef(t),"f"),wf(this,$c,"f").append(wf(this,Kc,"f").domNode),vf(this,td,new Cf(t),"f"),wf(this,$c,"f").append(wf(this,td,"f").domNode),vf(this,ed,new Tf(t),"f"),wf(this,$c,"f").append(wf(this,ed,"f").domNode),vf(this,nd,new Of(t),"f"),wf(this,$c,"f").append(wf(this,nd,"f").domNode),vf(this,rd,new Lf(t),"f"),wf(this,$c,"f").append(wf(this,rd,"f").domNode),vf(this,id,new Wf(t),"f"),wf(this,$c,"f").append(wf(this,id,"f").domNode),this.collapse(),this.refresh()}isCollapsed(){return this.domNode.classList.contains(Rc.yZ)}collapse(){this.domNode.classList.add(Rc.yZ),wf(this,Uc,"f").caret.pointRight()}expand(){this.domNode.classList.remove(Rc.yZ),wf(this,Uc,"f").caret.pointDown()}toggle(){this.isCollapsed()?this.expand():this.collapse()}refresh(){wf(this,Fc,"a",sd).forEach(t=>t.refresh()),0==[...wf(this,qc,"f").selectedSecondaryBonds].length?wf(this,Fc,"m",ad).call(this):wf(this,Fc,"m",od).call(this)}}qc=new WeakMap,Uc=new WeakMap,Vc=new WeakMap,Gc=new WeakMap,Hc=new WeakMap,Xc=new WeakMap,Yc=new WeakMap,$c=new WeakMap,Qc=new WeakMap,Zc=new WeakMap,Jc=new WeakMap,Kc=new WeakMap,td=new WeakMap,ed=new WeakMap,nd=new WeakMap,rd=new WeakMap,id=new WeakMap,Fc=new WeakSet,sd=function(){return[wf(this,Gc,"f"),wf(this,Hc,"f"),wf(this,Xc,"f"),wf(this,Yc,"f"),wf(this,Qc,"f"),wf(this,Zc,"f"),wf(this,Jc,"f"),wf(this,Kc,"f"),wf(this,td,"f"),wf(this,ed,"f"),wf(this,nd,"f"),wf(this,rd,"f"),wf(this,id,"f")]},od=function(){wf(this,$c,"f").style.display="flex"},ad=function(){wf(this,$c,"f").style.display="none"};class xf{constructor(t){hd.set(this,void 0),this.domNode=document.createElement("p"),ud.set(this,document.createElement("span")),ld.set(this,document.createElement("span")),vf(this,hd,t,"f"),this.domNode.classList.add(Rc.vM),wf(this,ud,"f").style.fontWeight="700",this.domNode.append(wf(this,ud,"f"),wf(this,ld,"f")),wf(this,hd,"f").selectedSecondaryBonds.addEventListener("change",()=>{!document.body.contains(this.domNode)||this.refresh()}),this.refresh()}refresh(){let t=[...wf(this,hd,"f").selectedSecondaryBonds].length;wf(this,ud,"f").textContent=`${t}`,wf(this,ld,"f").textContent=1==t?" secondary bond is selected.":" secondary bonds are selected."}}hd=new WeakMap,ud=new WeakMap,ld=new WeakMap;class _f{constructor(t){cd.add(this),dd.set(this,void 0),this.domNode=document.createElement("div"),fd.set(this,new E("Select:",()=>this.toggle())),pd.set(this,{All:new P("All",()=>wf(this,cd,"m",wd).call(this)),None:new P("None",()=>wf(this,cd,"m",bd).call(this)),Between:new P("Between",()=>wf(this,cd,"m",xd).call(this)),Connecting:new P("Connecting",()=>wf(this,cd,"m",Nd).call(this)),"A:U":new P("A:U",()=>wf(this,cd,"m",Sd).call(this)),"A:T":new P("A:T",()=>wf(this,cd,"m",Ad).call(this)),"G:C":new P("G:C",()=>wf(this,cd,"m",Cd).call(this)),"G:U":new P("G:U",()=>wf(this,cd,"m",Od).call(this)),"G:T":new P("G:T",()=>wf(this,cd,"m",Wd).call(this))}),md.set(this,document.createElement("div")),gd.set(this,document.createElement("div")),yd.set(this,document.createElement("div")),vd.set(this,void 0),vf(this,dd,t,"f"),this.domNode.classList.add(Rc.vw),this.domNode.append(wf(this,fd,"f").domNode),Ns(wf(this,md,"f")).css({marginTop:"1.5px",display:"flex",flexDirection:"column",gap:"12px"}),this.domNode.append(wf(this,md,"f")),Ns(wf(this,gd,"f")).css({display:"flex",flexDirection:"row",gap:"27px"}),wf(this,gd,"f").append(...["All","None"].map(t=>wf(this,pd,"f")[t].domNode)),wf(this,md,"f").append(wf(this,gd,"f")),Ns(wf(this,yd,"f")).css({display:"flex",flexDirection:"column",gap:"12px"}),wf(this,md,"f").append(wf(this,yd,"f")),wf(this,yd,"f").style.display="none",wf(this,fd,"f").caret.pointRight();let e=document.createElement("div");Ns(e).css({display:"flex",flexDirection:"row",gap:"20px"}),e.append(...["Between","Connecting"].map(t=>wf(this,pd,"f")[t].domNode)),wf(this,yd,"f").append(e);let n=document.createElement("div");Ns(n).css({display:"flex",flexDirection:"row",gap:"12px"}),n.append(...["A:U","G:C","G:U","A:T","G:T"].map(t=>wf(this,pd,"f")[t].domNode)),wf(this,yd,"f").append(n),t.selectedSecondaryBonds.addEventListener("change",()=>document.body.contains(this.domNode)?this.refresh():{}),t.selectedBases.addEventListener("change",()=>document.body.contains(this.domNode)?this.refresh():{}),vf(this,vd,new MutationObserver(()=>document.body.contains(this.domNode)?this.refresh():{}),"f"),wf(this,vd,"f").observe(t.drawing.domNode,{childList:!0,characterData:!0,subtree:!0}),this.refresh()}toggle(){this.isCollapsed()?this.expand():this.collapse()}isCollapsed(){return"none"==wf(this,yd,"f").style.display}collapse(){wf(this,yd,"f").style.display="none",wf(this,fd,"f").caret.pointRight()}expand(){wf(this,yd,"f").style.display="flex",wf(this,fd,"f").caret.pointDown()}refresh(){let t=[...wf(this,dd,"f").drawing.secondaryBonds],e=new Set(wf(this,dd,"f").selectedSecondaryBonds);0==t.length?(wf(this,pd,"f").All.disable(),wf(this,pd,"f").All.tooltip.textContent="There are no secondary bonds in the drawing."):t.every(t=>e.has(t))?(wf(this,pd,"f").All.disable(),wf(this,pd,"f").All.tooltip.textContent="All secondary bonds are already selected."):(wf(this,pd,"f").All.enable(),wf(this,pd,"f").All.tooltip.textContent="Select all secondary bonds."),0==e.size?(wf(this,pd,"f").None.disable(),wf(this,pd,"f").None.tooltip.textContent="No secondary bonds are selected."):(wf(this,pd,"f").None.enable(),wf(this,pd,"f").None.tooltip.textContent="Deselect all secondary bonds.");let n=[...wf(this,dd,"f").selectedBases],r=wf(this,cd,"a",_d);0==n.length?(wf(this,pd,"f").Between.disable(),wf(this,pd,"f").Between.tooltip.textContent="No bases are selected."):r.every(t=>e.has(t))?(wf(this,pd,"f").Between.disable(),wf(this,pd,"f").Between.tooltip.textContent="All secondary bonds between the selected bases are already selected."):(wf(this,pd,"f").Between.enable(),wf(this,pd,"f").Between.tooltip.textContent="Select secondary bonds between the selected bases.");let i=wf(this,cd,"a",kd);0==n.length?(wf(this,pd,"f").Connecting.disable(),wf(this,pd,"f").Connecting.tooltip.textContent="No bases are selected."):i.every(t=>e.has(t))?(wf(this,pd,"f").Connecting.disable(),wf(this,pd,"f").Connecting.tooltip.textContent="All secondary bonds connecting the selected bases are already selected."):(wf(this,pd,"f").Connecting.enable(),wf(this,pd,"f").Connecting.tooltip.textContent="Select secondary bonds connecting the selected bases."),[["A:U",wf(this,cd,"a",Md)],["A:T",wf(this,cd,"a",Ed)],["G:C",wf(this,cd,"a",Td)],["G:U",wf(this,cd,"a",Ld)],["G:T",wf(this,cd,"a",jd)]].forEach(([t,n])=>{0==n.length?(wf(this,pd,"f")[t].disable(),wf(this,pd,"f")[t].tooltip.textContent=`There are no ${t} base-pairs in the drawing.`):n.every(t=>e.has(t))?(wf(this,pd,"f")[t].disable(),wf(this,pd,"f")[t].tooltip.textContent=`All secondary bonds between ${t} base-pairs are already selected.`):(wf(this,pd,"f")[t].enable(),wf(this,pd,"f")[t].tooltip.textContent=`Select secondary bonds between ${t} base-pairs.`)})}}dd=new WeakMap,fd=new WeakMap,pd=new WeakMap,md=new WeakMap,gd=new WeakMap,yd=new WeakMap,vd=new WeakMap,cd=new WeakSet,wd=function(){wf(this,dd,"f").addToSelected([...wf(this,dd,"f").drawing.secondaryBonds])},bd=function(){wf(this,dd,"f").removeFromSelected([...wf(this,dd,"f").drawing.secondaryBonds])},xd=function(){wf(this,dd,"f").addToSelected(wf(this,cd,"a",_d))},_d=function(){let t=new Set(wf(this,dd,"f").selectedBases);return[...wf(this,dd,"f").drawing.secondaryBonds].filter(e=>t.has(e.base1)&&t.has(e.base2))},Nd=function(){wf(this,dd,"f").addToSelected(wf(this,cd,"a",kd))},kd=function(){let t=new Set(wf(this,dd,"f").selectedBases);return[...wf(this,dd,"f").drawing.secondaryBonds].filter(e=>t.has(e.base1)||t.has(e.base2))},Sd=function(){wf(this,dd,"f").addToSelected(wf(this,cd,"a",Md))},Md=function(){return[...wf(this,dd,"f").drawing.secondaryBonds].filter(jf)},Ad=function(){wf(this,dd,"f").addToSelected(wf(this,cd,"a",Ed))},Ed=function(){return[...wf(this,dd,"f").drawing.secondaryBonds].filter(Pf)},Cd=function(){wf(this,dd,"f").addToSelected(wf(this,cd,"a",Td))},Td=function(){return[...wf(this,dd,"f").drawing.secondaryBonds].filter(Df)},Od=function(){wf(this,dd,"f").addToSelected(wf(this,cd,"a",Ld))},Ld=function(){return[...wf(this,dd,"f").drawing.secondaryBonds].filter(Bf)},Wd=function(){wf(this,dd,"f").addToSelected(wf(this,cd,"a",jd))},jd=function(){return[...wf(this,dd,"f").drawing.secondaryBonds].filter(If)};class Nf{constructor(t){Pd.set(this,void 0),this.domNode=document.createElement("div"),Dd.set(this,new Ks("Add",()=>this.press())),Bd.set(this,new K),Id.set(this,new nt("Only add missing secondary bonds",wf(this,Bd,"f").domNode)),Rd.set(this,void 0),vf(this,Pd,t,"f"),this.domNode.classList.add(Rc.Ol),this.domNode.append(wf(this,Dd,"f").domNode,wf(this,Id,"f").domNode),wf(this,Bd,"f").domNode.checked=!0,wf(this,Id,"f").domNode.style.marginLeft="10px",wf(this,Pd,"f").selectedBases.addEventListener("change",()=>{!document.body.contains(this.domNode)||this.refresh()}),vf(this,Rd,new MutationObserver(()=>document.body.contains(this.domNode)?this.refresh():{}),"f"),wf(this,Rd,"f").observe(t.drawing.domNode,{childList:!0,subtree:!0}),wf(this,Bd,"f").domNode.addEventListener("change",()=>this.refresh())}press(){let t=[...wf(this,Pd,"f").drawing.bases],e=[...wf(this,Pd,"f").selectedBases];e=(0,Ic.seqSorted)(e,t);let n=(0,yf.antiParallelPairs)(e),r=[...wf(this,Pd,"f").drawing.secondaryBonds],i=(0,yf.missing)(zf(r),n);0!=n.length&&(wf(this,Bd,"f").domNode.checked&&0==i.length||(wf(this,Pd,"f").pushUndoStack(),wf(this,Bd,"f").domNode.checked?i.forEach(t=>wf(this,Pd,"f").drawing.addSecondaryBond(...t)):n.forEach(t=>wf(this,Pd,"f").drawing.addSecondaryBond(...t))))}refresh(){let t=[...wf(this,Pd,"f").drawing.bases],e=[...wf(this,Pd,"f").selectedBases];e=(0,Ic.seqSorted)(e,t);let n=(0,yf.antiParallelPairs)(e),r=[...wf(this,Pd,"f").drawing.secondaryBonds],i=(0,yf.missing)(zf(r),n);0==e.length?(wf(this,Dd,"f").disable(),wf(this,Dd,"f").tooltip.textContent="No bases are selected."):1==e.length?(wf(this,Dd,"f").disable(),wf(this,Dd,"f").tooltip.textContent="At least two bases must be selected."):wf(this,Bd,"f").domNode.checked&&0==i.length?(wf(this,Dd,"f").disable(),wf(this,Dd,"f").tooltip.textContent="There are no missing pairs between the selected bases."):(wf(this,Dd,"f").enable(),wf(this,Dd,"f").tooltip.textContent="Add secondary bonds between the selected bases.")}}Pd=new WeakMap,Dd=new WeakMap,Bd=new WeakMap,Id=new WeakMap,Rd=new WeakMap;class kf{constructor(t){zd.set(this,void 0),Fd.set(this,new Ks("Remove",()=>this.press())),vf(this,zd,t,"f"),wf(this,zd,"f").selectedSecondaryBonds.addEventListener("change",()=>{!document.body.contains(this.domNode)||this.refresh()}),this.domNode.style.marginTop="15px"}get domNode(){return wf(this,Fd,"f").domNode}press(){let t=[...wf(this,zd,"f").selectedSecondaryBonds];0!=t.length&&(wf(this,zd,"f").pushUndoStack(),t.forEach(t=>t.domNode.remove()))}refresh(){0==[...wf(this,zd,"f").selectedSecondaryBonds].length?(wf(this,Fd,"f").disable(),wf(this,Fd,"f").tooltip.textContent="No secondary bonds are selected."):(wf(this,Fd,"f").enable(),wf(this,Fd,"f").tooltip.textContent="Remove the selected secondary bonds from the drawing.")}}zd=new WeakMap,Fd=new WeakMap;class Sf{constructor(t){qd.add(this),Ud.set(this,void 0),Vd.set(this,void 0),vf(this,Ud,t,"f");let e=t.selectedSecondaryBonds;vf(this,Vd,new _h(e,t),"f"),this.domNode.style.marginTop="27px",wf(this,Vd,"f").addEventListener("refresh",()=>wf(this,qd,"m",Gd).call(this)),this.refresh()}get domNode(){return wf(this,Vd,"f").domNode}refresh(){wf(this,Vd,"f").refresh()}}Ud=new WeakMap,Vd=new WeakMap,qd=new WeakSet,Gd=function(){let t=[...wf(this,Ud,"f").selectedSecondaryBonds];wf(this,Vd,"f").buttons.Front.tooltip.textContent=0==t.length?"No secondary bonds are selected.":"Bring the selected secondary bonds to the front.",wf(this,Vd,"f").buttons.Back.tooltip.textContent=0==t.length?"No secondary bonds are selected.":"Send the selected secondary bonds to the back."};class Mf{constructor(t){Hd.set(this,void 0),Xd.set(this,void 0),Yd.set(this,void 0),vf(this,Hd,t,"f");let e=t.selectedSecondaryBonds;vf(this,Xd,new el("stroke",e,t),"f"),vf(this,Yd,new Q("Stroke",wf(this,Xd,"f").domNode),"f"),wf(this,Yd,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Attribute/stroke",this.domNode.style.marginTop="22px",this.domNode.style.alignSelf="start",this.refresh()}get domNode(){return wf(this,Yd,"f").domNode}refresh(){wf(this,Xd,"f").refresh()}}Hd=new WeakMap,Xd=new WeakMap,Yd=new WeakMap;class Af{constructor(t){$d.set(this,void 0),Qd.set(this,void 0),Zd.set(this,void 0),vf(this,$d,t,"f");let e=t.selectedSecondaryBonds;vf(this,Qd,new fl("stroke",e,t),"f"),vf(this,Zd,new ht("Stroke Color",wf(this,Qd,"f").domNode),"f"),wf(this,Zd,"f").domNode.style.marginTop="12px",wf(this,Zd,"f").domNode.style.alignSelf="start",this.refresh()}get domNode(){return wf(this,Zd,"f").domNode}refresh(){wf(this,Qd,"f").refresh()}}$d=new WeakMap,Qd=new WeakMap,Zd=new WeakMap;class Ef{constructor(t){Jd.set(this,void 0),Kd.set(this,void 0),tf.set(this,void 0),vf(this,Jd,t,"f");let e=t.selectedSecondaryBonds;vf(this,Kd,new el("stroke-opacity",e,t),"f"),vf(this,tf,new Q("Stroke Opacity",wf(this,Kd,"f").domNode),"f"),wf(this,tf,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Attribute/stroke-opacity",this.domNode.style.marginTop="12px",this.domNode.style.alignSelf="start",this.refresh()}get domNode(){return wf(this,tf,"f").domNode}refresh(){wf(this,Kd,"f").refresh()}}Jd=new WeakMap,Kd=new WeakMap,tf=new WeakMap;class Cf{constructor(t){ef.set(this,void 0),nf.set(this,void 0),rf.set(this,void 0),vf(this,ef,t,"f");let e=t.selectedSecondaryBonds;vf(this,nf,new el("stroke-width",e,t),"f"),vf(this,rf,new Q("Stroke Width",wf(this,nf,"f").domNode),"f"),wf(this,rf,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Attribute/stroke-width",this.domNode.style.marginTop="10px",this.domNode.style.alignSelf="start",this.refresh()}get domNode(){return wf(this,rf,"f").domNode}refresh(){wf(this,nf,"f").refresh()}}ef=new WeakMap,nf=new WeakMap,rf=new WeakMap;class Tf{constructor(t){sf.set(this,void 0),of.set(this,void 0),af.set(this,void 0),vf(this,sf,t,"f");let e=t.selectedSecondaryBonds;vf(this,of,new el("stroke-linecap",e,t),"f"),vf(this,af,new Q("Stroke Line-Cap",wf(this,of,"f").domNode),"f"),wf(this,af,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Attribute/stroke-linecap",this.domNode.style.marginTop="10px",this.domNode.style.alignSelf="start",this.refresh()}get domNode(){return wf(this,af,"f").domNode}refresh(){wf(this,of,"f").refresh()}}sf=new WeakMap,of=new WeakMap,af=new WeakMap;class Of{constructor(t){hf.set(this,void 0),uf.set(this,void 0),lf.set(this,void 0),vf(this,hf,t,"f");let e=t.selectedSecondaryBonds;vf(this,uf,new el("stroke-dasharray",e,t),"f"),vf(this,lf,new Q("Stroke Dash-Array",wf(this,uf,"f").domNode),"f"),wf(this,lf,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Attribute/stroke-dasharray",this.domNode.style.marginTop="10px",this.domNode.style.alignSelf="start",this.refresh()}get domNode(){return wf(this,lf,"f").domNode}refresh(){wf(this,uf,"f").refresh()}}hf=new WeakMap,uf=new WeakMap,lf=new WeakMap;class Lf{constructor(t){cf.set(this,void 0),df.set(this,void 0),ff.set(this,void 0),vf(this,cf,t,"f");let e=t.selectedSecondaryBonds;vf(this,df,new el("data-base-padding1",e,t),"f"),wf(this,df,"f").addEventListener("edit",()=>{[...e].forEach(t=>{let e=t.basePadding1;t.basePadding1+=1,t.basePadding1=e})}),vf(this,ff,new Q("Base Padding 1",wf(this,df,"f").domNode),"f"),this.domNode.style.marginTop="10px",this.domNode.style.alignSelf="start",this.refresh()}get domNode(){return wf(this,ff,"f").domNode}refresh(){wf(this,df,"f").refresh()}}cf=new WeakMap,df=new WeakMap,ff=new WeakMap;class Wf{constructor(t){pf.set(this,void 0),mf.set(this,void 0),gf.set(this,void 0),vf(this,pf,t,"f");let e=t.selectedSecondaryBonds;vf(this,mf,new el("data-base-padding2",e,t),"f"),wf(this,mf,"f").addEventListener("edit",()=>{[...e].forEach(t=>{let e=t.basePadding2;t.basePadding2+=1,t.basePadding2=e})}),vf(this,gf,new Q("Base Padding 2",wf(this,mf,"f").domNode),"f"),this.domNode.style.marginTop="10px",this.domNode.style.alignSelf="start",this.refresh()}get domNode(){return wf(this,gf,"f").domNode}refresh(){wf(this,mf,"f").refresh()}}function jf(t){return new Ic.BasePair(t.base1,t.base2).isAU()}function Pf(t){return new Ic.BasePair(t.base1,t.base2).isAT()}function Df(t){return new Ic.BasePair(t.base1,t.base2).isGC()}function Bf(t){return new Ic.BasePair(t.base1,t.base2).isGU()}function If(t){return new Ic.BasePair(t.base1,t.base2).isGT()}function Rf(t){return[t.base1,t.base2]}function zf(t){return t.map(Rf)}pf=new WeakMap,mf=new WeakMap,gf=new WeakMap;var Ff=n(965),qf={};qf.styleTagTransform=w(),qf.setAttributes=m(),qf.insert=f().bind(null,"head"),qf.domAPI=c(),qf.insertStyleElement=y(),u()(Ff.Ay,qf),Ff.Ay&&Ff.Ay.locals&&Ff.Ay.locals;var Uf,Vf,Gf,Hf,Xf,Yf,$f,Qf,Zf,Jf,Kf=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},tp=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 ep{constructor(t){Uf.add(this),Vf.set(this,void 0),this.domNode=document.createElement("div"),Gf.set(this,new E("Drawing",()=>this.toggle())),Hf.set(this,document.createElement("div")),Xf.set(this,void 0),Kf(this,Vf,t,"f"),this.domNode.classList.add(Ff.fS),this.domNode.append(tp(this,Gf,"f").domNode),tp(this,Hf,"f").classList.add(Ff.Qs),this.domNode.append(tp(this,Hf,"f")),Kf(this,Xf,new np(t),"f"),tp(this,Hf,"f").append(tp(this,Xf,"f").domNode),this.collapse(),this.refresh()}isCollapsed(){return this.domNode.classList.contains(Ff.yZ)}collapse(){this.domNode.classList.add(Ff.yZ),tp(this,Gf,"f").caret.pointRight()}expand(){this.domNode.classList.remove(Ff.yZ),tp(this,Gf,"f").caret.pointDown()}toggle(){this.isCollapsed()?this.expand():this.collapse()}refresh(){tp(this,Uf,"a",Yf).forEach(t=>t.refresh())}}Vf=new WeakMap,Gf=new WeakMap,Hf=new WeakMap,Xf=new WeakMap,Uf=new WeakSet,Yf=function(){return[tp(this,Xf,"f")]};class np{constructor(t){$f.set(this,void 0),Qf.set(this,void 0),Zf.set(this,void 0),Kf(this,$f,t,"f"),Kf(this,Qf,new el("data-name",new rp([t.drawing]),t),"f"),Kf(this,Zf,new Q("Name",tp(this,Qf,"f").domNode),"f"),this.domNode.style.alignSelf="start",tp(this,Qf,"f").domNode.style.width="132px",this.refresh()}get domNode(){return tp(this,Zf,"f").domNode}refresh(){tp(this,Qf,"f").refresh()}}$f=new WeakMap,Qf=new WeakMap,Zf=new WeakMap;class rp{constructor(t){Jf.set(this,void 0),Kf(this,Jf,[...t],"f")}[(Jf=new WeakMap,Symbol.iterator)](){return tp(this,Jf,"f").values()}addEventListener(t,e){}}var ip=n(290),sp={};sp.styleTagTransform=w(),sp.setAttributes=m(),sp.insert=f().bind(null,"head"),sp.domAPI=c(),sp.insertStyleElement=y(),u()(ip.A,sp),ip.A&&ip.A.locals&&ip.A.locals;var op,ap,hp,up,lp,cp,dp,fp,pp,mp,gp=n(139),yp=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},vp=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 wp{constructor(t){op.add(this),ap.set(this,void 0),this.domNode=document.createElement("div"),hp.set(this,void 0),up.set(this,void 0),lp.set(this,void 0),cp.set(this,void 0),dp.set(this,void 0),fp.set(this,void 0),pp.set(this,void 0),yp(this,ap,t,"f"),this.domNode.classList.add(b.KQ);let e=document.createElement("p");e.classList.add(b.wx),e.textContent="Edit",this.domNode.append(e);let n=document.createElement("div");n.classList.add(b.UJ),this.domNode.append(n),yp(this,hp,new Ms(t),"f"),n.append(vp(this,hp,"f").domNode),yp(this,up,new Ha(t),"f"),n.append(vp(this,up,"f").domNode),yp(this,lp,new Ou(t),"f"),n.append(vp(this,lp,"f").domNode),yp(this,cp,new Mc(t),"f"),n.append(vp(this,cp,"f").domNode),yp(this,dp,new bf(t),"f"),n.append(vp(this,dp,"f").domNode),yp(this,fp,new ep(t),"f"),n.append(vp(this,fp,"f").domNode);let r=function(){let t=document.createElement("p");return t.classList.add(ip._),t.textContent="Close",t}();r.addEventListener("click",()=>this.close()),this.domNode.append(r),yp(this,pp,new gp.DragTranslater(this.domNode),"f")}appendTo(t){this.refresh(),this.reposition(),t.appendChild(this.domNode)}close(){this.domNode.remove()}refresh(){vp(this,op,"a",mp).forEach(t=>t.refresh())}reposition(){vp(this,pp,"f").untranslate()}}ap=new WeakMap,hp=new WeakMap,up=new WeakMap,lp=new WeakMap,cp=new WeakMap,dp=new WeakMap,fp=new WeakMap,pp=new WeakMap,op=new WeakSet,mp=function(){return[vp(this,hp,"f"),vp(this,up,"f"),vp(this,lp,"f"),vp(this,cp,"f"),vp(this,dp,"f"),vp(this,fp,"f")]}})(),r})());
|