@rnacanvas/forms.edit 16.1.0 → 16.1.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={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 w(t){return l(t)&&t.every(a)}function y(t){return w(t)&&t.length>0}return t.r(e),t.d(e,{isArray:()=>l,isEmptyArray:()=>c,isFiniteNumber:()=>r,isFiniteNumbersArray:()=>m,isNonEmptyArray:()=>f,isNonEmptyNumbersArray:()=>p,isNonEmptyStringsArray:()=>y,isNonFiniteNumber:()=>i,isNonFiniteNumbersArray:()=>g,isNonNegativeFiniteNumber:()=>o,isNonNullObject:()=>u,isNullish:()=>h,isNumber:()=>n,isNumbersArray:()=>d,isPositiveFiniteNumber:()=>s,isString:()=>a,isStringsArray:()=>w}),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:()=>v,isBetween:()=>l,isBetweenExclusive:()=>c,isBetweenInclusive:()=>l,max:()=>u,mean:()=>r,median:()=>a,min:()=>h,normalizeAngle:()=>y,radians:()=>w,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 w(t){return t*(Math.PI/180)}function y(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 v(t,e){var n=(e=y(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:()=>v,deepCopy:()=>i,knotless:()=>d,mountainPlotTraversal:()=>w,parseDotBracket:()=>y,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 w(){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 y(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 v(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:()=>w,flipAway:()=>b,isBetween:()=>l,isBetweenExclusive:()=>c,isBetweenInclusive:()=>l,max:()=>u,mean:()=>r,median:()=>a,min:()=>h,normalizeAngle:()=>v,radians:()=>y,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 w(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 b(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";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:()=>v,areEqual:()=>t,consecutivePairs:()=>w,knotless:()=>d,missing:()=>b,mountainPlotTraversal:()=>m,other:()=>e,parallelPairs:()=>y,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 w(t){return t.length<2?[]:t.slice(0,-1).map((e,n)=>[t[n],t[n+1]])}function y(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 v(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()},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:()=>w,flipAway:()=>b,isBetween:()=>l,isBetweenExclusive:()=>c,isBetweenInclusive:()=>l,max:()=>u,mean:()=>r,median:()=>a,min:()=>h,normalizeAngle:()=>v,radians:()=>y,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 w(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 b(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";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})()},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 w(t){return l(t)&&t.every(a)}function y(t){return w(t)&&t.length>0}return t.r(e),t.d(e,{isArray:()=>l,isEmptyArray:()=>c,isFiniteNumber:()=>r,isFiniteNumbersArray:()=>m,isNonEmptyArray:()=>f,isNonEmptyNumbersArray:()=>p,isNonEmptyStringsArray:()=>y,isNonFiniteNumber:()=>i,isNonFiniteNumbersArray:()=>g,isNonNegativeFiniteNumber:()=>o,isNonNullObject:()=>u,isNullish:()=>h,isNumber:()=>n,isNumbersArray:()=>d,isPositiveFiniteNumber:()=>s,isString:()=>a,isStringsArray:()=>w}),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:()=>v,OuterXML:()=>_,Scaling:()=>f,VerticalClientScaling:()=>p,assignUUID:()=>l,bringToFront:()=>m,isSVGGraphicsElement:()=>N,isSVGGraphicsElementsArray:()=>E,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 w,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 v{constructor(t){w.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,w,t)}toString(){return y(this,w,"f").innerHTML}set(t){y(this,w,"f").innerHTML=t}}w=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 E(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 w(t){return l(t)&&t.every(a)}function y(t){return w(t)&&t.length>0}return t.r(e),t.d(e,{isArray:()=>l,isEmptyArray:()=>c,isFiniteNumber:()=>r,isFiniteNumbersArray:()=>m,isNonEmptyArray:()=>f,isNonEmptyNumbersArray:()=>p,isNonEmptyStringsArray:()=>y,isNonFiniteNumber:()=>i,isNonFiniteNumbersArray:()=>g,isNonNegativeFiniteNumber:()=>o,isNonNullObject:()=>u,isNullish:()=>h,isNumber:()=>n,isNumbersArray:()=>d,isPositiveFiniteNumber:()=>s,isString:()=>a,isStringsArray:()=>w}),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:()=>v,isBetween:()=>l,isBetweenExclusive:()=>c,isBetweenInclusive:()=>l,max:()=>u,mean:()=>r,median:()=>a,min:()=>h,normalizeAngle:()=>y,radians:()=>w,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 w(t){return t*(Math.PI/180)}function y(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 v(t,e){var n=(e=y(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:()=>Ln,Nucleobase:()=>jn,seqSorted:()=>Dn});var t={};n.r(t),n.d(t,{cx:()=>Dt,cy:()=>Bt,height:()=>Rt,rx:()=>Wt,ry:()=>Pt,width:()=>It,x:()=>jt,y:()=>Lt});var e={};n.r(e),n.d(e,{from:()=>qt,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:()=>Me,clear:()=>Ce,move:()=>Ae,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:()=>wn,move:()=>yn,size:()=>vn,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 w(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 y=new Set(["desc","metadata","title"]),v=t=>y.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 E{}const S={},T="___SYMBOL___ROOT___";function M(t,e=x){return k.document.createElementNS(e,t)}function C(t,e=!1){if(t instanceof E)return t;if("object"==typeof t)return W(t);if(null==t)return new S[T];if("string"==typeof t&&"<"!==t.charAt(0))return W(k.document.querySelector(t));const n=e?k.document.createElement("div"):M("svg");return n.innerHTML=t,t=W(n.firstChild),n.removeChild(n.firstChild),t}function A(t,e){return e&&(e instanceof k.window.Node||e.ownerDocument&&e instanceof e.ownerDocument.defaultView.Node)?e:M(t)}function O(t){if(!t)return null;if(t.instance instanceof E)return t.instance;if("#document-fragment"===t.nodeName)return new S.Fragment(t);let e=m(t.nodeName||"Dom");return"LinearGradient"===e||"RadialGradient"===e?e="Gradient":S[e]||(e="Dom"),new S[e](t)}let W=O;function P(t,e=t.name,n=!1){return S[e]=t,n&&(S[T]=t),f(Object.getOwnPropertyNames(t.prototype)),t}let j=1e3;function L(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=L(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+)\)/,U=/(#[a-z_][a-z0-9\-_]*)/i,q=/\)\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),w=g.x,y=g.y,v=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:v.x,ry:v.y,tx:w,ty:y,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 Tt?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)}P(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)}}}),P(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 wt(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 yt(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])yt(o,[e,a].join("."),u);delete s[e][a]}}else if(a)for(t in s)for(h in s[t])a===h&&yt(o,[t,a].join("."));else if(e){if(s[e]){for(h in s[e])yt(o,[e,h].join("."));delete s[e]}}else{for(t in s)yt(o,t);!function(t){let e=t.getEventHolder();e===k.window&&(e=pt),e.events&&(e.events={})}(i)}})}class vt extends E{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 yt(this,t,e,n),this}on(t,e,n,r){return wt(this,t,e,n,r),this}removeEventListener(){}}function bt(){}P(vt,"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"]),Et=[];class St extends vt{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 St(M(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=L(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=M("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(St,{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=Et.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))}}),P(St,"Dom");class Tt extends St{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(U);return e?C(e[1]):null}root(){const t=this.parent(S[T]);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(Tt,{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}}}),P(Tt,"Element");const Mt={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 Tt)this.attr(t,e);else for(n=Mt[t].length-1;n>=0;n--)null!=e[Mt[t][n]]&&this.attr(Mt.prefix(t,Mt[t][n]),e[Mt[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(q).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(v(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:w(t,this)});const n=new it(!0===e?this:e||!1).transform(t);return this.attr("transform",n)}});class Ct extends Tt{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()}}P(Ct,"Container");class At extends Ct{constructor(t,e=t){super(A("defs",t),e)}flatten(){return this}ungroup(){return this}}P(At,"Defs");class Ot extends Tt{}function Wt(t){return this.attr("rx",t)}function Pt(t){return this.attr("ry",t)}function jt(t){return null==t?this.cx()-this.rx():this.cx(t+this.rx())}function Lt(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))}P(Ot,"Shape");class zt extends Ot{constructor(t,e=t){super(A("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)})}),P(zt,"Ellipse");class Ft extends St{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 St(M("wrapper",n));return t.add(this.node.cloneNode(!0)),t.xml(!1,n)}return super.xml(t,!1,n)}}P(Ft,"Fragment");const Ut=Ft;function qt(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(A(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)})}}),P(Gt,"Gradient");class Ht extends Ct{constructor(t,e=t){super(A("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"})})}}),P(Ht,"Pattern");class Xt extends Ot{constructor(t,e=t){super(A("image",t),e)}load(t,e){if(!t)return this;const n=new k.window.Image;return wt(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),wt(n,"load error",function(){yt(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},Et.push(Yt),l({Container:{image:I(function(t,e){return this.put(new Xt).size(0,0).load(t,e)})}}),P(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(A("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])})}}),P(ee,"Line");class ne extends Ct{constructor(t,e=t){super(A("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)}}}),P(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 we(t){return"E"===t.lastToken.toUpperCase()}const ye=new Set([" ",",","\t","\n","\r","\f"]);class ve 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(ye.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&&!we(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)?ve:_t:R.test(t)?Nt:_e:Se.indexOf(t.constructor)>-1?t.constructor:Array.isArray(t)?_t:"object"===e?Ee:_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===Ee&&(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 Ee{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 Se=[_e,Ne,Ee];class Te extends Ot{constructor(t,e=t){super(A("path",t),e)}array(){return this._array||(this._array=new ve(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 ve(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 Me(){return this._array||(this._array=new $t(this.attr("points")))}function Ce(){return delete this._array,this}function Ae(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))}Te.prototype.MorphArray=ve,l({Container:{path:I(function(t){return this.put(new Te).plot(t||new ve)})}}),P(Te,"Path");class Pe extends Ot{constructor(t,e=t){super(A("polygon",t),e)}}l({Container:{polygon:I(function(t){return this.put(new Pe).plot(t||new $t)})}}),B(Pe,i),B(Pe,s),P(Pe,"Polygon");class je extends Ot{constructor(t,e=t){super(A("polyline",t),e)}}l({Container:{polyline:I(function(t){return this.put(new je).plot(t||new $t)})}}),B(je,i),B(je,s),P(je,"Polyline");class Le extends Ot{constructor(t,e=t){super(A("rect",t),e)}}B(Le,{rx:Wt,ry:Pt}),l({Container:{rect:I(function(t,e){return this.put(new Le).size(t,e)})}}),P(Le,"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 vt{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 Ue extends vt{constructor(t){super(),this.id=Ue.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=Ue.sanitise(t,e,n),i=new Ue(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}}Ue.id=0;class qe{constructor(t=new it,e=-1,n=!0){this.transforms=t,this.id=e,this.done=n}clearTransformsFromQueue(){}}B([Ue,qe],{mergeWith(t){return new qe(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 qe).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=Ue.sanitise(t,e,n),i=this.timeline();return new Ue(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 qe(new it(this))))}}}),B(Ue,{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 Ee(i.from()).valueOf();Object.assign(n,e),i.from(n)}const h=new Ee(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||w(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=w(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(Ue,{rx:Wt,ry:Pt,from:qt,to:Vt}),P(Ue,"Runner");class Ye extends Ct{constructor(t,e=t){super(A("svg",t),e),this.namespace()}defs(){return this.isRoot()?O(this.node.querySelector("defs"))||this.put(new At):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)})}}),P(Ye,"Svg",!0);class $e extends Ct{constructor(t,e=t){super(A("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)})}}),P($e,"Symbol");class un extends Ot{constructor(t,e=t){super(A("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(v(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||v(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)})}}),P(un,"Text");class ln extends Ot{constructor(t,e=t){super(A("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()}}}),P(ln,"Tspan");class cn extends Ot{constructor(t,e=t){super(A("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:Lt,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)})}}),P(cn,"Circle");class fn extends Ct{constructor(t,e=t){super(A("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)}}}),P(fn,"ClipPath");class dn extends Tt{constructor(t,e=t){super(A("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 wn(t,e=this.bbox()){return null==t?e.height:this.size(e.width,t,e)}function yn(t=0,e=0,n=this.bbox()){const r=t-n.x,i=e-n.y;return this.dmove(r,i)}function vn(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)})}}),P(dn,"ForeignObject");class Nn extends Ct{constructor(t,e=t){super(A("g",t),e)}}B(Nn,a),l({Container:{group:I(function(){return this.put(new Nn)})}}),P(Nn,"G");class kn extends Ct{constructor(t,e=t){super(A("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}}}),P(kn,"A");class En extends Ct{constructor(t,e=t){super(A("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 En)})},Element:{masker(){return this.reference("mask")},maskWith(t){const e=t instanceof En?t:this.parent().mask().add(t);return this.attr("mask","url(#"+e.id()+")")},unmask(){return this.attr("mask",null)}}}),P(En,"Mask");class Sn extends Tt{constructor(t,e=t){super(A("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 Sn).update(t,e,n)}}}),P(Sn,"Stop");class Tn extends Tt{constructor(t,e=t){super(A("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 Tn).rule(t,e)},fontface(t,e,n){return this.put(new Tn).font(t,e,n)}}),P(Tn,"Style");class Mn extends un{constructor(t,e=t){super(A("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 Mn;let r;if(t instanceof Te||(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()))}}}),Mn.prototype.MorphArray=ve,P(Mn,"TextPath");class Cn extends Ot{constructor(t,e=t){super(A("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)})}}),P(Cn,"Use"),B([Ye,$e,Xt,Ht,ne],c("viewbox")),B([ee,je,Pe,Te],c("marker")),B(un,c("Text")),B(Te,c("Path")),B(At,c("Defs")),B([un,ln],c("Tspan")),B([Le,zt,Gt,Ue],c("radius")),B(vt,c("EventTarget")),B(St,c("Dom")),B(Tt,c("Element")),B(Ot,c("Shape")),B([Ct,Ut],c("Container")),B(Gt,c("Gradient")),B(Ue,c("Runner")),lt.extend([...new Set(u)]),function(t=[]){Se.push(...[].concat(t))}([Nt,et,at,it,_t,$t,ve,nt]),B(Se,{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 An=n(726),On=n(854),Wn=n(731),Pn=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,An.bringToFront)(this.domNode)}sendToBack(){(0,An.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,An.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,Pn.mean)([t.left,t.right]),y:(0,Pn.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 Ln{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()},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 w(t){return l(t)&&t.every(a)}function y(t){return w(t)&&t.length>0}return t.r(e),t.d(e,{isArray:()=>l,isEmptyArray:()=>c,isFiniteNumber:()=>r,isFiniteNumbersArray:()=>m,isNonEmptyArray:()=>f,isNonEmptyNumbersArray:()=>p,isNonEmptyStringsArray:()=>y,isNonFiniteNumber:()=>i,isNonFiniteNumbersArray:()=>g,isNonNegativeFiniteNumber:()=>o,isNonNullObject:()=>u,isNullish:()=>h,isNumber:()=>n,isNumbersArray:()=>d,isPositiveFiniteNumber:()=>s,isString:()=>a,isStringsArray:()=>w}),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:()=>v,OuterXML:()=>_,Scaling:()=>f,VerticalClientScaling:()=>p,assignUUID:()=>l,bringToFront:()=>m,drawOnCanvas:()=>T,isSVGGraphicsElement:()=>N,isSVGGraphicsElementsArray:()=>E,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 w,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 v{constructor(t){w.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,w,t)}toString(){return y(this,w,"f").innerHTML}set(t){y(this,w,"f").innerHTML=t}}w=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 E(t){return(0,k.isArray)(t)&&t.every(N)}var S=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 T(t){return S(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()},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:()=>y});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),w={};w.styleTagTransform=m(),w.setAttributes=c(),w.insert=u().bind(null,"head"),w.domAPI=a(),w.insertStyleElement=d(),s()(g.A,w),g.A&&g.A.locals&&g.A.locals;class y{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()},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:()=>v,isBetween:()=>l,isBetweenExclusive:()=>c,isBetweenInclusive:()=>l,max:()=>u,mean:()=>r,median:()=>a,min:()=>h,normalizeAngle:()=>y,radians:()=>w,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 w(t){return t*(Math.PI/180)}function y(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 v(t,e){var n=(e=y(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,w,y,v,b,x,_,N,k,E,S,T,M,C=n(645),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)},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),w.set(this,document.createElement("div")),y.set(this,document.createElement("p")),v.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,()=>{}),E.set(this,()=>{}),A(this,w,"f").classList.add(p.YL),A(this,y,"f").classList.add(p.Qq),A(this,y,"f").textContent=null!=t?t:"",A(this,w,"f").append(A(this,y,"f")),A(this,v,"f").classList.add(p.jJ),A(this,w,"f").append(A(this,v,"f")),A(this,b,"f").classList.add(p.JJ),A(this,w,"f").append(A(this,b,"f"))}get textContent(){return A(this,y,"f").textContent}set textContent(t){let e=!A(this,g,"m",M).call(this);A(this,g,"m",T).call(this),A(this,y,"f").textContent=t,e&&A(this,g,"m",S).call(this)}get owner(){return A(this,N,"f")}set owner(t){A(this,N,"f")&&(A(this,N,"f").removeEventListener("mouseover",A(this,k,"f")),A(this,N,"f").removeEventListener("mouseout",A(this,E,"f"))),O(this,N,t,"f"),t&&(t.addEventListener("mouseover",()=>A(this,g,"m",S).call(this)),t.addEventListener("mouseout",()=>A(this,g,"m",T).call(this)))}get padding(){return A(this,x,"f")}set padding(t){O(this,x,t,"f"),A(this,g,"m",M).call(this)||(A(this,g,"m",T).call(this),A(this,g,"m",S).call(this))}get pointerDisplacement(){return A(this,_,"f")}set pointerDisplacement(t){O(this,_,t,"f"),A(this,g,"m",M).call(this)||(A(this,g,"m",T).call(this),A(this,g,"m",S).call(this))}}w=new WeakMap,y=new WeakMap,v=new WeakMap,b=new WeakMap,x=new WeakMap,_=new WeakMap,N=new WeakMap,k=new WeakMap,E=new WeakMap,g=new WeakSet,S=function(){if(A(this,w,"f").style.left="0px",A(this,w,"f").style.top="0px",A(this,v,"f").style.marginLeft=`${A(this,_,"f")}px`,A(this,b,"f").style.marginLeft=`${A(this,_,"f")}px`,document.body.append(A(this,w,"f")),!A(this,N,"f"))return;let t=A(this,w,"f").getBoundingClientRect().width,e=A(this,y,"f").getBoundingClientRect().height+A(this,v,"f").getBoundingClientRect().height/2-1,n=C.Box.matching(A(this,N,"f").getBoundingClientRect()).padded(A(this,x,"f"));A(this,w,"f").style.left=n.peripheralPoint(3*Math.PI/2).x-t/2-A(this,_,"f")/2+"px",A(this,w,"f").style.top=n.peripheralPoint(3*Math.PI/2).y-e+"px"},T=function(){A(this,w,"f").remove()},M=function(){return!document.body.contains(A(this,w,"f"))}})(),r})(),t.exports=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 w(t){return l(t)&&t.every(a)}function y(t){return w(t)&&t.length>0}return t.r(e),t.d(e,{isArray:()=>l,isEmptyArray:()=>c,isFiniteNumber:()=>r,isFiniteNumbersArray:()=>m,isNonEmptyArray:()=>f,isNonEmptyNumbersArray:()=>p,isNonEmptyStringsArray:()=>y,isNonFiniteNumber:()=>i,isNonFiniteNumbersArray:()=>g,isNonNegativeFiniteNumber:()=>o,isNonNullObject:()=>u,isNullish:()=>h,isNumber:()=>n,isNumbersArray:()=>d,isPositiveFiniteNumber:()=>s,isString:()=>a,isStringsArray:()=>w}),e})()},633(t,e,n){"use strict";n.d(e,{Ay:()=>y,IU:()=>d,QB:()=>w,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",w="a5Wi7rcTlB2tWpGwD8zf";const y=o},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},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},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},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},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},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},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},718(t,e,n){"use strict";n.d(e,{A:()=>h,f:()=>a});var r=n(601),i=n.n(r),s=n(314),o=n.n(s)()(i());o.push([t.id,".dJooW1v5ZrIjmYLGpnlH {\n margin-top: 29px;\n\n display: flex;\n flex-direction: column;\n}\n",""]);var a="dJooW1v5ZrIjmYLGpnlH";const h=o},380(t,e,n){"use strict";n.d(e,{Ay:()=>u,Pf:()=>h,d8:()=>a});var r=n(601),i=n.n(r),s=n(314),o=n.n(s)()(i());o.push([t.id,'.Hk0dk5h81kfmTypkfmn7 {\n margin-top: 14px;\n\n display: flex;\n flex-direction: column;\n}\n\n.z9z6RWqjzqZi5Lxgwlxg {\n margin: 0px 0px 8px 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="Hk0dk5h81kfmTypkfmn7",h="z9z6RWqjzqZi5Lxgwlxg";const u=o},151(t,e,n){"use strict";n.d(e,{A:()=>h,w:()=>a});var r=n(601),i=n.n(r),s=n(314),o=n.n(s)()(i());o.push([t.id,'.wycktObmx1kO4znXAJHF {\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',""]);var a="wycktObmx1kO4znXAJHF";const h=o},313(t,e,n){"use strict";n.d(e,{Ay:()=>c,HS:()=>a,Qs:()=>h,y1:()=>l,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._8rBW8W6lwJb5IOiKXf4 {\n display: none;\n flex-direction: column;\n}\n",""]);var a="a6ORYgMQABEHR6aBTOyH",h="AlufD9RFKRiHPBf1_E_0",u="OJg1zcUAnASkF64IFOL6",l="_8rBW8W6lwJb5IOiKXf4";const c=o},153(t,e,n){"use strict";n.d(e,{Ay:()=>u,Pf:()=>h,sR:()=>a});var r=n(601),i=n.n(r),s=n(314),o=n.n(s)()(i());o.push([t.id,'.lMTadMC86oxlGGuNWJq0 {\n margin-top: 20px;\n\n display: flex;\n flex-direction: row;\n align-items: center;\n}\n\n.Est34jL7jaXMGTPu8m4H {\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="lMTadMC86oxlGGuNWJq0",h="Est34jL7jaXMGTPu8m4H";const u=o},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},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},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},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},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},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},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},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}},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}},601(t){"use strict";t.exports=function(t){return t[1]}},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]",w="[object Boolean]",y="[object Date]",v="[object Error]",b="[object Function]",x="[object GeneratorFunction]",_="[object Map]",N="[object Number]",k="[object Object]",E="[object Promise]",S="[object RegExp]",T="[object Set]",M="[object String]",C="[object Symbol]",A="[object WeakMap]",O="[object ArrayBuffer]",W="[object DataView]",P="[object Float32Array]",j="[object Float64Array]",L="[object Int8Array]",D="[object Int16Array]",B="[object Int32Array]",I="[object Uint8Array]",R="[object Uint8ClampedArray]",z="[object Uint16Array]",F="[object Uint32Array]",U=/\b__p \+= '';/g,q=/\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,wt=/^(?:0|[1-9]\d*)$/,yt=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,vt=/($^)/,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",Et="A-Z\\xc0-\\xd6\\xd8-\\xde",St="\\ufe0e\\ufe0f",Tt="\\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",Mt="["+xt+"]",Ct="["+Tt+"]",At="["+_t+"]",Ot="\\d+",Wt="["+Nt+"]",Pt="["+kt+"]",jt="[^"+xt+Tt+Ot+Nt+kt+Et+"]",Lt="\\ud83c[\\udffb-\\udfff]",Dt="[^"+xt+"]",Bt="(?:\\ud83c[\\udde6-\\uddff]){2}",It="[\\ud800-\\udbff][\\udc00-\\udfff]",Rt="["+Et+"]",zt="\\u200d",Ft="(?:"+Pt+"|"+jt+")",Ut="(?:"+Rt+"|"+jt+")",qt="(?:['’](?:d|ll|m|re|s|t|ve))?",Vt="(?:['’](?:D|LL|M|RE|S|T|VE))?",Gt="(?:"+At+"|"+Lt+")?",Ht="["+St+"]?",Xt=Ht+Gt+"(?:"+zt+"(?:"+[Dt,Bt,It].join("|")+")"+Ht+Gt+")*",Yt="(?:"+[Wt,Bt,It].join("|")+")"+Xt,$t="(?:"+[Dt+At+"?",At,Bt,It,Mt].join("|")+")",Qt=RegExp("['’]","g"),Zt=RegExp(At,"g"),Jt=RegExp(Lt+"(?="+Lt+")|"+$t+Xt,"g"),Kt=RegExp([Rt+"?"+Pt+"+"+qt+"(?="+[Ct,Rt,"$"].join("|")+")",Ut+"+"+Vt+"(?="+[Ct,Rt+Ft,"$"].join("|")+")",Rt+"?"+Ft+"+"+qt,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+St+"]"),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[P]=ie[j]=ie[L]=ie[D]=ie[B]=ie[I]=ie[R]=ie[z]=ie[F]=!0,ie[m]=ie[g]=ie[O]=ie[w]=ie[W]=ie[y]=ie[v]=ie[b]=ie[_]=ie[N]=ie[k]=ie[S]=ie[T]=ie[M]=ie[A]=!1;var se={};se[m]=se[g]=se[O]=se[W]=se[w]=se[y]=se[P]=se[j]=se[L]=se[D]=se[B]=se[_]=se[N]=se[k]=se[S]=se[T]=se[M]=se[C]=se[I]=se[R]=se[z]=se[F]=!0,se[v]=se[b]=se[A]=!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){}}(),we=ge&&ge.isArrayBuffer,ye=ge&&ge.isDate,ve=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 Ee(t,e){for(var n=-1,r=null==t?0:t.length;++n<r&&!1!==e(t[n],n,t););return t}function Se(t,e){for(var n=null==t?0:t.length;n--&&!1!==e(t[n],n,t););return t}function Te(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 Me(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 Ae(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 Pe(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 Le(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=qe("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 Ue(t,e){var n=null==t?0:t.length;return n?He(t,e)/n:f}function qe(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,Et=e.RegExp,St=e.String,Tt=e.TypeError,Mt=r.prototype,Ct=_t.prototype,At=kt.prototype,Ot=e["__core-js_shared__"],Wt=Ct.toString,Pt=At.hasOwnProperty,jt=0,Lt=(n=/[^.]+$/.exec(Ot&&Ot.keys&&Ot.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",Dt=At.toString,Bt=Wt.call(kt),It=ce._,Rt=Et("^"+Wt.call(Pt).replace(et,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),zt=pe?e.Buffer:i,Ft=e.Symbol,Ut=e.Uint8Array,qt=zt?zt.allocUnsafe:i,Vt=on(kt.getPrototypeOf,kt),Gt=kt.create,Ht=At.propertyIsEnumerable,Xt=Mt.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=Mt.join,mn=on(kt.keys,kt),gn=Nt.max,wn=Nt.min,yn=it.now,vn=e.parseInt,bn=Nt.random,xn=Mt.reverse,_n=hs(e,"DataView"),Nn=hs(e,"Map"),kn=hs(e,"Promise"),En=hs(e,"Set"),Sn=hs(e,"WeakMap"),Tn=hs(kt,"create"),Mn=Sn&&new Sn,Cn={},An=Ds(_n),On=Ds(Nn),Wn=Ds(kn),Pn=Ds(En),jn=Ds(Sn),Ln=Ft?Ft.prototype:i,Dn=Ln?Ln.valueOf:i,Bn=Ln?Ln.toString:i;function In(t){if(ta(t)&&!qo(t)&&!(t instanceof Un)){if(t instanceof Fn)return t;if(Pt.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 Un(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=d,this.__views__=[]}function qn(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=qo(t),r=!n&&Uo(t),i=!n&&!r&&Xo(t),s=!n&&!r&&!i&&ha(t),o=n||r||i||s,a=o?Xe(t.length,St):[],h=a.length;for(var u in t)!e&&!Pt.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(Si(t),sr(e,0,t.length))}function Zn(t){return Os(Si(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];Pt.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&&Ti(e,Aa(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:Ea(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=qo(t);if(c){if(a=function(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&Pt.call(t,"index")&&(n.index=t.index,n.input=t.input),n}(t),!h)return Si(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 Ti(t,ls(t),e)}(t,function(t,e){return t&&Ti(e,Oa(e),t)}(a,t)):function(t,e){return Ti(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 w:case y: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 P:case j:case L:case D:case B:case I:case R:case z:case F:return _i(t,n);case _:return new i;case N:case M:return new i(t);case S:return function(t){var e=new t.constructor(t.source,ft.exec(t));return e.lastIndex=t.lastIndex,e}(t);case T: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:Aa)(t);return Ee(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 Tt(s);return Ts(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=Ae,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,Un.prototype=Rn(zn.prototype),Un.prototype.constructor=Un,qn.prototype.clear=function(){this.__data__=Tn?Tn(null):{},this.size=0},qn.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},qn.prototype.get=function(t){var e=this.__data__;if(Tn){var n=e[t];return n===o?i:n}return Pt.call(e,t)?e[t]:i},qn.prototype.has=function(t){var e=this.__data__;return Tn?e[t]!==i:Pt.call(e,t)},qn.prototype.set=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=Tn&&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 qn,map:new(Nn||Vn),string:new qn}},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=Ai(yr),cr=Ai(vr,!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(),wr=Oi(!0);function yr(t,e){return t&&gr(t,e,Aa)}function vr(t,e){return t&&wr(t,e,Aa)}function br(t,e){return Me(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[Ls(e[n++])];return n&&n==r?t:i}function _r(t,e,n){var r=e(t);return qo(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=Pt.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 Er(t,e){return null!=t&&Pt.call(t,e)}function Sr(t,e){return null!=t&&e in kt(t)}function Tr(t,e,n){for(var s=n?Ae: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=wn(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 w=u[h];if(!(w?Ze(w,g):s(t[h],g,n)))continue t}p&&p.push(g),c.push(m)}}return c}function Mr(t,e,n){var r=null==(t=ks(t,e=gi(e,t)))?t:t[Ls(Ys(e))];return null==r?i:Ne(r,t,n)}function Cr(t){return ta(t)&&Nr(t)==m}function Ar(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=qo(t),h=qo(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 Ut(t),new Ut(e)));case w:case y:case N:return Ro(+t,+e);case v:return t.name==e.name&&t.message==e.message;case S:case M:return t==e+"";case _:var a=sn;case T: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&&Pt.call(t,"__wrapped__"),b=f&&Pt.call(e,"__wrapped__");if(p||b){var x=p?t.value():t,E=b?e.value():e;return o||(o=new Xn),s(x,E,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:Pt.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]],w=e[c];if(r)var y=a?r(w,g,c,e,t,o):r(g,w,c,t,e,o);if(!(y===i?g===w||s(g,w,n,r,o):y)){p=!1;break}m||(m="constructor"==c)}if(p&&!m){var v=t.constructor,b=e.constructor;v==b||!("constructor"in t)||!("constructor"in e)||"function"==typeof v&&v instanceof v&&"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,Ar,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?Ar(c,l,3,r,f):d))return!1}}return!0}function Wr(t){return!(!Ko(t)||(e=t,Lt&&Lt in e))&&(Qo(t)?Rt:mt).test(Ds(t));var e}function Pr(t){return"function"==typeof t?t:null==t?nh:"object"==typeof t?qo(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))Pt.call(t,n)&&"constructor"!=n&&e.push(n);return e}function Lr(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 ws(t)&&xs(e)?_s(Ls(t),e):function(n){var r=Ea(n,t);return r===i&&r===e?Sa(n,t):Ar(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=Es(t,n),u=Es(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=qo(u),p=!d&&Xo(u),m=!d&&!p&&ha(u);c=u,d||p||m?qo(h)?c=h:Ho(h)?c=Si(h):p?(f=!1,c=bi(u,!0)):m?(f=!1,c=_i(u,!0)):c=[]:ra(u)||Uo(u)?(c=h,Uo(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(Es(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 qo(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 Ur(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 qr(t,e,n,r){var i=r?ze:Re,s=-1,o=e.length,a=t;for(t===e&&(e=Si(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 Ms(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=Ls(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=Mn?function(t,e){return Mn.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 w=r||m;else w=l?m&&(r||d):h?m&&d&&(r||!p):u?m&&d&&!p&&(r||!g):!p&&!g&&(r?f<=e:f<e);w?s=c+1:o=c}return wn(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(qo(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=Ae;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&&!Pt.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[Ls(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 Un&&(n=n.value()),Pe(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 qo(t)?t:ws(t,e)?[t]:js(wa(t))}var wi=Xr;function yi(t,e,n){var r=t.length;return n=n===i?r:n,!e&&n>=r?t:ti(t,e,n)}var vi=oe||function(t){return ce.clearTimeout(t)};function bi(t,e){if(e)return t.slice();var n=t.length,r=qt?qt(n):new t.constructor(n);return t.copy(r),r}function xi(t){var e=new t.constructor(t.byteLength);return new Ut(e).set(new Ut(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 Ei(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 Si(t,e){var n=-1,i=t.length;for(e||(e=r(i));++n<i;)e[n]=t[n];return e}function Ti(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 Mi(t,e){return function(n,r){var i=qo(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 Ai(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=wa(e))?cn(e):i,r=n?n[0]:e.charAt(0),s=n?yi(n,1).join(""):e.slice(1);return r[t]()+s}}function Pi(t){return function(e){return Pe(Qa(Ua(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 Li(t){return function(e,n,r){var s=kt(e);if(!Go(e)){var o=ss(n,3);e=Aa(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 Tt(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&&ys(l[0])&&424==l[1]&&!l[4].length&&1==l[9]?h[rs(l[0])].apply(h,l[3]):1==a.length&&ys(a)?h[u]():h.thru(a)}return function(){var t=arguments,r=t[0];if(h&&1==t.length&&qo(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,w=512&e,y=m?i:ji(t);return function u(){for(var v=arguments.length,b=r(v),x=v;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=Ei(b,a,h,g)),v-=N,g&&v<f){var k=an(b,_);return Vi(t,e,Bi,u.placeholder,n,b,k,l,c,f-v)}var E=p?n:this,S=m?E[t]:t;return v=b.length,l?b=function(t,e){for(var n=t.length,r=wn(e.length,n),s=Si(t);r--;){var o=e[r];t[r]=ms(o,n)?s[o]:i}return t}(b,l):w&&v>1&&b.reverse(),d&&c<v&&(b.length=c),this&&this!==ce&&this instanceof u&&(S=y||ji(S)),S.apply(E,b)}}function Ii(t,e){return function(n,r){return function(t,e,n,r){return yr(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)?yi(cn(r),0,t).join(""):r.slice(0,t)}function Ui(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 qi(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 ys(t)&&Ss(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:wn(da(n),292))&&De(t)){var r=(wa(t)+"e").split("e");return+((r=(wa(e(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return e(t)}}var Hi=En&&1/hn(new En([,-0]))[1]==l?function(t){return new En(t)}:ah;function Xi(t){return function(e){var n=cs(e);return n==_?sn(e):n==T?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 Tt(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,w=l;o=l=i}var y=p?i:ns(t),v=[t,e,n,o,l,g,w,c,f,d];if(y&&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?Ei(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]:wn(t[8],e[8])),null==t[9]&&(t[9]=e[9]),t[0]=e[0],t[1]=i}(v,y),t=v[0],e=v[1],n=v[2],o=v[3],l=v[4],!(d=v[9]=v[9]===i?p?0:t.length:gn(v[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,v):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((y?Zr:Ss)(b,v),t,e)}function $i(t,e,n,r){return t===i||Ro(t,At[n])&&!Pt.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 w=a?r(g,m,f,e,t,o):r(m,g,f,t,e,o);if(w!==i){if(w)continue;d=!1;break}if(p){if(!Le(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 Ms(Ns(t,i,qs),t+"")}function ts(t){return _r(t,Aa,us)}function es(t){return _r(t,Oa,ls)}var ns=Mn?function(t){return Mn.get(t)}:ah;function rs(t){for(var e=t.name+"",n=Cn[e],r=Pt.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(Pt.call(In,"placeholder")?In:t).placeholder}function ss(){var t=In.iteratee||rh;return t=t===rh?Pr: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=Aa(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),Me(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=Ls(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)&&(qo(t)||Uo(t))}function ds(t){return"function"!=typeof t.constructor||bs(t)?{}:Rn(Vt(t))}function ps(t){return qo(t)||Uo(t)||!!(Yt&&t&&t[Yt])}function ms(t,e){var n=typeof t;return!!(e=null==e?c:e)&&("number"==n||"symbol"!=n&&wt.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 ws(t,e){if(qo(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 ys(t){var e=rs(t),n=In[e];if("function"!=typeof n||!(e in Un.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())!=E||En&&cs(new En)!=T||Sn&&cs(new Sn)!=A)&&(cs=function(t){var e=Nr(t),n=e==k?t.constructor:i,r=n?Ds(n):"";if(r)switch(r){case An:return W;case On:return _;case Wn:return E;case Pn:return T;case jn:return A}return e});var vs=Ot?Qo:mh;function bs(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||At)}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 Es(t,e){if(("constructor"!==e||"function"!=typeof t[e])&&"__proto__"!=e)return t[e]}var Ss=As(Zr),Ts=le||function(t,e){return ce.setTimeout(t,e)},Ms=As(Jr);function Cs(t,e,n){var r=e+"";return Ms(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 Ee(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 As(t){var e=0,n=0;return function(){var r=yn(),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,Ps,js=(Ws=Po(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===Ps.size&&Ps.clear(),t}),Ps=Ws.cache,Ws);function Ls(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 Un)return t.clone();var e=new Fn(t.__wrapped__,t.__chain__);return e.__actions__=Si(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 Us(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):wn(s,r-1)),Ie(t,ss(e,3),s,!0)}function qs(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]?Tr(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]?Tr(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]?Tr(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?qr(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=Me(t,function(t){if(Ho(t))return e=gn(t.length,e),!0}),Xe(e,function(e){return Oe(t,qe(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(Me(t,Ho))}),oo=Xr(function(t){var e=Ys(t);return Ho(e)&&(e=i),fi(Me(t,Ho),ss(e,2))}),ao=Xr(function(t){var e=Ys(t);return e="function"==typeof e?e:i,fi(Me(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 Un&&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=Mi(function(t,e,n){Pt.call(t,n)?++t[n]:rr(t,n,1)}),mo=Li(Fs),go=Li(Us);function wo(t,e){return(qo(t)?Ee:lr)(t,ss(e,3))}function yo(t,e){return(qo(t)?Se:cr)(t,ss(e,3))}var vo=Mi(function(t,e,n){Pt.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):Mr(t,e,n)}),o}),xo=Mi(function(t,e,n){rr(t,n,e)});function _o(t,e){return(qo(t)?Oe:Dr)(t,ss(e,3))}var No=Mi(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),[])}),Eo=ue||function(){return ce.Date.now()};function So(t,e,n){return e=n?i:e,e=t&&null==e?t.length:e,Yi(t,u,i,i,i,i,e)}function To(t,e){var n;if("function"!=typeof e)throw new Tt(s);return t=da(t),function(){return--t>0&&(n=e.apply(this,arguments)),t<=1&&(e=i),n}}var Mo=Xr(function(t,e,n){var r=1;if(n.length){var i=an(n,is(Mo));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 Ao(t,e,n){var r,o,a,h,u,l,c=0,f=!1,d=!1,p=!0;if("function"!=typeof t)throw new Tt(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 w(){var t=Eo();if(g(t))return y(t);u=Ts(w,function(t){var n=e-(t-l);return d?wn(n,a-(t-c)):n}(t))}function y(t){return u=i,p&&r?m(t):(r=o=i,h)}function v(){var t=Eo(),n=g(t);if(r=arguments,o=this,l=t,n){if(u===i)return function(t){return c=t,u=Ts(w,e),f?m(t):h}(l);if(d)return vi(u),u=Ts(w,e),m(l)}return u===i&&(u=Ts(w,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),v.cancel=function(){u!==i&&vi(u),c=0,r=l=o=u=i},v.flush=function(){return u===i?h:y(Eo())},v}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 Po(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new Tt(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(Po.Cache||Gn),n}function jo(t){if("function"!=typeof t)throw new Tt(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)}}Po.Cache=Gn;var Lo=wi(function(t,e){var n=(e=1==e.length&&qo(e[0])?Oe(e[0],$e(ss())):Oe(mr(e,1),$e(ss()))).length;return Xr(function(r){for(var i=-1,s=wn(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=qi(kr),Fo=qi(function(t,e){return t>=e}),Uo=Cr(function(){return arguments}())?Cr:function(t){return ta(t)&&Pt.call(t,"callee")&&!Ht.call(t,"callee")},qo=r.isArray,Vo=we?$e(we):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=ye?$e(ye):function(t){return ta(t)&&Nr(t)==y};function $o(t){if(!ta(t))return!1;var e=Nr(t);return e==v||"[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=ve?$e(ve):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=Pt.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)==S},sa=xe?$e(xe):function(t){return ta(t)&&cs(t)==T};function oa(t){return"string"==typeof t||!qo(t)&&ta(t)&&Nr(t)==M}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=qi(Lr),la=qi(function(t,e){return t<=e});function ca(t){if(!t)return[];if(Go(t))return oa(t)?cn(t):Si(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==T?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 Ti(t,Oa(t))}function wa(t){return null==t?"":oi(t)}var ya=Ci(function(t,e){if(bs(e)||Go(e))Ti(e,Aa(e),t);else for(var n in e)Pt.call(e,n)&&Kn(t,n,e[n])}),va=Ci(function(t,e){Ti(e,Oa(e),t)}),ba=Ci(function(t,e,n,r){Ti(e,Oa(e),t,r)}),xa=Ci(function(t,e,n,r){Ti(e,Aa(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,At[l])&&!Pt.call(t,l))&&(t[l]=o[l])}return t}),ka=Xr(function(t){return t.push(i,Qi),Ne(Pa,i,t)});function Ea(t,e,n){var r=null==t?i:xr(t,e);return r===i?n:r}function Sa(t,e){return null!=t&&fs(t,e,Sr)}var Ta=Ii(function(t,e,n){null!=e&&"function"!=typeof e.toString&&(e=Dt.call(e)),t[e]=n},Ka(nh)),Ma=Ii(function(t,e,n){null!=e&&"function"!=typeof e.toString&&(e=Dt.call(e)),Pt.call(t,e)?t[e].push(n):t[e]=[n]},ss),Ca=Xr(Mr);function Aa(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&&Pt.call(t,r))&&n.push(r);return n}(t)}var Wa=Ci(function(t,e,n){Rr(t,e,n)}),Pa=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}),Ti(t,es(t),n),r&&(n=or(n,7,Zi));for(var i=e.length;i--;)hi(n,e[i]);return n}),La=Ki(function(t,e){return null==t?{}:function(t,e){return Ur(t,e,function(e,n){return Sa(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),Ur(t,n,function(t,n){return e(t,n[0])})}var Ba=Xi(Aa),Ia=Xi(Oa);function Ra(t){return null==t?[]:Qe(t,Aa(t))}var za=Pi(function(t,e,n){return e=e.toLowerCase(),t+(n?Fa(e):e)});function Fa(t){return $a(wa(t).toLowerCase())}function Ua(t){return(t=wa(t))&&t.replace(yt,tn).replace(Zt,"")}var qa=Pi(function(t,e,n){return t+(n?"-":"")+e.toLowerCase()}),Va=Pi(function(t,e,n){return t+(n?" ":"")+e.toLowerCase()}),Ga=Wi("toLowerCase"),Ha=Pi(function(t,e,n){return t+(n?"_":"")+e.toLowerCase()}),Xa=Pi(function(t,e,n){return t+(n?" ":"")+$a(e)}),Ya=Pi(function(t,e,n){return t+(n?" ":"")+e.toUpperCase()}),$a=Wi("toUpperCase");function Qa(t,e,n){return t=wa(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 Ee(e,function(e){e=Ls(e),rr(t,e,Mo(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 Pr("function"==typeof t?t:or(t,1))}var ih=Xr(function(t,e){return function(n){return Mr(n,t,e)}}),sh=Xr(function(t,e){return function(n){return Mr(t,n,e)}});function oh(t,e,n){var r=Aa(e),i=br(e,r);null!=n||Ko(e)&&(i.length||!r.length)||(n=e,e=t,t=this,i=br(e,Aa(e)));var s=!(Ko(n)&&"chain"in n&&!n.chain),o=Qo(t);return Ee(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__=Si(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(Te),lh=zi(Le);function ch(t){return ws(t)?qe(Ls(t)):function(t){return function(e){return xr(e,t)}}(t)}var fh=Ui(),dh=Ui(!0);function ph(){return[]}function mh(){return!1}var gh,wh=Ri(function(t,e){return t+e},0),yh=Gi("ceil"),vh=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 Tt(s);return t=da(t),function(){if(--t<1)return e.apply(this,arguments)}},In.ary=So,In.assign=ya,In.assignIn=va,In.assignInWith=ba,In.assignWith=xa,In.at=_a,In.before=To,In.bind=Mo,In.bindAll=Ja,In.bindKey=Co,In.castArray=function(){if(!arguments.length)return[];var t=arguments[0];return qo(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(qo(n)?Si(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 Tt(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=Aa(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=Ao,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(qo(t)?Me: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=qs,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,Aa(t))},In.functionsIn=function(t){return null==t?[]:br(t,Oa(t))},In.groupBy=vo,In.initial=function(t){return null!=t&&t.length?ti(t,0,-1):[]},In.intersection=Gs,In.intersectionBy=Hs,In.intersectionWith=Xs,In.invert=Ta,In.invertBy=Ma,In.invokeMap=bo,In.iteratee=rh,In.keyBy=xo,In.keys=Aa,In.keysIn=Oa,In.map=_o,In.mapKeys=function(t,e){var n={};return e=ss(e,3),yr(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),yr(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=Po,In.merge=Wa,In.mergeWith=Pa,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 To(2,t)},In.orderBy=function(t,e,n,r){return null==t?[]:(qo(e)||(e=null==e?[]:[e]),qo(n=r?i:n)||(n=null==n?[]:[n]),Fr(t,e,n))},In.over=hh,In.overArgs=Lo,In.overEvery=uh,In.overSome=lh,In.partial=Do,In.partialRight=Bo,In.partition=No,In.pick=La,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?qr(t,e,ss(n,2)):t},In.pullAllWith=function(t,e,n){return t&&t.length&&e&&e.length?qr(t,e,i,n):t},In.pullAt=Zs,In.range=fh,In.rangeRight=dh,In.rearg=Io,In.reject=function(t,e){return(qo(t)?Me: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 Tt(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),(qo(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(qo(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=wa(t))&&("string"==typeof e||null!=e&&!ia(e))&&!(e=oi(e))&&rn(t)?yi(cn(t),0,n):t.split(e,n):[]},In.spread=function(t,e){if("function"!=typeof t)throw new Tt(s);return e=null==e?0:gn(da(e),0),Xr(function(n){var r=n[e],i=yi(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 Tt(s);return Ko(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),Ao(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 qo(t)?Oe(t,Ls):aa(t)?[t]:Si(js(wa(t)))},In.toPlainObject=ga,In.transform=function(t,e,n){var r=qo(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?Ee:yr)(t,function(t,r,i){return e(n,t,r,i)}),n},In.unary=function(t){return So(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=va,In.extendWith=ba,oh(In,In),In.add=wh,In.attempt=Za,In.camelCase=za,In.capitalize=Fa,In.ceil=yh,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,Aa(e))},In.deburr=Ua,In.defaultTo=function(t,e){return null==t||t!=t?e:t},In.divide=vh,In.endsWith=function(t,e,n){t=wa(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=wa(t))&&Y.test(t)?t.replace(H,en):t},In.escapeRegExp=function(t){return(t=wa(t))&&nt.test(t)?t.replace(et,"\\$&"):t},In.every=function(t,e,n){var r=qo(t)?Te: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),yr)},In.findLast=go,In.findLastIndex=Us,In.findLastKey=function(t,e){return Be(t,ss(e,3),vr)},In.floor=bh,In.forEach=wo,In.forEachRight=yo,In.forIn=function(t,e){return null==t?t:gr(t,ss(e,3),Oa)},In.forInRight=function(t,e){return null==t?t:wr(t,ss(e,3),Oa)},In.forOwn=function(t,e){return t&&yr(t,ss(e,3))},In.forOwnRight=function(t,e){return t&&vr(t,ss(e,3))},In.get=Ea,In.gt=zo,In.gte=Fo,In.has=function(t,e){return null!=t&&fs(t,e,Er)},In.hasIn=Sa,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>=wn(e,n)&&t<gn(e,n)}(t=ma(t),e,n)},In.invoke=Ca,In.isArguments=Uo,In.isArray=qo,In.isArrayBuffer=Vo,In.isArrayLike=Go,In.isArrayLikeObject=Ho,In.isBoolean=function(t){return!0===t||!1===t||ta(t)&&Nr(t)==w},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)&&(qo(t)||"string"==typeof t||"function"==typeof t.splice||Xo(t)||ha(t)||Uo(t)))return!t.length;var e=cs(t);if(e==_||e==T)return!t.size;if(bs(t))return!jr(t).length;for(var n in t)if(Pt.call(t,n))return!1;return!0},In.isEqual=function(t,e){return Ar(t,e)},In.isEqualWith=function(t,e,n){var r=(n="function"==typeof n?n:i)?n(t,e):i;return r===i?Ar(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(vs(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)==A},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=qa,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):wn(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 Ue(t,nh)},In.meanBy=function(t,e){return Ue(t,ss(e,2))},In.min=function(t){return t&&t.length?dr(t,nh,Lr):i},In.minBy=function(t,e){return t&&t.length?dr(t,ss(e,2),Lr):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=Eo,In.pad=function(t,e,n){t=wa(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=wa(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=wa(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),vn(wa(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 wn(t+s*(e-t+ae("1e-"+((s+"").length-1))),e)}return Gr(t,e)},In.reduce=function(t,e,n){var r=qo(t)?Pe:Ge,i=arguments.length<3;return r(t,ss(e,4),n,i,lr)},In.reduceRight=function(t,e,n){var r=qo(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(wa(t),e)},In.replace=function(){var t=arguments,e=wa(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[Ls(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(qo(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==T?t.size:jr(t).length},In.snakeCase=Ha,In.some=function(t,e,n){var r=qo(t)?Le: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=wa(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=wa(t),e=ba({},e,r,$i);var s,o,a=ba({},e.imports,r.imports,$i),h=Aa(a),u=Qe(a,h),l=0,c=e.interpolate||vt,f="__p += '",d=Et((e.escape||vt).source+"|"+c.source+"|"+(c===Z?ct:vt).source+"|"+(e.evaluate||vt).source+"|$","g"),p="//# sourceURL="+(Pt.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=Pt.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(U,""):f).replace(q,"$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=wn(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 wa(t).toLowerCase()},In.toNumber=ma,In.toSafeInteger=function(t){return t?sr(da(t),-9007199254740991,c):0===t?t:0},In.toString=wa,In.toUpper=function(t){return wa(t).toUpperCase()},In.trim=function(t,e,n){if((t=wa(t))&&(n||e===i))return Ye(t);if(!t||!(e=oi(e)))return t;var r=cn(t),s=cn(e);return yi(r,Je(r,s),Ke(r,s)+1).join("")},In.trimEnd=function(t,e,n){if((t=wa(t))&&(n||e===i))return t.slice(0,fn(t)+1);if(!t||!(e=oi(e)))return t;var r=cn(t);return yi(r,0,Ke(r,cn(e))+1).join("")},In.trimStart=function(t,e,n){if((t=wa(t))&&(n||e===i))return t.replace(rt,"");if(!t||!(e=oi(e)))return t;var r=cn(t);return yi(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=wa(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?yi(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=Et(s.source,wa(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=wa(t))&&X.test(t)?t.replace(G,dn):t},In.uniqueId=function(t){var e=++jt;return wa(t)+e},In.upperCase=Ya,In.upperFirst=$a,In.each=wo,In.eachRight=yo,In.first=Vs,oh(In,(gh={},yr(In,function(t,e){Pt.call(In.prototype,e)||(gh[e]=t)}),gh),{chain:!1}),In.VERSION="4.17.23",Ee(["bind","bindKey","curry","curryRight","partial","partialRight"],function(t){In[t].placeholder=In}),Ee(["drop","take"],function(t,e){Un.prototype[t]=function(n){n=n===i?1:gn(da(n),0);var r=this.__filtered__&&!e?new Un(this):this.clone();return r.__filtered__?r.__takeCount__=wn(n,r.__takeCount__):r.__views__.push({size:wn(n,d),type:t+(r.__dir__<0?"Right":"")}),r},Un.prototype[t+"Right"]=function(e){return this.reverse()[t](e).reverse()}}),Ee(["filter","map","takeWhile"],function(t,e){var n=e+1,r=1==n||3==n;Un.prototype[t]=function(t){var e=this.clone();return e.__iteratees__.push({iteratee:ss(t,3),type:n}),e.__filtered__=e.__filtered__||r,e}}),Ee(["head","last"],function(t,e){var n="take"+(e?"Right":"");Un.prototype[t]=function(){return this[n](1).value()[0]}}),Ee(["initial","tail"],function(t,e){var n="drop"+(e?"":"Right");Un.prototype[t]=function(){return this.__filtered__?new Un(this):this[n](1)}}),Un.prototype.compact=function(){return this.filter(nh)},Un.prototype.find=function(t){return this.filter(t).head()},Un.prototype.findLast=function(t){return this.reverse().find(t)},Un.prototype.invokeMap=Xr(function(t,e){return"function"==typeof t?new Un(this):this.map(function(n){return Mr(n,t,e)})}),Un.prototype.reject=function(t){return this.filter(jo(ss(t)))},Un.prototype.slice=function(t,e){t=da(t);var n=this;return n.__filtered__&&(t>0||e<0)?new Un(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)},Un.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},Un.prototype.toArray=function(){return this.take(d)},yr(Un.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 Un,u=a[0],l=h||qo(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 Un(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)})}),Ee(["pop","push","shift","sort","splice","unshift"],function(t){var e=Mt[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(qo(i)?i:[],t)}return this[n](function(n){return e.apply(qo(n)?n:[],t)})}}),yr(Un.prototype,function(t,e){var n=In[e];if(n){var r=n.name+"";Pt.call(Cn,r)||(Cn[r]=[]),Cn[r].push({name:e,func:n})}}),Cn[Bi(i,2).name]=[{name:"wrapper",func:i}],Un.prototype.clone=function(){var t=new Un(this.__wrapped__);return t.__actions__=Si(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=Si(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=Si(this.__views__),t},Un.prototype.reverse=function(){if(this.__filtered__){var t=new Un(this);t.__dir__=-1,t.__filtered__=!0}else(t=this.clone()).__dir__*=-1;return t},Un.prototype.value=function(){var t=this.__wrapped__.value(),e=this.__dir__,n=qo(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=wn(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=wn(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 w=l[m],y=w.iteratee,v=w.type,b=y(g);if(2==v)g=b;else if(!b){if(1==v)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 Un){var e=t;return this.__actions__.length&&(e=new Un(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)},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}}},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)}},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}},56(t,e,n){"use strict";t.exports=function(t){var e=n.nc;e&&t.setAttribute("nonce",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)}}}},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))}}},889(t){"use strict";t.exports="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxNSAxNSI+PHBhdGggZmlsbD0ibm9uZSIgc3Ryb2tlPSJibGFjayIgc3Ryb2tlLWxpbmVjYXA9IiIgc3Ryb2tlLWxpbmVqb2luPSIiIHN0cm9rZS13aWR0aD0iMiIgZD0iTTMuNSA4LjUgTDcuNSAxMS41IEwgMTEuNSAzLjUiLz48L3N2Zz4="}},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:()=>Dg});var t={};n.r(t),n.d(t,{cx:()=>Re,cy:()=>ze,height:()=>Ue,rx:()=>Le,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:()=>Pn,move:()=>jn,plot:()=>Ln,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:()=>wr,dx:()=>yr,dy:()=>vr,height:()=>br,move:()=>xr,size:()=>_r,width:()=>Nr,x:()=>kr,y:()=>Er});var h={};n.r(h),n.d(h,{$:()=>Lr,default:()=>Dr,jQuery:()=>Lr});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),w=n(540),y=n.n(w),v=n(113),b=n.n(v),x=n(420),_={};_.styleTagTransform=b(),_.setAttributes=g(),_.insert=p().bind(null,"head"),_.domAPI=f(),_.insertStyleElement=y(),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=y(),l()(N.Ay,k),N.Ay&&N.Ay.locals&&N.Ay.locals;var E=n(584),S={};S.styleTagTransform=b(),S.setAttributes=g(),S.insert=p().bind(null,"head"),S.domAPI=f(),S.insertStyleElement=y(),l()(E.Ay,S),E.Ay&&E.Ay.locals&&E.Ay.locals;var T,M=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 A,T.set(this,document.createElement("p")),this.domNode.classList.add(E.kY),!e||(this.domNode.onclick=e),this.caret.domNode.style.marginRight="6px",this.caret.domNode.style.pointerEvents="auto",this.domNode.append(this.caret.domNode),M(this,T,"f").classList.add(E.Qq),!t||(this.textContent=t),this.domNode.append(M(this,T,"f"))}get textContent(){return M(this,T,"f").textContent}set textContent(t){M(this,T,"f").textContent=t}}T=new WeakMap;class A{constructor(){this.domNode=document.createElementNS("http://www.w3.org/2000/svg","svg"),this.domNode.classList.add(E.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(E.Z7)}pointDown(){this.domNode.classList.add(E.Z7)}}var O=n(887),W={};W.styleTagTransform=b(),W.setAttributes=g(),W.insert=p().bind(null,"head"),W.domAPI=f(),W.insertStyleElement=y(),l()(O.Ay,W),O.Ay&&O.Ay.locals&&O.Ay.locals;var P,j=n(704),L=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"),P.set(this,document.createElement("p")),this.tooltip=new j.Tooltip(""),!e||(this.domNode.onclick=e),this.domNode.classList.add(O.lI),L(this,P,"f").classList.add(O.Qq),L(this,P,"f").textContent=null!=t?t:"",this.domNode.append(L(this,P,"f")),this.tooltip.owner=this.domNode}get textContent(){return L(this,P,"f").textContent}set textContent(t){L(this,P,"f").textContent=t}disable(){this.domNode.classList.add(O.r9)}enable(){this.domNode.classList.remove(O.r9)}}P=new WeakMap;var B=n(419),I={};I.styleTagTransform=b(),I.setAttributes=g(),I.insert=p().bind(null,"head"),I.domAPI=f(),I.insertStyleElement=y(),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 U=n(678),q={};q.styleTagTransform=b(),q.setAttributes=g(),q.insert=p().bind(null,"head"),q.domAPI=f(),q.insertStyleElement=y(),l()(U.Ay,q),U.Ay&&U.Ay.locals&&U.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(U.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(U.o3):X(this,G,"f").classList.remove(U.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=y(),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=y(),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 wt(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 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",Et="http://www.w3.org/2000/xmlns/",St="http://www.w3.org/1999/xlink",Tt={window:"undefined"==typeof window?null:window,document:"undefined"==typeof document?null:document};class Mt{}const Ct={},At="___SYMBOL___ROOT___";function Ot(t,e=kt){return Tt.document.createElementNS(e,t)}function Wt(t,e=!1){if(t instanceof Mt)return t;if("object"==typeof t)return Lt(t);if(null==t)return new Ct[At];if("string"==typeof t&&"<"!==t.trim().charAt(0))return Lt(Tt.document.querySelector(t));const n=e?Tt.document.createElement("div"):Ot("svg");return n.innerHTML=t.trim(),t=Lt(n.firstElementChild),n.removeChild(n.firstElementChild),t}function Pt(t,e){return e&&(e instanceof Tt.window.Node||e.ownerDocument&&e instanceof e.ownerDocument.defaultView.Node)?e:Ot(t)}function jt(t){if(!t)return null;if(t.instance instanceof Mt)return t.instance;if("#document-fragment"===t.nodeName)return new Ct.Fragment(t);let e=yt(t.nodeName||"Dom");return"LinearGradient"===e||"RadialGradient"===e?e="Gradient":Ct[e]||(e="Dom"),new Ct[e](t)}let Lt=jt;function Dt(t,e=t.name,n=!1){return Ct[e]=t,n&&(Ct[At]=t),pt(Object.getOwnPropertyNames(t.prototype)),t}let Bt=1e3;function It(t){return"Svgjs"+yt(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 Ut=/^([+-]?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?)([a-z%]*)$/i,qt=/^#?([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]=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 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),w=g.x,y=g.y,v=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:v.x,ry:v.y,tx:w,ty:y,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 Ae?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=Tt.document.body||Tt.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+=Tt.window.pageXOffset,this.y+=Tt.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)!==Tt.document&&!(Tt.document.documentElement.contains||function(t){for(;t.parentNode;)t=t.parentNode;return t===Tt.document}).call(Tt.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||Tt.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 we={};function ye(t){let e=t.getEventHolder();return e===Tt.window&&(e=we),e.events||(e.events={}),e.events}function ve(t){return t.getEventTarget()}function be(t,e,n,r,i){const s=n.bind(r||t),o=Wt(t),a=ye(o),h=ve(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=ye(i),o=ve(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===Tt.window&&(e=we),e.events&&(e.events={})}(i)}})}class _e extends Mt{addEventListener(){}dispatch(t,e,n){return function(t,e,n,r){const i=ve(t);return e instanceof Tt.window.Event||(e=new Tt.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 Ee 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 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(Ut))&&(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 Te=new Set(["fill","stroke","color","bgcolor","stop-color","flood-color","lighting-color"]),Me=[];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 Tt.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=Tt.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=Me.reduce((e,n)=>n(t,e,this),e))?e=new Se(e):Te.has(t)&&ie.isColor(e)?e=new ie(e):e.constructor===Array&&(e=new Ee(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 Ae 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 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=Wt(t));const n=new de;let r=this;for(;(r=r.parent())&&r.node!==Tt.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[At]);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 Nt(this,this.dom),super.writeDataToDom()}x(t){return this.attr("x",t)}y(t){return this.attr("y",t)}}zt(Ae,{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(Ae,"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 Ae)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 Se(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 Ae{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 Pe extends We{constructor(t,e=t){super(Pt("defs",t),e)}flatten(){return this}ungroup(){return this}}Dt(Pe,"Defs");class je extends Ae{}function Le(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 Se(t).divide(2))}function Ue(t){return null==t?2*this.ry():this.ry(new Se(t).divide(2))}Dt(je,"Shape");class qe extends je{constructor(t,e=t){super(Pt("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))}}zt(qe,t),ft("Container",{ellipse:Ft(function(t=0,e=t){return this.put(new qe).size(t,e).move(0,0)})}),Dt(qe,"Ellipse");class Ve extends Ce{constructor(t=Tt.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 Se(t),fy:new Se(e)}):this.attr({x1:new Se(t),y1:new Se(e)})}function Xe(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 Ye extends We{constructor(t,e){super(Pt(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(Pt("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(Pt("image",t),e)}load(t,e){if(!t)return this;const n=new Tt.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,St)}}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},Me.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 Ee{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(Pt("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=vt(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(Pt("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 wn(t,e){t.inNumber&&yn(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 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,gn(t)&&vn(t)}function vn(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 Ee{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||!wn(i,r))if("."!==r)if(isNaN(parseInt(r)))if(_n.has(r))i.inNumber&&yn(i,!1);else if("-"!==r&&"+"!==r)if("E"!==r.toUpperCase()){if(te.test(r)){if(i.inNumber)yn(i,!1);else{if(!gn(i))throw new Error("parser Error");vn(i)}--n}}else i.number+=r,i.hasExponent=!0;else{if(i.inNumber&&!xn(i)){yn(i,!1),--n;continue}i.number+=r,i.inNumber=!0}else{if("0"===i.number||bn(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&&gn(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 kn=t=>{const e=typeof t;return"number"===e?Se:"string"===e?ie.isColor(t)?ie:Kt.test(t)?te.test(t)?Nn:Ee:Ut.test(t)?Se:Sn:An.indexOf(t.constructor)>-1?t.constructor:Array.isArray(t)?Ee:"object"===e?Cn:Sn};class En{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 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 Tn{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,Tn.defaults,t),this}toArray(){const t=this;return[t.scaleX,t.scaleY,t.shear,t.rotate,t.translateX,t.translateY,t.originX,t.originY]}}Tn.defaults={scaleX:1,scaleY:1,shear:0,rotate:0,translateX:0,translateY:0,originX:0,originY:0};const Mn=(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(Mn),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 An=[Sn,Tn,Cn];class On extends je{constructor(t,e=t){super(Pt("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=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 Wn(){return this._array||(this._array=new Je(this.attr("points")))}function Pn(){return delete this._array,this}function jn(t,e){return this.attr("points",this.array().move(t,e))}function Ln(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=vt(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(Pt("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(Pt("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(Pt("rect",t),e)}}zt(Rn,{rx:Le,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:()=>Tt.window.performance||Tt.window.Date,transforms:[],frame(t){const e=Fn.frames.push({run:t});return null===Fn.nextDraw&&(Fn.nextDraw=Tt.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=Tt.window.requestAnimationFrame(Fn._draw)),r},immediate(t){const e=Fn.immediates.push(t);return null===Fn.nextDraw&&(Fn.nextDraw=Tt.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()?Tt.window.requestAnimationFrame(Fn._draw):null}},Un=Fn,qn=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=Tt.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(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 Un.cancelFrame(this._nextFrame),this._nextFrame=null,t?this._stepImmediate():(this._paused||(this._nextFrame=Un.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),Un.cancelImmediate(this._frameId),this._frameId=Un.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 En(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 En(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=ae.isMatrixLike(t);n=null!=t.affine?t.affine:null!=n?n:!r;const i=new En(this._stepper).type(n?Tn: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 Se(e),this._tryRetarget(t,e))return this;const n=new En(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 En(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 En(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:Le,ry:De,from:He,to:Xe}),Dt(Hn,"Runner");class Jn extends We{constructor(t,e=t){super(Pt("svg",t),e),this.namespace()}defs(){return this.isRoot()?jt(this.node.querySelector("defs"))||this.put(new Pe):this.root().defs()}isRoot(){return!this.node.parentNode||!(this.node.parentNode instanceof Tt.window.SVGElement)&&"#document-fragment"!==this.node.parentNode.nodeName}namespace(){return this.isRoot()?this.attr({xmlns:kt,version:"1.1"}).attr("xmlns:xlink",St,Et):this.root().namespace()}removeNamespace(){return this.attr({xmlns:null,version:null}).attr("xmlns:xlink",null,Et).attr("xmlns:svgjs",null,Et)}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(Pt("symbol",t),e)}}function tr(t){return!1===this._build&&this.clear(),this.node.appendChild(Tt.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(Pt("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(_t(this.node))return;const i=Tt.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 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(Pt("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=Tt.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)}}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(Pt("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))}}zt(pr,{x:Be,y:Ie,cx:Re,cy:ze,width:Fe,height:Ue}),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(Pt("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 Ae{constructor(t,e=t){super(Pt("foreignObject",t),e)}}function wr(t,e){return this.children().forEach(n=>{let r;try{r=n.node instanceof Tt.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 yr(t){return this.dmove(t,0)}function vr(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=vt(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 Er(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 Sr extends We{constructor(t,e=t){super(Pt("g",t),e)}}zt(Sr,a),ft({Container:{group:Ft(function(){return this.put(new Sr)})}}),Dt(Sr,"G");class Tr extends We{constructor(t,e=t){super(Pt("a",t),e)}target(t){return this.attr("target",t)}to(t){return this.attr("href",t,St)}}zt(Tr,a),ft({Container:{link:Ft(function(t){return this.put(new Tr).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 Tr,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(Tr,"A");class Mr extends We{constructor(t,e=t){super(Pt("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 Mr)})},Element:{masker(){return this.reference("mask")},maskWith(t){const e=t instanceof Mr?t:this.parent().mask().add(t);return this.attr("mask","url(#"+e.id()+")")},unmask(){return this.attr("mask",null)}}}),Dt(Mr,"Mask");class Cr extends Ae{constructor(t,e=t){super(Pt("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}}ft({Gradient:{stop:function(t,e,n){return this.put(new Cr).update(t,e,n)}}}),Dt(Cr,"Stop");class Ar extends Ae{constructor(t,e=t){super(Pt("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+=wt(t)+":"+e[t]+";";return n+="}",n}(t,e))}}ft("Dom",{style(t,e){return this.put(new Ar).rule(t,e)},fontface(t,e,n){return this.put(new Ar).font(t,e,n)}}),Dt(Ar,"Style");class Or extends fr{constructor(t,e=t){super(Pt("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,St),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(Pt("use",t),e)}use(t,e){return this.attr("href",(e||"")+"#"+t,St)}}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(Pe,dt("Defs")),zt([fr,dr],dt("Tspan")),zt([Rn,qe,Ye,Hn],dt("radius")),zt(_e,dt("EventTarget")),zt(Ce,dt("Dom")),zt(Ae,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=[]){An.push(...[].concat(t))}([Se,ie,le,ae,Ee,Je,Nn,se]),zt(An,{to(t){return(new En).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 Pr=n(169),jr=n(726),Lr=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,w={type:!0,src:!0,nonce:!0,noModule:!0};function y(t,e,n){var r,i=(n=n||g).createElement("script");for(r in i.text=t,w)e&&e[r]&&(i[r]=e[r]);n.head.appendChild(i).parentNode&&i.parentNode.removeChild(i)}var v="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:v,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"+(v+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){y(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]",E=g.documentMode,S=E&&new RegExp(":enabled|:disabled|\\["+k+"*name"+k+"*="+k+"*(?:''|\"\")"),T=new RegExp("^"+k+"+|((?:^|[^\\\\])(?:\\\\.)*)"+k+"+$","g"),M="(?:\\\\[\\da-fA-F]{1,6}"+k+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",C=new RegExp("^"+k+"*([>+~]|"+k+")"+k+"*"),A=new RegExp(k+"|>"),O=/[+~]/,W=g.documentElement,P=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 L(t){return t&&void 0!==t.getElementsByTagName&&t}var D="\\["+k+"*("+M+")(?:"+k+"*([*^$|!~]?=)"+k+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+M+"))|)"+k+"*\\]",B=":("+M+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+D+")*)|.*)\\)|)",I={ID:new RegExp("^#("+M+")"),CLASS:new RegExp("^\\.("+M+")"),TAG:new RegExp("^("+M+"|[*])"),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 U(t){return t.replace(z,F)}function q(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(T," ")}),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?q(t):G(t,a).slice(0)}var X={ATTR:function(t){return t[1]=U(t[1]),t[3]=U(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]||q(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]&&q(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)}}),E&&(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("^"+M+"$"),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,wt=/^h\d$/i,yt=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,vt=function(){Tt()},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&&(Tt(e),e=e||st,at)){if(11!==d&&(u=yt.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+" "]||S&&S.test(t))){if(c=t,f=e,1===d&&(A.test(t)||C.test(t))){for(((f=O.test(t)&&L(e.parentNode)||e)!=e||E)&&((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 Lt(t.replace(T,"$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 Et(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 St(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 Tt(t){var e,n=t?t.ownerDocument||t:g;n!=st&&9===n.nodeType&&(ot=(st=n).documentElement,at=!x.isXMLDoc(st),E&&g!=st&&(e=st.defaultView)&&e.top!==e&&e.addEventListener("unload",vt))}for(rt in xt.matches=function(t,e){return xt(t,null,null,e)},xt.matchesSelector=function(t,e){if(Tt(t),at&&!ft[e+" "]&&(!S||!S.test(e)))try{return P.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=U(t);return function(t){return t.getAttribute("id")===e}},TAG:function(t){var e=U(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(),w=!h&&!a,y=!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&&w){for(y=(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]||(y=f=0)||d.pop();)if(1===c.nodeType&&++y&&c===e){l[t]=[ht,f,y];break}}else if(w&&(y=f=(u=(l=e[x.expando]||(e[x.expando]={}))[t]||[])[0]===ht&&u[1]),!1===y)for(;(c=++f&&c&&c[p]||(y=f=0)||d.pop())&&(!(a?_(c,g):1===c.nodeType)||!++y||(w&&((l=c[x.expando]||(c[x.expando]={}))[t]=[ht,y]),c!==e)););return(y-=i)===r||y%r===0&&y/r>=0}}},PSEUDO:function(t,e){var n=x.expr.pseudos[t]||x.expr.setFilters[t.toLowerCase()]||q("unsupported pseudo: "+t);return n[x.expando]?n(e):n}},pseudos:{not:_t(function(t){var e=[],n=[],r=jt(t.replace(T,"$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=U(t),function(e){return(e.textContent||x.text(e)).indexOf(t)>-1}}),lang:_t(function(t){return pt.test(t||"")||q("unsupported lang: "+t),t=U(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:Et(!1),disabled:Et(!0),checked:function(t){return _(t,"input")&&!!t.checked||_(t,"option")&&!!t.selected},selected:function(t){return E&&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 wt.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:St(function(){return[0]}),last:St(function(t,e){return[e-1]}),eq:St(function(t,e,n){return[n<0?n+e:n]}),even:St(function(t,e){for(var n=0;n<e;n+=2)t.push(n);return t}),odd:St(function(t,e){for(var n=1;n<e;n+=2)t.push(n);return t}),lt:St(function(t,e,n){var r;for(r=n<0?n+e:n>e?e:n;--r>=0;)t.push(r);return t}),gt:St(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 Mt(){}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 At(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=[],w=h.length,y=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,[]),v=!t||!a&&e?y:Ot(y,m,t,u,l);if(n?n(v,p=i||(a?t:w||r)?[]:h,u,l):p=v,r)for(c=Ot(p,g),r(c,[],u,l),f=c.length;f--;)(d=c[f])&&(p[g[f]]=!(v[g[f]]=d));if(a){if(i||t){if(i){for(c=[],f=p.length;f--;)(d=p[f])&&c.push(v[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(w,p.length):p),i?i(null,h,p,l):s.apply(h,p)})}function Pt(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(At(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&&At(c),h>1&&Y(t.slice(0,h-1).concat({value:" "===t[h-2].type?"*":""})).replace(T,"$1"),n,h<r&&Pt(t.slice(h,r)),r<i&&Pt(t=t.slice(r)),r<i&&Y(t))}c.push(n)}return At(c)}function jt(t,e){var n,r=[],i=[],o=ct[t+" "];if(!o){for(e||(e=H(t)),n=e.length;n--;)(o=Pt(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=[],w=it,y=i||r&&x.expr.find.TAG("*",u),v=ht+=null==w?1:Math.random()||.1;for(u&&(it=o==st||o||u);null!=(l=y[p]);p++){if(r&&l){for(c=0,o||l.ownerDocument==st||(Tt(l),a=!at);f=t[c++];)if(f(l,o||st,a)){s.call(h,l);break}u&&(ht=v)}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=v,it=w),m};return n?_t(i):i}(i,r)),o.selector=t}return o}function Lt(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(U(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(U(a.matches[0]),O.test(o[0].type)&&L(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)&&L(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}Mt.prototype=x.expr.pseudos,x.expr.setFilters=new Mt,Tt(),x.find=xt,xt.compile=jt,xt.select=Lt,xt.setDocument=Tt,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 Ut,qt=/^(?:\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!==Ut.ready?Ut.ready(t):t(x);if(zt(n=t+""))n=[null,t,null];else{if("string"!=typeof t)return x.makeArray(t,this);n=qt.exec(t)}if(!n||!n[1]&&e)return!e||e.jquery?(e||Ut).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,Ut=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 we=/^-ms-/;function ye(t){return ee(t.replace(we,"ms-"))}var ve={};function be(t){var e,n=t.ownerDocument,r=t.nodeName,i=ve[r];return i||(e=n.body.appendChild(n.createElement(r)),i=x.css(e,"display"),e.parentNode.removeChild(e),"none"===i&&(i="block"),ve[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,Ee={thead:["table"],col:["colgroup","table"],tr:["tbody","table"],td:["tr","tbody","table"]};function Se(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}Ee.tbody=Ee.tfoot=Ee.colgroup=Ee.caption=Ee.thead,Ee.th=Ee.td;var Te=/^$|^module$|\/(?:java|ecma)script/i;function Me(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 Ae(t,n,r,i,s){for(var o,a,h,u,l,c,f=n.createDocumentFragment(),p=[],g=0,w=t.length;g<w;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=Ee[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=Se(f.appendChild(o),"script"),l&&Me(a),r)for(c=0;o=a[c++];)Te.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 Pe(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()),Pe(s,e,n,r)});if(f&&(o=(s=Ae(e,t[0].ownerDocument,!1,t,r)).firstChild,1===s.childNodes.length&&(s=o),o||r)){for(h=(a=x.map(Se(s,"script"),Oe)).length;c<f;c++)u=s,c!==d&&(u=x.clone(u,!0,!0),h&&x.merge(a,Se(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],Te.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):y(u.textContent,u,l))}return t}var je=/^(?:checkbox|radio)$/i,Le=/^([^.]*)(?:\.(.+)|)/;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=Le.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=Le.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),!E)return!1;this.addEventListener(e,n)},trigger:function(){return Re(this,t),!0},teardown:function(){if(!E)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 Ue(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 qe(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(Se(r)),r.parentNode&&(n&&_e(r)&&Me(Se(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(E&&(1===t.nodeType||11===t.nodeType)&&!x.isXMLDoc(t))for(o=Se(a),r=0,i=(s=Se(t)).length;r<i;r++)_(o[r],"textarea")&&(o[r].defaultValue=s[r].defaultValue);if(e)if(n)for(s=s||Se(t),o=o||Se(a),r=0,i=s.length;r<i;r++)Ue(s[r],o[r]);else Ue(t,a);return(o=Se(a,"script")).length>0&&Me(o,!h&&Se(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 qe(this,t,!0)},remove:function(t){return qe(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 Pe(this,arguments,function(t){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Fe(this,t).appendChild(t)})},prepend:function(){return Pe(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 Pe(this,arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this)})},after:function(){return Pe(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(Se(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)&&!Ee[(ke.exec(t)||["",""])[1].toLowerCase()]){t=x.htmlPrefilter(t);try{for(;n<r;n++)1===(e=this[n]||{}).nodeType&&(x.cleanData(Se(e,!1)),e.innerHTML=t);e=0}catch(t){}}e&&this.empty().append(t)},null,t,arguments.length)},replaceWith:function(){var t=[];return Pe(this,arguments,function(e){var n=this.parentNode;x.inArray(this,t)<0&&(x.cleanData(Se(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(T,"$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=E||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=(E||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||E&&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=ye(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":"")),E&&""===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=ye(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=ye(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 wn=/^(?:input|select|textarea|button)$/i,yn=/^(?:a|area)$/i;function vn(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):wn.test(t.nodeName)||yn.test(t.nodeName)&&t.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),E&&(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&&" "+vn(r)+" "){for(s=0;s<e.length;s++)i=e[s],n.indexOf(" "+i+" ")<0&&(n+=i+" ");o=vn(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&&" "+vn(r)+" "){for(s=0;s<e.length;s++)for(i=e[s];n.indexOf(" "+i+" ")>-1;)n=n.replace(" "+i+" "," ");o=vn(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&&(" "+vn(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}}}}),E&&(x.valHooks.option={get:function(t){var e=t.getAttribute("value");return null!=e?e:vn(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],w=u.call(e,"type")?e.type:e,y=u.call(e,"namespace")?e.namespace.split("."):[];if(o=d=a=r=r||g,3!==r.nodeType&&8!==r.nodeType&&!_n.test(w+x.event.triggered)&&(w.indexOf(".")>-1&&(y=w.split("."),w=y.shift(),y.sort()),l=w.indexOf(":")<0&&"on"+w,(e=e[x.expando]?e:new x.Event(w,"object"==typeof e&&e)).isTrigger=i?2:3,e.namespace=y.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+y.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=r),n=null==n?[e]:x.makeArray(n,[e]),f=x.event.special[w]||{},i||!f.trigger||!1!==f.trigger.apply(r,n))){if(!i&&!f.noBubble&&!p(r)){for(h=f.delegateType||w,_n.test(h+w)||(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||w,(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=w,i||e.isDefaultPrevented()||f._default&&!1!==f._default.apply(m.pop(),n)||!ne(r)||l&&"function"==typeof r[w]&&!p(r)&&((a=r[l])&&(r[l]=null),x.event.triggered=w,e.isPropagationStopped()&&d.addEventListener(w,Nn),r[w](),e.isPropagationStopped()&&d.removeEventListener(w,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,En={guid:Date.now()},Sn=/\?/;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 Tn=/\[\]$/,Mn=/\r?\n/g,Cn=/^(?:submit|button|image|reset|file)$/i,An=/^(?:input|select|textarea|keygen)/i;function On(t,e,n,r){var i;if(Array.isArray(e))x.each(e,function(e,i){n||Tn.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")&&An.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(Mn,"\r\n")}}):{name:e.name,value:n.replace(Mn,"\r\n")}}).get()}});var Wn=/%20/g,Pn=/#.*$/,jn=/([?&])_=[^&]*/,Ln=/^(.*?):[ \t]*([^\r\n]*)$/gm,Dn=/^(?:GET|HEAD)$/,Bn=/^\/\//,In={},Rn={},zn="*/".concat("*"),Fn=g.createElement("a");function Un(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 qn(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:Un(In),ajaxTransport:Un(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,w=x.Deferred(),y=x.Callbacks("once memory"),v=d.statusCode||{},b={},_={},N="canceled",k={readyState:0,getResponseHeader:function(t){var e;if(u){if(!o)for(o={};e=Ln.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)v[e]=[v[e],t[e]];return this},abort:function(t){var e=t||N;return r&&r.abort(e),E(0,e),this}};if(w.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(qn(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(Pn,""),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+=(Sn.test(i)?"&":"?")+d.data,delete d.data),!1===d.cache&&(i=i.replace(jn,"$1"),f=(Sn.test(i)?"&":"?")+"_="+En.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",y.add(d.complete),k.done(d.success),k.fail(d.error),r=qn(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,E)}catch(t){if(u)throw t;E(-1,t)}}else E(-1,"No Transport");function E(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?w.resolveWith(p,[f,N,k]):w.rejectWith(p,[k,N,g]),k.statusCode(v),v=void 0,l&&m.trigger(c?"ajaxSuccess":"ajaxError",[k,d,c?f:g]),y.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+"_"+En.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+=(Sn.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=Ae([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=vn(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=Lr;var Br,Ir,Rr,zr,Fr,Ur,qr,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,wi,yi,vi,bi,xi,_i,Ni,ki,Ei,Si,Ti,Mi,Ci,Ai,Oi,Wi,Pi,ji,Li,Di,Bi,Ii,Ri,zi,Fi,Ui,qi,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,ws,ys,vs,bs,xs,_s,Ns,ks,Es,Ss=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},Ts=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){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),Ur.set(this,void 0),qr.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),Ss(this,Ir,t,"f"),this.domNode.classList.add(N.lf),Ts(this,Rr,"f").domNode.addEventListener("click",()=>this.domNode.classList.toggle(N.ho)),this.domNode.append(Ts(this,Rr,"f").domNode),Ts(this,zr,"f").classList.add(N.Qs),this.domNode.append(Ts(this,zr,"f")),Ss(this,Fr,new As(t),"f"),Ts(this,zr,"f").append(Ts(this,Fr,"f").domNode),Ss(this,Ur,new Os(t),"f"),Ts(this,zr,"f").append(Ts(this,Ur,"f").domNode),Ts(this,qr,"f").classList.add(N.eB),Ts(this,zr,"f").append(Ts(this,qr,"f")),t.selectedBases.addEventListener("change",()=>{document.body.contains(this.domNode)&&([...t.selectedBases].length>0?Ts(this,Br,"m",ri).call(this):Ts(this,Br,"m",ii).call(this))}),Ss(this,Vr,new Ws(t),"f"),Ts(this,qr,"f").append(Ts(this,Vr,"f").domNode),Ss(this,Gr,new Ps(t),"f"),Ts(this,qr,"f").append(Ts(this,Gr,"f").domNode),Ss(this,Hr,new js(t),"f"),Ts(this,qr,"f").append(Ts(this,Hr,"f").domNode),Ss(this,Xr,new Ls(t),"f"),Ts(this,qr,"f").append(Ts(this,Xr,"f").domNode),Ss(this,Yr,new Ds(t),"f"),Ts(this,qr,"f").append(Ts(this,Yr,"f").domNode),Ss(this,$r,new Bs(t),"f"),Ts(this,qr,"f").append(Ts(this,$r,"f").domNode),Ss(this,Qr,new Is(t),"f"),Ts(this,qr,"f").append(Ts(this,Qr,"f").domNode),Ss(this,Zr,new Rs(t),"f"),Ts(this,qr,"f").append(Ts(this,Zr,"f").domNode),Ss(this,Jr,new zs(t),"f"),Ts(this,qr,"f").append(Ts(this,Jr,"f").domNode),Ss(this,Kr,new qs(t),"f"),Ts(this,qr,"f").append(Ts(this,Kr,"f").domNode),Ss(this,ti,new Vs(t),"f"),Ts(this,qr,"f").append(Ts(this,ti,"f").domNode),Ss(this,ei,new Gs(t),"f"),Ts(this,qr,"f").append(Ts(this,ei,"f").domNode)}refresh(){Ts(this,Br,"a",ni).forEach(t=>t.refresh()),[...Ts(this,Ir,"f").selectedBases].length>0?Ts(this,Br,"m",ri).call(this):Ts(this,Br,"m",ii).call(this)}}Ir=new WeakMap,Rr=new WeakMap,zr=new WeakMap,Fr=new WeakMap,Ur=new WeakMap,qr=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[Ts(this,Fr,"f"),Ts(this,Ur,"f"),Ts(this,Vr,"f"),Ts(this,Gr,"f"),Ts(this,Hr,"f"),Ts(this,Xr,"f"),Ts(this,Yr,"f"),Ts(this,$r,"f"),Ts(this,Qr,"f"),Ts(this,Zr,"f"),Ts(this,Jr,"f"),Ts(this,Kr,"f"),Ts(this,ti,"f"),Ts(this,ei,"f")]},ri=function(){Ts(this,qr,"f").style.display="block"},ii=function(){Ts(this,qr,"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),Ts(this,si,"f").classList.add(N.m9),Ts(this,si,"f").setAttribute("viewBox","0 0 6 10"),Ts(this,si,"f").setAttribute("width","6"),Ts(this,si,"f").setAttribute("height","10"),Ts(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(Ts(this,si,"f")),Ts(this,oi,"f").classList.add(N.aW),Ts(this,oi,"f").textContent="Bases",this.domNode.append(Ts(this,oi,"f"))}}si=new WeakMap,oi=new WeakMap;class As{constructor(t){ai.set(this,void 0),this.domNode=document.createElement("p"),hi.set(this,document.createElement("span")),ui.set(this,document.createElement("span")),Ss(this,ai,t,"f"),this.domNode.classList.add(N.IU),Ts(this,hi,"f").style.fontWeight="700",this.domNode.append(Ts(this,hi,"f"),Ts(this,ui,"f")),Ts(this,ai,"f").selectedBases.addEventListener("change",()=>document.body.contains(this.domNode)?this.refresh():{}),this.refresh()}refresh(){let t=[...Ts(this,ai,"f").selectedBases].length;Ts(this,hi,"f").textContent=`${t}`,Ts(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",()=>Ts(this,li,"m",wi).call(this)),None:new D("None",()=>Ts(this,li,"m",yi).call(this)),A:new D("A",()=>Ts(this,li,"m",vi).call(this,"A")),U:new D("U",()=>Ts(this,li,"m",vi).call(this,"U")),G:new D("G",()=>Ts(this,li,"m",vi).call(this,"G")),C:new D("C",()=>Ts(this,li,"m",vi).call(this,"C")),T:new D("T",()=>Ts(this,li,"m",vi).call(this,"T")),a:new D("a",()=>Ts(this,li,"m",vi).call(this,"a")),u:new D("u",()=>Ts(this,li,"m",vi).call(this,"u")),g:new D("g",()=>Ts(this,li,"m",vi).call(this,"g")),c:new D("c",()=>Ts(this,li,"m",vi).call(this,"c")),t:new D("t",()=>Ts(this,li,"m",vi).call(this,"t")),Outlined:new D("Outlined",()=>Ts(this,li,"m",bi).call(this)),Paired:new D("Paired",()=>Ts(this,li,"m",xi).call(this)),Unpaired:new D("Unpaired",()=>Ts(this,li,"m",_i).call(this))}),mi.set(this,void 0),Ss(this,ci,t,"f"),this.domNode.classList.add(N.vw),Ts(this,fi,"f").textContent="Select:",Ts(this,fi,"f").domNode.addEventListener("click",()=>Ts(this,li,"m",gi).call(this)),this.domNode.append(Ts(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=>Ts(this,pi,"f")[t].domNode)),e.append(n),h(Ts(this,di,"f")).css({display:"flex",flexDirection:"column",gap:"6px"}),e.append(Ts(this,di,"f")),Ts(this,di,"f").style.display="none",Ts(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=>Ts(this,pi,"f")[t].domNode)),Ts(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=>Ts(this,pi,"f")[t].domNode)),Ts(this,di,"f").append(i),Ts(this,di,"f").append(Ts(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=>Ts(this,pi,"f")[t].domNode)),Ts(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():{}),Ss(this,mi,new MutationObserver(()=>document.body.contains(this.domNode)?this.refresh():{}),"f"),Ts(this,mi,"f").observe(t.drawing.domNode,{childList:!0,subtree:!0}),this.refresh()}refresh(){let t=[...Ts(this,ci,"f").drawing.bases],e=new Set([...Ts(this,ci,"f").drawing.secondaryBonds].flatMap(t=>[t.base1,t.base2])),n=t.filter(t=>!e.has(t)),r=new Set(Ts(this,ci,"f").selectedBases),i=[...Ts(this,ci,"f").selectedOutlines];0==t.length?(Ts(this,pi,"f").All.disable(),Ts(this,pi,"f").All.tooltip.textContent="There are no bases in the drawing."):r.size==t.length?(Ts(this,pi,"f").All.disable(),Ts(this,pi,"f").All.tooltip.textContent="All bases are already selected."):(Ts(this,pi,"f").All.enable(),Ts(this,pi,"f").All.tooltip.textContent="Select all bases."),0==r.size?(Ts(this,pi,"f").None.disable(),Ts(this,pi,"f").None.tooltip.textContent="No bases are selected."):(Ts(this,pi,"f").None.enable(),Ts(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=Ts(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?(Ts(this,pi,"f").Outlined.disable(),Ts(this,pi,"f").Outlined.tooltip.textContent="No outlines are selected."):i.map(t=>t.owner).every(t=>r.has(t))?(Ts(this,pi,"f").Outlined.disable(),Ts(this,pi,"f").Outlined.tooltip.textContent="All bases outlined by the selected outlines are already selected."):(Ts(this,pi,"f").Outlined.enable(),Ts(this,pi,"f").Outlined.tooltip.textContent="Select bases outlined by the selected outlines."),0==e.size?(Ts(this,pi,"f").Paired.disable(),Ts(this,pi,"f").Paired.tooltip.textContent="There are no paired bases in the drawing."):[...e].every(t=>r.has(t))?(Ts(this,pi,"f").Paired.disable(),Ts(this,pi,"f").Paired.tooltip.textContent="All paired bases are already selected."):(Ts(this,pi,"f").Paired.enable(),Ts(this,pi,"f").Paired.tooltip.textContent="Select all paired bases."),0==n.length?(Ts(this,pi,"f").Unpaired.disable(),Ts(this,pi,"f").Unpaired.tooltip.textContent="There are no unpaired bases in the drawing."):n.every(t=>r.has(t))?(Ts(this,pi,"f").Unpaired.disable(),Ts(this,pi,"f").Unpaired.tooltip.textContent="All unpaired bases are already selected."):(Ts(this,pi,"f").Unpaired.enable(),Ts(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"!=Ts(this,di,"f").style.display;Ts(this,di,"f").style.display=t?"none":"flex",t?Ts(this,fi,"f").caret.pointRight():Ts(this,fi,"f").caret.pointDown()},wi=function(){Ts(this,ci,"f").addToSelected([...Ts(this,ci,"f").drawing.bases])},yi=function(){Ts(this,ci,"f").removeFromSelected([...Ts(this,ci,"f").drawing.bases])},vi=function(t){Ts(this,ci,"f").addToSelected([...Ts(this,ci,"f").drawing.bases].filter(e=>e.domNode.textContent==t))},bi=function(){Ts(this,ci,"f").addToSelected([...Ts(this,ci,"f").selectedOutlines].map(t=>t.owner))},xi=function(){Ts(this,ci,"f").addToSelected([...Ts(this,ci,"f").drawing.secondaryBonds].flatMap(t=>[t.base1,t.base2]))},_i=function(){let t=new Set([...Ts(this,ci,"f").drawing.secondaryBonds].flatMap(t=>[t.base1,t.base2]));Ts(this,ci,"f").addToSelected([...Ts(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"),Ei.set(this,document.createElement("p")),Si.set(this,new D),Ti.set(this,new D),Ss(this,ki,t,"f"),this.domNode.classList.add(N.Te),Ts(this,Ei,"f").classList.add(N.QB),Ts(this,Ei,"f").textContent="Send to:",this.domNode.append(Ts(this,Ei,"f")),Ts(this,Si,"f").domNode.addEventListener("click",()=>Ts(this,Ni,"m",Mi).call(this)),Ts(this,Si,"f").textContent="Front",Ts(this,Si,"f").domNode.style.marginLeft="26px",this.domNode.append(Ts(this,Si,"f").domNode),Ts(this,Ti,"f").domNode.addEventListener("click",()=>Ts(this,Ni,"m",Ci).call(this)),Ts(this,Ti,"f").textContent="Back",Ts(this,Ti,"f").domNode.style.marginLeft="28px",this.domNode.append(Ts(this,Ti,"f").domNode),t.selectedBases.addEventListener("change",()=>document.body.contains(this.domNode)?this.refresh():{}),this.refresh()}refresh(){Ts(this,Ni,"m",Ai).call(this),Ts(this,Ni,"m",Oi).call(this)}}ki=new WeakMap,Ei=new WeakMap,Si=new WeakMap,Ti=new WeakMap,Ni=new WeakSet,Mi=function(){let t=[...Ts(this,ki,"f").selectedBases];0!=t.length?(Ts(this,ki,"f").pushUndoStack(),t.forEach(t=>(0,jr.bringToFront)(t.domNode))):this.refresh()},Ci=function(){let t=[...Ts(this,ki,"f").selectedBases];0!=t.length?(Ts(this,ki,"f").pushUndoStack(),t.forEach(t=>(0,jr.sendToBack)(t.domNode))):this.refresh()},Ai=function(){0==[...Ts(this,ki,"f").selectedBases].length?(Ts(this,Si,"f").disable(),Ts(this,Si,"f").tooltip.textContent="No bases are selected."):(Ts(this,Si,"f").enable(),Ts(this,Si,"f").tooltip.textContent="Bring the selected bases to the front.")},Oi=function(){0==[...Ts(this,ki,"f").selectedBases].length?(Ts(this,Ti,"f").disable(),Ts(this,Ti,"f").tooltip.textContent="No bases are selected."):(Ts(this,Ti,"f").enable(),Ts(this,Ti,"f").tooltip.textContent="Send the selected bases to the back.")};class Ps{constructor(t){Wi.add(this),Pi.set(this,void 0),ji.set(this,new F({onSubmit:()=>Ts(this,Wi,"m",Di).call(this)})),Li.set(this,void 0),Ss(this,Pi,t,"f"),Ss(this,Li,new Z("Text Content",Ts(this,ji,"f").domNode),"f"),Ts(this,Li,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/API/Node/textContent",this.domNode.style.marginTop="23px",this.domNode.style.alignSelf="start",Ts(this,Pi,"f").selectedBases.addEventListener("change",()=>document.body.contains(this.domNode)?this.refresh():{}),new MutationObserver(()=>document.body.contains(this.domNode)?this.refresh():{}).observe(Ts(this,Pi,"f").drawing.domNode,{characterData:!0,subtree:!0}),this.refresh()}get domNode(){return Ts(this,Li,"f").domNode}refresh(){let t=[...Ts(this,Pi,"f").selectedBases];try{Ts(this,ji,"f").domNode.value=(0,Pr.consensusValue)(t.map(t=>{var e;return null!==(e=t.textContent)&&void 0!==e?e:""}))}catch(t){Ts(this,ji,"f").domNode.value=""}}}Pi=new WeakMap,ji=new WeakMap,Li=new WeakMap,Wi=new WeakSet,Di=function(){var t;let e=null!==(t=Ts(this,ji,"f").domNode.value)&&void 0!==t?t:"";if(e=e.trim(),!e)return void this.refresh();let n=[...Ts(this,Pi,"f").selectedBases];0==n.length||n.every(t=>t.textContent===e)||(Ts(this,Pi,"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),Ss(this,Bi,t,"f"),Ss(this,Ii,new Ys(t,"fill"),"f"),Ss(this,Ri,new Z("Fill",Ts(this,Ii,"f").domNode),"f"),Ts(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 Ts(this,Ri,"f").domNode}refresh(){Ts(this,Ii,"f").refresh()}}Bi=new WeakMap,Ii=new WeakMap,Ri=new WeakMap;class Ls{constructor(t){zi.add(this),Fi.set(this,void 0),Ui.set(this,new ot),qi.set(this,void 0),Vi.set(this,void 0),Gi.set(this,void 0),Ss(this,Fi,t,"f"),Ts(this,Ui,"f").domNode.addEventListener("input",()=>Ts(this,zi,"m",Hi).call(this)),Ss(this,qi,new ut("Fill Color",Ts(this,Ui,"f").domNode),"f"),h(this.domNode).css({marginTop:"12px",alignSelf:"start"}),Ts(this,Fi,"f").selectedBases.addEventListener("change",()=>Ss(this,Vi,void 0,"f")),Ts(this,Ui,"f").domNode.addEventListener("focus",()=>Ss(this,Gi,Ts(this,Ui,"f").domNode.value,"f")),Ts(this,Fi,"f").selectedBases.addEventListener("change",()=>document.body.contains(this.domNode)?this.refresh():{}),new MutationObserver(()=>document.body.contains(this.domNode)?this.refresh():{}).observe(Ts(this,Fi,"f").drawing.domNode,{attributes:!0,attributeFilter:["fill"],subtree:!0}),this.refresh()}get domNode(){return Ts(this,qi,"f").domNode}refresh(){let t=[...Ts(this,Fi,"f").selectedBases];if(0!=t.length)try{let e=t.map(t=>window.getComputedStyle(t.domNode).fill).map(t=>new ie(t));Ts(this,Ui,"f").domNode.value=(0,Pr.consensusValue)(e.map(t=>t.toHex().toLowerCase()))}catch(t){Ts(this,Ui,"f").domNode.value="#000000"}else Ts(this,Ui,"f").domNode.value="#000000"}}Fi=new WeakMap,Ui=new WeakMap,qi=new WeakMap,Vi=new WeakMap,Gi=new WeakMap,zi=new WeakSet,Hi=function(){if(Ts(this,Ui,"f").domNode.value===Ts(this,Gi,"f"))return;let t=[...Ts(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())===Ts(this,Ui,"f").domNode.value.toLowerCase()})||((Ts(this,Fi,"f").undoStack.isEmpty()||Ts(this,Fi,"f").undoStack.peek()!==Ts(this,Vi,"f"))&&(Ts(this,Fi,"f").pushUndoStack(),Ss(this,Vi,Ts(this,Fi,"f").undoStack.peek(),"f")),t.forEach(t=>t.setAttribute("fill",Ts(this,Ui,"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),Ss(this,Xi,t,"f"),Ss(this,Yi,new Ys(t,"fill-opacity"),"f"),Ss(this,$i,new Z("Fill Opacity",Ts(this,Yi,"f").domNode),"f"),Ts(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 Ts(this,$i,"f").domNode}refresh(){Ts(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),Ss(this,Qi,t,"f"),Ss(this,Zi,new Ys(t,"font-family"),"f"),Ss(this,Ji,new Z("Font Family",Ts(this,Zi,"f").domNode),"f"),Ts(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 Ts(this,Ji,"f").domNode}refresh(){Ts(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),Ss(this,Ki,t,"f"),Ss(this,ts,new Ys(t,"font-size"),"f"),Ss(this,es,new Z("Font Size",Ts(this,ts,"f").domNode),"f"),Ts(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 Ts(this,es,"f").domNode}refresh(){Ts(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),Ss(this,ns,t,"f"),Ss(this,rs,new Ys(t,"font-weight"),"f"),Ss(this,is,new Z("Font Weight",Ts(this,rs,"f").domNode),"f"),Ts(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 Ts(this,is,"f").domNode}refresh(){Ts(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),Ss(this,os,t,"f"),Ts(this,as,"f").domNode.addEventListener("change",()=>Ts(this,ss,"m",us).call(this)),Ss(this,hs,new rt("Bold",Ts(this,as,"f").domNode),"f"),h(this.domNode).css({marginTop:"12px",alignSelf:"start"}),Ts(this,os,"f").selectedBases.addEventListener("change",()=>document.body.contains(this.domNode)?this.refresh():{}),new MutationObserver(()=>document.body.contains(this.domNode)?this.refresh():{}).observe(Ts(this,os,"f").drawing.domNode,{attributes:!0,attributeFilter:["font-weight"],subtree:!0}),this.refresh()}get domNode(){return Ts(this,hs,"f").domNode}refresh(){let t=[...Ts(this,os,"f").selectedBases];0==t.length?Ts(this,as,"f").domNode.checked=!1:Ts(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 Us(t){return!Fs(t)}os=new WeakMap,as=new WeakMap,hs=new WeakMap,ss=new WeakSet,us=function(){let t=[...Ts(this,os,"f").selectedBases];0!=t.length?Ts(this,as,"f").domNode.checked&&t.every(Fs)?this.refresh():Ts(this,as,"f").domNode.checked||!t.every(Us)?(Ts(this,os,"f").pushUndoStack(),t.forEach(t=>{t.maintainingCenterPoint(()=>{Ts(this,as,"f").domNode.checked&&Us(t)?t.setAttribute("font-weight","700"):!Ts(this,as,"f").domNode.checked&&Fs(t)&&t.setAttribute("font-weight","400")})}),this.refresh(),Ts(this,as,"f").domNode.blur()):this.refresh():this.refresh()};class qs{constructor(t){ls.set(this,void 0),cs.set(this,void 0),fs.set(this,void 0),Ss(this,ls,t,"f"),Ss(this,cs,new Ys(t,"font-style"),"f"),Ss(this,fs,new Z("Font Style",Ts(this,cs,"f").domNode),"f"),Ts(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 Ts(this,fs,"f").domNode}refresh(){Ts(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),Ss(this,ds,t,"f"),Ss(this,ps,new Ys(t,"text-decoration"),"f"),Ss(this,ms,new Z("Text Decoration",Ts(this,ps,"f").domNode),"f"),Ts(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 Ts(this,ms,"f").domNode}refresh(){Ts(this,ps,"f").refresh()}}ds=new WeakMap,ps=new WeakMap,ms=new WeakMap;class Gs{constructor(t){gs.add(this),ws.set(this,void 0),ys.set(this,new tt),vs.set(this,void 0),Ss(this,ws,t,"f"),Ts(this,ys,"f").domNode.addEventListener("change",()=>Ts(this,gs,"m",bs).call(this)),Ss(this,vs,new rt("Underlined",Ts(this,ys,"f").domNode),"f"),h(this.domNode).css({marginTop:"12px",alignSelf:"start"}),Ts(this,ws,"f").selectedBases.addEventListener("change",()=>document.body.contains(this.domNode)?this.refresh():{}),new MutationObserver(()=>document.body.contains(this.domNode)?this.refresh():{}).observe(Ts(this,ws,"f").drawing.domNode,{attributes:!0,attributeFilter:["text-decoration"],subtree:!0}),this.refresh()}get domNode(){return Ts(this,vs,"f").domNode}refresh(){let t=[...Ts(this,ws,"f").selectedBases];0==t.length?Ts(this,ys,"f").domNode.checked=!1:Ts(this,ys,"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)}ws=new WeakMap,ys=new WeakMap,vs=new WeakMap,gs=new WeakSet,bs=function(){let t=[...Ts(this,ws,"f").selectedBases];0!=t.length?Ts(this,ys,"f").domNode.checked&&t.every(Hs)?this.refresh():Ts(this,ys,"f").domNode.checked||!t.every(Xs)?(Ts(this,ws,"f").pushUndoStack(),t.forEach(t=>{t.maintainingCenterPoint(()=>{Ts(this,ys,"f").domNode.checked&&Xs(t)?t.setAttribute("text-decoration","underline"):!Ts(this,ys,"f").domNode.checked&&Hs(t)&&t.setAttribute("text-decoration","")})}),this.refresh(),Ts(this,ys,"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:()=>Ts(this,xs,"m",Es).call(this)})),Ss(this,_s,t,"f"),Ss(this,Ns,e,"f"),Ts(this,_s,"f").selectedBases.addEventListener("change",()=>document.body.contains(this.domNode)?this.refresh():{}),new MutationObserver(()=>document.body.contains(this.domNode)?this.refresh():{}).observe(Ts(this,_s,"f").drawing.domNode,{attributes:!0,subtree:!0}),this.refresh()}get domNode(){return Ts(this,ks,"f").domNode}refresh(){let t=[...Ts(this,_s,"f").selectedBases];try{Ts(this,ks,"f").domNode.value=(0,Pr.consensusValue)(t.map(t=>{var e;return null!==(e=t.getAttribute(Ts(this,Ns,"f")))&&void 0!==e?e:""}))}catch(t){Ts(this,ks,"f").domNode.value=""}}}_s=new WeakMap,Ns=new WeakMap,ks=new WeakMap,xs=new WeakSet,Es=function(){let t=Ts(this,ks,"f").domNode.value,e=[...Ts(this,_s,"f").selectedBases];0==e.length||e.every(e=>e.getAttribute(Ts(this,Ns,"f"))===t)||(Ts(this,_s,"f").pushUndoStack(),e.forEach(e=>e.maintainingCenterPoint(()=>e.setAttribute(Ts(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=y(),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=y(),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,wo,yo,vo,bo,xo,_o,No,ko,Eo,So,To,Mo,Co,Ao,Oo,Wo,Po,jo,Lo,Do,Bo,Io,Ro,zo,Fo,Uo,qo,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,wa,ya,va,ba,xa,_a,Na,ka,Ea,Sa,Ta,Ma,Ca,Aa,Oa,Wa,Pa,ja,La,Da,Ba,Ia,Ra,za,Fa,Ua,qa,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),wo.set(this,void 0),yo.set(this,void 0),vo.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,wo,new ih(t),"f"),Xa(this,ao,"f").append(Xa(this,wo,"f").domNode),Ha(this,yo,new sh(t),"f"),Xa(this,ao,"f").append(Xa(this,yo,"f").domNode),Ha(this,vo,new oh(t),"f"),Xa(this,ao,"f").append(Xa(this,vo,"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,wo=new WeakMap,yo=new WeakMap,vo=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,wo,"f"),Xa(this,yo,"f"),Xa(this,vo,"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){Eo.set(this,void 0),this.domNode=document.createElement("p"),So.set(this,document.createElement("span")),To.set(this,document.createElement("span")),Ha(this,Eo,t,"f"),this.domNode.classList.add($s.vM),Xa(this,So,"f").style.fontWeight="700",this.domNode.append(Xa(this,So,"f"),Xa(this,To,"f")),Xa(this,Eo,"f").selectedOutlines.addEventListener("change",()=>document.body.contains(this.domNode)?this.refresh():{}),this.refresh()}refresh(){let t=[...Xa(this,Eo,"f").selectedOutlines].length;Xa(this,So,"f").textContent=`${t}`,Xa(this,To,"f").textContent=1==t?" outline is selected.":" outlines are selected."}}Eo=new WeakMap,So=new WeakMap,To=new WeakMap;class Qa{constructor(t){Mo.add(this),Co.set(this,void 0),this.domNode=document.createElement("div"),Ao.set(this,document.createElement("p")),Oo.set(this,new D),Wo.set(this,new D),Po.set(this,new D),jo.set(this,void 0),Ha(this,Co,t,"f"),this.domNode.classList.add($s.VX),Xa(this,Ao,"f").classList.add($s.iE),Xa(this,Ao,"f").textContent="Select:",this.domNode.append(Xa(this,Ao,"f")),Xa(this,Oo,"f").domNode.addEventListener("click",()=>Xa(this,Mo,"m",Lo).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,Mo,"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,Po,"f").domNode.addEventListener("click",()=>Xa(this,Mo,"m",Bo).call(this)),Xa(this,Po,"f").textContent="None",Xa(this,Po,"f").domNode.style.marginLeft="17px",this.domNode.append(Xa(this,Po,"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,Mo,"m",Io).call(this),Xa(this,Mo,"m",Ro).call(this),Xa(this,Mo,"m",zo).call(this)}}Co=new WeakMap,Ao=new WeakMap,Oo=new WeakMap,Wo=new WeakMap,Po=new WeakMap,jo=new WeakMap,Mo=new WeakSet,Lo=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,Po,"f").disable(),Xa(this,Po,"f").tooltip.textContent="No outlines are selected."):(Xa(this,Po,"f").enable(),Xa(this,Po,"f").tooltip.textContent="Deselect all outlines.")};class Za{constructor(t){Fo.add(this),Uo.set(this,void 0),this.domNode=document.createElement("div"),qo.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,Uo,t,"f"),this.domNode.style.marginTop="29px",this.domNode.style.display="flex",this.domNode.style.flexDirection="column",this.domNode.append(Xa(this,qo,"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,Uo,"f").selectedBases],e=[...Xa(this,Uo,"f").drawing.outlines],n=new Set(e.map(t=>t.owner)),r=t.filter(t=>!n.has(t));0==t.length?(Xa(this,qo,"f").disable(),Xa(this,qo,"f").tooltip.textContent="No bases are selected."):Xa(this,Fo,"a",Xo)&&0==r.length?(Xa(this,qo,"f").disable(),Xa(this,qo,"f").tooltip.textContent="The selected bases are already outlined."):(Xa(this,qo,"f").enable(),Xa(this,qo,"f").tooltip.textContent="Outline the selected bases.")}}Uo=new WeakMap,qo=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,Uo,"f").selectedBases];if(0==t.length)return;let e=[...Xa(this,Uo,"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,Uo,"f").pushUndoStack();let s=i.map(t=>Xa(this,Uo,"f").drawing.outline(t));Xa(this,Uo,"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),wa.set(this,void 0),Ha(this,da,t,"f"),Xa(this,pa,"f").domNode.addEventListener("input",()=>Xa(this,fa,"m",ya).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,wa,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,Pr.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,wa=new WeakMap,fa=new WeakSet,ya=function(){if(Xa(this,pa,"f").domNode.value===Xa(this,wa,"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){va.set(this,void 0),ba.set(this,void 0),xa.set(this,void 0),Ha(this,va,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()}}va=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){Ea.add(this),Sa.set(this,void 0),Ta.set(this,new ot),Ma.set(this,void 0),Ca.set(this,void 0),Aa.set(this,void 0),Ha(this,Sa,t,"f"),Xa(this,Ta,"f").domNode.addEventListener("input",()=>Xa(this,Ea,"m",Oa).call(this)),Ha(this,Ma,new ut("Stroke Color",Xa(this,Ta,"f").domNode),"f"),h(this.domNode).css({marginTop:"12px",alignSelf:"start"}),Xa(this,Sa,"f").selectedOutlines.addEventListener("change",()=>Ha(this,Ca,void 0,"f")),Xa(this,Ta,"f").domNode.addEventListener("focus",()=>Ha(this,Aa,Xa(this,Ta,"f").domNode.value,"f")),Xa(this,Sa,"f").selectedOutlines.addEventListener("change",()=>document.body.contains(this.domNode)?this.refresh():{}),new MutationObserver(()=>document.body.contains(this.domNode)?this.refresh():{}).observe(Xa(this,Sa,"f").drawing.domNode,{attributes:!0,attributeFilter:["stroke"],subtree:!0}),this.refresh()}get domNode(){return Xa(this,Ma,"f").domNode}refresh(){let t=[...Xa(this,Sa,"f").selectedOutlines];if(0!=t.length)try{let e=t.map(t=>window.getComputedStyle(t.domNode).stroke).map(t=>new ie(t));Xa(this,Ta,"f").domNode.value=(0,Pr.consensusValue)(e.map(t=>t.toHex().toLowerCase()))}catch(t){Xa(this,Ta,"f").domNode.value="#000000"}else Xa(this,Ta,"f").domNode.value="#000000"}}Sa=new WeakMap,Ta=new WeakMap,Ma=new WeakMap,Ca=new WeakMap,Aa=new WeakMap,Ea=new WeakSet,Oa=function(){if(Xa(this,Ta,"f").domNode.value===Xa(this,Aa,"f"))return;let t=[...Xa(this,Sa,"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,Ta,"f").domNode.value.toLowerCase()})||((Xa(this,Sa,"f").undoStack.isEmpty()||Xa(this,Sa,"f").undoStack.peek()!==Xa(this,Ca,"f"))&&(Xa(this,Sa,"f").pushUndoStack(),Ha(this,Ca,Xa(this,Sa,"f").undoStack.peek(),"f")),t.forEach(t=>t.domNode.setAttribute("stroke",Xa(this,Ta,"f").domNode.value.toLowerCase()))),this.refresh()):this.refresh()};class oh{constructor(t){Wa.set(this,void 0),Pa.set(this,void 0),ja.set(this,void 0),Ha(this,Wa,t,"f"),Ha(this,Pa,new uh(t,"stroke-opacity"),"f"),Ha(this,ja,new Z("Stroke Opacity",Xa(this,Pa,"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,Pa,"f").refresh()}}Wa=new WeakMap,Pa=new WeakMap,ja=new WeakMap;class ah{constructor(t){La.set(this,void 0),Da.set(this,void 0),Ba.set(this,void 0),Ha(this,La,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()}}La=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),Ua.set(this,void 0),qa.set(this,void 0),Va.set(this,new F({onSubmit:()=>Xa(this,Fa,"m",Ga).call(this)})),Ha(this,Ua,t,"f"),Ha(this,qa,e,"f"),Xa(this,Ua,"f").selectedOutlines.addEventListener("change",()=>document.body.contains(this.domNode)?this.refresh():{}),new MutationObserver(()=>document.body.contains(this.domNode)?this.refresh():{}).observe(Xa(this,Ua,"f").drawing.domNode,{attributes:!0,subtree:!0}),this.refresh()}get domNode(){return Xa(this,Va,"f").domNode}refresh(){let t=[...Xa(this,Ua,"f").selectedOutlines];try{Xa(this,Va,"f").domNode.value=(0,Pr.consensusValue)(t.map(t=>{var e;return null!==(e=t.domNode.getAttribute(Xa(this,qa,"f")))&&void 0!==e?e:""}))}catch(t){Xa(this,Va,"f").domNode.value=""}}}Ua=new WeakMap,qa=new WeakMap,Va=new WeakMap,Fa=new WeakSet,Ga=function(){let t=Xa(this,Va,"f").domNode.value,e=[...Xa(this,Ua,"f").selectedOutlines];0==e.length||e.every(e=>e.domNode.getAttribute(Xa(this,qa,"f"))===t)||(Xa(this,Ua,"f").pushUndoStack(),e.forEach(e=>e.domNode.setAttribute(Xa(this,qa,"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=y(),l()(lh.Ay,ch),lh.Ay&&lh.Ay.locals&&lh.Ay.locals;var fh=n(151),dh={};dh.styleTagTransform=b(),dh.setAttributes=g(),dh.insert=p().bind(null,"head"),dh.domAPI=f(),dh.insertStyleElement=y(),l()(fh.A,dh),fh.A&&fh.A.locals&&fh.A.locals;var ph,mh,gh,wh=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 yh{constructor(t){ph.set(this,void 0),this.domNode=document.createElement("p"),mh.set(this,document.createElement("span")),gh.set(this,document.createElement("span")),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,ph,t,"f"),this.domNode.classList.add(fh.w),wh(this,mh,"f").style.fontWeight="700",this.domNode.append(wh(this,mh,"f"),wh(this,gh,"f")),wh(this,ph,"f").selectedNumberings.addEventListener("change",()=>{!document.body.contains(this.domNode)||this.refresh()}),this.refresh()}refresh(){let t=[...wh(this,ph,"f").selectedNumberings].length;wh(this,mh,"f").textContent=`${t}`,wh(this,gh,"f").textContent=1==t?" numbering is selected.":" numberings are selected."}}ph=new WeakMap,mh=new WeakMap,gh=new WeakMap;var vh=n(153),bh={};bh.styleTagTransform=b(),bh.setAttributes=g(),bh.insert=p().bind(null,"head"),bh.domAPI=f(),bh.insertStyleElement=y(),l()(vh.Ay,bh),vh.Ay&&vh.Ay.locals&&vh.Ay.locals;var xh,_h,Nh,kh,Eh,Sh,Th,Mh,Ch=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},Ah=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 Oh{constructor(t){xh.add(this),_h.set(this,void 0),this.domNode=document.createElement("div"),Nh.set(this,document.createElement("p")),kh.set(this,{All:new D("All",()=>Ah(this,xh,"m",Sh).call(this)),Numbering:new D("Numbering",()=>Ah(this,xh,"m",Th).call(this)),None:new D("None",()=>Ah(this,xh,"m",Mh).call(this))}),Eh.set(this,void 0),Ch(this,_h,t,"f"),this.domNode.classList.add(vh.sR),Ah(this,Nh,"f").classList.add(vh.Pf),Ah(this,Nh,"f").textContent="Select:",this.domNode.append(Ah(this,Nh,"f")),Ah(this,kh,"f").All.domNode.style.marginLeft="20px",Ah(this,kh,"f").Numbering.domNode.style.marginLeft="17px",Ah(this,kh,"f").None.domNode.style.marginLeft="17px",this.domNode.append(...["All","Numbering","None"].map(t=>Ah(this,kh,"f")[t].domNode)),t.selectedNumberings.addEventListener("change",()=>{!document.body.contains(this.domNode)||this.refresh()}),Ch(this,Eh,new MutationObserver(()=>{!document.body.contains(this.domNode)||this.refresh()}),"f"),Ah(this,Eh,"f").observe(t.drawing.domNode,{childList:!0,subtree:!0}),this.refresh()}refresh(){let t=[...Ah(this,_h,"f").drawing.numberings],e=new Set(Ah(this,_h,"f").selectedNumberings);0==t.length?(Ah(this,kh,"f").All.disable(),Ah(this,kh,"f").All.tooltip.textContent="There are no numberings in the drawing."):e.size==t.length?(Ah(this,kh,"f").All.disable(),Ah(this,kh,"f").All.tooltip.textContent="All numberings are already selected."):(Ah(this,kh,"f").All.enable(),Ah(this,kh,"f").All.tooltip.textContent="Select all numberings.");let n=new Set(Ah(this,_h,"f").selectedBases),r=t.filter(t=>n.has(t.owner));0==n.size?(Ah(this,kh,"f").Numbering.disable(),Ah(this,kh,"f").Numbering.tooltip.textContent="No bases are selected."):0==r.length?(Ah(this,kh,"f").Numbering.disable(),Ah(this,kh,"f").Numbering.tooltip.textContent="None of the selected bases are numbered."):r.every(t=>e.has(t))?(Ah(this,kh,"f").Numbering.disable(),Ah(this,kh,"f").Numbering.tooltip.textContent="All numberings numbering the selected bases are already selected."):(Ah(this,kh,"f").Numbering.enable(),Ah(this,kh,"f").Numbering.tooltip.textContent="Select numberings numbering the selected bases."),0==e.size?(Ah(this,kh,"f").None.disable(),Ah(this,kh,"f").None.tooltip.textContent="No numberings are selected."):(Ah(this,kh,"f").None.enable(),Ah(this,kh,"f").None.tooltip.textContent="Deselect all numberings.")}}_h=new WeakMap,Nh=new WeakMap,kh=new WeakMap,Eh=new WeakMap,xh=new WeakSet,Sh=function(){Ah(this,_h,"f").addToSelected([...Ah(this,_h,"f").drawing.numberings])},Th=function(){let t=new Set(Ah(this,_h,"f").selectedBases);Ah(this,_h,"f").addToSelected([...Ah(this,_h,"f").drawing.numberings].filter(e=>t.has(e.owner)))},Mh=function(){Ah(this,_h,"f").removeFromSelected([...Ah(this,_h,"f").drawing.numberings])};var Wh=n(718),Ph={};Ph.styleTagTransform=b(),Ph.setAttributes=g(),Ph.insert=p().bind(null,"head"),Ph.domAPI=f(),Ph.insertStyleElement=y(),l()(Wh.A,Ph),Wh.A&&Wh.A.locals&&Wh.A.locals;var jh,Lh,Dh,Bh,Ih,Rh,zh,Fh=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},Uh=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 qh{constructor(t){jh.add(this),Lh.set(this,void 0),this.domNode=document.createElement("div"),Dh.set(this,new eo("Add",()=>Uh(this,jh,"m",zh).call(this))),Bh.set(this,new tt),Ih.set(this,new rt("Only add missing numberings",Uh(this,Bh,"f").domNode)),Rh.set(this,void 0),Fh(this,Lh,t,"f"),this.domNode.classList.add(Wh.f),this.domNode.append(Uh(this,Dh,"f").domNode),Uh(this,Bh,"f").domNode.checked=!0,Uh(this,Ih,"f").domNode.style.margin="10px 0px 0px 10px",Uh(this,Ih,"f").domNode.style.alignSelf="start",this.domNode.append(Uh(this,Ih,"f").domNode),t.selectedBases.addEventListener("change",()=>{!document.body.contains(this.domNode)||this.refresh()}),Fh(this,Rh,new MutationObserver(()=>{!document.body.contains(this.domNode)||this.refresh()}),"f"),Uh(this,Rh,"f").observe(t.drawing.domNode,{childList:!0,subtree:!0}),Uh(this,Bh,"f").domNode.addEventListener("change",()=>this.refresh()),this.refresh()}refresh(){let t=[...Uh(this,Lh,"f").selectedBases],e=[...Uh(this,Lh,"f").drawing.numberings],n=new Set(e.map(t=>t.owner)),r=t.filter(t=>!n.has(t));0==t.length?(Uh(this,Dh,"f").disable(),Uh(this,Dh,"f").tooltip.textContent="No bases are selected."):Uh(this,Bh,"f").domNode.checked&&0==r.length?(Uh(this,Dh,"f").disable(),Uh(this,Dh,"f").tooltip.textContent="All selected bases are already numbered."):(Uh(this,Dh,"f").enable(),Uh(this,Dh,"f").tooltip.textContent="Number the selected bases.")}}Lh=new WeakMap,Dh=new WeakMap,Bh=new WeakMap,Ih=new WeakMap,Rh=new WeakMap,jh=new WeakSet,zh=function(){let t=[...Uh(this,Lh,"f").drawing.bases],e=[...Uh(this,Lh,"f").selectedBases];if(0==e.length)return;let n=[...Uh(this,Lh,"f").drawing.numberings],r=new Set(n.map(t=>t.owner)),i=e.filter(t=>!r.has(t)),s=Uh(this,Bh,"f").domNode.checked?i:e;if(0==s.length)return;Uh(this,Lh,"f").pushUndoStack();let o=s.flatMap(e=>{let n=t.indexOf(e)+1;return Uh(this,Lh,"f").drawing.number(e,n)});Uh(this,Lh,"f").addToSelected(o),this.refresh()};var Vh,Gh,Hh=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 Xh{constructor(t){Vh.set(this,void 0),Gh.set(this,new eo("Remove",()=>this.press())),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,Vh,t,"f"),this.domNode.style.marginTop="18px",Hh(this,Vh,"f").selectedOutlines.addEventListener("change",()=>{!document.body.contains(this.domNode)||this.refresh()}),this.refresh()}get domNode(){return Hh(this,Gh,"f").domNode}press(){let t=[...Hh(this,Vh,"f").selectedNumberings];0!=t.length?(Hh(this,Vh,"f").pushUndoStack(),t.forEach(t=>t.domNode.remove()),this.refresh()):this.refresh()}refresh(){0==[...Hh(this,Vh,"f").selectedNumberings].length?(Hh(this,Gh,"f").disable(),Hh(this,Gh,"f").tooltip.textContent="No numberings are selected."):(Hh(this,Gh,"f").enable(),Hh(this,Gh,"f").tooltip.textContent="Remove the selected numberings from the drawing.")}}Vh=new WeakMap,Gh=new WeakMap;var Yh=n(933),$h={};$h.styleTagTransform=b(),$h.setAttributes=g(),$h.insert=p().bind(null,"head"),$h.domAPI=f(),$h.insertStyleElement=y(),l()(Yh.Ay,$h),Yh.Ay&&Yh.Ay.locals&&Yh.Ay.locals;var Qh,Zh,Jh,Kh,tu,eu,nu,ru,iu=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},su=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,e){Qh.add(this),Zh.set(this,void 0),Jh.set(this,void 0),this.domNode=document.createElement("div"),Kh.set(this,document.createElement("p")),this.buttons={Front:new D("Front",()=>su(this,Qh,"m",tu).call(this)),Back:new D("Back",()=>su(this,Qh,"m",eu).call(this))},nu.set(this,{refresh:[]}),iu(this,Zh,t,"f"),iu(this,Jh,e,"f"),this.domNode.classList.add(Yh.Te),su(this,Kh,"f").classList.add(Yh.Pf),su(this,Kh,"f").textContent="Send to:",this.domNode.append(su(this,Kh,"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=[...su(this,Zh,"f")];0==t.length?this.buttons.Front.disable():this.buttons.Front.enable(),0==t.length?this.buttons.Back.disable():this.buttons.Back.enable(),su(this,Qh,"m",ru).call(this,"refresh")}addEventListener(t,e){su(this,nu,"f")[t].push(e)}removeEventListener(t,e){su(this,nu,"f")[t]=su(this,nu,"f")[t].filter(t=>t!==e)}}Zh=new WeakMap,Jh=new WeakMap,Kh=new WeakMap,nu=new WeakMap,Qh=new WeakSet,tu=function(){let t=[...su(this,Zh,"f")];0!=t.length?(su(this,Jh,"f").pushUndoStack(),t.forEach(t=>(0,jr.bringToFront)(t.domNode)),this.refresh()):this.refresh()},eu=function(){let t=[...su(this,Zh,"f")];0!=t.length?(su(this,Jh,"f").pushUndoStack(),t.forEach(t=>(0,jr.sendToBack)(t.domNode)),this.refresh()):this.refresh()},ru=function(t){su(this,nu,"f")[t].forEach(t=>t())};var au,hu,uu,lu,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},fu=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 du{constructor(t){au.add(this),hu.set(this,void 0),uu.set(this,void 0),cu(this,hu,t,"f");let e=t.selectedNumberings;cu(this,uu,new ou(e,t),"f"),this.domNode.style.marginTop="26px",fu(this,uu,"f").addEventListener("refresh",()=>fu(this,au,"m",lu).call(this)),this.refresh()}get domNode(){return fu(this,uu,"f").domNode}refresh(){fu(this,uu,"f").refresh()}}hu=new WeakMap,uu=new WeakMap,au=new WeakSet,lu=function(){let t=[...fu(this,hu,"f").selectedNumberings];fu(this,uu,"f").buttons.Front.tooltip.textContent=0==t.length?"No numberings are selected.":"Bring the selected numberings to the front.",fu(this,uu,"f").buttons.Back.tooltip.textContent=0==t.length?"No numberings are selected.":"Send the selected numberings to the back."};var pu,mu,gu,wu,yu,vu,bu=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},xu=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,e){pu.add(this),mu.set(this,void 0),gu.set(this,void 0),wu.set(this,void 0),yu.set(this,new F({onSubmit:()=>xu(this,pu,"m",vu).call(this)})),bu(this,mu,t,"f"),bu(this,gu,e,"f"),t.addEventListener("change",()=>{!document.body.contains(this.domNode)||this.refresh()}),bu(this,wu,new MutationObserver(()=>{!document.body.contains(this.domNode)||this.refresh()}),"f"),xu(this,wu,"f").observe(e.domNode,{characterData:!0,subtree:!0}),this.refresh()}get domNode(){return xu(this,yu,"f").domNode}refresh(){let t=[...xu(this,mu,"f")];try{xu(this,yu,"f").domNode.value=(0,Pr.consensusValue)(t.map(t=>t.domNode.textContent))}catch(t){xu(this,yu,"f").domNode.value=""}}}mu=new WeakMap,gu=new WeakMap,wu=new WeakMap,yu=new WeakMap,pu=new WeakSet,vu=function(){let t=xu(this,yu,"f").domNode.value;if(t=t.trim(),!t)return void this.refresh();let e=[...xu(this,mu,"f")];0!=e.length?(e.every(e=>e.domNode.textContent===t)||(!this.onBeforeEdit||this.onBeforeEdit(),e.forEach(e=>e.domNode.textContent=t),!this.onEdit||this.onEdit()),this.refresh()):this.refresh()};var Nu,ku,Eu,Su=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 Mu{constructor(t){Nu.set(this,void 0),ku.set(this,void 0),Eu.set(this,void 0),Su(this,Nu,t,"f"),Su(this,ku,new _u(t.selectedNumberings,t.drawing),"f"),Tu(this,ku,"f").onBeforeEdit=()=>{t.pushUndoStack()},Tu(this,ku,"f").onEdit=()=>{[...t.selectedNumberings].forEach(t=>{t.displacement.magnitude+=1,t.displacement.magnitude-=1})},Su(this,Eu,new Z("Text Content",Tu(this,ku,"f").domNode),"f"),Tu(this,Eu,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/API/Node/textContent",this.domNode.style.marginTop="23px",this.domNode.style.alignSelf="start"}get domNode(){return Tu(this,Eu,"f").domNode}refresh(){Tu(this,ku,"f").refresh()}}Nu=new WeakMap,ku=new WeakMap,Eu=new WeakMap;var Cu,Au,Ou,Wu,Pu,ju,Lu=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},Du=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 Bu{constructor(t,e,n){Cu.add(this),Au.set(this,void 0),Ou.set(this,void 0),Wu.set(this,void 0),Pu.set(this,new F({onSubmit:()=>Du(this,Cu,"m",ju).call(this)})),Lu(this,Au,t,"f"),Lu(this,Ou,e,"f"),Lu(this,Wu,n,"f"),e.addEventListener("change",()=>{!document.body.contains(this.domNode)||this.refresh()}),new MutationObserver(()=>{!document.body.contains(this.domNode)||this.refresh()}).observe(n.domNode,{attributes:!0,attributeFilter:[t],subtree:!0}),this.refresh()}get domNode(){return Du(this,Pu,"f").domNode}refresh(){try{Du(this,Pu,"f").domNode.value=(0,Pr.consensusValue)([...Du(this,Ou,"f")].map(t=>{var e;return null!==(e=t.domNode.getAttribute(Du(this,Au,"f")))&&void 0!==e?e:""}))}catch(t){Du(this,Pu,"f").domNode.value=""}}}Au=new WeakMap,Ou=new WeakMap,Wu=new WeakMap,Pu=new WeakMap,Cu=new WeakSet,ju=function(){let t=Du(this,Pu,"f").domNode.value,e=[...Du(this,Ou,"f")];0!=e.length?e.every(e=>e.domNode.getAttribute(Du(this,Au,"f"))===t)?this.refresh():(!this.onBeforeEdit||this.onBeforeEdit(),e.forEach(e=>e.domNode.setAttribute(Du(this,Au,"f"),t)),!this.onEdit||this.onEdit()):this.refresh()};var Iu,Ru,zu,Fu=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},Uu=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 qu{constructor(t){Iu.set(this,void 0),Ru.set(this,void 0),zu.set(this,void 0),Fu(this,Iu,t,"f");let e=t.selectedNumberings,n=t.drawing;Fu(this,Ru,new Bu("fill",e,n),"f"),Uu(this,Ru,"f").onBeforeEdit=()=>t.pushUndoStack(),Fu(this,zu,new Z("Fill",Uu(this,Ru,"f").domNode),"f"),Uu(this,zu,"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 Uu(this,zu,"f").domNode}refresh(){Uu(this,Ru,"f").refresh()}}Iu=new WeakMap,Ru=new WeakMap,zu=new WeakMap;var Vu,Gu,Hu,Xu,Yu,$u,Qu,Zu=n(543),Ju=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},Ku=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 tl{constructor(t,e,n){Vu.add(this),Gu.set(this,void 0),Hu.set(this,void 0),Xu.set(this,void 0),Yu.set(this,new ot),$u.set(this,void 0),Ju(this,Gu,t,"f"),Ju(this,Hu,e,"f"),Ju(this,Xu,n,"f"),Ku(this,Yu,"f").domNode.addEventListener("input",()=>{Ku(this,Vu,"m",Qu).call(this)}),Ku(this,Yu,"f").domNode.addEventListener("focus",()=>{Ju(this,$u,Ku(this,Yu,"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.domNode,{attributes:!0,attributeFilter:[t],subtree:!0}),this.refresh()}get domNode(){return Ku(this,Yu,"f").domNode}refresh(){let t=[...Ku(this,Hu,"f")];if(0!=t.length)try{let e=Zu.camelCase(Ku(this,Gu,"f")),n=t.map(t=>window.getComputedStyle(t.domNode)[e]).map(t=>new ie(t));Ku(this,Yu,"f").domNode.value=(0,Pr.consensusValue)(n.map(t=>t.toHex().toLowerCase()))}catch(t){Ku(this,Yu,"f").domNode.value="#000000"}else Ku(this,Yu,"f").domNode.value="#000000"}}Gu=new WeakMap,Hu=new WeakMap,Xu=new WeakMap,Yu=new WeakMap,$u=new WeakMap,Vu=new WeakSet,Qu=function(){if(Ku(this,Yu,"f").domNode.value===Ku(this,$u,"f"))return;let t=[...Ku(this,Hu,"f")];0!=t.length?t.every(t=>{var e;return(null===(e=t.domNode.getAttribute(Ku(this,Gu,"f")))||void 0===e?void 0:e.toLowerCase())===Ku(this,Yu,"f").domNode.value.toLowerCase()})?this.refresh():(!this.onBeforeEdit||this.onBeforeEdit(),t.forEach(t=>t.domNode.setAttribute(Ku(this,Gu,"f"),Ku(this,Yu,"f").domNode.value.toLowerCase())),!this.onEdit||this.onEdit()):this.refresh()};var el,nl,rl,il,sl=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},ol=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 al{constructor(t){el.set(this,void 0),nl.set(this,void 0),rl.set(this,void 0),il.set(this,{}),sl(this,el,t,"f");let e=t.selectedNumberings,n=t.drawing;sl(this,nl,new tl("fill",e,n),"f"),ol(this,nl,"f").onBeforeEdit=()=>{(t.undoStack.isEmpty()||t.undoStack.peek()!==ol(this,il,"f"))&&(t.pushUndoStack(),sl(this,il,t.undoStack.peek(),"f"))},e.addEventListener("change",()=>{sl(this,il,{},"f")}),sl(this,rl,new ut("Fill Color",ol(this,nl,"f").domNode),"f"),ol(this,rl,"f").domNode.style.marginTop="12px",ol(this,rl,"f").domNode.style.alignSelf="start",this.refresh()}get domNode(){return ol(this,rl,"f").domNode}refresh(){ol(this,nl,"f").refresh()}}el=new WeakMap,nl=new WeakMap,rl=new WeakMap,il=new WeakMap;var hl,ul,ll,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},fl=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 dl{constructor(t){hl.set(this,void 0),ul.set(this,void 0),ll.set(this,void 0),cl(this,hl,t,"f");let e=t.selectedNumberings,n=t.drawing;cl(this,ul,new Bu("fill-opacity",e,n),"f"),fl(this,ul,"f").onBeforeEdit=()=>t.pushUndoStack(),cl(this,ll,new Z("Fill Opacity",fl(this,ul,"f").domNode),"f"),fl(this,ll,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Attribute/fill-opacity",this.domNode.style.marginTop="12px",this.domNode.style.alignSelf="start",this.refresh()}get domNode(){return fl(this,ll,"f").domNode}refresh(){fl(this,ul,"f").refresh()}}hl=new WeakMap,ul=new WeakMap,ll=new WeakMap;var pl,ml,gl,wl=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},yl=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 vl{constructor(t){pl.set(this,void 0),ml.set(this,void 0),gl.set(this,void 0),wl(this,pl,t,"f");let e=t.selectedNumberings,n=t.drawing;wl(this,ml,new Bu("font-family",e,n),"f"),yl(this,ml,"f").onBeforeEdit=()=>{t.pushUndoStack()},yl(this,ml,"f").onEdit=()=>{[...e].forEach(t=>{t.displacement.magnitude+=1,t.displacement.magnitude-=1})},wl(this,gl,new Z("Font Family",yl(this,ml,"f").domNode),"f"),yl(this,gl,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Attribute/font-family",this.domNode.style.marginTop="14px",this.domNode.style.alignSelf="start",this.refresh()}get domNode(){return yl(this,gl,"f").domNode}refresh(){yl(this,ml,"f").refresh()}}pl=new WeakMap,ml=new WeakMap,gl=new WeakMap;var bl,xl,_l,Nl=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},kl=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){bl.set(this,void 0),xl.set(this,void 0),_l.set(this,void 0),Nl(this,bl,t,"f");let e=t.selectedNumberings,n=t.drawing;Nl(this,xl,new Bu("font-size",e,n),"f"),kl(this,xl,"f").onBeforeEdit=()=>{t.pushUndoStack()},kl(this,xl,"f").onEdit=()=>{[...e].forEach(t=>{t.displacement.magnitude+=1,t.displacement.magnitude-=1})},Nl(this,_l,new Z("Font Size",kl(this,xl,"f").domNode),"f"),kl(this,_l,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Attribute/font-size",this.domNode.style.marginTop="12px",this.domNode.style.alignSelf="start",this.refresh()}get domNode(){return kl(this,_l,"f").domNode}refresh(){kl(this,xl,"f").refresh()}}bl=new WeakMap,xl=new WeakMap,_l=new WeakMap;var Sl,Tl,Ml,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},Al=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 Ol{constructor(t){Sl.set(this,void 0),Tl.set(this,void 0),Ml.set(this,void 0),Cl(this,Sl,t,"f");let e=t.selectedNumberings,n=t.drawing;Cl(this,Tl,new Bu("font-weight",e,n),"f"),Al(this,Tl,"f").onBeforeEdit=()=>{t.pushUndoStack()},Al(this,Tl,"f").onEdit=()=>{[...e].forEach(t=>{t.displacement.magnitude+=1,t.displacement.magnitude-=1})},Cl(this,Ml,new Z("Font Weight",Al(this,Tl,"f").domNode),"f"),Al(this,Ml,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Attribute/font-weight",this.domNode.style.marginTop="12px",this.domNode.style.alignSelf="start",this.refresh()}get domNode(){return Al(this,Ml,"f").domNode}refresh(){Al(this,Tl,"f").refresh()}}function Wl(t){let e=t.domNode.getAttribute("font-weight");if(null===e)return!1;let n=Number.parseFloat(e);return Number.isNaN(n)?"bold"===e.toLowerCase():n>=700}function Pl(t){return!Wl(t)}Sl=new WeakMap,Tl=new WeakMap,Ml=new WeakMap;var jl,Ll,Dl,Bl,Il,Rl=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},zl=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){jl.add(this),Ll.set(this,void 0),Dl.set(this,new tt),Bl.set(this,void 0),Rl(this,Ll,t,"f"),zl(this,Dl,"f").domNode.addEventListener("change",()=>zl(this,jl,"m",Il).call(this)),Rl(this,Bl,new rt("Bold",zl(this,Dl,"f").domNode),"f"),this.domNode.style.marginTop="12px",this.domNode.style.alignSelf="start",zl(this,Ll,"f").selectedNumberings.addEventListener("change",()=>{!document.body.contains(this.domNode)||this.refresh()}),new MutationObserver(()=>{!document.body.contains(this.domNode)||this.refresh()}).observe(zl(this,Ll,"f").drawing.domNode,{attributes:!0,attributeFilter:["font-weight"],subtree:!0}),this.refresh()}get domNode(){return zl(this,Bl,"f").domNode}refresh(){let t=[...zl(this,Ll,"f").selectedNumberings];0==t.length?zl(this,Dl,"f").domNode.checked=!1:zl(this,Dl,"f").domNode.checked=t.every(Wl)}}Ll=new WeakMap,Dl=new WeakMap,Bl=new WeakMap,jl=new WeakSet,Il=function(){let t=[...zl(this,Ll,"f").selectedNumberings];0!=t.length?zl(this,Dl,"f").domNode.checked&&t.every(Wl)?this.refresh():zl(this,Dl,"f").domNode.checked||!t.every(Pl)?(zl(this,Ll,"f").pushUndoStack(),t.forEach(t=>{zl(this,Dl,"f").domNode.checked&&Pl(t)?t.domNode.setAttribute("font-weight","700"):!zl(this,Dl,"f").domNode.checked&&Wl(t)&&t.domNode.setAttribute("font-weight","400"),t.displacement.magnitude+=1,t.displacement.magnitude-=1}),this.refresh(),zl(this,Dl,"f").domNode.blur()):this.refresh():this.refresh()};var Ul,ql,Vl,Gl=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},Hl=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 Xl{constructor(t){Ul.set(this,void 0),ql.set(this,void 0),Vl.set(this,void 0),Gl(this,Ul,t,"f");let e=t.selectedNumberings,n=t.drawing;Gl(this,ql,new Bu("font-style",e,n),"f"),Hl(this,ql,"f").onBeforeEdit=()=>{t.pushUndoStack()},Hl(this,ql,"f").onEdit=()=>{[...e].forEach(t=>{t.displacement.magnitude+=1,t.displacement.magnitude-=1})},Gl(this,Vl,new Z("Font Style",Hl(this,ql,"f").domNode),"f"),Hl(this,Vl,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Attribute/font-style",this.domNode.style.marginTop="12px",this.domNode.style.alignSelf="start",this.refresh()}get domNode(){return Hl(this,Vl,"f").domNode}refresh(){Hl(this,ql,"f").refresh()}}Ul=new WeakMap,ql=new WeakMap,Vl=new WeakMap;var Yl,$l,Ql,Zl=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},Jl=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 Kl{constructor(t){Yl.set(this,void 0),$l.set(this,void 0),Ql.set(this,void 0),Zl(this,Yl,t,"f");let e=t.selectedNumberings,n=t.drawing;Zl(this,$l,new Bu("text-decoration",e,n),"f"),Jl(this,$l,"f").onBeforeEdit=()=>{t.pushUndoStack()},Jl(this,$l,"f").onEdit=()=>{[...e].forEach(t=>{t.displacement.magnitude+=1,t.displacement.magnitude-=1})},Zl(this,Ql,new Z("Text Decoration",Jl(this,$l,"f").domNode),"f"),Jl(this,Ql,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Attribute/text-decoration",this.domNode.style.marginTop="12px",this.domNode.style.alignSelf="start",this.refresh()}get domNode(){return Jl(this,Ql,"f").domNode}refresh(){Jl(this,$l,"f").refresh()}}function tc(t){let e=t.domNode.getAttribute("text-decoration");return null!==e&&e.split(/\s/).map(t=>t.toLowerCase()).includes("underline")}function ec(t){return!tc(t)}Yl=new WeakMap,$l=new WeakMap,Ql=new WeakMap;var nc,rc,ic,sc,oc,ac=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},hc=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 uc{constructor(t){nc.add(this),rc.set(this,void 0),ic.set(this,new tt),sc.set(this,void 0),ac(this,rc,t,"f"),hc(this,ic,"f").domNode.addEventListener("change",()=>hc(this,nc,"m",oc).call(this)),ac(this,sc,new rt("Underlined",hc(this,ic,"f").domNode),"f"),this.domNode.style.marginTop="12px",this.domNode.style.alignSelf="start",hc(this,rc,"f").selectedNumberings.addEventListener("change",()=>{!document.body.contains(this.domNode)||this.refresh()}),new MutationObserver(()=>{!document.body.contains(this.domNode)||this.refresh()}).observe(hc(this,rc,"f").drawing.domNode,{attributes:!0,attributeFilter:["text-decoration"],subtree:!0}),this.refresh()}get domNode(){return hc(this,sc,"f").domNode}refresh(){let t=[...hc(this,rc,"f").selectedNumberings];0==t.length?hc(this,ic,"f").domNode.checked=!1:hc(this,ic,"f").domNode.checked=t.every(tc)}}rc=new WeakMap,ic=new WeakMap,sc=new WeakMap,nc=new WeakSet,oc=function(){let t=[...hc(this,rc,"f").selectedNumberings];0!=t.length?hc(this,ic,"f").domNode.checked&&t.every(tc)?this.refresh():hc(this,ic,"f").domNode.checked||!t.every(ec)?(hc(this,rc,"f").pushUndoStack(),t.forEach(t=>{hc(this,ic,"f").domNode.checked&&ec(t)?t.domNode.setAttribute("text-decoration","underline"):!hc(this,ic,"f").domNode.checked&&tc(t)&&t.domNode.setAttribute("text-decoration",""),t.displacement.magnitude+=1,t.displacement.magnitude-=1}),this.refresh(),hc(this,ic,"f").domNode.blur()):this.refresh():this.refresh()};var lc=n(380),cc={};cc.styleTagTransform=b(),cc.setAttributes=g(),cc.insert=p().bind(null,"head"),cc.domAPI=f(),cc.insertStyleElement=y(),l()(lc.Ay,cc),lc.Ay&&lc.Ay.locals&&lc.Ay.locals;var fc,dc,pc,mc,gc,wc,yc=n(854),vc=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},bc=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 xc{constructor(t){fc.add(this),dc.set(this,void 0),this.domNode=document.createElement("div"),pc.set(this,document.createElement("p")),mc.set(this,{x:new F({onSubmit:()=>bc(this,fc,"m",wc).call(this,"x")}),y:new F({onSubmit:()=>bc(this,fc,"m",wc).call(this,"y")}),magnitude:new F({onSubmit:()=>bc(this,fc,"m",wc).call(this,"magnitude")}),direction:new F({onSubmit:()=>bc(this,fc,"m",wc).call(this,"direction")})}),gc.set(this,void 0),vc(this,dc,t,"f"),this.domNode.classList.add(lc.d8),bc(this,pc,"f").classList.add(lc.Pf),bc(this,pc,"f").textContent="Displacement:",vc(this,gc,{x:new Z("X",bc(this,mc,"f").x.domNode),y:new Z("Y",bc(this,mc,"f").y.domNode),magnitude:new Z("Magnitude",bc(this,mc,"f").magnitude.domNode),direction:new Z("Direction",bc(this,mc,"f").direction.domNode)},"f"),_c.forEach(t=>{bc(this,gc,"f")[t].domNode.style.marginTop="10px",bc(this,gc,"f")[t].domNode.style.marginLeft="8px",bc(this,gc,"f")[t].domNode.style.alignSelf="start"}),bc(this,gc,"f").x.domNode.style.marginTop="0px",this.domNode.append(..._c.map(t=>bc(this,gc,"f")[t].domNode)),bc(this,dc,"f").selectedNumberings.addEventListener("change",()=>{!document.body.contains(this.domNode)||this.refresh()}),new MutationObserver(()=>{!document.body.contains(this.domNode)||this.refresh()}).observe(bc(this,dc,"f").drawing.domNode,{attributes:!0,attributeFilter:["data-displacement"],subtree:!0}),this.refresh()}refresh(){let t=[...bc(this,dc,"f").selectedNumberings];_c.forEach(e=>{try{bc(this,mc,"f")[e].domNode.value=`${(0,Pr.consensusValue)(t.map(t=>t.displacement[e]))}`}catch(t){bc(this,mc,"f")[e].domNode.value=""}})}}dc=new WeakMap,pc=new WeakMap,mc=new WeakMap,gc=new WeakMap,fc=new WeakSet,wc=function(t){let e=Number.parseFloat(bc(this,mc,"f")[t].domNode.value);if(!(0,yc.isFiniteNumber)(e))return void this.refresh();let n=[...bc(this,dc,"f").selectedNumberings];0!=n.length?(n.every(n=>n.displacement[t]===e)||(bc(this,dc,"f").pushUndoStack(),n.forEach(n=>n.displacement[t]=e)),this.refresh()):this.refresh()};const _c=["x","y","magnitude","direction"];var Nc,kc,Ec,Sc,Tc,Mc,Cc,Ac,Oc,Wc,Pc,jc,Lc,Dc,Bc,Ic,Rc,zc,Fc,Uc,qc,Vc,Gc,Hc,Xc,Yc,$c=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},Qc=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 Zc{constructor(t){Nc.add(this),kc.set(this,void 0),this.domNode=document.createElement("div"),Ec.set(this,new C("Numberings",()=>this.toggle())),Sc.set(this,document.createElement("div")),Tc.set(this,void 0),Mc.set(this,void 0),Cc.set(this,void 0),Ac.set(this,void 0),Oc.set(this,void 0),$c(this,kc,t,"f"),this.domNode.classList.add(lh.HS),this.domNode.append(Qc(this,Ec,"f").domNode),Qc(this,Sc,"f").classList.add(lh.Qs),this.domNode.append(Qc(this,Sc,"f")),$c(this,Tc,new yh(t),"f"),Qc(this,Sc,"f").append(Qc(this,Tc,"f").domNode),$c(this,Mc,new Oh(t),"f"),Qc(this,Sc,"f").append(Qc(this,Mc,"f").domNode),$c(this,Cc,new qh(t),"f"),Qc(this,Sc,"f").append(Qc(this,Cc,"f").domNode),$c(this,Ac,new Xh(t),"f"),Qc(this,Sc,"f").append(Qc(this,Ac,"f").domNode),$c(this,Oc,new Jc(t),"f"),Qc(this,Sc,"f").append(Qc(this,Oc,"f").domNode),this.collapse()}toggle(){this.isCollapsed()?this.expand():this.collapse()}isCollapsed(){return this.domNode.classList.contains(lh.yZ)}collapse(){this.domNode.classList.add(lh.yZ),Qc(this,Ec,"f").caret.pointRight()}expand(){this.domNode.classList.remove(lh.yZ),Qc(this,Ec,"f").caret.pointDown()}refresh(){Qc(this,Nc,"a",Wc).forEach(t=>t.refresh())}}kc=new WeakMap,Ec=new WeakMap,Sc=new WeakMap,Tc=new WeakMap,Mc=new WeakMap,Cc=new WeakMap,Ac=new WeakMap,Oc=new WeakMap,Nc=new WeakSet,Wc=function(){return[Qc(this,Tc,"f"),Qc(this,Mc,"f"),Qc(this,Cc,"f"),Qc(this,Ac,"f"),Qc(this,Oc,"f")]};class Jc{constructor(t){Pc.add(this),jc.set(this,void 0),this.domNode=document.createElement("div"),Lc.set(this,void 0),Dc.set(this,void 0),Bc.set(this,void 0),Ic.set(this,void 0),Rc.set(this,void 0),zc.set(this,void 0),Fc.set(this,void 0),Uc.set(this,void 0),qc.set(this,void 0),Vc.set(this,void 0),Gc.set(this,void 0),Hc.set(this,void 0),Xc.set(this,void 0),$c(this,jc,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())}),$c(this,Lc,new du(t),"f"),this.domNode.append(Qc(this,Lc,"f").domNode),$c(this,Dc,new Mu(t),"f"),this.domNode.append(Qc(this,Dc,"f").domNode),$c(this,Bc,new qu(t),"f"),this.domNode.append(Qc(this,Bc,"f").domNode),$c(this,Ic,new al(t),"f"),this.domNode.append(Qc(this,Ic,"f").domNode),$c(this,Rc,new dl(t),"f"),this.domNode.append(Qc(this,Rc,"f").domNode),$c(this,zc,new vl(t),"f"),this.domNode.append(Qc(this,zc,"f").domNode),$c(this,Fc,new El(t),"f"),this.domNode.append(Qc(this,Fc,"f").domNode),$c(this,Uc,new Ol(t),"f"),this.domNode.append(Qc(this,Uc,"f").domNode),$c(this,qc,new Fl(t),"f"),this.domNode.append(Qc(this,qc,"f").domNode),$c(this,Vc,new Xl(t),"f"),this.domNode.append(Qc(this,Vc,"f").domNode),$c(this,Gc,new Kl(t),"f"),this.domNode.append(Qc(this,Gc,"f").domNode),$c(this,Hc,new uc(t),"f"),this.domNode.append(Qc(this,Hc,"f").domNode),$c(this,Xc,new xc(t),"f"),this.domNode.append(Qc(this,Xc,"f").domNode)}show(){this.domNode.style.display="flex"}hide(){this.domNode.style.display="none"}refresh(){Qc(this,Pc,"a",Yc).forEach(t=>t.refresh()),[...Qc(this,jc,"f").selectedNumberings].length>0?this.show():this.hide()}}jc=new WeakMap,Lc=new WeakMap,Dc=new WeakMap,Bc=new WeakMap,Ic=new WeakMap,Rc=new WeakMap,zc=new WeakMap,Fc=new WeakMap,Uc=new WeakMap,qc=new WeakMap,Vc=new WeakMap,Gc=new WeakMap,Hc=new WeakMap,Xc=new WeakMap,Pc=new WeakSet,Yc=function(){return[Qc(this,Lc,"f"),Qc(this,Dc,"f"),Qc(this,Bc,"f"),Qc(this,Ic,"f"),Qc(this,Rc,"f"),Qc(this,zc,"f"),Qc(this,Fc,"f"),Qc(this,Uc,"f"),Qc(this,qc,"f"),Qc(this,Vc,"f"),Qc(this,Gc,"f"),Qc(this,Hc,"f"),Qc(this,Xc,"f")]};var Kc=n(401),tf={};tf.styleTagTransform=b(),tf.setAttributes=g(),tf.insert=p().bind(null,"head"),tf.domAPI=f(),tf.insertStyleElement=y(),l()(Kc.Ay,tf),Kc.Ay&&Kc.Ay.locals&&Kc.Ay.locals;var ef,nf,rf,sf=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},of=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 af{constructor(t){ef.set(this,void 0),nf.set(this,void 0),rf.set(this,void 0),sf(this,ef,t,"f");let e=t.selectedPrimaryBonds,n=t.drawing;sf(this,nf,new Bu("stroke",e,n),"f"),of(this,nf,"f").onBeforeEdit=()=>t.pushUndoStack(),sf(this,rf,new Z("Stroke",of(this,nf,"f").domNode),"f"),of(this,rf,"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 of(this,rf,"f").domNode}refresh(){of(this,nf,"f").refresh()}}ef=new WeakMap,nf=new WeakMap,rf=new WeakMap;var hf,uf,lf,cf=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},ff=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 df{constructor(t){hf.set(this,void 0),uf.set(this,void 0),lf.set(this,void 0),cf(this,hf,t,"f");let e=t.selectedPrimaryBonds,n=t.drawing;cf(this,uf,new Bu("stroke-opacity",e,n),"f"),ff(this,uf,"f").onBeforeEdit=()=>t.pushUndoStack(),cf(this,lf,new Z("Stroke Opacity",ff(this,uf,"f").domNode),"f"),ff(this,lf,"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 ff(this,lf,"f").domNode}refresh(){ff(this,uf,"f").refresh()}}hf=new WeakMap,uf=new WeakMap,lf=new WeakMap;var pf,mf,gf,wf=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},yf=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 vf{constructor(t){pf.set(this,void 0),mf.set(this,void 0),gf.set(this,void 0),wf(this,pf,t,"f");let e=t.selectedPrimaryBonds,n=t.drawing;wf(this,mf,new Bu("stroke-width",e,n),"f"),yf(this,mf,"f").onBeforeEdit=()=>t.pushUndoStack(),wf(this,gf,new Z("Stroke Width",yf(this,mf,"f").domNode),"f"),yf(this,gf,"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 yf(this,gf,"f").domNode}refresh(){yf(this,mf,"f").refresh()}}pf=new WeakMap,mf=new WeakMap,gf=new WeakMap;var bf,xf,_f,Nf=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},kf=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 Ef{constructor(t){bf.set(this,void 0),xf.set(this,void 0),_f.set(this,void 0),Nf(this,bf,t,"f");let e=t.selectedPrimaryBonds,n=t.drawing;Nf(this,xf,new Bu("stroke-linecap",e,n),"f"),kf(this,xf,"f").onBeforeEdit=()=>t.pushUndoStack(),Nf(this,_f,new Z("Stroke Line-Cap",kf(this,xf,"f").domNode),"f"),kf(this,_f,"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 kf(this,_f,"f").domNode}refresh(){kf(this,xf,"f").refresh()}}bf=new WeakMap,xf=new WeakMap,_f=new WeakMap;var Sf,Tf,Mf,Cf=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},Af=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 Of{constructor(t){Sf.set(this,void 0),Tf.set(this,void 0),Mf.set(this,void 0),Cf(this,Sf,t,"f");let e=t.selectedPrimaryBonds,n=t.drawing;Cf(this,Tf,new Bu("stroke-dasharray",e,n),"f"),Af(this,Tf,"f").onBeforeEdit=()=>t.pushUndoStack(),Cf(this,Mf,new Z("Stroke Dash-Array",Af(this,Tf,"f").domNode),"f"),Af(this,Mf,"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 Af(this,Mf,"f").domNode}refresh(){Af(this,Tf,"f").refresh()}}Sf=new WeakMap,Tf=new WeakMap,Mf=new WeakMap;var Wf,Pf,jf,Lf=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},Df=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){Wf.set(this,void 0),Pf.set(this,void 0),jf.set(this,void 0),Lf(this,Wf,t,"f");let e=t.selectedPrimaryBonds,n=t.drawing;Lf(this,Pf,new Bu("data-base-padding1",e,n),"f"),Df(this,Pf,"f").onBeforeEdit=()=>t.pushUndoStack(),Df(this,Pf,"f").onEdit=()=>{[...e].forEach(t=>{let e=t.basePadding1;t.basePadding1+=1,t.basePadding1=e})},Lf(this,jf,new Z("Base Padding 1",Df(this,Pf,"f").domNode),"f"),this.domNode.style.marginTop="10px",this.domNode.style.alignSelf="start",this.refresh()}get domNode(){return Df(this,jf,"f").domNode}refresh(){Df(this,Pf,"f").refresh()}}Wf=new WeakMap,Pf=new WeakMap,jf=new WeakMap;var If,Rf,zf,Ff=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},Uf=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 qf{constructor(t){If.set(this,void 0),Rf.set(this,void 0),zf.set(this,void 0),Ff(this,If,t,"f");let e=t.selectedPrimaryBonds,n=t.drawing;Ff(this,Rf,new Bu("data-base-padding2",e,n),"f"),Uf(this,Rf,"f").onBeforeEdit=()=>t.pushUndoStack(),Uf(this,Rf,"f").onEdit=()=>{[...e].forEach(t=>{let e=t.basePadding2;t.basePadding2+=1,t.basePadding2=e})},Ff(this,zf,new Z("Base Padding 2",Uf(this,Rf,"f").domNode),"f"),this.domNode.style.marginTop="10px",this.domNode.style.alignSelf="start",this.refresh()}get domNode(){return Uf(this,zf,"f").domNode}refresh(){Uf(this,Rf,"f").refresh()}}If=new WeakMap,Rf=new WeakMap,zf=new WeakMap;var 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,wd,yd,vd,bd,xd,_d,Nd,kd,Ed,Sd,Td,Md,Cd,Ad,Od,Wd,Pd,jd=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},Ld=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 Dd{constructor(t){Vf.add(this),Gf.set(this,void 0),this.domNode=document.createElement("div"),Hf.set(this,new C("Primary Bonds",()=>this.toggle())),Xf.set(this,document.createElement("div")),Yf.set(this,void 0),$f.set(this,void 0),Qf.set(this,document.createElement("div")),Zf.set(this,void 0),Jf.set(this,void 0),Kf.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),sd.set(this,void 0),jd(this,Gf,t,"f"),this.domNode.classList.add(Kc.gP),this.domNode.append(Ld(this,Hf,"f").domNode),Ld(this,Xf,"f").classList.add(Kc.Qs),this.domNode.append(Ld(this,Xf,"f")),jd(this,Yf,new Bd(t),"f"),Ld(this,Xf,"f").append(Ld(this,Yf,"f").domNode),jd(this,$f,new Id(t),"f"),Ld(this,Xf,"f").append(Ld(this,$f,"f").domNode),Ld(this,Qf,"f").classList.add(Kc.eB),Ld(this,Xf,"f").append(Ld(this,Qf,"f")),t.selectedPrimaryBonds.addEventListener("change",()=>{document.body.contains(this.domNode)&&(0==[...t.selectedPrimaryBonds].length?Ld(this,Vf,"m",ad).call(this):Ld(this,Vf,"m",hd).call(this))}),jd(this,Zf,new Rd(t),"f"),Ld(this,Qf,"f").append(Ld(this,Zf,"f").domNode),jd(this,Jf,new af(t),"f"),Ld(this,Qf,"f").append(Ld(this,Jf,"f").domNode),jd(this,Kf,new zd(t),"f"),Ld(this,Qf,"f").append(Ld(this,Kf,"f").domNode),jd(this,td,new df(t),"f"),Ld(this,Qf,"f").append(Ld(this,td,"f").domNode),jd(this,ed,new vf(t),"f"),Ld(this,Qf,"f").append(Ld(this,ed,"f").domNode),jd(this,nd,new Ef(t),"f"),Ld(this,Qf,"f").append(Ld(this,nd,"f").domNode),jd(this,rd,new Of(t),"f"),Ld(this,Qf,"f").append(Ld(this,rd,"f").domNode),jd(this,id,new Bf(t),"f"),Ld(this,Qf,"f").append(Ld(this,id,"f").domNode),jd(this,sd,new qf(t),"f"),Ld(this,Qf,"f").append(Ld(this,sd,"f").domNode),this.collapse(),this.refresh()}isCollapsed(){return this.domNode.classList.contains(Kc.yZ)}collapse(){this.domNode.classList.add(Kc.yZ),Ld(this,Hf,"f").caret.pointRight()}expand(){this.domNode.classList.remove(Kc.yZ),Ld(this,Hf,"f").caret.pointDown()}toggle(){this.isCollapsed()?this.expand():this.collapse()}refresh(){Ld(this,Vf,"a",od).forEach(t=>t.refresh()),0==[...Ld(this,Gf,"f").selectedPrimaryBonds].length?Ld(this,Vf,"m",ad).call(this):Ld(this,Vf,"m",hd).call(this)}}Gf=new WeakMap,Hf=new WeakMap,Xf=new WeakMap,Yf=new WeakMap,$f=new WeakMap,Qf=new WeakMap,Zf=new WeakMap,Jf=new WeakMap,Kf=new WeakMap,td=new WeakMap,ed=new WeakMap,nd=new WeakMap,rd=new WeakMap,id=new WeakMap,sd=new WeakMap,Vf=new WeakSet,od=function(){return[Ld(this,Yf,"f"),Ld(this,$f,"f"),Ld(this,Zf,"f"),Ld(this,Jf,"f"),Ld(this,Kf,"f"),Ld(this,td,"f"),Ld(this,ed,"f"),Ld(this,nd,"f"),Ld(this,rd,"f"),Ld(this,id,"f"),Ld(this,sd,"f")]},ad=function(){Ld(this,Qf,"f").style.display="none"},hd=function(){Ld(this,Qf,"f").style.display="flex"};class Bd{constructor(t){ud.set(this,void 0),this.domNode=document.createElement("p"),ld.set(this,document.createElement("span")),cd.set(this,document.createElement("span")),jd(this,ud,t,"f"),this.domNode.classList.add(Kc.vM),Ld(this,ld,"f").style.fontWeight="700",this.domNode.append(Ld(this,ld,"f"),Ld(this,cd,"f")),Ld(this,ud,"f").selectedPrimaryBonds.addEventListener("change",()=>{!document.body.contains(this.domNode)||this.refresh()}),this.refresh()}refresh(){let t=[...Ld(this,ud,"f").selectedPrimaryBonds].length;Ld(this,ld,"f").textContent=`${t}`,Ld(this,cd,"f").textContent=1==t?" primary bond is selected.":" primary bonds are selected."}}ud=new WeakMap,ld=new WeakMap,cd=new WeakMap;class Id{constructor(t){fd.add(this),dd.set(this,void 0),this.domNode=document.createElement("div"),pd.set(this,new C("Select:",()=>this.toggle())),md.set(this,{All:new D("All",()=>Ld(this,fd,"m",bd).call(this)),None:new D("None",()=>Ld(this,fd,"m",xd).call(this)),Between:new D("Between",()=>Ld(this,fd,"m",_d).call(this)),Connecting:new D("Connecting",()=>Ld(this,fd,"m",kd).call(this))}),gd.set(this,document.createElement("div")),wd.set(this,document.createElement("div")),yd.set(this,document.createElement("div")),vd.set(this,void 0),jd(this,dd,t,"f"),this.domNode.classList.add(Kc.vw),this.domNode.append(Ld(this,pd,"f").domNode),h(Ld(this,gd,"f")).css({marginTop:"1.5px",display:"flex",flexDirection:"column",gap:"10px"}),this.domNode.append(Ld(this,gd,"f")),h(Ld(this,wd,"f")).css({display:"flex",flexDirection:"row",gap:"27px"}),Ld(this,wd,"f").append(...["All","None"].map(t=>Ld(this,md,"f")[t].domNode)),Ld(this,gd,"f").append(Ld(this,wd,"f")),h(Ld(this,yd,"f")).css({display:"flex",flexDirection:"row",gap:"20px"}),Ld(this,yd,"f").append(...["Between","Connecting"].map(t=>Ld(this,md,"f")[t].domNode)),Ld(this,gd,"f").append(Ld(this,yd,"f")),Ld(this,yd,"f").style.display="none",Ld(this,pd,"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():{}),jd(this,vd,new MutationObserver(()=>document.body.contains(this.domNode)?this.refresh():{}),"f"),Ld(this,vd,"f").observe(t.drawing.domNode,{childList:!0,subtree:!0}),this.refresh()}toggle(){this.isCollapsed()?this.expand():this.collapse()}isCollapsed(){return"none"==Ld(this,yd,"f").style.display}collapse(){Ld(this,yd,"f").style.display="none",Ld(this,pd,"f").caret.pointRight()}expand(){Ld(this,yd,"f").style.display="flex",Ld(this,pd,"f").caret.pointDown()}refresh(){let t=[...Ld(this,dd,"f").drawing.primaryBonds],e=new Set(Ld(this,dd,"f").selectedPrimaryBonds);0==t.length?(Ld(this,md,"f").All.disable(),Ld(this,md,"f").All.tooltip.textContent="There are no primary bonds in the drawing."):t.every(t=>e.has(t))?(Ld(this,md,"f").All.disable(),Ld(this,md,"f").All.tooltip.textContent="All primary bonds are already selected."):(Ld(this,md,"f").All.enable(),Ld(this,md,"f").All.tooltip.textContent="Select all primary bonds."),0==e.size?(Ld(this,md,"f").None.disable(),Ld(this,md,"f").None.tooltip.textContent="No primary bonds are selected."):(Ld(this,md,"f").None.enable(),Ld(this,md,"f").None.tooltip.textContent="Deselect all primary bonds.");let n=[...Ld(this,dd,"f").selectedBases],r=Ld(this,fd,"a",Nd);0==n.length?(Ld(this,md,"f").Between.disable(),Ld(this,md,"f").Between.tooltip.textContent="No bases are selected."):r.every(t=>e.has(t))?(Ld(this,md,"f").Between.disable(),Ld(this,md,"f").Between.tooltip.textContent="All primary bonds between the selected bases are already selected."):(Ld(this,md,"f").Between.enable(),Ld(this,md,"f").Between.tooltip.textContent="Select primary bonds between the selected bases.");let i=Ld(this,fd,"a",Ed);0==n.length?(Ld(this,md,"f").Connecting.disable(),Ld(this,md,"f").Connecting.tooltip.textContent="No bases are selected."):i.every(t=>e.has(t))?(Ld(this,md,"f").Connecting.disable(),Ld(this,md,"f").Connecting.tooltip.textContent="All primary bonds connecting the selected bases are already selected."):(Ld(this,md,"f").Connecting.enable(),Ld(this,md,"f").Connecting.tooltip.textContent="Select primary bonds connecting the selected bases.")}}dd=new WeakMap,pd=new WeakMap,md=new WeakMap,gd=new WeakMap,wd=new WeakMap,yd=new WeakMap,vd=new WeakMap,fd=new WeakSet,bd=function(){Ld(this,dd,"f").addToSelected([...Ld(this,dd,"f").drawing.primaryBonds])},xd=function(){Ld(this,dd,"f").removeFromSelected([...Ld(this,dd,"f").drawing.primaryBonds])},_d=function(){Ld(this,dd,"f").addToSelected(Ld(this,fd,"a",Nd))},Nd=function(){let t=new Set(Ld(this,dd,"f").selectedBases);return[...Ld(this,dd,"f").drawing.primaryBonds].filter(e=>t.has(e.base1)&&t.has(e.base2))},kd=function(){Ld(this,dd,"f").addToSelected(Ld(this,fd,"a",Ed))},Ed=function(){let t=new Set(Ld(this,dd,"f").selectedBases);return[...Ld(this,dd,"f").drawing.primaryBonds].filter(e=>t.has(e.base1)||t.has(e.base2))};class Rd{constructor(t){Sd.add(this),Td.set(this,void 0),Md.set(this,void 0),jd(this,Td,t,"f");let e=t.selectedPrimaryBonds;jd(this,Md,new ou(e,t),"f"),this.domNode.style.marginTop="26px",Ld(this,Md,"f").addEventListener("refresh",()=>Ld(this,Sd,"m",Cd).call(this)),this.refresh()}get domNode(){return Ld(this,Md,"f").domNode}refresh(){Ld(this,Md,"f").refresh()}}Td=new WeakMap,Md=new WeakMap,Sd=new WeakSet,Cd=function(){let t=[...Ld(this,Td,"f").selectedPrimaryBonds];Ld(this,Md,"f").buttons.Front.tooltip.textContent=0==t.length?"No primary bonds are selected.":"Bring the selected primary bonds to the front.",Ld(this,Md,"f").buttons.Back.tooltip.textContent=0==t.length?"No primary bonds are selected.":"Send the selected primary bonds to the back."};class zd{constructor(t){Ad.set(this,void 0),Od.set(this,void 0),Wd.set(this,void 0),Pd.set(this,void 0),jd(this,Ad,t,"f");let e=t.selectedPrimaryBonds,n=t.drawing;jd(this,Od,new tl("stroke",e,n),"f"),Ld(this,Od,"f").onBeforeEdit=()=>{(t.undoStack.isEmpty()||t.undoStack.peek()!==Ld(this,Pd,"f"))&&(t.pushUndoStack(),jd(this,Pd,t.undoStack.peek(),"f"))},e.addEventListener("change",()=>{jd(this,Pd,void 0,"f")}),jd(this,Wd,new ut("Stroke Color",Ld(this,Od,"f").domNode),"f"),Ld(this,Wd,"f").domNode.style.marginTop="12px",Ld(this,Wd,"f").domNode.style.alignSelf="start",this.refresh()}get domNode(){return Ld(this,Wd,"f").domNode}refresh(){Ld(this,Od,"f").refresh()}}Ad=new WeakMap,Od=new WeakMap,Wd=new WeakMap,Pd=new WeakMap;var Fd=n(358),Ud=n(705),qd={};qd.styleTagTransform=b(),qd.setAttributes=g(),qd.insert=p().bind(null,"head"),qd.domAPI=f(),qd.insertStyleElement=y(),l()(Ud.Ay,qd),Ud.Ay&&Ud.Ay.locals&&Ud.Ay.locals;var Vd,Gd,Hd,Xd=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},Yd=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){Vd.set(this,void 0),Gd.set(this,void 0),Hd.set(this,void 0),Xd(this,Vd,t,"f");let e=t.selectedSecondaryBonds,n=t.drawing;Xd(this,Gd,new Bu("stroke",e,n),"f"),Yd(this,Gd,"f").onBeforeEdit=()=>t.pushUndoStack(),Xd(this,Hd,new Z("Stroke",Yd(this,Gd,"f").domNode),"f"),Yd(this,Hd,"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 Yd(this,Hd,"f").domNode}refresh(){Yd(this,Gd,"f").refresh()}}Vd=new WeakMap,Gd=new WeakMap,Hd=new WeakMap;var Qd,Zd,Jd,Kd=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){Qd.set(this,void 0),Zd.set(this,void 0),Jd.set(this,void 0),Kd(this,Qd,t,"f");let e=t.selectedSecondaryBonds,n=t.drawing;Kd(this,Zd,new Bu("stroke-opacity",e,n),"f"),tp(this,Zd,"f").onBeforeEdit=()=>t.pushUndoStack(),Kd(this,Jd,new Z("Stroke Opacity",tp(this,Zd,"f").domNode),"f"),tp(this,Jd,"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 tp(this,Jd,"f").domNode}refresh(){tp(this,Zd,"f").refresh()}}Qd=new WeakMap,Zd=new WeakMap,Jd=new WeakMap;var np,rp,ip,sp=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},op=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 ap{constructor(t){np.set(this,void 0),rp.set(this,void 0),ip.set(this,void 0),sp(this,np,t,"f");let e=t.selectedSecondaryBonds,n=t.drawing;sp(this,rp,new Bu("stroke-width",e,n),"f"),op(this,rp,"f").onBeforeEdit=()=>t.pushUndoStack(),sp(this,ip,new Z("Stroke Width",op(this,rp,"f").domNode),"f"),op(this,ip,"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 op(this,ip,"f").domNode}refresh(){op(this,rp,"f").refresh()}}np=new WeakMap,rp=new WeakMap,ip=new WeakMap;var hp,up,lp,cp=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},fp=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 dp{constructor(t){hp.set(this,void 0),up.set(this,void 0),lp.set(this,void 0),cp(this,hp,t,"f");let e=t.selectedSecondaryBonds,n=t.drawing;cp(this,up,new Bu("stroke-linecap",e,n),"f"),fp(this,up,"f").onBeforeEdit=()=>t.pushUndoStack(),cp(this,lp,new Z("Stroke Line-Cap",fp(this,up,"f").domNode),"f"),fp(this,lp,"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 fp(this,lp,"f").domNode}refresh(){fp(this,up,"f").refresh()}}hp=new WeakMap,up=new WeakMap,lp=new WeakMap;var pp,mp,gp,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},yp=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 vp{constructor(t){pp.set(this,void 0),mp.set(this,void 0),gp.set(this,void 0),wp(this,pp,t,"f");let e=t.selectedSecondaryBonds,n=t.drawing;wp(this,mp,new Bu("stroke-dasharray",e,n),"f"),yp(this,mp,"f").onBeforeEdit=()=>t.pushUndoStack(),wp(this,gp,new Z("Stroke Dash-Array",yp(this,mp,"f").domNode),"f"),yp(this,gp,"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 yp(this,gp,"f").domNode}refresh(){yp(this,mp,"f").refresh()}}pp=new WeakMap,mp=new WeakMap,gp=new WeakMap;var bp,xp,_p,Np=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},kp=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){bp.set(this,void 0),xp.set(this,void 0),_p.set(this,void 0),Np(this,bp,t,"f");let e=t.selectedSecondaryBonds,n=t.drawing;Np(this,xp,new Bu("data-base-padding1",e,n),"f"),kp(this,xp,"f").onBeforeEdit=()=>t.pushUndoStack(),kp(this,xp,"f").onEdit=()=>{[...e].forEach(t=>{let e=t.basePadding1;t.basePadding1+=1,t.basePadding1=e})},Np(this,_p,new Z("Base Padding 1",kp(this,xp,"f").domNode),"f"),this.domNode.style.marginTop="10px",this.domNode.style.alignSelf="start",this.refresh()}get domNode(){return kp(this,_p,"f").domNode}refresh(){kp(this,xp,"f").refresh()}}bp=new WeakMap,xp=new WeakMap,_p=new WeakMap;var Sp,Tp,Mp,Cp=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},Ap=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 Op{constructor(t){Sp.set(this,void 0),Tp.set(this,void 0),Mp.set(this,void 0),Cp(this,Sp,t,"f");let e=t.selectedSecondaryBonds,n=t.drawing;Cp(this,Tp,new Bu("data-base-padding2",e,n),"f"),Ap(this,Tp,"f").onBeforeEdit=()=>t.pushUndoStack(),Ap(this,Tp,"f").onEdit=()=>{[...e].forEach(t=>{let e=t.basePadding2;t.basePadding2+=1,t.basePadding2=e})},Cp(this,Mp,new Z("Base Padding 2",Ap(this,Tp,"f").domNode),"f"),this.domNode.style.marginTop="10px",this.domNode.style.alignSelf="start",this.refresh()}get domNode(){return Ap(this,Mp,"f").domNode}refresh(){Ap(this,Tp,"f").refresh()}}Sp=new WeakMap,Tp=new WeakMap,Mp=new WeakMap;var Wp,Pp,jp,Lp,Dp,Bp,Ip,Rp,zp,Fp,Up,qp,Vp,Gp,Hp,Xp,Yp,$p,Qp,Zp,Jp,Kp,tm,em,nm,rm,im,sm,om,am,hm,um,lm,cm,fm,dm,pm,mm,gm,wm,ym,vm,bm,xm,_m,Nm,km,Em,Sm,Tm,Mm,Cm,Am,Om,Wm,Pm,jm,Lm,Dm,Bm,Im,Rm,zm,Fm=n(127),Um=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},qm=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 Vm{constructor(t){Wp.add(this),Pp.set(this,void 0),this.domNode=document.createElement("div"),jp.set(this,new C("Secondary Bonds",()=>this.toggle())),Lp.set(this,document.createElement("div")),Dp.set(this,void 0),Bp.set(this,void 0),Ip.set(this,void 0),Rp.set(this,void 0),zp.set(this,document.createElement("div")),Fp.set(this,void 0),Up.set(this,void 0),qp.set(this,void 0),Vp.set(this,void 0),Gp.set(this,void 0),Hp.set(this,void 0),Xp.set(this,void 0),Yp.set(this,void 0),$p.set(this,void 0),Um(this,Pp,t,"f"),this.domNode.classList.add(Ud.Se),this.domNode.append(qm(this,jp,"f").domNode),qm(this,Lp,"f").classList.add(Ud.Qs),this.domNode.append(qm(this,Lp,"f")),Um(this,Dp,new Gm(t),"f"),qm(this,Lp,"f").append(qm(this,Dp,"f").domNode),Um(this,Bp,new Hm(t),"f"),qm(this,Lp,"f").append(qm(this,Bp,"f").domNode),Um(this,Ip,new Xm(t),"f"),qm(this,Lp,"f").append(qm(this,Ip,"f").domNode),Um(this,Rp,new Ym(t),"f"),qm(this,Lp,"f").append(qm(this,Rp,"f").domNode),qm(this,zp,"f").classList.add(Ud.eB),qm(this,Lp,"f").append(qm(this,zp,"f")),t.selectedSecondaryBonds.addEventListener("change",()=>{document.body.contains(this.domNode)&&(0==[...t.selectedSecondaryBonds].length?qm(this,Wp,"m",Jp).call(this):qm(this,Wp,"m",Zp).call(this))}),Um(this,Fp,new $m(t),"f"),qm(this,zp,"f").append(qm(this,Fp,"f").domNode),Um(this,Up,new $d(t),"f"),qm(this,zp,"f").append(qm(this,Up,"f").domNode),Um(this,qp,new Qm(t),"f"),qm(this,zp,"f").append(qm(this,qp,"f").domNode),Um(this,Vp,new ep(t),"f"),qm(this,zp,"f").append(qm(this,Vp,"f").domNode),Um(this,Gp,new ap(t),"f"),qm(this,zp,"f").append(qm(this,Gp,"f").domNode),Um(this,Hp,new dp(t),"f"),qm(this,zp,"f").append(qm(this,Hp,"f").domNode),Um(this,Xp,new vp(t),"f"),qm(this,zp,"f").append(qm(this,Xp,"f").domNode),Um(this,Yp,new Ep(t),"f"),qm(this,zp,"f").append(qm(this,Yp,"f").domNode),Um(this,$p,new Op(t),"f"),qm(this,zp,"f").append(qm(this,$p,"f").domNode),this.collapse(),this.refresh()}isCollapsed(){return this.domNode.classList.contains(Ud.yZ)}collapse(){this.domNode.classList.add(Ud.yZ),qm(this,jp,"f").caret.pointRight()}expand(){this.domNode.classList.remove(Ud.yZ),qm(this,jp,"f").caret.pointDown()}toggle(){this.isCollapsed()?this.expand():this.collapse()}refresh(){qm(this,Wp,"a",Qp).forEach(t=>t.refresh()),0==[...qm(this,Pp,"f").selectedSecondaryBonds].length?qm(this,Wp,"m",Jp).call(this):qm(this,Wp,"m",Zp).call(this)}}Pp=new WeakMap,jp=new WeakMap,Lp=new WeakMap,Dp=new WeakMap,Bp=new WeakMap,Ip=new WeakMap,Rp=new WeakMap,zp=new WeakMap,Fp=new WeakMap,Up=new WeakMap,qp=new WeakMap,Vp=new WeakMap,Gp=new WeakMap,Hp=new WeakMap,Xp=new WeakMap,Yp=new WeakMap,$p=new WeakMap,Wp=new WeakSet,Qp=function(){return[qm(this,Dp,"f"),qm(this,Bp,"f"),qm(this,Ip,"f"),qm(this,Rp,"f"),qm(this,Fp,"f"),qm(this,Up,"f"),qm(this,qp,"f"),qm(this,Vp,"f"),qm(this,Gp,"f"),qm(this,Hp,"f"),qm(this,Xp,"f"),qm(this,Yp,"f"),qm(this,$p,"f")]},Zp=function(){qm(this,zp,"f").style.display="flex"},Jp=function(){qm(this,zp,"f").style.display="none"};class Gm{constructor(t){Kp.set(this,void 0),this.domNode=document.createElement("p"),tm.set(this,document.createElement("span")),em.set(this,document.createElement("span")),Um(this,Kp,t,"f"),this.domNode.classList.add(Ud.vM),qm(this,tm,"f").style.fontWeight="700",this.domNode.append(qm(this,tm,"f"),qm(this,em,"f")),qm(this,Kp,"f").selectedSecondaryBonds.addEventListener("change",()=>{!document.body.contains(this.domNode)||this.refresh()}),this.refresh()}refresh(){let t=[...qm(this,Kp,"f").selectedSecondaryBonds].length;qm(this,tm,"f").textContent=`${t}`,qm(this,em,"f").textContent=1==t?" secondary bond is selected.":" secondary bonds are selected."}}Kp=new WeakMap,tm=new WeakMap,em=new WeakMap;class Hm{constructor(t){nm.add(this),rm.set(this,void 0),this.domNode=document.createElement("div"),im.set(this,new C("Select:",()=>this.toggle())),sm.set(this,{All:new D("All",()=>qm(this,nm,"m",lm).call(this)),None:new D("None",()=>qm(this,nm,"m",cm).call(this)),Between:new D("Between",()=>qm(this,nm,"m",fm).call(this)),Connecting:new D("Connecting",()=>qm(this,nm,"m",pm).call(this)),"A:U":new D("A:U",()=>qm(this,nm,"m",gm).call(this)),"A:T":new D("A:T",()=>qm(this,nm,"m",ym).call(this)),"G:C":new D("G:C",()=>qm(this,nm,"m",bm).call(this)),"G:U":new D("G:U",()=>qm(this,nm,"m",_m).call(this)),"G:T":new D("G:T",()=>qm(this,nm,"m",km).call(this))}),om.set(this,document.createElement("div")),am.set(this,document.createElement("div")),hm.set(this,document.createElement("div")),um.set(this,void 0),Um(this,rm,t,"f"),this.domNode.classList.add(Ud.vw),this.domNode.append(qm(this,im,"f").domNode),h(qm(this,om,"f")).css({marginTop:"1.5px",display:"flex",flexDirection:"column",gap:"12px"}),this.domNode.append(qm(this,om,"f")),h(qm(this,am,"f")).css({display:"flex",flexDirection:"row",gap:"27px"}),qm(this,am,"f").append(...["All","None"].map(t=>qm(this,sm,"f")[t].domNode)),qm(this,om,"f").append(qm(this,am,"f")),h(qm(this,hm,"f")).css({display:"flex",flexDirection:"column",gap:"12px"}),qm(this,om,"f").append(qm(this,hm,"f")),qm(this,hm,"f").style.display="none",qm(this,im,"f").caret.pointRight();let e=document.createElement("div");h(e).css({display:"flex",flexDirection:"row",gap:"20px"}),e.append(...["Between","Connecting"].map(t=>qm(this,sm,"f")[t].domNode)),qm(this,hm,"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=>qm(this,sm,"f")[t].domNode)),qm(this,hm,"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():{}),Um(this,um,new MutationObserver(()=>document.body.contains(this.domNode)?this.refresh():{}),"f"),qm(this,um,"f").observe(t.drawing.domNode,{childList:!0,characterData:!0,subtree:!0}),this.refresh()}toggle(){this.isCollapsed()?this.expand():this.collapse()}isCollapsed(){return"none"==qm(this,hm,"f").style.display}collapse(){qm(this,hm,"f").style.display="none",qm(this,im,"f").caret.pointRight()}expand(){qm(this,hm,"f").style.display="flex",qm(this,im,"f").caret.pointDown()}refresh(){let t=[...qm(this,rm,"f").drawing.secondaryBonds],e=new Set(qm(this,rm,"f").selectedSecondaryBonds);0==t.length?(qm(this,sm,"f").All.disable(),qm(this,sm,"f").All.tooltip.textContent="There are no secondary bonds in the drawing."):t.every(t=>e.has(t))?(qm(this,sm,"f").All.disable(),qm(this,sm,"f").All.tooltip.textContent="All secondary bonds are already selected."):(qm(this,sm,"f").All.enable(),qm(this,sm,"f").All.tooltip.textContent="Select all secondary bonds."),0==e.size?(qm(this,sm,"f").None.disable(),qm(this,sm,"f").None.tooltip.textContent="No secondary bonds are selected."):(qm(this,sm,"f").None.enable(),qm(this,sm,"f").None.tooltip.textContent="Deselect all secondary bonds.");let n=[...qm(this,rm,"f").selectedBases],r=qm(this,nm,"a",dm);0==n.length?(qm(this,sm,"f").Between.disable(),qm(this,sm,"f").Between.tooltip.textContent="No bases are selected."):r.every(t=>e.has(t))?(qm(this,sm,"f").Between.disable(),qm(this,sm,"f").Between.tooltip.textContent="All secondary bonds between the selected bases are already selected."):(qm(this,sm,"f").Between.enable(),qm(this,sm,"f").Between.tooltip.textContent="Select secondary bonds between the selected bases.");let i=qm(this,nm,"a",mm);0==n.length?(qm(this,sm,"f").Connecting.disable(),qm(this,sm,"f").Connecting.tooltip.textContent="No bases are selected."):i.every(t=>e.has(t))?(qm(this,sm,"f").Connecting.disable(),qm(this,sm,"f").Connecting.tooltip.textContent="All secondary bonds connecting the selected bases are already selected."):(qm(this,sm,"f").Connecting.enable(),qm(this,sm,"f").Connecting.tooltip.textContent="Select secondary bonds connecting the selected bases."),[["A:U",qm(this,nm,"a",wm)],["A:T",qm(this,nm,"a",vm)],["G:C",qm(this,nm,"a",xm)],["G:U",qm(this,nm,"a",Nm)],["G:T",qm(this,nm,"a",Em)]].forEach(([t,n])=>{0==n.length?(qm(this,sm,"f")[t].disable(),qm(this,sm,"f")[t].tooltip.textContent=`There are no ${t} base-pairs in the drawing.`):n.every(t=>e.has(t))?(qm(this,sm,"f")[t].disable(),qm(this,sm,"f")[t].tooltip.textContent=`All secondary bonds between ${t} base-pairs are already selected.`):(qm(this,sm,"f")[t].enable(),qm(this,sm,"f")[t].tooltip.textContent=`Select secondary bonds between ${t} base-pairs.`)})}}rm=new WeakMap,im=new WeakMap,sm=new WeakMap,om=new WeakMap,am=new WeakMap,hm=new WeakMap,um=new WeakMap,nm=new WeakSet,lm=function(){qm(this,rm,"f").addToSelected([...qm(this,rm,"f").drawing.secondaryBonds])},cm=function(){qm(this,rm,"f").removeFromSelected([...qm(this,rm,"f").drawing.secondaryBonds])},fm=function(){qm(this,rm,"f").addToSelected(qm(this,nm,"a",dm))},dm=function(){let t=new Set(qm(this,rm,"f").selectedBases);return[...qm(this,rm,"f").drawing.secondaryBonds].filter(e=>t.has(e.base1)&&t.has(e.base2))},pm=function(){qm(this,rm,"f").addToSelected(qm(this,nm,"a",mm))},mm=function(){let t=new Set(qm(this,rm,"f").selectedBases);return[...qm(this,rm,"f").drawing.secondaryBonds].filter(e=>t.has(e.base1)||t.has(e.base2))},gm=function(){qm(this,rm,"f").addToSelected(qm(this,nm,"a",wm))},wm=function(){return[...qm(this,rm,"f").drawing.secondaryBonds].filter(Zm)},ym=function(){qm(this,rm,"f").addToSelected(qm(this,nm,"a",vm))},vm=function(){return[...qm(this,rm,"f").drawing.secondaryBonds].filter(Jm)},bm=function(){qm(this,rm,"f").addToSelected(qm(this,nm,"a",xm))},xm=function(){return[...qm(this,rm,"f").drawing.secondaryBonds].filter(Km)},_m=function(){qm(this,rm,"f").addToSelected(qm(this,nm,"a",Nm))},Nm=function(){return[...qm(this,rm,"f").drawing.secondaryBonds].filter(tg)},km=function(){qm(this,rm,"f").addToSelected(qm(this,nm,"a",Em))},Em=function(){return[...qm(this,rm,"f").drawing.secondaryBonds].filter(eg)};class Xm{constructor(t){Sm.set(this,void 0),this.domNode=document.createElement("div"),Tm.set(this,new eo("Add",()=>this.press())),Mm.set(this,new tt),Cm.set(this,new rt("Only add missing secondary bonds",qm(this,Mm,"f").domNode)),Am.set(this,void 0),Um(this,Sm,t,"f"),this.domNode.classList.add(Ud.Ol),this.domNode.append(qm(this,Tm,"f").domNode,qm(this,Cm,"f").domNode),qm(this,Mm,"f").domNode.checked=!0,qm(this,Cm,"f").domNode.style.marginLeft="10px",qm(this,Sm,"f").selectedBases.addEventListener("change",()=>{!document.body.contains(this.domNode)||this.refresh()}),Um(this,Am,new MutationObserver(()=>document.body.contains(this.domNode)?this.refresh():{}),"f"),qm(this,Am,"f").observe(t.drawing.domNode,{childList:!0,subtree:!0}),qm(this,Mm,"f").domNode.addEventListener("change",()=>this.refresh())}press(){let t=[...qm(this,Sm,"f").drawing.bases],e=[...qm(this,Sm,"f").selectedBases];e=(0,Fd.seqSorted)(e,t);let n=(0,Fm.antiParallelPairs)(e),r=[...qm(this,Sm,"f").drawing.secondaryBonds],i=(0,Fm.missing)(rg(r),n);0!=n.length&&(qm(this,Mm,"f").domNode.checked&&0==i.length||(qm(this,Sm,"f").pushUndoStack(),qm(this,Mm,"f").domNode.checked?i.forEach(t=>qm(this,Sm,"f").drawing.addSecondaryBond(...t)):n.forEach(t=>qm(this,Sm,"f").drawing.addSecondaryBond(...t))))}refresh(){let t=[...qm(this,Sm,"f").drawing.bases],e=[...qm(this,Sm,"f").selectedBases];e=(0,Fd.seqSorted)(e,t);let n=(0,Fm.antiParallelPairs)(e),r=[...qm(this,Sm,"f").drawing.secondaryBonds],i=(0,Fm.missing)(rg(r),n);0==e.length?(qm(this,Tm,"f").disable(),qm(this,Tm,"f").tooltip.textContent="No bases are selected."):1==e.length?(qm(this,Tm,"f").disable(),qm(this,Tm,"f").tooltip.textContent="At least two bases must be selected."):qm(this,Mm,"f").domNode.checked&&0==i.length?(qm(this,Tm,"f").disable(),qm(this,Tm,"f").tooltip.textContent="There are no missing pairs between the selected bases."):(qm(this,Tm,"f").enable(),qm(this,Tm,"f").tooltip.textContent="Add secondary bonds between the selected bases.")}}Sm=new WeakMap,Tm=new WeakMap,Mm=new WeakMap,Cm=new WeakMap,Am=new WeakMap;class Ym{constructor(t){Om.set(this,void 0),Wm.set(this,new eo("Remove",()=>this.press())),Um(this,Om,t,"f"),qm(this,Om,"f").selectedSecondaryBonds.addEventListener("change",()=>{!document.body.contains(this.domNode)||this.refresh()}),this.domNode.style.marginTop="15px"}get domNode(){return qm(this,Wm,"f").domNode}press(){let t=[...qm(this,Om,"f").selectedSecondaryBonds];0!=t.length&&(qm(this,Om,"f").pushUndoStack(),t.forEach(t=>t.domNode.remove()))}refresh(){0==[...qm(this,Om,"f").selectedSecondaryBonds].length?(qm(this,Wm,"f").disable(),qm(this,Wm,"f").tooltip.textContent="No secondary bonds are selected."):(qm(this,Wm,"f").enable(),qm(this,Wm,"f").tooltip.textContent="Remove the selected secondary bonds from the drawing.")}}Om=new WeakMap,Wm=new WeakMap;class $m{constructor(t){Pm.add(this),jm.set(this,void 0),Lm.set(this,void 0),Um(this,jm,t,"f");let e=t.selectedSecondaryBonds;Um(this,Lm,new ou(e,t),"f"),this.domNode.style.marginTop="27px",qm(this,Lm,"f").addEventListener("refresh",()=>qm(this,Pm,"m",Dm).call(this)),this.refresh()}get domNode(){return qm(this,Lm,"f").domNode}refresh(){qm(this,Lm,"f").refresh()}}jm=new WeakMap,Lm=new WeakMap,Pm=new WeakSet,Dm=function(){let t=[...qm(this,jm,"f").selectedSecondaryBonds];qm(this,Lm,"f").buttons.Front.tooltip.textContent=0==t.length?"No secondary bonds are selected.":"Bring the selected secondary bonds to the front.",qm(this,Lm,"f").buttons.Back.tooltip.textContent=0==t.length?"No secondary bonds are selected.":"Send the selected secondary bonds to the back."};class Qm{constructor(t){Bm.set(this,void 0),Im.set(this,void 0),Rm.set(this,void 0),zm.set(this,void 0),Um(this,Bm,t,"f");let e=t.selectedSecondaryBonds,n=t.drawing;Um(this,Im,new tl("stroke",e,n),"f"),qm(this,Im,"f").onBeforeEdit=()=>{(t.undoStack.isEmpty()||t.undoStack.peek()!==qm(this,zm,"f"))&&(t.pushUndoStack(),Um(this,zm,t.undoStack.peek(),"f"))},e.addEventListener("change",()=>{Um(this,zm,void 0,"f")}),Um(this,Rm,new ut("Stroke Color",qm(this,Im,"f").domNode),"f"),qm(this,Rm,"f").domNode.style.marginTop="12px",qm(this,Rm,"f").domNode.style.alignSelf="start",this.refresh()}get domNode(){return qm(this,Rm,"f").domNode}refresh(){qm(this,Im,"f").refresh()}}function Zm(t){return new Fd.BasePair(t.base1,t.base2).isAU()}function Jm(t){return new Fd.BasePair(t.base1,t.base2).isAT()}function Km(t){return new Fd.BasePair(t.base1,t.base2).isGC()}function tg(t){return new Fd.BasePair(t.base1,t.base2).isGU()}function eg(t){return new Fd.BasePair(t.base1,t.base2).isGT()}function ng(t){return[t.base1,t.base2]}function rg(t){return t.map(ng)}Bm=new WeakMap,Im=new WeakMap,Rm=new WeakMap,zm=new WeakMap;var ig=n(965),sg={};sg.styleTagTransform=b(),sg.setAttributes=g(),sg.insert=p().bind(null,"head"),sg.domAPI=f(),sg.insertStyleElement=y(),l()(ig.Ay,sg),ig.Ay&&ig.Ay.locals&&ig.Ay.locals;var og,ag,hg,ug,lg,cg,fg,dg,pg,mg,gg=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},wg=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 yg{constructor(t){og.add(this),ag.set(this,void 0),this.domNode=document.createElement("div"),hg.set(this,new C("Drawing",()=>this.toggle())),ug.set(this,document.createElement("div")),lg.set(this,void 0),gg(this,ag,t,"f"),this.domNode.classList.add(ig.fS),this.domNode.append(wg(this,hg,"f").domNode),wg(this,ug,"f").classList.add(ig.Qs),this.domNode.append(wg(this,ug,"f")),gg(this,lg,new vg(t),"f"),wg(this,ug,"f").append(wg(this,lg,"f").domNode),this.collapse(),this.refresh()}isCollapsed(){return this.domNode.classList.contains(ig.yZ)}collapse(){this.domNode.classList.add(ig.yZ),wg(this,hg,"f").caret.pointRight()}expand(){this.domNode.classList.remove(ig.yZ),wg(this,hg,"f").caret.pointDown()}toggle(){this.isCollapsed()?this.expand():this.collapse()}refresh(){wg(this,og,"a",cg).forEach(t=>t.refresh())}}ag=new WeakMap,hg=new WeakMap,ug=new WeakMap,lg=new WeakMap,og=new WeakSet,cg=function(){return[wg(this,lg,"f")]};class vg{constructor(t){fg.set(this,void 0),dg.set(this,void 0),pg.set(this,void 0),gg(this,fg,t,"f"),gg(this,dg,new Bu("data-name",new bg([t.drawing]),t.drawing),"f"),gg(this,pg,new Z("Name",wg(this,dg,"f").domNode),"f"),this.domNode.style.alignSelf="start",wg(this,dg,"f").domNode.style.width="132px",this.refresh()}get domNode(){return wg(this,pg,"f").domNode}refresh(){wg(this,dg,"f").refresh()}}fg=new WeakMap,dg=new WeakMap,pg=new WeakMap;class bg{constructor(t){mg.set(this,void 0),gg(this,mg,[...t],"f")}[(mg=new WeakMap,Symbol.iterator)](){return wg(this,mg,"f").values()}addEventListener(t,e){}}var xg=n(290),_g={};_g.styleTagTransform=b(),_g.setAttributes=g(),_g.insert=p().bind(null,"head"),_g.domAPI=f(),_g.insertStyleElement=y(),l()(xg.A,_g),xg.A&&xg.A.locals&&xg.A.locals;var Ng,kg,Eg,Sg,Tg,Mg,Cg,Ag,Og,Wg,Pg=n(139),jg=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},Lg=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 Dg{constructor(t){Ng.add(this),kg.set(this,void 0),this.domNode=document.createElement("div"),Eg.set(this,void 0),Sg.set(this,void 0),Tg.set(this,void 0),Mg.set(this,void 0),Cg.set(this,void 0),Ag.set(this,void 0),Og.set(this,void 0),jg(this,kg,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),jg(this,Eg,new Ms(t),"f"),n.append(Lg(this,Eg,"f").domNode),jg(this,Sg,new Ya(t),"f"),n.append(Lg(this,Sg,"f").domNode),jg(this,Tg,new Zc(t),"f"),n.append(Lg(this,Tg,"f").domNode),jg(this,Mg,new Dd(t),"f"),n.append(Lg(this,Mg,"f").domNode),jg(this,Cg,new Vm(t),"f"),n.append(Lg(this,Cg,"f").domNode),jg(this,Ag,new yg(t),"f"),n.append(Lg(this,Ag,"f").domNode);let r=function(){let t=document.createElement("p");return t.classList.add(xg._),t.textContent="Close",t}();r.addEventListener("click",()=>this.close()),this.domNode.append(r),jg(this,Og,new Pg.DragTranslater(this.domNode),"f")}appendTo(t){this.refresh(),this.reposition(),t.appendChild(this.domNode)}close(){this.domNode.remove()}refresh(){Lg(this,Ng,"a",Wg).forEach(t=>t.refresh())}reposition(){Lg(this,Og,"f").untranslate()}}kg=new WeakMap,Eg=new WeakMap,Sg=new WeakMap,Tg=new WeakMap,Mg=new WeakMap,Cg=new WeakMap,Ag=new WeakMap,Og=new WeakMap,Ng=new WeakSet,Wg=function(){return[Lg(this,Eg,"f"),Lg(this,Sg,"f"),Lg(this,Tg,"f"),Lg(this,Mg,"f"),Lg(this,Cg,"f"),Lg(this,Ag,"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={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 w(t){return l(t)&&t.every(a)}function y(t){return w(t)&&t.length>0}return t.r(e),t.d(e,{isArray:()=>l,isEmptyArray:()=>c,isFiniteNumber:()=>r,isFiniteNumbersArray:()=>m,isNonEmptyArray:()=>d,isNonEmptyNumbersArray:()=>p,isNonEmptyStringsArray:()=>y,isNonFiniteNumber:()=>i,isNonFiniteNumbersArray:()=>g,isNonNegativeFiniteNumber:()=>o,isNonNullObject:()=>u,isNullish:()=>h,isNumber:()=>n,isNumbersArray:()=>f,isPositiveFiniteNumber:()=>s,isString:()=>a,isStringsArray:()=>w}),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:()=>v,isBetween:()=>l,isBetweenExclusive:()=>c,isBetweenInclusive:()=>l,max:()=>u,mean:()=>r,median:()=>a,min:()=>h,normalizeAngle:()=>y,radians:()=>w,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 w(t){return t*(Math.PI/180)}function y(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 v(t,e){var n=(e=y(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:()=>v,deepCopy:()=>i,knotless:()=>f,mountainPlotTraversal:()=>w,parseDotBracket:()=>y,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 w(){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 y(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 v(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:()=>w,flipAway:()=>b,isBetween:()=>l,isBetweenExclusive:()=>c,isBetweenInclusive:()=>l,max:()=>u,mean:()=>r,median:()=>a,min:()=>h,normalizeAngle:()=>v,radians:()=>y,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 w(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 b(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";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:()=>v,areEqual:()=>t,consecutivePairs:()=>w,knotless:()=>f,missing:()=>b,mountainPlotTraversal:()=>m,other:()=>e,parallelPairs:()=>y,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 w(t){return t.length<2?[]:t.slice(0,-1).map((e,n)=>[t[n],t[n+1]])}function y(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 v(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()},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:()=>w,flipAway:()=>b,isBetween:()=>l,isBetweenExclusive:()=>c,isBetweenInclusive:()=>l,max:()=>u,mean:()=>r,median:()=>a,min:()=>h,normalizeAngle:()=>v,radians:()=>y,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 w(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 b(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";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})()},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 w(t){return l(t)&&t.every(a)}function y(t){return w(t)&&t.length>0}return t.r(e),t.d(e,{isArray:()=>l,isEmptyArray:()=>c,isFiniteNumber:()=>r,isFiniteNumbersArray:()=>m,isNonEmptyArray:()=>d,isNonEmptyNumbersArray:()=>p,isNonEmptyStringsArray:()=>y,isNonFiniteNumber:()=>i,isNonFiniteNumbersArray:()=>g,isNonNegativeFiniteNumber:()=>o,isNonNullObject:()=>u,isNullish:()=>h,isNumber:()=>n,isNumbersArray:()=>f,isPositiveFiniteNumber:()=>s,isString:()=>a,isStringsArray:()=>w}),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:()=>v,OuterXML:()=>_,Scaling:()=>d,VerticalClientScaling:()=>p,assignUUID:()=>l,bringToFront:()=>m,isSVGGraphicsElement:()=>N,isSVGGraphicsElementsArray:()=>E,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 w,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 v{constructor(t){w.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,w,t)}toString(){return y(this,w,"f").innerHTML}set(t){y(this,w,"f").innerHTML=t}}w=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 E(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 w(t){return l(t)&&t.every(a)}function y(t){return w(t)&&t.length>0}return t.r(e),t.d(e,{isArray:()=>l,isEmptyArray:()=>c,isFiniteNumber:()=>r,isFiniteNumbersArray:()=>m,isNonEmptyArray:()=>d,isNonEmptyNumbersArray:()=>p,isNonEmptyStringsArray:()=>y,isNonFiniteNumber:()=>i,isNonFiniteNumbersArray:()=>g,isNonNegativeFiniteNumber:()=>o,isNonNullObject:()=>u,isNullish:()=>h,isNumber:()=>n,isNumbersArray:()=>f,isPositiveFiniteNumber:()=>s,isString:()=>a,isStringsArray:()=>w}),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:()=>v,isBetween:()=>l,isBetweenExclusive:()=>c,isBetweenInclusive:()=>l,max:()=>u,mean:()=>r,median:()=>a,min:()=>h,normalizeAngle:()=>y,radians:()=>w,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 w(t){return t*(Math.PI/180)}function y(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 v(t,e){var n=(e=y(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:()=>Ln,Nucleobase:()=>jn,seqSorted:()=>Dn});var t={};n.r(t),n.d(t,{cx:()=>Dt,cy:()=>Bt,height:()=>Rt,rx:()=>Wt,ry:()=>Pt,width:()=>It,x:()=>jt,y:()=>Lt});var e={};n.r(e),n.d(e,{from:()=>qt,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:()=>Me,clear:()=>Ce,move:()=>Ae,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:()=>wn,move:()=>yn,size:()=>vn,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 w(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 y=new Set(["desc","metadata","title"]),v=t=>y.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 E{}const S={},T="___SYMBOL___ROOT___";function M(t,e=x){return k.document.createElementNS(e,t)}function C(t,e=!1){if(t instanceof E)return t;if("object"==typeof t)return W(t);if(null==t)return new S[T];if("string"==typeof t&&"<"!==t.charAt(0))return W(k.document.querySelector(t));const n=e?k.document.createElement("div"):M("svg");return n.innerHTML=t,t=W(n.firstChild),n.removeChild(n.firstChild),t}function A(t,e){return e&&(e instanceof k.window.Node||e.ownerDocument&&e instanceof e.ownerDocument.defaultView.Node)?e:M(t)}function O(t){if(!t)return null;if(t.instance instanceof E)return t.instance;if("#document-fragment"===t.nodeName)return new S.Fragment(t);let e=m(t.nodeName||"Dom");return"LinearGradient"===e||"RadialGradient"===e?e="Gradient":S[e]||(e="Dom"),new S[e](t)}let W=O;function P(t,e=t.name,n=!1){return S[e]=t,n&&(S[T]=t),d(Object.getOwnPropertyNames(t.prototype)),t}let j=1e3;function L(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=L(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+)\)/,U=/(#[a-z_][a-z0-9\-_]*)/i,q=/\)\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),w=g.x,y=g.y,v=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:v.x,ry:v.y,tx:w,ty:y,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 Tt?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)}P(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)}}}),P(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 wt(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 yt(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])yt(o,[e,a].join("."),u);delete s[e][a]}}else if(a)for(t in s)for(h in s[t])a===h&&yt(o,[t,a].join("."));else if(e){if(s[e]){for(h in s[e])yt(o,[e,h].join("."));delete s[e]}}else{for(t in s)yt(o,t);!function(t){let e=t.getEventHolder();e===k.window&&(e=pt),e.events&&(e.events={})}(i)}})}class vt extends E{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 yt(this,t,e,n),this}on(t,e,n,r){return wt(this,t,e,n,r),this}removeEventListener(){}}function bt(){}P(vt,"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"]),Et=[];class St extends vt{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 St(M(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=L(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=M("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(St,{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=Et.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))}}),P(St,"Dom");class Tt extends St{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(U);return e?C(e[1]):null}root(){const t=this.parent(S[T]);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(Tt,{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}}}),P(Tt,"Element");const Mt={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 Tt)this.attr(t,e);else for(n=Mt[t].length-1;n>=0;n--)null!=e[Mt[t][n]]&&this.attr(Mt.prefix(t,Mt[t][n]),e[Mt[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(q).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(v(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:w(t,this)});const n=new it(!0===e?this:e||!1).transform(t);return this.attr("transform",n)}});class Ct extends Tt{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()}}P(Ct,"Container");class At extends Ct{constructor(t,e=t){super(A("defs",t),e)}flatten(){return this}ungroup(){return this}}P(At,"Defs");class Ot extends Tt{}function Wt(t){return this.attr("rx",t)}function Pt(t){return this.attr("ry",t)}function jt(t){return null==t?this.cx()-this.rx():this.cx(t+this.rx())}function Lt(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))}P(Ot,"Shape");class zt extends Ot{constructor(t,e=t){super(A("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)})}),P(zt,"Ellipse");class Ft extends St{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 St(M("wrapper",n));return t.add(this.node.cloneNode(!0)),t.xml(!1,n)}return super.xml(t,!1,n)}}P(Ft,"Fragment");const Ut=Ft;function qt(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(A(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)})}}),P(Gt,"Gradient");class Ht extends Ct{constructor(t,e=t){super(A("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"})})}}),P(Ht,"Pattern");class Xt extends Ot{constructor(t,e=t){super(A("image",t),e)}load(t,e){if(!t)return this;const n=new k.window.Image;return wt(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),wt(n,"load error",function(){yt(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},Et.push(Yt),l({Container:{image:I(function(t,e){return this.put(new Xt).size(0,0).load(t,e)})}}),P(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(A("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])})}}),P(ee,"Line");class ne extends Ct{constructor(t,e=t){super(A("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)}}}),P(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 we(t){return"E"===t.lastToken.toUpperCase()}const ye=new Set([" ",",","\t","\n","\r","\f"]);class ve 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(ye.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&&!we(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)?ve:_t:R.test(t)?Nt:_e:Se.indexOf(t.constructor)>-1?t.constructor:Array.isArray(t)?_t:"object"===e?Ee:_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===Ee&&(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 Ee{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 Se=[_e,Ne,Ee];class Te extends Ot{constructor(t,e=t){super(A("path",t),e)}array(){return this._array||(this._array=new ve(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 ve(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 Me(){return this._array||(this._array=new $t(this.attr("points")))}function Ce(){return delete this._array,this}function Ae(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))}Te.prototype.MorphArray=ve,l({Container:{path:I(function(t){return this.put(new Te).plot(t||new ve)})}}),P(Te,"Path");class Pe extends Ot{constructor(t,e=t){super(A("polygon",t),e)}}l({Container:{polygon:I(function(t){return this.put(new Pe).plot(t||new $t)})}}),B(Pe,i),B(Pe,s),P(Pe,"Polygon");class je extends Ot{constructor(t,e=t){super(A("polyline",t),e)}}l({Container:{polyline:I(function(t){return this.put(new je).plot(t||new $t)})}}),B(je,i),B(je,s),P(je,"Polyline");class Le extends Ot{constructor(t,e=t){super(A("rect",t),e)}}B(Le,{rx:Wt,ry:Pt}),l({Container:{rect:I(function(t,e){return this.put(new Le).size(t,e)})}}),P(Le,"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 vt{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 Ue extends vt{constructor(t){super(),this.id=Ue.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=Ue.sanitise(t,e,n),i=new Ue(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}}Ue.id=0;class qe{constructor(t=new it,e=-1,n=!0){this.transforms=t,this.id=e,this.done=n}clearTransformsFromQueue(){}}B([Ue,qe],{mergeWith(t){return new qe(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 qe).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=Ue.sanitise(t,e,n),i=this.timeline();return new Ue(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 qe(new it(this))))}}}),B(Ue,{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 Ee(i.from()).valueOf();Object.assign(n,e),i.from(n)}const h=new Ee(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||w(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=w(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(Ue,{rx:Wt,ry:Pt,from:qt,to:Vt}),P(Ue,"Runner");class Ye extends Ct{constructor(t,e=t){super(A("svg",t),e),this.namespace()}defs(){return this.isRoot()?O(this.node.querySelector("defs"))||this.put(new At):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)})}}),P(Ye,"Svg",!0);class $e extends Ct{constructor(t,e=t){super(A("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)})}}),P($e,"Symbol");class un extends Ot{constructor(t,e=t){super(A("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(v(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||v(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)})}}),P(un,"Text");class ln extends Ot{constructor(t,e=t){super(A("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()}}}),P(ln,"Tspan");class cn extends Ot{constructor(t,e=t){super(A("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:Lt,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)})}}),P(cn,"Circle");class dn extends Ct{constructor(t,e=t){super(A("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)}}}),P(dn,"ClipPath");class fn extends Tt{constructor(t,e=t){super(A("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 wn(t,e=this.bbox()){return null==t?e.height:this.size(e.width,t,e)}function yn(t=0,e=0,n=this.bbox()){const r=t-n.x,i=e-n.y;return this.dmove(r,i)}function vn(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)})}}),P(fn,"ForeignObject");class Nn extends Ct{constructor(t,e=t){super(A("g",t),e)}}B(Nn,a),l({Container:{group:I(function(){return this.put(new Nn)})}}),P(Nn,"G");class kn extends Ct{constructor(t,e=t){super(A("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}}}),P(kn,"A");class En extends Ct{constructor(t,e=t){super(A("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 En)})},Element:{masker(){return this.reference("mask")},maskWith(t){const e=t instanceof En?t:this.parent().mask().add(t);return this.attr("mask","url(#"+e.id()+")")},unmask(){return this.attr("mask",null)}}}),P(En,"Mask");class Sn extends Tt{constructor(t,e=t){super(A("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 Sn).update(t,e,n)}}}),P(Sn,"Stop");class Tn extends Tt{constructor(t,e=t){super(A("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 Tn).rule(t,e)},fontface(t,e,n){return this.put(new Tn).font(t,e,n)}}),P(Tn,"Style");class Mn extends un{constructor(t,e=t){super(A("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 Mn;let r;if(t instanceof Te||(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()))}}}),Mn.prototype.MorphArray=ve,P(Mn,"TextPath");class Cn extends Ot{constructor(t,e=t){super(A("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)})}}),P(Cn,"Use"),B([Ye,$e,Xt,Ht,ne],c("viewbox")),B([ee,je,Pe,Te],c("marker")),B(un,c("Text")),B(Te,c("Path")),B(At,c("Defs")),B([un,ln],c("Tspan")),B([Le,zt,Gt,Ue],c("radius")),B(vt,c("EventTarget")),B(St,c("Dom")),B(Tt,c("Element")),B(Ot,c("Shape")),B([Ct,Ut],c("Container")),B(Gt,c("Gradient")),B(Ue,c("Runner")),lt.extend([...new Set(u)]),function(t=[]){Se.push(...[].concat(t))}([Nt,et,at,it,_t,$t,ve,nt]),B(Se,{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 An=n(726),On=n(854),Wn=n(731),Pn=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,An.bringToFront)(this.domNode)}sendToBack(){(0,An.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,An.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,Pn.mean)([t.left,t.right]),y:(0,Pn.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 Ln{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()},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 w(t){return l(t)&&t.every(a)}function y(t){return w(t)&&t.length>0}return t.r(e),t.d(e,{isArray:()=>l,isEmptyArray:()=>c,isFiniteNumber:()=>r,isFiniteNumbersArray:()=>m,isNonEmptyArray:()=>d,isNonEmptyNumbersArray:()=>p,isNonEmptyStringsArray:()=>y,isNonFiniteNumber:()=>i,isNonFiniteNumbersArray:()=>g,isNonNegativeFiniteNumber:()=>o,isNonNullObject:()=>u,isNullish:()=>h,isNumber:()=>n,isNumbersArray:()=>f,isPositiveFiniteNumber:()=>s,isString:()=>a,isStringsArray:()=>w}),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:()=>v,OuterXML:()=>_,Scaling:()=>d,VerticalClientScaling:()=>p,assignUUID:()=>l,bringToFront:()=>m,drawOnCanvas:()=>T,isSVGGraphicsElement:()=>N,isSVGGraphicsElementsArray:()=>E,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 w,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 v{constructor(t){w.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,w,t)}toString(){return y(this,w,"f").innerHTML}set(t){y(this,w,"f").innerHTML=t}}w=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 E(t){return(0,k.isArray)(t)&&t.every(N)}var S=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 T(t){return S(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()},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:()=>y});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),w={};w.styleTagTransform=m(),w.setAttributes=c(),w.insert=u().bind(null,"head"),w.domAPI=a(),w.insertStyleElement=f(),s()(g.A,w),g.A&&g.A.locals&&g.A.locals;class y{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()},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:()=>v,isBetween:()=>l,isBetweenExclusive:()=>c,isBetweenInclusive:()=>l,max:()=>u,mean:()=>r,median:()=>a,min:()=>h,normalizeAngle:()=>y,radians:()=>w,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 w(t){return t*(Math.PI/180)}function y(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 v(t,e){var n=(e=y(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),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,w,y,v,b,x,_,N,k,E,S,T,M,C=n(645),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)},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),w.set(this,document.createElement("div")),y.set(this,document.createElement("p")),v.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,()=>{}),E.set(this,()=>{}),A(this,w,"f").classList.add(p.YL),A(this,y,"f").classList.add(p.Qq),A(this,y,"f").textContent=null!=t?t:"",A(this,w,"f").append(A(this,y,"f")),A(this,v,"f").classList.add(p.jJ),A(this,w,"f").append(A(this,v,"f")),A(this,b,"f").classList.add(p.JJ),A(this,w,"f").append(A(this,b,"f"))}get textContent(){return A(this,y,"f").textContent}set textContent(t){let e=!A(this,g,"m",M).call(this);A(this,g,"m",T).call(this),A(this,y,"f").textContent=t,e&&A(this,g,"m",S).call(this)}get owner(){return A(this,N,"f")}set owner(t){A(this,N,"f")&&(A(this,N,"f").removeEventListener("mouseover",A(this,k,"f")),A(this,N,"f").removeEventListener("mouseout",A(this,E,"f"))),O(this,N,t,"f"),t&&(t.addEventListener("mouseover",()=>A(this,g,"m",S).call(this)),t.addEventListener("mouseout",()=>A(this,g,"m",T).call(this)))}get padding(){return A(this,x,"f")}set padding(t){O(this,x,t,"f"),A(this,g,"m",M).call(this)||(A(this,g,"m",T).call(this),A(this,g,"m",S).call(this))}get pointerDisplacement(){return A(this,_,"f")}set pointerDisplacement(t){O(this,_,t,"f"),A(this,g,"m",M).call(this)||(A(this,g,"m",T).call(this),A(this,g,"m",S).call(this))}}w=new WeakMap,y=new WeakMap,v=new WeakMap,b=new WeakMap,x=new WeakMap,_=new WeakMap,N=new WeakMap,k=new WeakMap,E=new WeakMap,g=new WeakSet,S=function(){if(A(this,w,"f").style.left="0px",A(this,w,"f").style.top="0px",A(this,v,"f").style.marginLeft=`${A(this,_,"f")}px`,A(this,b,"f").style.marginLeft=`${A(this,_,"f")}px`,document.body.append(A(this,w,"f")),!A(this,N,"f"))return;let t=A(this,w,"f").getBoundingClientRect().width,e=A(this,y,"f").getBoundingClientRect().height+A(this,v,"f").getBoundingClientRect().height/2-1,n=C.Box.matching(A(this,N,"f").getBoundingClientRect()).padded(A(this,x,"f"));A(this,w,"f").style.left=n.peripheralPoint(3*Math.PI/2).x-t/2-A(this,_,"f")/2+"px",A(this,w,"f").style.top=n.peripheralPoint(3*Math.PI/2).y-e+"px"},T=function(){A(this,w,"f").remove()},M=function(){return!document.body.contains(A(this,w,"f"))}})(),r})(),t.exports=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 w(t){return l(t)&&t.every(a)}function y(t){return w(t)&&t.length>0}return t.r(e),t.d(e,{isArray:()=>l,isEmptyArray:()=>c,isFiniteNumber:()=>r,isFiniteNumbersArray:()=>m,isNonEmptyArray:()=>d,isNonEmptyNumbersArray:()=>p,isNonEmptyStringsArray:()=>y,isNonFiniteNumber:()=>i,isNonFiniteNumbersArray:()=>g,isNonNegativeFiniteNumber:()=>o,isNonNullObject:()=>u,isNullish:()=>h,isNumber:()=>n,isNumbersArray:()=>f,isPositiveFiniteNumber:()=>s,isString:()=>a,isStringsArray:()=>w}),e})()},633(t,e,n){"use strict";n.d(e,{Ay:()=>y,IU:()=>f,QB:()=>w,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",w="a5Wi7rcTlB2tWpGwD8zf";const y=o},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},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},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},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},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},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},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},718(t,e,n){"use strict";n.d(e,{A:()=>h,f:()=>a});var r=n(601),i=n.n(r),s=n(314),o=n.n(s)()(i());o.push([t.id,".dJooW1v5ZrIjmYLGpnlH {\n margin-top: 29px;\n\n display: flex;\n flex-direction: column;\n}\n",""]);var a="dJooW1v5ZrIjmYLGpnlH";const h=o},380(t,e,n){"use strict";n.d(e,{Ay:()=>u,Pf:()=>h,d8:()=>a});var r=n(601),i=n.n(r),s=n(314),o=n.n(s)()(i());o.push([t.id,'.Hk0dk5h81kfmTypkfmn7 {\n margin-top: 14px;\n\n display: flex;\n flex-direction: column;\n}\n\n.z9z6RWqjzqZi5Lxgwlxg {\n margin: 0px 0px 8px 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="Hk0dk5h81kfmTypkfmn7",h="z9z6RWqjzqZi5Lxgwlxg";const u=o},151(t,e,n){"use strict";n.d(e,{A:()=>h,w:()=>a});var r=n(601),i=n.n(r),s=n(314),o=n.n(s)()(i());o.push([t.id,'.wycktObmx1kO4znXAJHF {\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',""]);var a="wycktObmx1kO4znXAJHF";const h=o},313(t,e,n){"use strict";n.d(e,{Ay:()=>c,HS:()=>a,Qs:()=>h,y1:()=>l,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._8rBW8W6lwJb5IOiKXf4 {\n display: none;\n flex-direction: column;\n}\n",""]);var a="a6ORYgMQABEHR6aBTOyH",h="AlufD9RFKRiHPBf1_E_0",u="OJg1zcUAnASkF64IFOL6",l="_8rBW8W6lwJb5IOiKXf4";const c=o},153(t,e,n){"use strict";n.d(e,{Ay:()=>u,Pf:()=>h,sR:()=>a});var r=n(601),i=n.n(r),s=n(314),o=n.n(s)()(i());o.push([t.id,'.lMTadMC86oxlGGuNWJq0 {\n margin-top: 20px;\n\n display: flex;\n flex-direction: row;\n align-items: center;\n}\n\n.Est34jL7jaXMGTPu8m4H {\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="lMTadMC86oxlGGuNWJq0",h="Est34jL7jaXMGTPu8m4H";const u=o},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},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},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},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},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},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},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},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}},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}},601(t){"use strict";t.exports=function(t){return t[1]}},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={},w=function(t){return"function"==typeof t&&"number"!=typeof t.nodeType&&"function"!=typeof t.item},y=function(t){return null!=t&&t===t.window},v=r.document,b={type:!0,src:!0,nonce:!0,noModule:!0};function x(t,e,n){var r,i,s=(n=n||v).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,E=function(t,e){return new E.fn.init(t,e)};function S(t){var e=!!t&&"length"in t&&t.length,n=_(t);return!w(t)&&!y(t)&&("array"===n||0===e||"number"==typeof e&&e>0&&e-1 in t)}function T(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()}E.fn=E.prototype={jquery:N,constructor:E,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=E.merge(this.constructor(),t);return e.prevObject=this,e},each:function(t){return E.each(this,t)},map:function(t){return this.pushStack(E.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(E.grep(this,function(t,e){return(e+1)%2}))},odd:function(){return this.pushStack(E.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},E.extend=E.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||w(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&&(E.isPlainObject(r)||(i=Array.isArray(r)))?(n=o[e],s=i&&!Array.isArray(n)?[]:i||E.isPlainObject(n)?n:{},i=!1,o[e]=E.extend(u,s,r)):void 0!==r&&(o[e]=r));return o},E.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(S(t))for(n=t.length;r<n&&!1!==e.call(t[r],r,t[r]);r++);else for(r in t)if(!1===e.call(t[r],r,t[r]))break;return t},text:function(t){var e,n="",r=0,i=t.nodeType;if(!i)for(;e=t[r++];)n+=E.text(e);return 1===i||11===i?t.textContent:9===i?t.documentElement.textContent:3===i||4===i?t.nodeValue:n},makeArray:function(t,e){var n=e||[];return null!=t&&(S(Object(t))?E.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(S(t))for(r=t.length;s<r;s++)null!=(i=e(t[s],s,n))&&o.push(i);else for(s in t)null!=(i=e(t[s],s,n))&&o.push(i);return h(o)},guid:1,support:g}),"function"==typeof Symbol&&(E.fn[Symbol.iterator]=s[Symbol.iterator]),E.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(t,e){c["[object "+e+"]"]=e.toLowerCase()});var M=s.pop,C=s.sort,A=s.splice,O="[\\x20\\t\\r\\n\\f]",W=new RegExp("^"+O+"+|((?:^|[^\\\\])(?:\\\\.)*)"+O+"+$","g");E.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 P=/([\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}E.escapeSelector=function(t){return(t+"").replace(P,j)};var L=v,D=u;!function(){var t,e,n,i,o,h,u,c,d,p,m=D,w=E.expando,y=0,v=0,b=tt(),x=tt(),_=tt(),N=tt(),k=function(t,e){return t===e&&(o=!0),0},S="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",P="(?:\\\\[\\da-fA-F]{1,6}"+O+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",j="\\["+O+"*("+P+")(?:"+O+"*([*^$|!~]?=)"+O+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+P+"))|)"+O+"*\\]",B=":("+P+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+j+")*)|.*)\\)|)",I=new RegExp(O+"+","g"),R=new RegExp("^"+O+"*,"+O+"*"),z=new RegExp("^"+O+"*([>+~]|"+O+")"+O+"*"),F=new RegExp(O+"|>"),U=new RegExp(B),q=new RegExp("^"+P+"$"),V={ID:new RegExp("^#("+P+")"),CLASS:new RegExp("^\\.("+P+")"),TAG:new RegExp("^("+P+"|[*])"),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("^(?:"+S+")$","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&&T(t,"fieldset")},{dir:"parentNode",next:"legend"});try{m.apply(s=a.call(L.childNodes),L.childNodes),s[L.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,y=e?e.nodeType:9;if(n=n||[],"string"!=typeof t||!t||1!==y&&9!==y&&11!==y)return n;if(!r&&(ht(e),e=e||h,c)){if(11!==y&&(u=X.exec(t)))if(i=u[1]){if(9===y){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===y&&(F.test(t)||z.test(t))){for((p=Y.test(t)&&at(e.parentNode)||e)==e&&g.scope||((a=e.getAttribute("id"))?a=E.escapeSelector(a):e.setAttribute("id",a=w)),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===w&&e.removeAttribute("id")}}}return yt(t.replace(W,"$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[w]=!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 T(e,"input")&&e.type===t}}function it(t){return function(e){return(T(e,"input")||T(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:L;return r!=h&&9===r.nodeType&&r.documentElement?(u=(h=r).documentElement,c=!E.isXMLDoc(h),p=u.matches||u.webkitMatchesSelector||u.msMatchesSelector,u.msMatchesSelector&&L!=h&&(n=h.defaultView)&&n.top!==n&&n.addEventListener("unload",Z),g.getById=nt(function(t){return u.appendChild(t).id=E.expando,!h.getElementsByName||!h.getElementsByName(E.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='"+w+"' href='' disabled='disabled'></a><select id='"+w+"-\r\\' disabled='disabled'><option selected=''></option></select>",t.querySelectorAll("[selected]").length||d.push("\\["+O+"*(?:value|"+S+")"),t.querySelectorAll("[id~="+w+"-]").length||d.push("~="),t.querySelectorAll("a#"+w+"+*").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==L&&K.contains(L,t)?-1:e===h||e.ownerDocument==L&&K.contains(L,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),E.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)},E.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--;)A.call(t,n[r],1)}return i=null,t},E.fn.uniqueSort=function(){return this.pushStack(E.uniqueSort(a.apply(this)))},e=E.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&&U.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 T(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(),v=!h&&!a,b=!1;if(m){if(s){for(;p;){for(c=e;c=c[p];)if(a?T(c,g):1===c.nodeType)return!1;f=p="only"===t&&!f&&"nextSibling"}return!0}if(f=[o?m.firstChild:m.lastChild],o&&v){for(b=(d=(u=(l=m[w]||(m[w]={}))[t]||[])[0]===y&&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]=[y,d,b];break}}else if(v&&(b=d=(u=(l=e[w]||(e[w]={}))[t]||[])[0]===y&&u[1]),!1===b)for(;(c=++d&&c&&c[p]||(b=d=0)||f.pop())&&(!(a?T(c,g):1===c.nodeType)||!++b||(v&&((l=c[w]||(c[w]={}))[t]=[y,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[w]?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=wt(t.replace(W,"$1"));return r[w]?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||E.text(e)).indexOf(t)>-1}}),lang:et(function(t){return q.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 T(t,"input")&&!!t.checked||T(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 T(t,"input")&&"button"===t.type||T(t,"button")},text:function(t){var e;return T(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(W," ")}),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=v++;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=[y,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[w]||(e[w]={}),i&&T(e,i))e=e[r]||e;else{if((u=l[s])&&u[0]===y&&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[w]&&(r=mt(r)),i&&!i[w]&&(i=mt(i,s)),et(function(s,o,a,h){var u,c,d,f,p=[],g=[],w=o.length,y=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,[]),v=!t||!s&&e?y:pt(y,p,t,a,h);if(n?n(v,f=i||(s?t:w||r)?[]:o,a,h):f=v,r)for(u=pt(f,g),r(u,[],a,h),c=u.length;c--;)(d=u[c])&&(f[g[c]]=!(v[g[c]]=d));if(s){if(i||t){if(i){for(u=[],c=f.length;c--;)(d=f[c])&&u.push(v[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(w,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))[w]){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(W,"$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 wt(t,r){var i,s=[],o=[],a=_[t+" "];if(!a){for(r||(r=lt(t)),i=r.length;i--;)(a=gt(r[i]))[w]?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,w=0,v="0",b=o&&[],x=[],_=n,N=o||s&&e.find.TAG("*",d),k=y+=null==_?1:Math.random()||.1,S=N.length;for(d&&(n=a==h||a||d);v!==S&&null!=(f=N[v]);v++){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&&(y=k)}i&&((f=!g&&f)&&w--,o&&b.push(f))}if(w+=v,i&&v!==w){for(p=0;g=r[p++];)g(b,x,a,u);if(o){if(w>0)for(;v--;)b[v]||x[v]||(x[v]=M.call(l));x=pt(x)}m.apply(l,x),d&&!o&&x.length>0&&w+r.length>1&&E.uniqueSort(l)}return d&&(y=k,n=_),b};return i?et(o):o}(o,s)),a.selector=t}return a}function yt(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||wt(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=w.split("").sort(k).join("")===w,ht(),g.sortDetached=nt(function(t){return 1&t.compareDocumentPosition(h.createElement("fieldset"))}),E.find=K,E.expr[":"]=E.expr.pseudos,E.unique=E.uniqueSort,K.compile=wt,K.select=yt,K.setDocument=ht,K.tokenize=lt,K.escape=E.escapeSelector,K.getText=E.text,K.isXML=E.isXMLDoc,K.selectors=E.expr,K.support=E.support,K.uniqueSort=E.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&&E(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=E.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 w(e)?E.grep(t,function(t,r){return!!e.call(t,r,t)!==n}):e.nodeType?E.grep(t,function(t){return t===e!==n}):"string"!=typeof e?E.grep(t,function(t){return l.call(e,t)>-1!==n}):E.filter(e,t,n)}E.filter=function(t,e,n){var r=e[0];return n&&(t=":not("+t+")"),1===e.length&&1===r.nodeType?E.find.matchesSelector(r,t)?[r]:[]:E.find.matches(t,E.grep(e,function(t){return 1===t.nodeType}))},E.fn.extend({find:function(t){var e,n,r=this.length,i=this;if("string"!=typeof t)return this.pushStack(E(t).filter(function(){for(e=0;e<r;e++)if(E.contains(i[e],this))return!0}));for(n=this.pushStack([]),e=0;e<r;e++)E.find(t,i[e],n);return r>1?E.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)?E(t):t||[],!1).length}});var U,q=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(E.fn.init=function(t,e,n){var r,i;if(!t)return this;if(n=n||U,"string"==typeof t){if(!(r="<"===t[0]&&">"===t[t.length-1]&&t.length>=3?[null,t,null]:q.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 E?e[0]:e,E.merge(this,E.parseHTML(r[1],e&&e.nodeType?e.ownerDocument||e:v,!0)),z.test(r[1])&&E.isPlainObject(e))for(r in e)w(this[r])?this[r](e[r]):this.attr(r,e[r]);return this}return(i=v.getElementById(r[2]))&&(this[0]=i,this.length=1),this}return t.nodeType?(this[0]=t,this.length=1,this):w(t)?void 0!==n.ready?n.ready(t):t(E):E.makeArray(t,this)}).prototype=E.fn,U=E(v);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}E.fn.extend({has:function(t){var e=E(t,this),n=e.length;return this.filter(function(){for(var t=0;t<n;t++)if(E.contains(this,e[t]))return!0})},closest:function(t,e){var n,r=0,i=this.length,s=[],o="string"!=typeof t&&E(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&&E.find.matchesSelector(n,t))){s.push(n);break}return this.pushStack(s.length>1?E.uniqueSort(s):s)},index:function(t){return t?"string"==typeof t?l.call(E(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(E.uniqueSort(E.merge(this.get(),E(t,e))))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),E.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:(T(t,"template")&&(t=t.content||t),E.merge([],t.childNodes))}},function(t,e){E.fn[t]=function(n,r){var i=E.map(this,e,n);return"Until"!==t.slice(-5)&&(r=n),r&&"string"==typeof r&&(i=E.filter(r,i)),this.length>1&&(G[t]||E.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&&w(i=t.promise)?i.call(t).done(e).fail(n):t&&w(i=t.then)?i.call(t,e,n):e.apply(void 0,[t].slice(r))}catch(t){n.apply(void 0,[t])}}E.Callbacks=function(t){t="string"==typeof t?function(t){var e={};return E.each(t.match(X)||[],function(t,n){e[n]=!0}),e}(t):E.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){E.each(n,function(n,r){w(r)?t.unique&&u.has(r)||s.push(r):r&&r.length&&"string"!==_(r)&&e(r)})}(arguments),n&&!e&&h()),this},remove:function(){return E.each(arguments,function(t,e){for(var n;(n=E.inArray(e,s,n))>-1;)s.splice(n,1),n<=a&&a--}),this},has:function(t){return t?E.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},E.extend({Deferred:function(t){var e=[["notify","progress",E.Callbacks("memory"),E.Callbacks("memory"),2],["resolve","done",E.Callbacks("once memory"),E.Callbacks("once memory"),0,"resolved"],["reject","fail",E.Callbacks("once memory"),E.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 E.Deferred(function(n){E.each(e,function(e,r){var i=w(t[r[4]])&&t[r[4]];s[r[1]](function(){var t=i&&i.apply(this,arguments);t&&w(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,w(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){E.Deferred.exceptionHook&&E.Deferred.exceptionHook(r,l.error),t+1>=s&&(n!==$&&(a=void 0,h=[r]),e.rejectWith(a,h))}};t?l():(E.Deferred.getErrorHook?l.error=E.Deferred.getErrorHook():E.Deferred.getStackHook&&(l.error=E.Deferred.getStackHook()),r.setTimeout(l))}}return E.Deferred(function(r){e[0][3].add(o(0,r,w(i)?i:Y,r.notifyWith)),e[1][3].add(o(0,r,w(t)?t:Y)),e[2][3].add(o(0,r,w(n)?n:$))}).promise()},promise:function(t){return null!=t?E.extend(t,i):i}},s={};return E.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=E.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()||w(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$/;E.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)},E.readyException=function(t){r.setTimeout(function(){throw t})};var J=E.Deferred();function K(){v.removeEventListener("DOMContentLoaded",K),r.removeEventListener("load",K),E.ready()}E.fn.ready=function(t){return J.then(t).catch(function(t){E.readyException(t)}),this},E.extend({isReady:!1,readyWait:1,ready:function(t){(!0===t?--E.readyWait:E.isReady)||(E.isReady=!0,!0!==t&&--E.readyWait>0||J.resolveWith(v,[E]))}}),E.ready.then=J.then,"complete"===v.readyState||"loading"!==v.readyState&&!v.documentElement.doScroll?r.setTimeout(E.ready):(v.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,w(r)||(o=!0),u&&(o?(e.call(t,r),e=null):(u=e,e=function(t,e,n){return u.call(E(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=E.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||E.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&&!E.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}E.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)}}),E.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)})}}),E.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,E.makeArray(n)):r.push(n)),r||[]},dequeue:function(t,e){e=e||"fx";var n=E.queue(t,e),r=n.length,i=n.shift(),s=E._queueHooks(t,e);"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===e&&n.unshift("inprogress"),delete s.stop,i.call(t,function(){E.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:E.Callbacks("once memory").add(function(){at.remove(t,[e+"queue",n])})})}}),E.fn.extend({queue:function(t,e){var n=2;return"string"!=typeof t&&(e=t,t="fx",n--),arguments.length<n?E.queue(this[0],t):void 0===e?this:this.each(function(){var n=E.queue(this,t,e);E._queueHooks(this,t),"fx"===t&&"inprogress"!==n[0]&&E.dequeue(this,t)})},dequeue:function(t){return this.each(function(){E.dequeue(this,t)})},clearQueue:function(t){return this.queue(t||"fx",[])},promise:function(t,e){var n,r=1,i=E.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=v.documentElement,gt=function(t){return E.contains(t.ownerDocument,t)},wt={composed:!0};mt.getRootNode&&(gt=function(t){return E.contains(t.ownerDocument,t)||t.getRootNode(wt)===t.ownerDocument});var yt=function(t,e){return"none"===(t=e||t).style.display||""===t.style.display&>(t)&&"none"===E.css(t,"display")};function vt(t,e,n,r){var i,s,o=20,a=r?function(){return r.cur()}:function(){return E.css(t,e,"")},h=a(),u=n&&n[3]||(E.cssNumber[e]?"":"px"),l=t.nodeType&&(E.cssNumber[e]||"px"!==u&&+h)&&ft.exec(E.css(t,e));if(l&&l[3]!==u){for(h/=2,u=u||l[3],l=+h||1;o--;)E.style(t,e,l+u),(1-s)*(1-(s=a()/h||.5))<=0&&(o=0),l/=s;l*=2,E.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=E.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&&yt(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}E.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(){yt(this)?E(this).show():E(this).hide()})}});var Nt,kt,Et=/^(?:checkbox|radio)$/i,St=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,Tt=/^$|^module$|\/(?:java|ecma)script/i;Nt=v.createDocumentFragment().appendChild(v.createElement("div")),(kt=v.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 Mt={thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function Ct(t,e){var n;return n=void 0!==t.getElementsByTagName?t.getElementsByTagName(e||"*"):void 0!==t.querySelectorAll?t.querySelectorAll(e||"*"):[],void 0===e||e&&T(t,e)?E.merge([t],n):n}function At(t,e){for(var n=0,r=t.length;n<r;n++)at.set(t[n],"globalEval",!e||at.get(e[n],"globalEval"))}Mt.tbody=Mt.tfoot=Mt.colgroup=Mt.caption=Mt.thead,Mt.th=Mt.td,g.option||(Mt.optgroup=Mt.option=[1,"<select multiple='multiple'>","</select>"]);var Ot=/<|&#?\w+;/;function Wt(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))E.merge(d,s.nodeType?[s]:s);else if(Ot.test(s)){for(o=o||c.appendChild(e.createElement("div")),a=(St.exec(s)||["",""])[1].toLowerCase(),h=Mt[a]||Mt._default,o.innerHTML=h[1]+E.htmlPrefilter(s)+h[2],l=h[0];l--;)o=o.lastChild;E.merge(d,o.childNodes),(o=c.firstChild).textContent=""}else d.push(e.createTextNode(s));for(c.textContent="",f=0;s=d[f++];)if(r&&E.inArray(s,r)>-1)i&&i.push(s);else if(u=gt(s),o=Ct(c.appendChild(s),"script"),u&&At(o),n)for(l=0;s=o[l++];)Tt.test(s.type||"")&&n.push(s);return c}var Pt=/^([^.]*)(?:\.(.+)|)/;function jt(){return!0}function Lt(){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=Lt;else if(!i)return t;return 1===s&&(o=i,i=function(t){return E().off(t),o.apply(this,arguments)},i.guid=o.guid||(o.guid=E.guid++)),t.each(function(){E.event.add(this,e,i,r,n)})}function Bt(t,e,n){n?(at.set(t,e,!1),E.event.add(t,e,{namespace:!1,handler:function(t){var n,r=at.get(this,e);if(1&t.isTrigger&&this[e]){if(r)(E.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,E.event.trigger(r[0],r.slice(1),this)),t.stopPropagation(),t.isImmediatePropagationStopped=jt)}})):void 0===at.get(t,e)&&E.event.add(t,e,jt)}E.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&&E.find.matchesSelector(mt,i),n.guid||(n.guid=E.guid++),(h=g.events)||(h=g.events=Object.create(null)),(o=g.handle)||(o=g.handle=function(e){return void 0!==E&&E.event.triggered!==e.type?E.event.dispatch.apply(t,arguments):void 0}),u=(e=(e||"").match(X)||[""]).length;u--;)f=m=(a=Pt.exec(e[u])||[])[1],p=(a[2]||"").split(".").sort(),f&&(c=E.event.special[f]||{},f=(i?c.delegateType:c.bindType)||f,c=E.event.special[f]||{},l=E.extend({type:f,origType:m,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&E.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),E.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=Pt.exec(e[u])||[])[1],p=(a[2]||"").split(".").sort(),f){for(c=E.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)||E.removeEvent(t,f,g.handle),delete h[f])}else for(f in h)E.event.remove(t,f+e[u],n,r,!0);E.isEmptyObject(h)&&at.remove(t,"handle events")}},dispatch:function(t){var e,n,r,i,s,o,a=new Array(arguments.length),h=E.event.fix(t),u=(at.get(this,"events")||Object.create(null))[h.type]||[],l=E.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=E.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=((E.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?E(i,this).index(u)>-1:E.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(E.Event.prototype,t,{enumerable:!0,configurable:!0,get:w(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[E.expando]?t:new E.Event(t)},special:{load:{noBubble:!0},click:{setup:function(t){var e=this||t;return Et.test(e.type)&&e.click&&T(e,"input")&&Bt(e,"click",!0),!1},trigger:function(t){var e=this||t;return Et.test(e.type)&&e.click&&T(e,"input")&&Bt(e,"click"),!0},_default:function(t){var e=t.target;return Et.test(e.type)&&e.click&&T(e,"input")&&at.get(e,"click")||T(e,"a")}},beforeunload:{postDispatch:function(t){void 0!==t.result&&t.originalEvent&&(t.originalEvent.returnValue=t.result)}}}},E.removeEvent=function(t,e,n){t.removeEventListener&&t.removeEventListener(e,n)},E.Event=function(t,e){if(!(this instanceof E.Event))return new E.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:Lt,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&&E.extend(this,e),this.timeStamp=t&&t.timeStamp||Date.now(),this[E.expando]=!0},E.Event.prototype={constructor:E.Event,isDefaultPrevented:Lt,isPropagationStopped:Lt,isImmediatePropagationStopped:Lt,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()}},E.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},E.event.addProp),E.each({focus:"focusin",blur:"focusout"},function(t,e){function n(t){if(v.documentMode){var n=at.get(this,"handle"),r=E.event.fix(t);r.type="focusin"===t.type?"focus":"blur",r.isSimulated=!0,n(t),r.target===r.currentTarget&&n(r)}else E.event.simulate(e,t.target,E.event.fix(t))}E.event.special[t]={setup:function(){var r;if(Bt(this,t,!0),!v.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(!v.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},E.event.special[e]={setup:function(){var r=this.ownerDocument||this.document||this,i=v.documentMode?this:r,s=at.get(i,e);s||(v.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=v.documentMode?this:r,s=at.get(i,e)-1;s?at.set(i,e,s):(v.documentMode?this.removeEventListener(e,n):r.removeEventListener(t,n,!0),at.remove(i,e))}}}),E.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(t,e){E.event.special[t]={delegateType:e,bindType:e,handle:function(t){var n,r=t.relatedTarget,i=t.handleObj;return r&&(r===this||E.contains(this,r))||(t.type=i.origType,n=i.handler.apply(this,arguments),t.type=e),n}}}),E.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,E(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=Lt),this.each(function(){E.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 T(t,"table")&&T(11!==e.nodeType?e:e.firstChild,"tr")&&E(t).children("tbody")[0]||t}function Ut(t){return t.type=(null!==t.getAttribute("type"))+"/"+t.type,t}function qt(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++)E.event.add(e,i,a[i][n]);ht.hasData(t)&&(s=ht.access(t),o=E.extend({},s),ht.set(e,o))}}function Gt(t,e){var n=e.nodeName.toLowerCase();"input"===n&&Et.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=w(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=Wt(e,t[0].ownerDocument,!1,t,r)).firstChild,1===i.childNodes.length&&(i=s),s||r)){for(a=(o=E.map(Ct(i,"script"),Ut)).length;c<d;c++)u=i,c!==f&&(u=E.clone(u,!0,!0),a&&E.merge(o,Ct(u,"script"))),n.call(t[c],u,c);if(a)for(l=o[o.length-1].ownerDocument,E.map(o,qt),c=0;c<a;c++)u=o[c],Tt.test(u.type||"")&&!at.access(u,"globalEval")&&E.contains(l,u)&&(u.src&&"module"!==(u.type||"").toLowerCase()?E._evalUrl&&!u.noModule&&E._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?E.filter(e,t):t,s=0;null!=(r=i[s]);s++)n||1!==r.nodeType||E.cleanData(Ct(r)),r.parentNode&&(n&>(r)&&At(Ct(r,"script")),r.parentNode.removeChild(r));return t}E.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||E.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&&At(o,!h&&Ct(t,"script")),a},cleanData:function(t){for(var e,n,r,i=E.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]?E.event.remove(n,r):E.removeEvent(n,r,e.handle);n[at.expando]=void 0}n[ht.expando]&&(n[ht.expando]=void 0)}}}),E.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?E.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&&(E.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 E.clone(this,t,e)})},html:function(t){return tt(this,function(t){var e=this[0]||{},n=0,r=this.length;if(void 0===t&&1===e.nodeType)return e.innerHTML;if("string"==typeof t&&!It.test(t)&&!Mt[(St.exec(t)||["",""])[1].toLowerCase()]){t=E.htmlPrefilter(t);try{for(;n<r;n++)1===(e=this[n]||{}).nodeType&&(E.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;E.inArray(this,t)<0&&(E.cleanData(Ct(this)),n&&n.replaceChild(e,this))},t)}}),E.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(t,e){E.fn[t]=function(t){for(var n,r=[],i=E(t),s=i.length-1,o=0;o<=s;o++)n=o===s?this:this.clone(!0),E(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(W,"$1")||void 0),""!==o||gt(t)||(o=E.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=v.createElement("div"),l=v.createElement("div");l.style&&(l.style.backgroundClip="content-box",l.cloneNode(!0).style.backgroundClip="",g.clearCloneStyle="content-box"===l.style.backgroundClip,E.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=v.createElement("table"),e=v.createElement("tr"),n=v.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=v.createElement("div").style,re={};function ie(t){return E.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+=E.css(t,n+pt[o],!0,i)),r?("content"===n&&(h-=E.css(t,"padding"+pt[o],!0,i)),"margin"!==n&&(h-=E.css(t,"border"+pt[o]+"Width",!0,i))):(h+=E.css(t,"padding"+pt[o],!0,i),"padding"!==n?h+=E.css(t,"border"+pt[o]+"Width",!0,i):a+=E.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"===E.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()&&T(t,"tr")||"auto"===o||!parseFloat(o)&&"inline"===E.css(t,"display",!1,r))&&t.getClientRects().length&&(i="border-box"===E.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)}E.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=E.cssHooks[e]||E.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=vt(t,e,i),s="number"),null!=n&&n==n&&("number"!==s||h||(n+=i&&i[3]||(E.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=E.cssHooks[e]||E.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}}),E.each(["height","width"],function(t,e){E.cssHooks[e]={get:function(t,n,r){if(n)return!se.test(E.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"===E.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=E.css(t,e)),he(0,n,h)}}}),E.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"}),E.each({margin:"",padding:"",border:"Width"},function(t,e){E.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&&(E.cssHooks[t+e].set=he)}),E.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]]=E.css(t,e[o],!1,r);return s}return void 0!==n?E.style(t,e,n):E.css(t,e)},t,e,arguments.length>1)}}),E.Tween=ce,ce.prototype={constructor:ce,init:function(t,e,n,r,i,s){this.elem=t,this.prop=n,this.easing=i||E.easing._default,this.options=e,this.start=this.now=this.cur(),this.end=r,this.unit=s||(E.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=E.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=E.css(t.elem,t.prop,""))&&"auto"!==e?e:0},set:function(t){E.fx.step[t.prop]?E.fx.step[t.prop](t):1!==t.elem.nodeType||!E.cssHooks[t.prop]&&null==t.elem.style[ie(t.prop)]?t.elem[t.prop]=t.now:E.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)}},E.easing={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2},_default:"swing"},E.fx=ce.prototype.init,E.fx.step={};var de,fe,pe=/^(?:toggle|show|hide)$/,me=/queueHooks$/;function ge(){fe&&(!1===v.hidden&&r.requestAnimationFrame?r.requestAnimationFrame(ge):r.setTimeout(ge,E.fx.interval),E.fx.tick())}function we(){return r.setTimeout(function(){de=void 0}),de=Date.now()}function ye(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 ve(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=E.Deferred().always(function(){delete h.elem}),h=function(){if(i)return!1;for(var e=de||we(),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:E.extend({},e),opts:E.extend(!0,{specialEasing:{},easing:E.easing._default},n),originalProperties:e,originalOptions:n,startTime:de||we(),duration:n.duration,tweens:[],createTween:function(e,n){var r=E.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=E.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 w(r.stop)&&(E._queueHooks(u.elem,u.opts.queue).stop=r.stop.bind(r)),r;return E.map(l,ve,u),w(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),E.fx.timer(E.extend(h,{elem:t,anim:u,queue:u.opts.queue})),u}E.Animation=E.extend(be,{tweeners:{"*":[function(t,e){var n=this.createTween(t,e);return vt(n.elem,t,ft.exec(e),n),n}]},tweener:function(t,e){w(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&&yt(t),g=at.get(t,"fxshow");for(r in n.queue||(null==(o=E._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--,E.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]||E.style(t,r)}if((h=!E.isEmptyObject(e))||!E.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=E.css(t,"display"))&&(u?l=u:(_t([t],!0),u=t.style.display||u,l=E.css(t,"display"),_t([t]))),("inline"===l||"inline-block"===l&&null!=u)&&"none"===E.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)E.style(t,r,f[r])})),h=ve(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)}}),E.speed=function(t,e,n){var r=t&&"object"==typeof t?E.extend({},t):{complete:n||!n&&e||w(t)&&t,duration:t,easing:n&&e||e&&!w(e)&&e};return E.fx.off?r.duration=0:"number"!=typeof r.duration&&(r.duration in E.fx.speeds?r.duration=E.fx.speeds[r.duration]:r.duration=E.fx.speeds._default),null!=r.queue&&!0!==r.queue||(r.queue="fx"),r.old=r.complete,r.complete=function(){w(r.old)&&r.old.call(this),r.queue&&E.dequeue(this,r.queue)},r},E.fn.extend({fadeTo:function(t,e,n,r){return this.filter(yt).css("opacity",0).show().end().animate({opacity:e},t,n,r)},animate:function(t,e,n,r){var i=E.isEmptyObject(t),s=E.speed(e,n,r),o=function(){var e=be(this,E.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=E.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||E.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=E.timers,o=r?r.length:0;for(n.finish=!0,E.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})}}),E.each(["toggle","show","hide"],function(t,e){var n=E.fn[e];E.fn[e]=function(t,r,i){return null==t||"boolean"==typeof t?n.apply(this,arguments):this.animate(ye(e,!0),t,r,i)}}),E.each({slideDown:ye("show"),slideUp:ye("hide"),slideToggle:ye("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(t,e){E.fn[t]=function(t,n,r){return this.animate(e,t,n,r)}}),E.timers=[],E.fx.tick=function(){var t,e=0,n=E.timers;for(de=Date.now();e<n.length;e++)(t=n[e])()||n[e]!==t||n.splice(e--,1);n.length||E.fx.stop(),de=void 0},E.fx.timer=function(t){E.timers.push(t),E.fx.start()},E.fx.interval=13,E.fx.start=function(){fe||(fe=!0,ge())},E.fx.stop=function(){fe=null},E.fx.speeds={slow:600,fast:200,_default:400},E.fn.delay=function(t,e){return t=E.fx&&E.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=v.createElement("input"),e=v.createElement("select").appendChild(v.createElement("option"));t.type="checkbox",g.checkOn=""!==t.value,g.optSelected=e.selected,(t=v.createElement("input")).value="t",t.type="radio",g.radioValue="t"===t.value}();var xe,_e=E.expr.attrHandle;E.fn.extend({attr:function(t,e){return tt(this,E.attr,t,e,arguments.length>1)},removeAttr:function(t){return this.each(function(){E.removeAttr(this,t)})}}),E.extend({attr:function(t,e,n){var r,i,s=t.nodeType;if(3!==s&&8!==s&&2!==s)return void 0===t.getAttribute?E.prop(t,e,n):(1===s&&E.isXMLDoc(t)||(i=E.attrHooks[e.toLowerCase()]||(E.expr.match.bool.test(e)?xe:void 0)),void 0!==n?null===n?void E.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=E.find.attr(t,e))?void 0:r)},attrHooks:{type:{set:function(t,e){if(!g.radioValue&&"radio"===e&&T(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?E.removeAttr(t,n):t.setAttribute(n,n),n}},E.each(E.expr.match.bool.source.match(/\w+/g),function(t,e){var n=_e[e]||E.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 Ee(t){return(t.match(X)||[]).join(" ")}function Se(t){return t.getAttribute&&t.getAttribute("class")||""}function Te(t){return Array.isArray(t)?t:"string"==typeof t&&t.match(X)||[]}E.fn.extend({prop:function(t,e){return tt(this,E.prop,t,e,arguments.length>1)},removeProp:function(t){return this.each(function(){delete this[E.propFix[t]||t]})}}),E.extend({prop:function(t,e,n){var r,i,s=t.nodeType;if(3!==s&&8!==s&&2!==s)return 1===s&&E.isXMLDoc(t)||(e=E.propFix[e]||e,i=E.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=E.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||(E.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)}}),E.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){E.propFix[this.toLowerCase()]=this}),E.fn.extend({addClass:function(t){var e,n,r,i,s,o;return w(t)?this.each(function(e){E(this).addClass(t.call(this,e,Se(this)))}):(e=Te(t)).length?this.each(function(){if(r=Se(this),n=1===this.nodeType&&" "+Ee(r)+" "){for(s=0;s<e.length;s++)i=e[s],n.indexOf(" "+i+" ")<0&&(n+=i+" ");o=Ee(n),r!==o&&this.setAttribute("class",o)}}):this},removeClass:function(t){var e,n,r,i,s,o;return w(t)?this.each(function(e){E(this).removeClass(t.call(this,e,Se(this)))}):arguments.length?(e=Te(t)).length?this.each(function(){if(r=Se(this),n=1===this.nodeType&&" "+Ee(r)+" "){for(s=0;s<e.length;s++)for(i=e[s];n.indexOf(" "+i+" ")>-1;)n=n.replace(" "+i+" "," ");o=Ee(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 w(t)?this.each(function(n){E(this).toggleClass(t.call(this,n,Se(this),e),e)}):"boolean"==typeof e&&a?e?this.addClass(t):this.removeClass(t):(n=Te(t),this.each(function(){if(a)for(s=E(this),i=0;i<n.length;i++)r=n[i],s.hasClass(r)?s.removeClass(r):s.addClass(r);else void 0!==t&&"boolean"!==o||((r=Se(this))&&at.set(this,"__className__",r),this.setAttribute&&this.setAttribute("class",r||!1===t?"":at.get(this,"__className__")||""))}))},hasClass:function(t){var e,n,r=0;for(e=" "+t+" ";n=this[r++];)if(1===n.nodeType&&(" "+Ee(Se(n))+" ").indexOf(e)>-1)return!0;return!1}});var Me=/\r/g;E.fn.extend({val:function(t){var e,n,r,i=this[0];return arguments.length?(r=w(t),this.each(function(n){var i;1===this.nodeType&&(null==(i=r?t.call(this,n,E(this).val()):t)?i="":"number"==typeof i?i+="":Array.isArray(i)&&(i=E.map(i,function(t){return null==t?"":t+""})),(e=E.valHooks[this.type]||E.valHooks[this.nodeName.toLowerCase()])&&"set"in e&&void 0!==e.set(this,i,"value")||(this.value=i))})):i?(e=E.valHooks[i.type]||E.valHooks[i.nodeName.toLowerCase()])&&"get"in e&&void 0!==(n=e.get(i,"value"))?n:"string"==typeof(n=i.value)?n.replace(Me,""):null==n?"":n:void 0}}),E.extend({valHooks:{option:{get:function(t){var e=E.find.attr(t,"value");return null!=e?e:Ee(E.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||!T(n.parentNode,"optgroup"))){if(e=E(n).val(),o)return e;a.push(e)}return a},set:function(t,e){for(var n,r,i=t.options,s=E.makeArray(e),o=i.length;o--;)((r=i[o]).selected=E.inArray(E.valHooks.option.get(r),s)>-1)&&(n=!0);return n||(t.selectedIndex=-1),s}}}}),E.each(["radio","checkbox"],function(){E.valHooks[this]={set:function(t,e){if(Array.isArray(e))return t.checked=E.inArray(E(t).val(),e)>-1}},g.checkOn||(E.valHooks[this].get=function(t){return null===t.getAttribute("value")?"on":t.value})});var Ce=r.location,Ae={guid:Date.now()},Oe=/\?/;E.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||E.error("Invalid XML: "+(n?E.map(n.childNodes,function(t){return t.textContent}).join("\n"):t)),e};var We=/^(?:focusinfocus|focusoutblur)$/,Pe=function(t){t.stopPropagation()};E.extend(E.event,{trigger:function(t,e,n,i){var s,o,a,h,u,l,c,d,p=[n||v],m=f.call(t,"type")?t.type:t,g=f.call(t,"namespace")?t.namespace.split("."):[];if(o=d=a=n=n||v,3!==n.nodeType&&8!==n.nodeType&&!We.test(m+E.event.triggered)&&(m.indexOf(".")>-1&&(g=m.split("."),m=g.shift(),g.sort()),u=m.indexOf(":")<0&&"on"+m,(t=t[E.expando]?t:new E.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]:E.makeArray(e,[t]),c=E.event.special[m]||{},i||!c.trigger||!1!==c.trigger.apply(n,e))){if(!i&&!c.noBubble&&!y(n)){for(h=c.delegateType||m,We.test(h+m)||(o=o.parentNode);o;o=o.parentNode)p.push(o),a=o;a===(n.ownerDocument||v)&&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&&w(n[m])&&!y(n)&&((a=n[u])&&(n[u]=null),E.event.triggered=m,t.isPropagationStopped()&&d.addEventListener(m,Pe),n[m](),t.isPropagationStopped()&&d.removeEventListener(m,Pe),E.event.triggered=void 0,a&&(n[u]=a)),t.result}},simulate:function(t,e,n){var r=E.extend(new E.Event,n,{type:t,isSimulated:!0});E.event.trigger(r,null,e)}}),E.fn.extend({trigger:function(t,e){return this.each(function(){E.event.trigger(t,e,this)})},triggerHandler:function(t,e){var n=this[0];if(n)return E.event.trigger(t,e,n,!0)}});var je=/\[\]$/,Le=/\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))E.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)}E.param=function(t,e){var n,r=[],i=function(t,e){var n=w(e)?e():e;r[r.length]=encodeURIComponent(t)+"="+encodeURIComponent(null==n?"":n)};if(null==t)return"";if(Array.isArray(t)||t.jquery&&!E.isPlainObject(t))E.each(t,function(){i(this.name,this.value)});else for(n in t)Ie(n,t[n],e,i);return r.join("&")},E.fn.extend({serialize:function(){return E.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var t=E.prop(this,"elements");return t?E.makeArray(t):this}).filter(function(){var t=this.type;return this.name&&!E(this).is(":disabled")&&Be.test(this.nodeName)&&!De.test(t)&&(this.checked||!Et.test(t))}).map(function(t,e){var n=E(this).val();return null==n?null:Array.isArray(n)?E.map(n,function(t){return{name:e.name,value:t.replace(Le,"\r\n")}}):{name:e.name,value:n.replace(Le,"\r\n")}}).get()}});var Re=/%20/g,ze=/#.*$/,Fe=/([?&])_=[^&]*/,Ue=/^(.*?):[ \t]*([^\r\n]*)$/gm,qe=/^(?:GET|HEAD)$/,Ve=/^\/\//,Ge={},He={},Xe="*/".concat("*"),Ye=v.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(w(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,E.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=E.ajaxSettings.flatOptions||{};for(n in e)void 0!==e[n]&&((i[n]?t:r||(r={}))[n]=e[n]);return r&&E.extend(!0,t,r),t}Ye.href=Ce.href,E.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":E.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(t,e){return e?Ze(Ze(t,E.ajaxSettings),e):Ze(E.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=E.ajaxSetup({},e),p=f.context||f,m=f.context&&(p.nodeType||p.jquery)?E(p):E.event,g=E.Deferred(),w=E.Callbacks("once memory"),y=f.statusCode||{},b={},x={},_="canceled",N={readyState:0,getResponseHeader:function(t){var e;if(u){if(!o)for(o={};e=Ue.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)y[e]=[y[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=v.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=E.param(f.data,f.traditional)),Qe(Ge,f,e,N),u)return N;for(c in(l=E.event&&f.global)&&0===E.active++&&E.event.trigger("ajaxStart"),f.type=f.type.toUpperCase(),f.hasContent=!qe.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)?"&":"?")+"_="+Ae.guid+++d),f.url=i+d),f.ifModified&&(E.lastModified[i]&&N.setRequestHeader("If-Modified-Since",E.lastModified[i]),E.etag[i]&&N.setRequestHeader("If-None-Match",E.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",w.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,v,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&&E.inArray("script",f.dataTypes)>-1&&E.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"))&&(E.lastModified[i]=x),(x=N.getResponseHeader("etag"))&&(E.etag[i]=x)),204===t||"HEAD"===f.type?_="nocontent":304===t?_="notmodified":(_=b.state,d=b.data,c=!(v=b.error))):(v=_,!t&&_||(_="error",t<0&&(t=0))),N.status=t,N.statusText=(e||_)+"",c?g.resolveWith(p,[d,_,N]):g.rejectWith(p,[N,_,v]),N.statusCode(y),y=void 0,l&&m.trigger(c?"ajaxSuccess":"ajaxError",[N,f,c?d:v]),w.fireWith(p,[N,_]),l&&(m.trigger("ajaxComplete",[N,f]),--E.active||E.event.trigger("ajaxStop")))}return N},getJSON:function(t,e,n){return E.get(t,e,n,"json")},getScript:function(t,e){return E.get(t,void 0,e,"script")}}),E.each(["get","post"],function(t,e){E[e]=function(t,n,r,i){return w(n)&&(i=i||r,r=n,n=void 0),E.ajax(E.extend({url:t,type:e,dataType:i,data:n,success:r},E.isPlainObject(t)&&t))}}),E.ajaxPrefilter(function(t){var e;for(e in t.headers)"content-type"===e.toLowerCase()&&(t.contentType=t.headers[e]||"")}),E._evalUrl=function(t,e,n){return E.ajax({url:t,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(t){E.globalEval(t,e,n)}})},E.fn.extend({wrapAll:function(t){var e;return this[0]&&(w(t)&&(t=t.call(this[0])),e=E(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 w(t)?this.each(function(e){E(this).wrapInner(t.call(this,e))}):this.each(function(){var e=E(this),n=e.contents();n.length?n.wrapAll(t):e.append(t)})},wrap:function(t){var e=w(t);return this.each(function(n){E(this).wrapAll(e?t.call(this,n):t)})},unwrap:function(t){return this.parent(t).not("body").each(function(){E(this).replaceWith(this.childNodes)}),this}}),E.expr.pseudos.hidden=function(t){return!E.expr.pseudos.visible(t)},E.expr.pseudos.visible=function(t){return!!(t.offsetWidth||t.offsetHeight||t.getClientRects().length)},E.ajaxSettings.xhr=function(){try{return new r.XMLHttpRequest}catch(t){}};var Je={0:200,1223:204},Ke=E.ajaxSettings.xhr();g.cors=!!Ke&&"withCredentials"in Ke,g.ajax=Ke=!!Ke,E.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()}}}),E.ajaxPrefilter(function(t){t.crossDomain&&(t.contents.script=!1)}),E.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 E.globalEval(t),t}}}),E.ajaxPrefilter("script",function(t){void 0===t.cache&&(t.cache=!1),t.crossDomain&&(t.type="GET")}),E.ajaxTransport("script",function(t){var e,n;if(t.crossDomain||t.scriptAttrs)return{send:function(r,i){e=E("<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)}),v.head.appendChild(e[0])},abort:function(){n&&n()}}});var tn,en=[],nn=/(=)\?(?=&|$)|\?\?/;E.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var t=en.pop()||E.expando+"_"+Ae.guid++;return this[t]=!0,t}}),E.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=w(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||E.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?E(r).removeProp(i):r[i]=s,t[i]&&(t.jsonpCallback=e.jsonpCallback,en.push(i)),o&&w(s)&&s(o[0]),o=s=void 0}),"script"}),g.createHTMLDocument=((tn=v.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===tn.childNodes.length),E.parseHTML=function(t,e,n){return"string"!=typeof t?[]:("boolean"==typeof e&&(n=e,e=!1),e||(g.createHTMLDocument?((r=(e=v.implementation.createHTMLDocument("")).createElement("base")).href=v.location.href,e.head.appendChild(r)):e=v),s=!n&&[],(i=z.exec(t))?[e.createElement(i[1])]:(i=Wt([t],e,s),s&&s.length&&E(s).remove(),E.merge([],i.childNodes)));var r,i,s},E.fn.load=function(t,e,n){var r,i,s,o=this,a=t.indexOf(" ");return a>-1&&(r=Ee(t.slice(a)),t=t.slice(0,a)),w(e)?(n=e,e=void 0):e&&"object"==typeof e&&(i="POST"),o.length>0&&E.ajax({url:t,type:i||"GET",dataType:"html",data:e}).done(function(t){s=arguments,o.html(r?E("<div>").append(E.parseHTML(t)).find(r):t)}).always(n&&function(t,e){o.each(function(){n.apply(this,s||[t.responseText,e,t])})}),this},E.expr.pseudos.animated=function(t){return E.grep(E.timers,function(e){return t===e.elem}).length},E.offset={setOffset:function(t,e,n){var r,i,s,o,a,h,u=E.css(t,"position"),l=E(t),c={};"static"===u&&(t.style.position="relative"),a=l.offset(),s=E.css(t,"top"),h=E.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),w(e)&&(e=e.call(t,n,E.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)}},E.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(e){E.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"===E.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"===E.css(t,"position");)t=t.parentNode;t&&t!==r&&1===t.nodeType&&((i=E(t).offset()).top+=E.css(t,"borderTopWidth",!0),i.left+=E.css(t,"borderLeftWidth",!0))}return{top:e.top-i.top-E.css(r,"marginTop",!0),left:e.left-i.left-E.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var t=this.offsetParent;t&&"static"===E.css(t,"position");)t=t.offsetParent;return t||mt})}}),E.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,e){var n="pageYOffset"===e;E.fn[t]=function(r){return tt(this,function(t,r,i){var s;if(y(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)}}),E.each(["top","left"],function(t,e){E.cssHooks[e]=te(g.pixelPosition,function(t,n){if(n)return n=Kt(t,e),Yt.test(n)?E(t).position()[e]+"px":n})}),E.each({Height:"height",Width:"width"},function(t,e){E.each({padding:"inner"+t,content:e,"":"outer"+t},function(n,r){E.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 y(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?E.css(e,n,a):E.style(e,n,i,a)},e,o?i:void 0,o)}})}),E.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(t,e){E.fn[e]=function(t){return this.on(e,t)}}),E.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)}}),E.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){E.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;E.proxy=function(t,e){var n,r,i;if("string"==typeof e&&(n=t[e],e=t,t=n),w(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||E.guid++,i},E.holdReady=function(t){t?E.readyWait++:E.ready(!0)},E.isArray=Array.isArray,E.parseJSON=JSON.parse,E.nodeName=T,E.isFunction=w,E.isWindow=y,E.camelCase=it,E.type=_,E.now=Date.now,E.isNumeric=function(t){var e=E.type(t);return("number"===e||"string"===e)&&!isNaN(t-parseFloat(t))},E.trim=function(t){return null==t?"":(t+"").replace(rn,"$1")},void 0===(n=function(){return E}.apply(e,[]))||(t.exports=n);var sn=r.jQuery,on=r.$;return E.noConflict=function(t){return r.$===E&&(r.$=on),t&&r.jQuery===E&&(r.jQuery=sn),E},void 0===i&&(r.jQuery=r.$=E),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]",w="[object Boolean]",y="[object Date]",v="[object Error]",b="[object Function]",x="[object GeneratorFunction]",_="[object Map]",N="[object Number]",k="[object Object]",E="[object Promise]",S="[object RegExp]",T="[object Set]",M="[object String]",C="[object Symbol]",A="[object WeakMap]",O="[object ArrayBuffer]",W="[object DataView]",P="[object Float32Array]",j="[object Float64Array]",L="[object Int8Array]",D="[object Int16Array]",B="[object Int32Array]",I="[object Uint8Array]",R="[object Uint8ClampedArray]",z="[object Uint16Array]",F="[object Uint32Array]",U=/\b__p \+= '';/g,q=/\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,wt=/^(?:0|[1-9]\d*)$/,yt=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,vt=/($^)/,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",Et="A-Z\\xc0-\\xd6\\xd8-\\xde",St="\\ufe0e\\ufe0f",Tt="\\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",Mt="["+xt+"]",Ct="["+Tt+"]",At="["+_t+"]",Ot="\\d+",Wt="["+Nt+"]",Pt="["+kt+"]",jt="[^"+xt+Tt+Ot+Nt+kt+Et+"]",Lt="\\ud83c[\\udffb-\\udfff]",Dt="[^"+xt+"]",Bt="(?:\\ud83c[\\udde6-\\uddff]){2}",It="[\\ud800-\\udbff][\\udc00-\\udfff]",Rt="["+Et+"]",zt="\\u200d",Ft="(?:"+Pt+"|"+jt+")",Ut="(?:"+Rt+"|"+jt+")",qt="(?:['’](?:d|ll|m|re|s|t|ve))?",Vt="(?:['’](?:D|LL|M|RE|S|T|VE))?",Gt="(?:"+At+"|"+Lt+")?",Ht="["+St+"]?",Xt=Ht+Gt+"(?:"+zt+"(?:"+[Dt,Bt,It].join("|")+")"+Ht+Gt+")*",Yt="(?:"+[Wt,Bt,It].join("|")+")"+Xt,$t="(?:"+[Dt+At+"?",At,Bt,It,Mt].join("|")+")",Qt=RegExp("['’]","g"),Zt=RegExp(At,"g"),Jt=RegExp(Lt+"(?="+Lt+")|"+$t+Xt,"g"),Kt=RegExp([Rt+"?"+Pt+"+"+qt+"(?="+[Ct,Rt,"$"].join("|")+")",Ut+"+"+Vt+"(?="+[Ct,Rt+Ft,"$"].join("|")+")",Rt+"?"+Ft+"+"+qt,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+St+"]"),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[P]=ie[j]=ie[L]=ie[D]=ie[B]=ie[I]=ie[R]=ie[z]=ie[F]=!0,ie[m]=ie[g]=ie[O]=ie[w]=ie[W]=ie[y]=ie[v]=ie[b]=ie[_]=ie[N]=ie[k]=ie[S]=ie[T]=ie[M]=ie[A]=!1;var se={};se[m]=se[g]=se[O]=se[W]=se[w]=se[y]=se[P]=se[j]=se[L]=se[D]=se[B]=se[_]=se[N]=se[k]=se[S]=se[T]=se[M]=se[C]=se[I]=se[R]=se[z]=se[F]=!0,se[v]=se[b]=se[A]=!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){}}(),we=ge&&ge.isArrayBuffer,ye=ge&&ge.isDate,ve=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 Ee(t,e){for(var n=-1,r=null==t?0:t.length;++n<r&&!1!==e(t[n],n,t););return t}function Se(t,e){for(var n=null==t?0:t.length;n--&&!1!==e(t[n],n,t););return t}function Te(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 Me(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 Ae(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 Pe(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 Le(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=qe("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 Ue(t,e){var n=null==t?0:t.length;return n?He(t,e)/n:d}function qe(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,Et=e.RegExp,St=e.String,Tt=e.TypeError,Mt=r.prototype,Ct=_t.prototype,At=kt.prototype,Ot=e["__core-js_shared__"],Wt=Ct.toString,Pt=At.hasOwnProperty,jt=0,Lt=(n=/[^.]+$/.exec(Ot&&Ot.keys&&Ot.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",Dt=At.toString,Bt=Wt.call(kt),It=ce._,Rt=Et("^"+Wt.call(Pt).replace(et,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),zt=pe?e.Buffer:i,Ft=e.Symbol,Ut=e.Uint8Array,qt=zt?zt.allocUnsafe:i,Vt=on(kt.getPrototypeOf,kt),Gt=kt.create,Ht=At.propertyIsEnumerable,Xt=Mt.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=Mt.join,mn=on(kt.keys,kt),gn=Nt.max,wn=Nt.min,yn=it.now,vn=e.parseInt,bn=Nt.random,xn=Mt.reverse,_n=hs(e,"DataView"),Nn=hs(e,"Map"),kn=hs(e,"Promise"),En=hs(e,"Set"),Sn=hs(e,"WeakMap"),Tn=hs(kt,"create"),Mn=Sn&&new Sn,Cn={},An=Ds(_n),On=Ds(Nn),Wn=Ds(kn),Pn=Ds(En),jn=Ds(Sn),Ln=Ft?Ft.prototype:i,Dn=Ln?Ln.valueOf:i,Bn=Ln?Ln.toString:i;function In(t){if(ta(t)&&!qo(t)&&!(t instanceof Un)){if(t instanceof Fn)return t;if(Pt.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 Un(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=f,this.__views__=[]}function qn(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=qo(t),r=!n&&Uo(t),i=!n&&!r&&Xo(t),s=!n&&!r&&!i&&ha(t),o=n||r||i||s,a=o?Xe(t.length,St):[],h=a.length;for(var u in t)!e&&!Pt.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(Si(t),sr(e,0,t.length))}function Zn(t){return Os(Si(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];Pt.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&&Ti(e,Aa(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:Ea(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=qo(t);if(c){if(a=function(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&Pt.call(t,"index")&&(n.index=t.index,n.input=t.input),n}(t),!h)return Si(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 Ti(t,ls(t),e)}(t,function(t,e){return t&&Ti(e,Oa(e),t)}(a,t)):function(t,e){return Ti(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 w:case y: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 P:case j:case L:case D:case B:case I:case R:case z:case F:return _i(t,n);case _:return new i;case N:case M:return new i(t);case S:return function(t){var e=new t.constructor(t.source,dt.exec(t));return e.lastIndex=t.lastIndex,e}(t);case T: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:Aa)(t);return Ee(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 Tt(s);return Ts(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=Ae,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,Un.prototype=Rn(zn.prototype),Un.prototype.constructor=Un,qn.prototype.clear=function(){this.__data__=Tn?Tn(null):{},this.size=0},qn.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},qn.prototype.get=function(t){var e=this.__data__;if(Tn){var n=e[t];return n===o?i:n}return Pt.call(e,t)?e[t]:i},qn.prototype.has=function(t){var e=this.__data__;return Tn?e[t]!==i:Pt.call(e,t)},qn.prototype.set=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=Tn&&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 qn,map:new(Nn||Vn),string:new qn}},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=Ai(yr),cr=Ai(vr,!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):We(i,a):r||(i[i.length]=a)}return i}var gr=Oi(),wr=Oi(!0);function yr(t,e){return t&&gr(t,e,Aa)}function vr(t,e){return t&&wr(t,e,Aa)}function br(t,e){return Me(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[Ls(e[n++])];return n&&n==r?t:i}function _r(t,e,n){var r=e(t);return qo(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=Pt.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 Er(t,e){return null!=t&&Pt.call(t,e)}function Sr(t,e){return null!=t&&e in kt(t)}function Tr(t,e,n){for(var s=n?Ae: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=wn(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 w=u[h];if(!(w?Ze(w,g):s(t[h],g,n)))continue t}p&&p.push(g),c.push(m)}}return c}function Mr(t,e,n){var r=null==(t=ks(t,e=gi(e,t)))?t:t[Ls(Ys(e))];return null==r?i:Ne(r,t,n)}function Cr(t){return ta(t)&&Nr(t)==m}function Ar(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=qo(t),h=qo(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 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 Ut(t),new Ut(e)));case w:case y:case N:return Ro(+t,+e);case v:return t.name==e.name&&t.message==e.message;case S:case M:return t==e+"";case _:var a=sn;case T: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&&Pt.call(t,"__wrapped__"),b=d&&Pt.call(e,"__wrapped__");if(p||b){var x=p?t.value():t,E=b?e.value():e;return o||(o=new Xn),s(x,E,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:Pt.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]],w=e[c];if(r)var y=a?r(w,g,c,e,t,o):r(g,w,c,t,e,o);if(!(y===i?g===w||s(g,w,n,r,o):y)){p=!1;break}m||(m="constructor"==c)}if(p&&!m){var v=t.constructor,b=e.constructor;v==b||!("constructor"in t)||!("constructor"in e)||"function"==typeof v&&v instanceof v&&"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,Ar,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?Ar(c,l,3,r,d):f))return!1}}return!0}function Wr(t){return!(!Ko(t)||(e=t,Lt&&Lt in e))&&(Qo(t)?Rt:mt).test(Ds(t));var e}function Pr(t){return"function"==typeof t?t:null==t?nh:"object"==typeof t?qo(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))Pt.call(t,n)&&"constructor"!=n&&e.push(n);return e}function Lr(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 ws(t)&&xs(e)?_s(Ls(t),e):function(n){var r=Ea(n,t);return r===i&&r===e?Sa(n,t):Ar(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=Es(t,n),u=Es(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=qo(u),p=!f&&Xo(u),m=!f&&!p&&ha(u);c=u,f||p||m?qo(h)?c=h:Ho(h)?c=Si(h):p?(d=!1,c=bi(u,!0)):m?(d=!1,c=_i(u,!0)):c=[]:ra(u)||Uo(u)?(c=h,Uo(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(Es(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 qo(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 Ur(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 qr(t,e,n,r){var i=r?ze:Re,s=-1,o=e.length,a=t;for(t===e&&(e=Si(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 Ms(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=Ls(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=Mn?function(t,e){return Mn.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 w=r||m;else w=l?m&&(r||f):h?m&&f&&(r||!p):u?m&&f&&!p&&(r||!g):!p&&!g&&(r?d<=e:d<e);w?s=c+1:o=c}return wn(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(qo(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=Ae;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&&!Pt.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[Ls(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 Un&&(n=n.value()),Pe(e,function(t,e){return e.func.apply(e.thisArg,We([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 qo(t)?t:ws(t,e)?[t]:js(wa(t))}var wi=Xr;function yi(t,e,n){var r=t.length;return n=n===i?r:n,!e&&n>=r?t:ti(t,e,n)}var vi=oe||function(t){return ce.clearTimeout(t)};function bi(t,e){if(e)return t.slice();var n=t.length,r=qt?qt(n):new t.constructor(n);return t.copy(r),r}function xi(t){var e=new t.constructor(t.byteLength);return new Ut(e).set(new Ut(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 Ei(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 Si(t,e){var n=-1,i=t.length;for(e||(e=r(i));++n<i;)e[n]=t[n];return e}function Ti(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 Mi(t,e){return function(n,r){var i=qo(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 Ai(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=wa(e))?cn(e):i,r=n?n[0]:e.charAt(0),s=n?yi(n,1).join(""):e.slice(1);return r[t]()+s}}function Pi(t){return function(e){return Pe(Qa(Ua(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 Li(t){return function(e,n,r){var s=kt(e);if(!Go(e)){var o=ss(n,3);e=Aa(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 Tt(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&&ys(l[0])&&424==l[1]&&!l[4].length&&1==l[9]?h[rs(l[0])].apply(h,l[3]):1==a.length&&ys(a)?h[u]():h.thru(a)}return function(){var t=arguments,r=t[0];if(h&&1==t.length&&qo(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,w=512&e,y=m?i:ji(t);return function u(){for(var v=arguments.length,b=r(v),x=v;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=Ei(b,a,h,g)),v-=N,g&&v<d){var k=an(b,_);return Vi(t,e,Bi,u.placeholder,n,b,k,l,c,d-v)}var E=p?n:this,S=m?E[t]:t;return v=b.length,l?b=function(t,e){for(var n=t.length,r=wn(e.length,n),s=Si(t);r--;){var o=e[r];t[r]=ms(o,n)?s[o]:i}return t}(b,l):w&&v>1&&b.reverse(),f&&c<v&&(b.length=c),this&&this!==ce&&this instanceof u&&(S=y||ji(S)),S.apply(E,b)}}function Ii(t,e){return function(n,r){return function(t,e,n,r){return yr(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)?yi(cn(r),0,t).join(""):r.slice(0,t)}function Ui(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 qi(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 ys(t)&&Ss(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:wn(fa(n),292))&&De(t)){var r=(wa(t)+"e").split("e");return+((r=(wa(e(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return e(t)}}var Hi=En&&1/hn(new En([,-0]))[1]==l?function(t){return new En(t)}:ah;function Xi(t){return function(e){var n=cs(e);return n==_?sn(e):n==T?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 Tt(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,w=l;o=l=i}var y=p?i:ns(t),v=[t,e,n,o,l,g,w,c,d,f];if(y&&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?Ei(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]:wn(t[8],e[8])),null==t[9]&&(t[9]=e[9]),t[0]=e[0],t[1]=i}(v,y),t=v[0],e=v[1],n=v[2],o=v[3],l=v[4],!(f=v[9]=v[9]===i?p?0:t.length:gn(v[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,v):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((y?Zr:Ss)(b,v),t,e)}function $i(t,e,n,r){return t===i||Ro(t,At[n])&&!Pt.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 w=a?r(g,m,d,e,t,o):r(m,g,d,t,e,o);if(w!==i){if(w)continue;f=!1;break}if(p){if(!Le(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 Ms(Ns(t,i,qs),t+"")}function ts(t){return _r(t,Aa,us)}function es(t){return _r(t,Oa,ls)}var ns=Mn?function(t){return Mn.get(t)}:ah;function rs(t){for(var e=t.name+"",n=Cn[e],r=Pt.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(Pt.call(In,"placeholder")?In:t).placeholder}function ss(){var t=In.iteratee||rh;return t=t===rh?Pr: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=Aa(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),Me(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 ds(t,e,n){for(var r=-1,i=(e=gi(e,t)).length,s=!1;++r<i;){var o=Ls(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)&&(qo(t)||Uo(t))}function fs(t){return"function"!=typeof t.constructor||bs(t)?{}:Rn(Vt(t))}function ps(t){return qo(t)||Uo(t)||!!(Yt&&t&&t[Yt])}function ms(t,e){var n=typeof t;return!!(e=null==e?c:e)&&("number"==n||"symbol"!=n&&wt.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 ws(t,e){if(qo(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 ys(t){var e=rs(t),n=In[e];if("function"!=typeof n||!(e in Un.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())!=E||En&&cs(new En)!=T||Sn&&cs(new Sn)!=A)&&(cs=function(t){var e=Nr(t),n=e==k?t.constructor:i,r=n?Ds(n):"";if(r)switch(r){case An:return W;case On:return _;case Wn:return E;case Pn:return T;case jn:return A}return e});var vs=Ot?Qo:mh;function bs(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||At)}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 Es(t,e){if(("constructor"!==e||"function"!=typeof t[e])&&"__proto__"!=e)return t[e]}var Ss=As(Zr),Ts=le||function(t,e){return ce.setTimeout(t,e)},Ms=As(Jr);function Cs(t,e,n){var r=e+"";return Ms(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 Ee(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 As(t){var e=0,n=0;return function(){var r=yn(),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,Ps,js=(Ws=Po(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===Ps.size&&Ps.clear(),t}),Ps=Ws.cache,Ws);function Ls(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 Un)return t.clone();var e=new Fn(t.__wrapped__,t.__chain__);return e.__actions__=Si(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 Us(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):wn(s,r-1)),Ie(t,ss(e,3),s,!0)}function qs(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]?Tr(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]?Tr(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]?Tr(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?qr(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=Me(t,function(t){if(Ho(t))return e=gn(t.length,e),!0}),Xe(e,function(e){return Oe(t,qe(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(Me(t,Ho))}),oo=Xr(function(t){var e=Ys(t);return Ho(e)&&(e=i),di(Me(t,Ho),ss(e,2))}),ao=Xr(function(t){var e=Ys(t);return e="function"==typeof e?e:i,di(Me(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 Un&&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=Mi(function(t,e,n){Pt.call(t,n)?++t[n]:rr(t,n,1)}),mo=Li(Fs),go=Li(Us);function wo(t,e){return(qo(t)?Ee:lr)(t,ss(e,3))}function yo(t,e){return(qo(t)?Se:cr)(t,ss(e,3))}var vo=Mi(function(t,e,n){Pt.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):Mr(t,e,n)}),o}),xo=Mi(function(t,e,n){rr(t,n,e)});function _o(t,e){return(qo(t)?Oe:Dr)(t,ss(e,3))}var No=Mi(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),[])}),Eo=ue||function(){return ce.Date.now()};function So(t,e,n){return e=n?i:e,e=t&&null==e?t.length:e,Yi(t,u,i,i,i,i,e)}function To(t,e){var n;if("function"!=typeof e)throw new Tt(s);return t=fa(t),function(){return--t>0&&(n=e.apply(this,arguments)),t<=1&&(e=i),n}}var Mo=Xr(function(t,e,n){var r=1;if(n.length){var i=an(n,is(Mo));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 Ao(t,e,n){var r,o,a,h,u,l,c=0,d=!1,f=!1,p=!0;if("function"!=typeof t)throw new Tt(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 w(){var t=Eo();if(g(t))return y(t);u=Ts(w,function(t){var n=e-(t-l);return f?wn(n,a-(t-c)):n}(t))}function y(t){return u=i,p&&r?m(t):(r=o=i,h)}function v(){var t=Eo(),n=g(t);if(r=arguments,o=this,l=t,n){if(u===i)return function(t){return c=t,u=Ts(w,e),d?m(t):h}(l);if(f)return vi(u),u=Ts(w,e),m(l)}return u===i&&(u=Ts(w,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),v.cancel=function(){u!==i&&vi(u),c=0,r=l=o=u=i},v.flush=function(){return u===i?h:y(Eo())},v}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 Po(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new Tt(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(Po.Cache||Gn),n}function jo(t){if("function"!=typeof t)throw new Tt(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)}}Po.Cache=Gn;var Lo=wi(function(t,e){var n=(e=1==e.length&&qo(e[0])?Oe(e[0],$e(ss())):Oe(mr(e,1),$e(ss()))).length;return Xr(function(r){for(var i=-1,s=wn(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=qi(kr),Fo=qi(function(t,e){return t>=e}),Uo=Cr(function(){return arguments}())?Cr:function(t){return ta(t)&&Pt.call(t,"callee")&&!Ht.call(t,"callee")},qo=r.isArray,Vo=we?$e(we):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=ye?$e(ye):function(t){return ta(t)&&Nr(t)==y};function $o(t){if(!ta(t))return!1;var e=Nr(t);return e==v||"[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=ve?$e(ve):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=Pt.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)==S},sa=xe?$e(xe):function(t){return ta(t)&&cs(t)==T};function oa(t){return"string"==typeof t||!qo(t)&&ta(t)&&Nr(t)==M}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=qi(Lr),la=qi(function(t,e){return t<=e});function ca(t){if(!t)return[];if(Go(t))return oa(t)?cn(t):Si(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==T?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 Ti(t,Oa(t))}function wa(t){return null==t?"":oi(t)}var ya=Ci(function(t,e){if(bs(e)||Go(e))Ti(e,Aa(e),t);else for(var n in e)Pt.call(e,n)&&Kn(t,n,e[n])}),va=Ci(function(t,e){Ti(e,Oa(e),t)}),ba=Ci(function(t,e,n,r){Ti(e,Oa(e),t,r)}),xa=Ci(function(t,e,n,r){Ti(e,Aa(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,At[l])&&!Pt.call(t,l))&&(t[l]=o[l])}return t}),ka=Xr(function(t){return t.push(i,Qi),Ne(Pa,i,t)});function Ea(t,e,n){var r=null==t?i:xr(t,e);return r===i?n:r}function Sa(t,e){return null!=t&&ds(t,e,Sr)}var Ta=Ii(function(t,e,n){null!=e&&"function"!=typeof e.toString&&(e=Dt.call(e)),t[e]=n},Ka(nh)),Ma=Ii(function(t,e,n){null!=e&&"function"!=typeof e.toString&&(e=Dt.call(e)),Pt.call(t,e)?t[e].push(n):t[e]=[n]},ss),Ca=Xr(Mr);function Aa(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&&Pt.call(t,r))&&n.push(r);return n}(t)}var Wa=Ci(function(t,e,n){Rr(t,e,n)}),Pa=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}),Ti(t,es(t),n),r&&(n=or(n,7,Zi));for(var i=e.length;i--;)hi(n,e[i]);return n}),La=Ki(function(t,e){return null==t?{}:function(t,e){return Ur(t,e,function(e,n){return Sa(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),Ur(t,n,function(t,n){return e(t,n[0])})}var Ba=Xi(Aa),Ia=Xi(Oa);function Ra(t){return null==t?[]:Qe(t,Aa(t))}var za=Pi(function(t,e,n){return e=e.toLowerCase(),t+(n?Fa(e):e)});function Fa(t){return $a(wa(t).toLowerCase())}function Ua(t){return(t=wa(t))&&t.replace(yt,tn).replace(Zt,"")}var qa=Pi(function(t,e,n){return t+(n?"-":"")+e.toLowerCase()}),Va=Pi(function(t,e,n){return t+(n?" ":"")+e.toLowerCase()}),Ga=Wi("toLowerCase"),Ha=Pi(function(t,e,n){return t+(n?"_":"")+e.toLowerCase()}),Xa=Pi(function(t,e,n){return t+(n?" ":"")+$a(e)}),Ya=Pi(function(t,e,n){return t+(n?" ":"")+e.toUpperCase()}),$a=Wi("toUpperCase");function Qa(t,e,n){return t=wa(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 Ee(e,function(e){e=Ls(e),rr(t,e,Mo(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 Pr("function"==typeof t?t:or(t,1))}var ih=Xr(function(t,e){return function(n){return Mr(n,t,e)}}),sh=Xr(function(t,e){return function(n){return Mr(t,n,e)}});function oh(t,e,n){var r=Aa(e),i=br(e,r);null!=n||Ko(e)&&(i.length||!r.length)||(n=e,e=t,t=this,i=br(e,Aa(e)));var s=!(Ko(n)&&"chain"in n&&!n.chain),o=Qo(t);return Ee(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__=Si(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(Te),lh=zi(Le);function ch(t){return ws(t)?qe(Ls(t)):function(t){return function(e){return xr(e,t)}}(t)}var dh=Ui(),fh=Ui(!0);function ph(){return[]}function mh(){return!1}var gh,wh=Ri(function(t,e){return t+e},0),yh=Gi("ceil"),vh=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 Tt(s);return t=fa(t),function(){if(--t<1)return e.apply(this,arguments)}},In.ary=So,In.assign=ya,In.assignIn=va,In.assignInWith=ba,In.assignWith=xa,In.at=_a,In.before=To,In.bind=Mo,In.bindAll=Ja,In.bindKey=Co,In.castArray=function(){if(!arguments.length)return[];var t=arguments[0];return qo(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 We(qo(n)?Si(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 Tt(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=Aa(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=Ao,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: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(qo(t)?Me: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=qs,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,Aa(t))},In.functionsIn=function(t){return null==t?[]:br(t,Oa(t))},In.groupBy=vo,In.initial=function(t){return null!=t&&t.length?ti(t,0,-1):[]},In.intersection=Gs,In.intersectionBy=Hs,In.intersectionWith=Xs,In.invert=Ta,In.invertBy=Ma,In.invokeMap=bo,In.iteratee=rh,In.keyBy=xo,In.keys=Aa,In.keysIn=Oa,In.map=_o,In.mapKeys=function(t,e){var n={};return e=ss(e,3),yr(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),yr(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=Po,In.merge=Wa,In.mergeWith=Pa,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 To(2,t)},In.orderBy=function(t,e,n,r){return null==t?[]:(qo(e)||(e=null==e?[]:[e]),qo(n=r?i:n)||(n=null==n?[]:[n]),Fr(t,e,n))},In.over=hh,In.overArgs=Lo,In.overEvery=uh,In.overSome=lh,In.partial=Do,In.partialRight=Bo,In.partition=No,In.pick=La,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?qr(t,e,ss(n,2)):t},In.pullAllWith=function(t,e,n){return t&&t.length&&e&&e.length?qr(t,e,i,n):t},In.pullAt=Zs,In.range=dh,In.rangeRight=fh,In.rearg=Io,In.reject=function(t,e){return(qo(t)?Me: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 Tt(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),(qo(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(qo(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=wa(t))&&("string"==typeof e||null!=e&&!ia(e))&&!(e=oi(e))&&rn(t)?yi(cn(t),0,n):t.split(e,n):[]},In.spread=function(t,e){if("function"!=typeof t)throw new Tt(s);return e=null==e?0:gn(fa(e),0),Xr(function(n){var r=n[e],i=yi(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: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 Tt(s);return Ko(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),Ao(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 qo(t)?Oe(t,Ls):aa(t)?[t]:Si(js(wa(t)))},In.toPlainObject=ga,In.transform=function(t,e,n){var r=qo(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?Ee:yr)(t,function(t,r,i){return e(n,t,r,i)}),n},In.unary=function(t){return So(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=va,In.extendWith=ba,oh(In,In),In.add=wh,In.attempt=Za,In.camelCase=za,In.capitalize=Fa,In.ceil=yh,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,Aa(e))},In.deburr=Ua,In.defaultTo=function(t,e){return null==t||t!=t?e:t},In.divide=vh,In.endsWith=function(t,e,n){t=wa(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=wa(t))&&Y.test(t)?t.replace(H,en):t},In.escapeRegExp=function(t){return(t=wa(t))&&nt.test(t)?t.replace(et,"\\$&"):t},In.every=function(t,e,n){var r=qo(t)?Te: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),yr)},In.findLast=go,In.findLastIndex=Us,In.findLastKey=function(t,e){return Be(t,ss(e,3),vr)},In.floor=bh,In.forEach=wo,In.forEachRight=yo,In.forIn=function(t,e){return null==t?t:gr(t,ss(e,3),Oa)},In.forInRight=function(t,e){return null==t?t:wr(t,ss(e,3),Oa)},In.forOwn=function(t,e){return t&&yr(t,ss(e,3))},In.forOwnRight=function(t,e){return t&&vr(t,ss(e,3))},In.get=Ea,In.gt=zo,In.gte=Fo,In.has=function(t,e){return null!=t&&ds(t,e,Er)},In.hasIn=Sa,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>=wn(e,n)&&t<gn(e,n)}(t=ma(t),e,n)},In.invoke=Ca,In.isArguments=Uo,In.isArray=qo,In.isArrayBuffer=Vo,In.isArrayLike=Go,In.isArrayLikeObject=Ho,In.isBoolean=function(t){return!0===t||!1===t||ta(t)&&Nr(t)==w},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)&&(qo(t)||"string"==typeof t||"function"==typeof t.splice||Xo(t)||ha(t)||Uo(t)))return!t.length;var e=cs(t);if(e==_||e==T)return!t.size;if(bs(t))return!jr(t).length;for(var n in t)if(Pt.call(t,n))return!1;return!0},In.isEqual=function(t,e){return Ar(t,e)},In.isEqualWith=function(t,e,n){var r=(n="function"==typeof n?n:i)?n(t,e):i;return r===i?Ar(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(vs(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)==A},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=qa,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):wn(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 Ue(t,nh)},In.meanBy=function(t,e){return Ue(t,ss(e,2))},In.min=function(t){return t&&t.length?fr(t,nh,Lr):i},In.minBy=function(t,e){return t&&t.length?fr(t,ss(e,2),Lr):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=Eo,In.pad=function(t,e,n){t=wa(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=wa(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=wa(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),vn(wa(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 wn(t+s*(e-t+ae("1e-"+((s+"").length-1))),e)}return Gr(t,e)},In.reduce=function(t,e,n){var r=qo(t)?Pe:Ge,i=arguments.length<3;return r(t,ss(e,4),n,i,lr)},In.reduceRight=function(t,e,n){var r=qo(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(wa(t),e)},In.replace=function(){var t=arguments,e=wa(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[Ls(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(qo(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==T?t.size:jr(t).length},In.snakeCase=Ha,In.some=function(t,e,n){var r=qo(t)?Le: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=wa(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=wa(t),e=ba({},e,r,$i);var s,o,a=ba({},e.imports,r.imports,$i),h=Aa(a),u=Qe(a,h),l=0,c=e.interpolate||vt,d="__p += '",f=Et((e.escape||vt).source+"|"+c.source+"|"+(c===Z?ct:vt).source+"|"+(e.evaluate||vt).source+"|$","g"),p="//# sourceURL="+(Pt.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=Pt.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(U,""):d).replace(q,"$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=wn(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 wa(t).toLowerCase()},In.toNumber=ma,In.toSafeInteger=function(t){return t?sr(fa(t),-9007199254740991,c):0===t?t:0},In.toString=wa,In.toUpper=function(t){return wa(t).toUpperCase()},In.trim=function(t,e,n){if((t=wa(t))&&(n||e===i))return Ye(t);if(!t||!(e=oi(e)))return t;var r=cn(t),s=cn(e);return yi(r,Je(r,s),Ke(r,s)+1).join("")},In.trimEnd=function(t,e,n){if((t=wa(t))&&(n||e===i))return t.slice(0,dn(t)+1);if(!t||!(e=oi(e)))return t;var r=cn(t);return yi(r,0,Ke(r,cn(e))+1).join("")},In.trimStart=function(t,e,n){if((t=wa(t))&&(n||e===i))return t.replace(rt,"");if(!t||!(e=oi(e)))return t;var r=cn(t);return yi(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=wa(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?yi(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=Et(s.source,wa(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=wa(t))&&X.test(t)?t.replace(G,fn):t},In.uniqueId=function(t){var e=++jt;return wa(t)+e},In.upperCase=Ya,In.upperFirst=$a,In.each=wo,In.eachRight=yo,In.first=Vs,oh(In,(gh={},yr(In,function(t,e){Pt.call(In.prototype,e)||(gh[e]=t)}),gh),{chain:!1}),In.VERSION="4.17.23",Ee(["bind","bindKey","curry","curryRight","partial","partialRight"],function(t){In[t].placeholder=In}),Ee(["drop","take"],function(t,e){Un.prototype[t]=function(n){n=n===i?1:gn(fa(n),0);var r=this.__filtered__&&!e?new Un(this):this.clone();return r.__filtered__?r.__takeCount__=wn(n,r.__takeCount__):r.__views__.push({size:wn(n,f),type:t+(r.__dir__<0?"Right":"")}),r},Un.prototype[t+"Right"]=function(e){return this.reverse()[t](e).reverse()}}),Ee(["filter","map","takeWhile"],function(t,e){var n=e+1,r=1==n||3==n;Un.prototype[t]=function(t){var e=this.clone();return e.__iteratees__.push({iteratee:ss(t,3),type:n}),e.__filtered__=e.__filtered__||r,e}}),Ee(["head","last"],function(t,e){var n="take"+(e?"Right":"");Un.prototype[t]=function(){return this[n](1).value()[0]}}),Ee(["initial","tail"],function(t,e){var n="drop"+(e?"":"Right");Un.prototype[t]=function(){return this.__filtered__?new Un(this):this[n](1)}}),Un.prototype.compact=function(){return this.filter(nh)},Un.prototype.find=function(t){return this.filter(t).head()},Un.prototype.findLast=function(t){return this.reverse().find(t)},Un.prototype.invokeMap=Xr(function(t,e){return"function"==typeof t?new Un(this):this.map(function(n){return Mr(n,t,e)})}),Un.prototype.reject=function(t){return this.filter(jo(ss(t)))},Un.prototype.slice=function(t,e){t=fa(t);var n=this;return n.__filtered__&&(t>0||e<0)?new Un(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)},Un.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},Un.prototype.toArray=function(){return this.take(f)},yr(Un.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 Un,u=a[0],l=h||qo(e),c=function(t){var e=s.apply(In,We([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 Un(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)})}),Ee(["pop","push","shift","sort","splice","unshift"],function(t){var e=Mt[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(qo(i)?i:[],t)}return this[n](function(n){return e.apply(qo(n)?n:[],t)})}}),yr(Un.prototype,function(t,e){var n=In[e];if(n){var r=n.name+"";Pt.call(Cn,r)||(Cn[r]=[]),Cn[r].push({name:e,func:n})}}),Cn[Bi(i,2).name]=[{name:"wrapper",func:i}],Un.prototype.clone=function(){var t=new Un(this.__wrapped__);return t.__actions__=Si(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=Si(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=Si(this.__views__),t},Un.prototype.reverse=function(){if(this.__filtered__){var t=new Un(this);t.__dir__=-1,t.__filtered__=!0}else(t=this.clone()).__dir__*=-1;return t},Un.prototype.value=function(){var t=this.__wrapped__.value(),e=this.__dir__,n=qo(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=wn(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=wn(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 w=l[m],y=w.iteratee,v=w.type,b=y(g);if(2==v)g=b;else if(!b){if(1==v)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 Un){var e=t;return this.__actions__.length&&(e=new Un(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)},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}}},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)}},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}},56(t,e,n){"use strict";t.exports=function(t){var e=n.nc;e&&t.setAttribute("nonce",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)}}}},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))}}},889(t){"use strict";t.exports="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxNSAxNSI+PHBhdGggZmlsbD0ibm9uZSIgc3Ryb2tlPSJibGFjayIgc3Ryb2tlLWxpbmVjYXA9IiIgc3Ryb2tlLWxpbmVqb2luPSIiIHN0cm9rZS13aWR0aD0iMiIgZD0iTTMuNSA4LjUgTDcuNSAxMS41IEwgMTEuNSAzLjUiLz48L3N2Zz4="}},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:()=>jg});var t={};n.r(t),n.d(t,{cx:()=>Ie,cy:()=>Re,height:()=>Fe,rx:()=>je,ry:()=>Le,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:()=>Wn,move:()=>Pn,plot:()=>jn,size:()=>Ln});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:()=>wr,dy:()=>yr,height:()=>vr,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),w=n.n(g),y=n(113),v=n.n(y),b=n(420),x={};x.styleTagTransform=v(),x.setAttributes=m(),x.insert=f().bind(null,"head"),x.domAPI=c(),x.insertStyleElement=w(),u()(b.Ay,x),b.Ay&&b.Ay.locals&&b.Ay.locals;var _=n(633),N={};N.styleTagTransform=v(),N.setAttributes=m(),N.insert=f().bind(null,"head"),N.domAPI=c(),N.insertStyleElement=w(),u()(_.Ay,N),_.Ay&&_.Ay.locals&&_.Ay.locals;var k=n(584),E={};E.styleTagTransform=v(),E.setAttributes=m(),E.insert=f().bind(null,"head"),E.domAPI=c(),E.insertStyleElement=w(),u()(k.Ay,E),k.Ay&&k.Ay.locals&&k.Ay.locals;var S,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)};class M{constructor(t,e){this.domNode=document.createElement("div"),this.caret=new C,S.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),T(this,S,"f").classList.add(k.Qq),!t||(this.textContent=t),this.domNode.append(T(this,S,"f"))}get textContent(){return T(this,S,"f").textContent}set textContent(t){T(this,S,"f").textContent=t}}S=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 A=n(887),O={};O.styleTagTransform=v(),O.setAttributes=m(),O.insert=f().bind(null,"head"),O.domAPI=c(),O.insertStyleElement=w(),u()(A.Ay,O),A.Ay&&A.Ay.locals&&A.Ay.locals;var W,P=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 L{constructor(t,e){this.domNode=document.createElement("div"),W.set(this,document.createElement("p")),this.tooltip=new P.Tooltip(""),!e||(this.domNode.onclick=e),this.domNode.classList.add(A.lI),j(this,W,"f").classList.add(A.Qq),j(this,W,"f").textContent=null!=t?t:"",this.domNode.append(j(this,W,"f")),this.tooltip.owner=this.domNode}get textContent(){return j(this,W,"f").textContent}set textContent(t){j(this,W,"f").textContent=t}disable(){this.domNode.classList.add(A.r9)}enable(){this.domNode.classList.remove(A.r9)}}W=new WeakMap;var D=n(419),B={};B.styleTagTransform=v(),B.setAttributes=m(),B.insert=f().bind(null,"head"),B.domAPI=c(),B.insertStyleElement=w(),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),U={};U.styleTagTransform=v(),U.setAttributes=m(),U.insert=f().bind(null,"head"),U.domAPI=c(),U.insertStyleElement=w(),u()(F.Ay,U),F.Ay&&F.Ay.locals&&F.Ay.locals;var q,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"),q.set(this,void 0),V.set(this,void 0),this.domNode.classList.add(F.ZZ),G(this,q,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)}}q=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=v(),J.setAttributes=m(),J.insert=f().bind(null,"head"),J.domAPI=c(),J.insertStyleElement=w(),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=v(),it.setAttributes=m(),it.insert=f().bind(null,"head"),it.domAPI=c(),it.insertStyleElement=w(),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 wt(t){return t.charAt(0).toUpperCase()+t.slice(1)}function yt(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 vt(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/",Et="http://www.w3.org/1999/xlink",St={window:"undefined"==typeof window?null:window,document:"undefined"==typeof document?null:document};class Tt{}const Mt={},Ct="___SYMBOL___ROOT___";function At(t,e=Nt){return St.document.createElementNS(e,t)}function Ot(t,e=!1){if(t instanceof Tt)return t;if("object"==typeof t)return jt(t);if(null==t)return new Mt[Ct];if("string"==typeof t&&"<"!==t.trim().charAt(0))return jt(St.document.querySelector(t));const n=e?St.document.createElement("div"):At("svg");return n.innerHTML=t.trim(),t=jt(n.firstElementChild),n.removeChild(n.firstElementChild),t}function Wt(t,e){return e&&(e instanceof St.window.Node||e.ownerDocument&&e instanceof e.ownerDocument.defaultView.Node)?e:At(t)}function Pt(t){if(!t)return null;if(t.instance instanceof Tt)return t.instance;if("#document-fragment"===t.nodeName)return new Mt.Fragment(t);let e=wt(t.nodeName||"Dom");return"LinearGradient"===e||"RadialGradient"===e?e="Gradient":Mt[e]||(e="Dom"),new Mt[e](t)}let jt=Pt;function Lt(t,e=t.name,n=!1){return Mt[e]=t,n&&(Mt[Ct]=t),ft(Object.getOwnPropertyNames(t.prototype)),t}let Dt=1e3;function Bt(t){return"Svgjs"+wt(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,Ut=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i,qt=/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]=qt.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]=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 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),w=g.x,y=g.y,v=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:v.x,ry:v.y,tx:w,ty:y,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=St.document.body||St.document.documentElement;ae.nodes.svg.addTo(t)}return ae.nodes}function he(t){return!(t.width||t.height||t.x||t.y)}Lt(oe,"Matrix");class ue{constructor(...t){this.init(...t)}addOffset(){return this.x+=St.window.pageXOffset,this.y+=St.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)!==St.document&&!(St.document.documentElement.contains||function(t){for(;t.parentNode;)t=t.parentNode;return t===St.document}).call(St.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)}}}),Lt(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||St.document).querySelectorAll(t),function(t){return Pt(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 we(t){let e=t.getEventHolder();return e===St.window&&(e=ge),e.events||(e.events={}),e.events}function ye(t){return t.getEventTarget()}function ve(t,e,n,r,i){const s=n.bind(r||t),o=Ot(t),a=we(o),h=ye(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=we(i),o=ye(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===St.window&&(e=ge),e.events&&(e.events={})}(i)}})}class xe extends Tt{addEventListener(){}dispatch(t,e,n){return function(t,e,n,r){const i=ye(t);return e instanceof St.window.Event||(e=new St.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 ve(this,t,e,n,r),this}removeEventListener(){}}function _e(){}Lt(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 Ee{constructor(...t){this.init(...t)}convert(t){return new Ee(this.value,t)}divide(t){return t=new Ee(t),new Ee(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 Ee&&(this.value=t.valueOf(),this.unit=t.unit),this}minus(t){return t=new Ee(t),new Ee(this-t,this.unit||t.unit)}plus(t){return t=new Ee(t),new Ee(this+t,this.unit||t.unit)}times(t){return t=new Ee(t),new Ee(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 Se=new Set(["fill","stroke","color","bgcolor","stop-color","flood-color","lighting-color"]),Te=[];class Me 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 St.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 Pt(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 Me(At(t),e))}first(){return Pt(this.node.firstChild)}get(t){return Pt(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 Pt(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=Pt(e.node.parentNode),!t)return e;do{if("string"==typeof t?e.matches(t):e instanceof t)return e}while(e=Pt(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=Pt(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=At("wrapper",n),i=St.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(Me,{attr:function(t,e,n){if(null==t){t={},e=this.node.attributes;for(const n of e)t[n.nodeName]=Qt.test(n.nodeValue)?parseFloat(n.nodeValue):n.nodeValue;return t}if(t instanceof Array)return t.reduce((t,e)=>(t[e]=this.attr(e),t),{});if("object"==typeof t&&t.constructor===Object)for(e in t)this.attr(e,t[e]);else if(null===e)this.node.removeAttribute(t);else{if(null==e)return null==(e=this.node.getAttribute(t))?Ne[t]:Qt.test(e)?parseFloat(e):e;"number"==typeof(e=Te.reduce((e,n)=>n(t,e,this),e))?e=new Ee(e):Se.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 Pt(this.node.querySelector(t))}}),Lt(Me,"Dom");class Ce extends Me{constructor(t,e){super(t,e),this.dom={},this.node.instance=this,(t.hasAttribute("data-svgjs")||t.hasAttribute("svgjs:data"))&&this.setData(JSON.parse(t.getAttribute("data-svgjs"))??JSON.parse(t.getAttribute("svgjs:data"))??{})}center(t,e){return this.cx(t).cy(e)}cx(t){return null==t?this.x()+this.width()/2:this.x(t-this.width()/2)}cy(t){return null==t?this.y()+this.height()/2:this.y(t-this.height()/2)}defs(){const t=this.root();return t&&t.defs()}dmove(t,e){return this.dx(t).dy(e)}dx(t=0){return this.x(new Ee(t).plus(this.x()))}dy(t=0){return this.y(new Ee(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!==St.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(Mt[Ct]);return t&&t.root()}setData(t){return this.dom=t,this}size(t,e){const n=yt(this,t,e);return this.width(new Ee(n.width)).height(new Ee(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}}}),Lt(Ce,"Element");const Ae={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=Ae[t].length-1;n>=0;n--)null!=e[Ae[t][n]]&&this.attr(Ae.prefix(t,Ae[t][n]),e[Ae[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 Ee(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:vt(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()}}Lt(Oe,"Container");class We extends Oe{constructor(t,e=t){super(Wt("defs",t),e)}flatten(){return this}ungroup(){return this}}Lt(We,"Defs");class Pe extends Ce{}function je(t){return this.attr("rx",t)}function Le(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 Ee(t).divide(2))}function Fe(t){return null==t?2*this.ry():this.ry(new Ee(t).divide(2))}Lt(Pe,"Shape");class Ue extends Pe{constructor(t,e=t){super(Wt("ellipse",t),e)}size(t,e){const n=yt(this,t,e);return this.rx(new Ee(n.width).divide(2)).ry(new Ee(n.height).divide(2))}}Rt(Ue,t),ct("Container",{ellipse:zt(function(t=0,e=t){return this.put(new Ue).size(t,e).move(0,0)})}),Lt(Ue,"Ellipse");class qe extends Me{constructor(t=St.document.createDocumentFragment()){super(t)}xml(t,e,n){if("boolean"==typeof t&&(n=e,e=t,t=null),null==t||"function"==typeof t){const t=new Me(At("wrapper",n));return t.add(this.node.cloneNode(!0)),t.xml(!1,n)}return super.xml(t,!1,n)}}Lt(qe,"Fragment");const Ve=qe;function Ge(t,e){return"radialGradient"===(this._element||this).type?this.attr({fx:new Ee(t),fy:new Ee(e)}):this.attr({x1:new Ee(t),y1:new Ee(e)})}function He(t,e){return"radialGradient"===(this._element||this).type?this.attr({cx:new Ee(t),cy:new Ee(e)}):this.attr({x2:new Ee(t),y2:new Ee(e)})}class Xe extends Oe{constructor(t,e){super(Wt(t+"Gradient","string"==typeof t?null:t),e)}attr(t,e,n){return"transform"===t&&(t="gradientTransform"),super.attr(t,e,n)}bbox(){return new 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)})}}),Lt(Xe,"Gradient");class Ye extends Oe{constructor(t,e=t){super(Wt("pattern",t),e)}attr(t,e,n){return"transform"===t&&(t="patternTransform"),super.attr(t,e,n)}bbox(){return new 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"})})}}),Lt(Ye,"Pattern");class $e extends Pe{constructor(t,e=t){super(Wt("image",t),e)}load(t,e){if(!t)return this;const n=new St.window.Image;return ve(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),ve(n,"load error",function(){be(n)}),this.attr("href",n.src=t,Et)}}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},Te.push(Qe),ct({Container:{image:zt(function(t,e){return this.put(new $e).size(0,0).load(t,e)})}}),Lt($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 Pe{constructor(t,e=t){super(Wt("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=yt(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])})}}),Lt(rn,"Line");class sn extends Oe{constructor(t,e=t){super(Wt("marker",t),e)}height(t){return this.attr("markerHeight",t)}orient(t){return this.attr("orient",t)}ref(t,e){return this.attr("refX",t).attr("refY",e)}toString(){return"url(#"+this.id()+")"}update(t){return this.clear(),"function"==typeof t&&t.call(this,this),this}width(t){return this.attr("markerWidth",t)}}function 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)}}}),Lt(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&&wn(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 wn(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)&&yn(t)}function yn(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 vn(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&&wn(i,!1);else if("-"!==r&&"+"!==r)if("E"!==r.toUpperCase()){if(Kt.test(r)){if(i.inNumber)wn(i,!1);else{if(!mn(i))throw new Error("parser Error");yn(i)}--n}}else i.number+=r,i.hasExponent=!0;else{if(i.inNumber&&!bn(i)){wn(i,!1),--n;continue}i.number+=r,i.inNumber=!0}else{if("0"===i.number||vn(i)){i.inNumber=!0,i.number=r,wn(i,!0);continue}i.inNumber=!0,i.number+=r}else{if(i.pointSeen||i.hasExponent){wn(i,!1),--n;continue}i.inNumber=!0,i.pointSeen=!0,i.number+=r}return i.inNumber&&wn(i,!1),i.inSegment&&mn(i)&&yn(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?Ee:"string"===e?re.isColor(t)?re:Jt.test(t)?Kt.test(t)?_n:ke:Ft.test(t)?Ee:En:Cn.indexOf(t.constructor)>-1?t.constructor:Array.isArray(t)?ke:"object"===e?Mn:En};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===Mn&&(e=this._to?e.align(this._to):this._from?e.align(this._from):e),e=e.toConsumable(),this._morphObj=this._morphObj||new this._type,this._context=this._context||Array.apply(null,Array(e.length)).map(Object).map(function(t){return t.done=!0,t}),e}}class En{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 Sn{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,Sn.defaults,t),this}toArray(){const t=this;return[t.scaleX,t.scaleY,t.shear,t.rotate,t.translateX,t.translateY,t.originX,t.originY]}}Sn.defaults={scaleX:1,scaleY:1,shear:0,rotate:0,translateX:0,translateY:0,originX:0,originY:0};const Tn=(t,e)=>t[0]<e[0]?-1:t[0]>e[0]?1:0;class Mn{constructor(...t){this.init(...t)}align(t){const e=this.values;for(let n=0,r=e.length;n<r;++n){if(e[n+1]===t[n+1]){if(e[n+1]===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(Tn),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=[En,Sn,Mn];class An extends Pe{constructor(t,e=t){super(Wt("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=yt(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 Wn(){return delete this._array,this}function Pn(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 Ln(t,e){const n=yt(this,t,e);return this.attr("points",this.array().size(n.width,n.height))}An.prototype.MorphArray=_n,ct({Container:{path:zt(function(t){return this.put(new An).plot(t||new _n)})}}),Lt(An,"Path");class Dn extends Pe{constructor(t,e=t){super(Wt("polygon",t),e)}}ct({Container:{polygon:zt(function(t){return this.put(new Dn).plot(t||new Ze)})}}),Rt(Dn,i),Rt(Dn,s),Lt(Dn,"Polygon");class Bn extends Pe{constructor(t,e=t){super(Wt("polyline",t),e)}}ct({Container:{polyline:zt(function(t){return this.put(new Bn).plot(t||new Ze)})}}),Rt(Bn,i),Rt(Bn,s),Lt(Bn,"Polyline");class In extends Pe{constructor(t,e=t){super(Wt("rect",t),e)}}Rt(In,{rx:je,ry:Le}),ct({Container:{rect:zt(function(t,e){return this.put(new In).size(t,e)})}}),Lt(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:()=>St.window.performance||St.window.Date,transforms:[],frame(t){const e=zn.frames.push({run:t});return null===zn.nextDraw&&(zn.nextDraw=St.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=St.window.requestAnimationFrame(zn._draw)),r},immediate(t){const e=zn.immediates.push(t);return null===zn.nextDraw&&(zn.nextDraw=St.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()?St.window.requestAnimationFrame(zn._draw):null}},Fn=zn,Un=function(t){const e=t.start,n=t.runner.duration();return{start:e,duration:n,end:e+n,runner:t.runner}},qn=function(){const t=St.window;return(t.performance||t.Date).now()};class Vn extends xe{constructor(t=qn){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 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 Mn(i.from()).valueOf();Object.assign(n,e),i.from(n)}const h=new Mn(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 Ee(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?Sn:oe);let s,o,a,h,u;return this.queue(function(){o=o||this.element(),s=s||vt(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=vt(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 Ee(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 Ee(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 Ee(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:Le,from:Ge,to:He}),Lt(Gn,"Runner");class Zn extends Oe{constructor(t,e=t){super(Wt("svg",t),e),this.namespace()}defs(){return this.isRoot()?Pt(this.node.querySelector("defs"))||this.put(new We):this.root().defs()}isRoot(){return!this.node.parentNode||!(this.node.parentNode instanceof St.window.SVGElement)&&"#document-fragment"!==this.node.parentNode.nodeName}namespace(){return this.isRoot()?this.attr({xmlns:Nt,version:"1.1"}).attr("xmlns:xlink",Et,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)})}}),Lt(Zn,"Svg",!0);class Jn extends Oe{constructor(t,e=t){super(Wt("symbol",t),e)}}function Kn(t){return!1===this._build&&this.clear(),this.node.appendChild(St.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)})}}),Lt(Jn,"Symbol");class cr extends Pe{constructor(t,e=t){super(Wt("text",t),e),this.dom.leading=this.dom.leading??new Ee(1.3),this._rebuild=!0,this._build=!1}leading(t){return null==t?this.dom.leading:(this.dom.leading=new Ee(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=St.window.getComputedStyle(this.node).getPropertyValue("font-size"),s=n*new Ee(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 Ee(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===Pt(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)})}}),Lt(cr,"Text");class dr extends Pe{constructor(t,e=t){super(Wt("tspan",t),e),this._build=!1}dx(t){return this.attr("dx",t)}dy(t){return this.attr("dy",t)}newLine(){this.dom.newLined=!0;const t=this.parent();if(!(t instanceof cr))return this;const e=t.index(this),n=St.window.getComputedStyle(this.node).getPropertyValue("font-size"),r=t.dom.leading*new Ee(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()}}}),Lt(dr,"Tspan");class fr extends Pe{constructor(t,e=t){super(Wt("circle",t),e)}radius(t){return this.attr("r",t)}rx(t){return this.attr("r",t)}ry(t){return this.rx(t)}size(t){return this.radius(new Ee(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)})}}),Lt(fr,"Circle");class pr extends Oe{constructor(t,e=t){super(Wt("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)}}}),Lt(pr,"ClipPath");class mr extends Ce{constructor(t,e=t){super(Wt("foreignObject",t),e)}}function gr(t,e){return this.children().forEach(n=>{let r;try{r=n.node instanceof St.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 wr(t){return this.dmove(t,0)}function yr(t){return this.dmove(0,t)}function vr(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=yt(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)})}}),Lt(mr,"ForeignObject");class Er extends Oe{constructor(t,e=t){super(Wt("g",t),e)}}Rt(Er,a),ct({Container:{group:zt(function(){return this.put(new Er)})}}),Lt(Er,"G");class Sr extends Oe{constructor(t,e=t){super(Wt("a",t),e)}target(t){return this.attr("target",t)}to(t){return this.attr("href",t,Et)}}Rt(Sr,a),ct({Container:{link:zt(function(t){return this.put(new Sr).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 Sr,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}}}),Lt(Sr,"A");class Tr extends Oe{constructor(t,e=t){super(Wt("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 Tr)})},Element:{masker(){return this.reference("mask")},maskWith(t){const e=t instanceof Tr?t:this.parent().mask().add(t);return this.attr("mask","url(#"+e.id()+")")},unmask(){return this.attr("mask",null)}}}),Lt(Tr,"Mask");class Mr extends Ce{constructor(t,e=t){super(Wt("stop",t),e)}update(t){return("number"==typeof t||t instanceof Ee)&&(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 Ee(t.offset)),this}}ct({Gradient:{stop:function(t,e,n){return this.put(new Mr).update(t,e,n)}}}),Lt(Mr,"Stop");class Cr extends Ce{constructor(t,e=t){super(Wt("style",t),e)}addText(t=""){return this.node.textContent+=t,this}font(t,e,n={}){return this.rule("@font-face",{fontFamily:t,src:e,...n})}rule(t,e){return this.addText(function(t,e){if(!t)return"";if(!e)return t;let n=t+"{";for(const t in e)n+=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)}}),Lt(Cr,"Style");class Ar extends cr{constructor(t,e=t){super(Wt("textPath",t),e)}array(){const t=this.track();return t?t.array():null}plot(t){const e=this.track();let n=null;return e&&(n=e.plot(t)),null==t?n:this}track(){return this.reference("href")}}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 Ar;let r;if(t instanceof An||(t=this.defs().path(t)),n.attr("href","#"+t,Et),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()))}}}),Ar.prototype.MorphArray=_n,Lt(Ar,"TextPath");class Or extends Pe{constructor(t,e=t){super(Wt("use",t),e)}use(t,e){return this.attr("href",(e||"")+"#"+t,Et)}}ct({Container:{use:zt(function(t,e){return this.put(new Or).use(t,e)})}}),Lt(Or,"Use"),Rt([Zn,Jn,$e,Ye,sn],dt("viewbox")),Rt([rn,Bn,Dn,An],dt("marker")),Rt(cr,dt("Text")),Rt(An,dt("Path")),Rt(We,dt("Defs")),Rt([cr,dr],dt("Tspan")),Rt([In,Ue,Xe,Gn],dt("radius")),Rt(xe,dt("EventTarget")),Rt(Me,dt("Dom")),Rt(Ce,dt("Element")),Rt(Pe,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))}([Ee,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 Wr,Pr,jr,Lr,Dr,Br,Ir,Rr,zr,Fr,Ur,qr,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,wi,yi,vi,bi,xi,_i,Ni,ki,Ei,Si,Ti,Mi,Ci,Ai,Oi,Wi,Pi,ji,Li,Di,Bi,Ii,Ri,zi,Fi,Ui,qi,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,ws,ys,vs,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},Es=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 Ss{constructor(t){Wr.add(this),Pr.set(this,void 0),this.domNode=document.createElement("div"),jr.set(this,new Ts),Lr.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),Ur.set(this,void 0),qr.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,Pr,t,"f"),this.domNode.classList.add(_.lf),Es(this,jr,"f").domNode.addEventListener("click",()=>this.domNode.classList.toggle(_.ho)),this.domNode.append(Es(this,jr,"f").domNode),Es(this,Lr,"f").classList.add(_.Qs),this.domNode.append(Es(this,Lr,"f")),ks(this,Dr,new Ms(t),"f"),Es(this,Lr,"f").append(Es(this,Dr,"f").domNode),ks(this,Br,new Cs(t),"f"),Es(this,Lr,"f").append(Es(this,Br,"f").domNode),Es(this,Ir,"f").classList.add(_.eB),Es(this,Lr,"f").append(Es(this,Ir,"f")),t.selectedBases.addEventListener("change",()=>{document.body.contains(this.domNode)&&([...t.selectedBases].length>0?Es(this,Wr,"m",Jr).call(this):Es(this,Wr,"m",Kr).call(this))}),ks(this,Rr,new As(t),"f"),Es(this,Ir,"f").append(Es(this,Rr,"f").domNode),ks(this,zr,new Os(t),"f"),Es(this,Ir,"f").append(Es(this,zr,"f").domNode),ks(this,Fr,new Ws(t),"f"),Es(this,Ir,"f").append(Es(this,Fr,"f").domNode),ks(this,Ur,new Ps(t),"f"),Es(this,Ir,"f").append(Es(this,Ur,"f").domNode),ks(this,qr,new js(t),"f"),Es(this,Ir,"f").append(Es(this,qr,"f").domNode),ks(this,Vr,new Ls(t),"f"),Es(this,Ir,"f").append(Es(this,Vr,"f").domNode),ks(this,Gr,new Ds(t),"f"),Es(this,Ir,"f").append(Es(this,Gr,"f").domNode),ks(this,Hr,new Bs(t),"f"),Es(this,Ir,"f").append(Es(this,Hr,"f").domNode),ks(this,Xr,new Is(t),"f"),Es(this,Ir,"f").append(Es(this,Xr,"f").domNode),ks(this,Yr,new Fs(t),"f"),Es(this,Ir,"f").append(Es(this,Yr,"f").domNode),ks(this,$r,new Us(t),"f"),Es(this,Ir,"f").append(Es(this,$r,"f").domNode),ks(this,Qr,new qs(t),"f"),Es(this,Ir,"f").append(Es(this,Qr,"f").domNode)}refresh(){Es(this,Wr,"a",Zr).forEach(t=>t.refresh()),[...Es(this,Pr,"f").selectedBases].length>0?Es(this,Wr,"m",Jr).call(this):Es(this,Wr,"m",Kr).call(this)}}Pr=new WeakMap,jr=new WeakMap,Lr=new WeakMap,Dr=new WeakMap,Br=new WeakMap,Ir=new WeakMap,Rr=new WeakMap,zr=new WeakMap,Fr=new WeakMap,Ur=new WeakMap,qr=new WeakMap,Vr=new WeakMap,Gr=new WeakMap,Hr=new WeakMap,Xr=new WeakMap,Yr=new WeakMap,$r=new WeakMap,Qr=new WeakMap,Wr=new WeakSet,Zr=function(){return[Es(this,Dr,"f"),Es(this,Br,"f"),Es(this,Rr,"f"),Es(this,zr,"f"),Es(this,Fr,"f"),Es(this,Ur,"f"),Es(this,qr,"f"),Es(this,Vr,"f"),Es(this,Gr,"f"),Es(this,Hr,"f"),Es(this,Xr,"f"),Es(this,Yr,"f"),Es(this,$r,"f"),Es(this,Qr,"f")]},Jr=function(){Es(this,Ir,"f").style.display="block"},Kr=function(){Es(this,Ir,"f").style.display="none"};class Ts{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),Es(this,ti,"f").classList.add(_.m9),Es(this,ti,"f").setAttribute("viewBox","0 0 6 10"),Es(this,ti,"f").setAttribute("width","6"),Es(this,ti,"f").setAttribute("height","10"),Es(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(Es(this,ti,"f")),Es(this,ei,"f").classList.add(_.aW),Es(this,ei,"f").textContent="Bases",this.domNode.append(Es(this,ei,"f"))}}ti=new WeakMap,ei=new WeakMap;class Ms{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),Es(this,ri,"f").style.fontWeight="700",this.domNode.append(Es(this,ri,"f"),Es(this,ii,"f")),Es(this,ni,"f").selectedBases.addEventListener("change",()=>document.body.contains(this.domNode)?this.refresh():{}),this.refresh()}refresh(){let t=[...Es(this,ni,"f").selectedBases].length;Es(this,ri,"f").textContent=`${t}`,Es(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 M),hi.set(this,document.createElement("div")),ui.set(this,{All:new L("All",()=>Es(this,si,"m",di).call(this)),None:new L("None",()=>Es(this,si,"m",fi).call(this)),A:new L("A",()=>Es(this,si,"m",pi).call(this,"A")),U:new L("U",()=>Es(this,si,"m",pi).call(this,"U")),G:new L("G",()=>Es(this,si,"m",pi).call(this,"G")),C:new L("C",()=>Es(this,si,"m",pi).call(this,"C")),T:new L("T",()=>Es(this,si,"m",pi).call(this,"T")),a:new L("a",()=>Es(this,si,"m",pi).call(this,"a")),u:new L("u",()=>Es(this,si,"m",pi).call(this,"u")),g:new L("g",()=>Es(this,si,"m",pi).call(this,"g")),c:new L("c",()=>Es(this,si,"m",pi).call(this,"c")),t:new L("t",()=>Es(this,si,"m",pi).call(this,"t")),Outlined:new L("Outlined",()=>Es(this,si,"m",mi).call(this)),Paired:new L("Paired",()=>Es(this,si,"m",gi).call(this)),Unpaired:new L("Unpaired",()=>Es(this,si,"m",wi).call(this))}),li.set(this,void 0),ks(this,oi,t,"f"),this.domNode.classList.add(_.vw),Es(this,ai,"f").textContent="Select:",Es(this,ai,"f").domNode.addEventListener("click",()=>Es(this,si,"m",ci).call(this)),this.domNode.append(Es(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=>Es(this,ui,"f")[t].domNode)),e.append(n),Ns(Es(this,hi,"f")).css({display:"flex",flexDirection:"column",gap:"6px"}),e.append(Es(this,hi,"f")),Es(this,hi,"f").style.display="none",Es(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=>Es(this,ui,"f")[t].domNode)),Es(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=>Es(this,ui,"f")[t].domNode)),Es(this,hi,"f").append(i),Es(this,hi,"f").append(Es(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=>Es(this,ui,"f")[t].domNode)),Es(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"),Es(this,li,"f").observe(t.drawing.domNode,{childList:!0,subtree:!0}),this.refresh()}refresh(){let t=[...Es(this,oi,"f").drawing.bases],e=new Set([...Es(this,oi,"f").drawing.secondaryBonds].flatMap(t=>[t.base1,t.base2])),n=t.filter(t=>!e.has(t)),r=new Set(Es(this,oi,"f").selectedBases),i=[...Es(this,oi,"f").selectedOutlines];0==t.length?(Es(this,ui,"f").All.disable(),Es(this,ui,"f").All.tooltip.textContent="There are no bases in the drawing."):r.size==t.length?(Es(this,ui,"f").All.disable(),Es(this,ui,"f").All.tooltip.textContent="All bases are already selected."):(Es(this,ui,"f").All.enable(),Es(this,ui,"f").All.tooltip.textContent="Select all bases."),0==r.size?(Es(this,ui,"f").None.disable(),Es(this,ui,"f").None.tooltip.textContent="No bases are selected."):(Es(this,ui,"f").None.enable(),Es(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=Es(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?(Es(this,ui,"f").Outlined.disable(),Es(this,ui,"f").Outlined.tooltip.textContent="No outlines are selected."):i.map(t=>t.owner).every(t=>r.has(t))?(Es(this,ui,"f").Outlined.disable(),Es(this,ui,"f").Outlined.tooltip.textContent="All bases outlined by the selected outlines are already selected."):(Es(this,ui,"f").Outlined.enable(),Es(this,ui,"f").Outlined.tooltip.textContent="Select bases outlined by the selected outlines."),0==e.size?(Es(this,ui,"f").Paired.disable(),Es(this,ui,"f").Paired.tooltip.textContent="There are no paired bases in the drawing."):[...e].every(t=>r.has(t))?(Es(this,ui,"f").Paired.disable(),Es(this,ui,"f").Paired.tooltip.textContent="All paired bases are already selected."):(Es(this,ui,"f").Paired.enable(),Es(this,ui,"f").Paired.tooltip.textContent="Select all paired bases."),0==n.length?(Es(this,ui,"f").Unpaired.disable(),Es(this,ui,"f").Unpaired.tooltip.textContent="There are no unpaired bases in the drawing."):n.every(t=>r.has(t))?(Es(this,ui,"f").Unpaired.disable(),Es(this,ui,"f").Unpaired.tooltip.textContent="All unpaired bases are already selected."):(Es(this,ui,"f").Unpaired.enable(),Es(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"!=Es(this,hi,"f").style.display;Es(this,hi,"f").style.display=t?"none":"flex",t?Es(this,ai,"f").caret.pointRight():Es(this,ai,"f").caret.pointDown()},di=function(){Es(this,oi,"f").addToSelected([...Es(this,oi,"f").drawing.bases])},fi=function(){Es(this,oi,"f").removeFromSelected([...Es(this,oi,"f").drawing.bases])},pi=function(t){Es(this,oi,"f").addToSelected([...Es(this,oi,"f").drawing.bases].filter(e=>e.domNode.textContent==t))},mi=function(){Es(this,oi,"f").addToSelected([...Es(this,oi,"f").selectedOutlines].map(t=>t.owner))},gi=function(){Es(this,oi,"f").addToSelected([...Es(this,oi,"f").drawing.secondaryBonds].flatMap(t=>[t.base1,t.base2]))},wi=function(){let t=new Set([...Es(this,oi,"f").drawing.secondaryBonds].flatMap(t=>[t.base1,t.base2]));Es(this,oi,"f").addToSelected([...Es(this,oi,"f").drawing.bases].filter(e=>!t.has(e)))};class As{constructor(t){yi.add(this),vi.set(this,void 0),this.domNode=document.createElement("div"),bi.set(this,document.createElement("p")),xi.set(this,new L),_i.set(this,new L),ks(this,vi,t,"f"),this.domNode.classList.add(_.Te),Es(this,bi,"f").classList.add(_.QB),Es(this,bi,"f").textContent="Send to:",this.domNode.append(Es(this,bi,"f")),Es(this,xi,"f").domNode.addEventListener("click",()=>Es(this,yi,"m",Ni).call(this)),Es(this,xi,"f").textContent="Front",Es(this,xi,"f").domNode.style.marginLeft="26px",this.domNode.append(Es(this,xi,"f").domNode),Es(this,_i,"f").domNode.addEventListener("click",()=>Es(this,yi,"m",ki).call(this)),Es(this,_i,"f").textContent="Back",Es(this,_i,"f").domNode.style.marginLeft="28px",this.domNode.append(Es(this,_i,"f").domNode),t.selectedBases.addEventListener("change",()=>document.body.contains(this.domNode)?this.refresh():{}),this.refresh()}refresh(){Es(this,yi,"m",Ei).call(this),Es(this,yi,"m",Si).call(this)}}vi=new WeakMap,bi=new WeakMap,xi=new WeakMap,_i=new WeakMap,yi=new WeakSet,Ni=function(){let t=[...Es(this,vi,"f").selectedBases];0!=t.length?(Es(this,vi,"f").pushUndoStack(),t.forEach(t=>(0,_s.bringToFront)(t.domNode))):this.refresh()},ki=function(){let t=[...Es(this,vi,"f").selectedBases];0!=t.length?(Es(this,vi,"f").pushUndoStack(),t.forEach(t=>(0,_s.sendToBack)(t.domNode))):this.refresh()},Ei=function(){0==[...Es(this,vi,"f").selectedBases].length?(Es(this,xi,"f").disable(),Es(this,xi,"f").tooltip.textContent="No bases are selected."):(Es(this,xi,"f").enable(),Es(this,xi,"f").tooltip.textContent="Bring the selected bases to the front.")},Si=function(){0==[...Es(this,vi,"f").selectedBases].length?(Es(this,_i,"f").disable(),Es(this,_i,"f").tooltip.textContent="No bases are selected."):(Es(this,_i,"f").enable(),Es(this,_i,"f").tooltip.textContent="Send the selected bases to the back.")};class Os{constructor(t){Ti.add(this),Mi.set(this,void 0),Ci.set(this,new z({onSubmit:()=>Es(this,Ti,"m",Oi).call(this)})),Ai.set(this,void 0),ks(this,Mi,t,"f"),ks(this,Ai,new Q("Text Content",Es(this,Ci,"f").domNode),"f"),Es(this,Ai,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/API/Node/textContent",this.domNode.style.marginTop="23px",this.domNode.style.alignSelf="start",Es(this,Mi,"f").selectedBases.addEventListener("change",()=>document.body.contains(this.domNode)?this.refresh():{}),new MutationObserver(()=>document.body.contains(this.domNode)?this.refresh():{}).observe(Es(this,Mi,"f").drawing.domNode,{characterData:!0,subtree:!0}),this.refresh()}get domNode(){return Es(this,Ai,"f").domNode}refresh(){let t=[...Es(this,Mi,"f").selectedBases];try{Es(this,Ci,"f").domNode.value=(0,xs.consensusValue)(t.map(t=>{var e;return null!==(e=t.textContent)&&void 0!==e?e:""}))}catch(t){Es(this,Ci,"f").domNode.value=""}}}Mi=new WeakMap,Ci=new WeakMap,Ai=new WeakMap,Ti=new WeakSet,Oi=function(){var t;let e=null!==(t=Es(this,Ci,"f").domNode.value)&&void 0!==t?t:"";if(e=e.trim(),!e)return void this.refresh();let n=[...Es(this,Mi,"f").selectedBases];0==n.length||n.every(t=>t.textContent===e)||(Es(this,Mi,"f").pushUndoStack(),n.forEach(t=>t.maintainingCenterPoint(()=>t.textContent=e))),this.refresh()};class Ws{constructor(t){Wi.set(this,void 0),Pi.set(this,void 0),ji.set(this,void 0),ks(this,Wi,t,"f"),ks(this,Pi,new Hs(t,"fill"),"f"),ks(this,ji,new Q("Fill",Es(this,Pi,"f").domNode),"f"),Es(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 Es(this,ji,"f").domNode}refresh(){Es(this,Pi,"f").refresh()}}Wi=new WeakMap,Pi=new WeakMap,ji=new WeakMap;class Ps{constructor(t){Li.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"),Es(this,Bi,"f").domNode.addEventListener("input",()=>Es(this,Li,"m",Fi).call(this)),ks(this,Ii,new ht("Fill Color",Es(this,Bi,"f").domNode),"f"),Ns(this.domNode).css({marginTop:"12px",alignSelf:"start"}),Es(this,Di,"f").selectedBases.addEventListener("change",()=>ks(this,Ri,void 0,"f")),Es(this,Bi,"f").domNode.addEventListener("focus",()=>ks(this,zi,Es(this,Bi,"f").domNode.value,"f")),Es(this,Di,"f").selectedBases.addEventListener("change",()=>document.body.contains(this.domNode)?this.refresh():{}),new MutationObserver(()=>document.body.contains(this.domNode)?this.refresh():{}).observe(Es(this,Di,"f").drawing.domNode,{attributes:!0,attributeFilter:["fill"],subtree:!0}),this.refresh()}get domNode(){return Es(this,Ii,"f").domNode}refresh(){let t=[...Es(this,Di,"f").selectedBases];if(0!=t.length)try{let e=t.map(t=>window.getComputedStyle(t.domNode).fill).map(t=>new re(t));Es(this,Bi,"f").domNode.value=(0,xs.consensusValue)(e.map(t=>t.toHex().toLowerCase()))}catch(t){Es(this,Bi,"f").domNode.value="#000000"}else Es(this,Bi,"f").domNode.value="#000000"}}Di=new WeakMap,Bi=new WeakMap,Ii=new WeakMap,Ri=new WeakMap,zi=new WeakMap,Li=new WeakSet,Fi=function(){if(Es(this,Bi,"f").domNode.value===Es(this,zi,"f"))return;let t=[...Es(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())===Es(this,Bi,"f").domNode.value.toLowerCase()})||((Es(this,Di,"f").undoStack.isEmpty()||Es(this,Di,"f").undoStack.peek()!==Es(this,Ri,"f"))&&(Es(this,Di,"f").pushUndoStack(),ks(this,Ri,Es(this,Di,"f").undoStack.peek(),"f")),t.forEach(t=>t.setAttribute("fill",Es(this,Bi,"f").domNode.value.toLowerCase()))),this.refresh()):this.refresh()};class js{constructor(t){Ui.set(this,void 0),qi.set(this,void 0),Vi.set(this,void 0),ks(this,Ui,t,"f"),ks(this,qi,new Hs(t,"fill-opacity"),"f"),ks(this,Vi,new Q("Fill Opacity",Es(this,qi,"f").domNode),"f"),Es(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 Es(this,Vi,"f").domNode}refresh(){Es(this,qi,"f").refresh()}}Ui=new WeakMap,qi=new WeakMap,Vi=new WeakMap;class Ls{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",Es(this,Hi,"f").domNode),"f"),Es(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 Es(this,Xi,"f").domNode}refresh(){Es(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",Es(this,$i,"f").domNode),"f"),Es(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 Es(this,Qi,"f").domNode}refresh(){Es(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",Es(this,Ji,"f").domNode),"f"),Es(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 Es(this,Ki,"f").domNode}refresh(){Es(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"),Es(this,ns,"f").domNode.addEventListener("change",()=>Es(this,ts,"m",is).call(this)),ks(this,rs,new nt("Bold",Es(this,ns,"f").domNode),"f"),Ns(this.domNode).css({marginTop:"12px",alignSelf:"start"}),Es(this,es,"f").selectedBases.addEventListener("change",()=>document.body.contains(this.domNode)?this.refresh():{}),new MutationObserver(()=>document.body.contains(this.domNode)?this.refresh():{}).observe(Es(this,es,"f").drawing.domNode,{attributes:!0,attributeFilter:["font-weight"],subtree:!0}),this.refresh()}get domNode(){return Es(this,rs,"f").domNode}refresh(){let t=[...Es(this,es,"f").selectedBases];0==t.length?Es(this,ns,"f").domNode.checked=!1:Es(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=[...Es(this,es,"f").selectedBases];0!=t.length?Es(this,ns,"f").domNode.checked&&t.every(Rs)?this.refresh():Es(this,ns,"f").domNode.checked||!t.every(zs)?(Es(this,es,"f").pushUndoStack(),t.forEach(t=>{t.maintainingCenterPoint(()=>{Es(this,ns,"f").domNode.checked&&zs(t)?t.setAttribute("font-weight","700"):!Es(this,ns,"f").domNode.checked&&Rs(t)&&t.setAttribute("font-weight","400")})}),this.refresh(),Es(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",Es(this,os,"f").domNode),"f"),Es(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 Es(this,as,"f").domNode}refresh(){Es(this,os,"f").refresh()}}ss=new WeakMap,os=new WeakMap,as=new WeakMap;class Us{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",Es(this,us,"f").domNode),"f"),Es(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 Es(this,ls,"f").domNode}refresh(){Es(this,us,"f").refresh()}}hs=new WeakMap,us=new WeakMap,ls=new WeakMap;class qs{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"),Es(this,fs,"f").domNode.addEventListener("change",()=>Es(this,cs,"m",ms).call(this)),ks(this,ps,new nt("Underlined",Es(this,fs,"f").domNode),"f"),Ns(this.domNode).css({marginTop:"12px",alignSelf:"start"}),Es(this,ds,"f").selectedBases.addEventListener("change",()=>document.body.contains(this.domNode)?this.refresh():{}),new MutationObserver(()=>document.body.contains(this.domNode)?this.refresh():{}).observe(Es(this,ds,"f").drawing.domNode,{attributes:!0,attributeFilter:["text-decoration"],subtree:!0}),this.refresh()}get domNode(){return Es(this,ps,"f").domNode}refresh(){let t=[...Es(this,ds,"f").selectedBases];0==t.length?Es(this,fs,"f").domNode.checked=!1:Es(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=[...Es(this,ds,"f").selectedBases];0!=t.length?Es(this,fs,"f").domNode.checked&&t.every(Vs)?this.refresh():Es(this,fs,"f").domNode.checked||!t.every(Gs)?(Es(this,ds,"f").pushUndoStack(),t.forEach(t=>{t.maintainingCenterPoint(()=>{Es(this,fs,"f").domNode.checked&&Gs(t)?t.setAttribute("text-decoration","underline"):!Es(this,fs,"f").domNode.checked&&Vs(t)&&t.setAttribute("text-decoration","")})}),this.refresh(),Es(this,fs,"f").domNode.blur()):this.refresh():this.refresh()};class Hs{constructor(t,e){gs.add(this),ws.set(this,void 0),ys.set(this,void 0),vs.set(this,new z({onSubmit:()=>Es(this,gs,"m",bs).call(this)})),ks(this,ws,t,"f"),ks(this,ys,e,"f"),Es(this,ws,"f").selectedBases.addEventListener("change",()=>document.body.contains(this.domNode)?this.refresh():{}),new MutationObserver(()=>document.body.contains(this.domNode)?this.refresh():{}).observe(Es(this,ws,"f").drawing.domNode,{attributes:!0,subtree:!0}),this.refresh()}get domNode(){return Es(this,vs,"f").domNode}refresh(){let t=[...Es(this,ws,"f").selectedBases];try{Es(this,vs,"f").domNode.value=(0,xs.consensusValue)(t.map(t=>{var e;return null!==(e=t.getAttribute(Es(this,ys,"f")))&&void 0!==e?e:""}))}catch(t){Es(this,vs,"f").domNode.value=""}}}ws=new WeakMap,ys=new WeakMap,vs=new WeakMap,gs=new WeakSet,bs=function(){let t=Es(this,vs,"f").domNode.value,e=[...Es(this,ws,"f").selectedBases];0==e.length||e.every(e=>e.getAttribute(Es(this,ys,"f"))===t)||(Es(this,ws,"f").pushUndoStack(),e.forEach(e=>e.maintainingCenterPoint(()=>e.setAttribute(Es(this,ys,"f"),t)))),this.refresh()};var Xs=n(924),Ys={};Ys.styleTagTransform=v(),Ys.setAttributes=m(),Ys.insert=f().bind(null,"head"),Ys.domAPI=c(),Ys.insertStyleElement=w(),u()(Xs.Ay,Ys),Xs.Ay&&Xs.Ay.locals&&Xs.Ay.locals;var $s=n(723),Qs={};Qs.styleTagTransform=v(),Qs.setAttributes=m(),Qs.insert=f().bind(null,"head"),Qs.domAPI=c(),Qs.insertStyleElement=w(),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 P.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,wo,yo,vo,bo,xo,_o,No,ko,Eo,So,To,Mo,Co,Ao,Oo,Wo,Po,jo,Lo,Do,Bo,Io,Ro,zo,Fo,Uo,qo,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,wa,ya,va,ba,xa,_a,Na,ka,Ea,Sa,Ta,Ma,Ca,Aa,Oa,Wa,Pa,ja,La,Da,Ba,Ia,Ra,za,Fa,Ua,qa,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 M),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),wo.set(this,void 0),yo.set(this,void 0),vo.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,wo,new ih(t),"f"),Ga(this,so,"f").append(Ga(this,wo,"f").domNode),Va(this,yo,new sh(t),"f"),Ga(this,so,"f").append(Ga(this,yo,"f").domNode),Va(this,vo,new oh(t),"f"),Ga(this,so,"f").append(Ga(this,vo,"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,wo=new WeakMap,yo=new WeakMap,vo=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,wo,"f"),Ga(this,yo,"f"),Ga(this,vo,"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")),Eo.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,Eo,"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,Eo,"f").textContent=1==t?" outline is selected.":" outlines are selected."}}No=new WeakMap,ko=new WeakMap,Eo=new WeakMap;class Ya{constructor(t){So.add(this),To.set(this,void 0),this.domNode=document.createElement("div"),Mo.set(this,document.createElement("p")),Co.set(this,new L),Ao.set(this,new L),Oo.set(this,new L),Wo.set(this,void 0),Va(this,To,t,"f"),this.domNode.classList.add(Xs.VX),Ga(this,Mo,"f").classList.add(Xs.iE),Ga(this,Mo,"f").textContent="Select:",this.domNode.append(Ga(this,Mo,"f")),Ga(this,Co,"f").domNode.addEventListener("click",()=>Ga(this,So,"m",Po).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,Ao,"f").domNode.addEventListener("click",()=>Ga(this,So,"m",jo).call(this)),Ga(this,Ao,"f").textContent="Outlining",Ga(this,Ao,"f").domNode.style.marginLeft="17px",this.domNode.append(Ga(this,Ao,"f").domNode),Ga(this,Oo,"f").domNode.addEventListener("click",()=>Ga(this,So,"m",Lo).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,Wo,new MutationObserver(()=>document.body.contains(this.domNode)?this.refresh():{}),"f"),Ga(this,Wo,"f").observe(t.drawing.domNode,{childList:!0,subtree:!0}),this.refresh()}refresh(){Ga(this,So,"m",Do).call(this),Ga(this,So,"m",Bo).call(this),Ga(this,So,"m",Io).call(this)}}To=new WeakMap,Mo=new WeakMap,Co=new WeakMap,Ao=new WeakMap,Oo=new WeakMap,Wo=new WeakMap,So=new WeakSet,Po=function(){let t=[...Ga(this,To,"f").drawing.outlines];Ga(this,To,"f").addToSelected(t)},jo=function(){let t=new Set(Ga(this,To,"f").selectedBases),e=[...Ga(this,To,"f").drawing.outlines];Ga(this,To,"f").addToSelected(e.filter(e=>t.has(e.owner)))},Lo=function(){let t=[...Ga(this,To,"f").drawing.outlines];Ga(this,To,"f").removeFromSelected(t)},Do=function(){let t=[...Ga(this,To,"f").drawing.outlines],e=[...Ga(this,To,"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,To,"f").drawing.outlines],e=new Set(Ga(this,To,"f").selectedBases),n=t.filter(t=>e.has(t.owner)),r=new Set(Ga(this,To,"f").selectedOutlines);0==e.size?(Ga(this,Ao,"f").disable(),Ga(this,Ao,"f").tooltip.textContent="No bases are selected."):0==n.length?(Ga(this,Ao,"f").disable(),Ga(this,Ao,"f").tooltip.textContent="No selected bases are outlined."):n.every(t=>r.has(t))?(Ga(this,Ao,"f").disable(),Ga(this,Ao,"f").tooltip.textContent="All outlines outlining the selected bases are already selected."):(Ga(this,Ao,"f").enable(),Ga(this,Ao,"f").tooltip.textContent="Select outlines outlining the selected bases.")},Io=function(){0==[...Ga(this,To,"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))),Uo.set(this,new K),qo.set(this,new nt("Only add missing outlines",Ga(this,Uo,"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,Uo,"f").domNode.checked=!0,Ga(this,qo,"f").domNode.style.margin="10px 0px 0px 10px",Ga(this,qo,"f").domNode.style.alignSelf="start",this.domNode.append(Ga(this,qo,"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,Uo,"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,Uo=new WeakMap,qo=new WeakMap,Vo=new WeakMap,Ro=new WeakSet,Go=function(){return Ga(this,Uo,"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 L),Ko.set(this,new L),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){wa.set(this,void 0),ya.set(this,void 0),va.set(this,void 0),Va(this,wa,t,"f"),Va(this,ya,new ah(t,"fill-opacity"),"f"),Va(this,va,new Q("Fill Opacity",Ga(this,ya,"f").domNode),"f"),Ga(this,va,"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,va,"f").domNode}refresh(){Ga(this,ya,"f").refresh()}}wa=new WeakMap,ya=new WeakMap,va=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),Ea.set(this,new st),Sa.set(this,void 0),Ta.set(this,void 0),Ma.set(this,void 0),Va(this,ka,t,"f"),Ga(this,Ea,"f").domNode.addEventListener("input",()=>Ga(this,Na,"m",Ca).call(this)),Va(this,Sa,new ht("Stroke Color",Ga(this,Ea,"f").domNode),"f"),Ns(this.domNode).css({marginTop:"12px",alignSelf:"start"}),Ga(this,ka,"f").selectedOutlines.addEventListener("change",()=>Va(this,Ta,void 0,"f")),Ga(this,Ea,"f").domNode.addEventListener("focus",()=>Va(this,Ma,Ga(this,Ea,"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,Sa,"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,Ea,"f").domNode.value=(0,xs.consensusValue)(e.map(t=>t.toHex().toLowerCase()))}catch(t){Ga(this,Ea,"f").domNode.value="#000000"}else Ga(this,Ea,"f").domNode.value="#000000"}}ka=new WeakMap,Ea=new WeakMap,Sa=new WeakMap,Ta=new WeakMap,Ma=new WeakMap,Na=new WeakSet,Ca=function(){if(Ga(this,Ea,"f").domNode.value===Ga(this,Ma,"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,Ea,"f").domNode.value.toLowerCase()})||((Ga(this,ka,"f").undoStack.isEmpty()||Ga(this,ka,"f").undoStack.peek()!==Ga(this,Ta,"f"))&&(Ga(this,ka,"f").pushUndoStack(),Va(this,Ta,Ga(this,ka,"f").undoStack.peek(),"f")),t.forEach(t=>t.domNode.setAttribute("stroke",Ga(this,Ea,"f").domNode.value.toLowerCase()))),this.refresh()):this.refresh()};class ih{constructor(t){Aa.set(this,void 0),Oa.set(this,void 0),Wa.set(this,void 0),Va(this,Aa,t,"f"),Va(this,Oa,new ah(t,"stroke-opacity"),"f"),Va(this,Wa,new Q("Stroke Opacity",Ga(this,Oa,"f").domNode),"f"),Ga(this,Wa,"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,Wa,"f").domNode}refresh(){Ga(this,Oa,"f").refresh()}}Aa=new WeakMap,Oa=new WeakMap,Wa=new WeakMap;class sh{constructor(t){Pa.set(this,void 0),ja.set(this,void 0),La.set(this,void 0),Va(this,Pa,t,"f"),Va(this,ja,new ah(t,"stroke-width"),"f"),Va(this,La,new Q("Stroke Width",Ga(this,ja,"f").domNode),"f"),Ga(this,La,"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,La,"f").domNode}refresh(){Ga(this,ja,"f").refresh()}}Pa=new WeakMap,ja=new WeakMap,La=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),Ua.set(this,new z({onSubmit:()=>Ga(this,Ra,"m",qa).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,Ua,"f").domNode}refresh(){let t=[...Ga(this,za,"f").selectedOutlines];try{Ga(this,Ua,"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,Ua,"f").domNode.value=""}}}za=new WeakMap,Fa=new WeakMap,Ua=new WeakMap,Ra=new WeakSet,qa=function(){let t=Ga(this,Ua,"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=v(),uh.setAttributes=m(),uh.insert=f().bind(null,"head"),uh.domAPI=c(),uh.insertStyleElement=w(),u()(hh.Ay,uh),hh.Ay&&hh.Ay.locals&&hh.Ay.locals;var lh=n(151),ch={};ch.styleTagTransform=v(),ch.setAttributes=m(),ch.insert=f().bind(null,"head"),ch.domAPI=c(),ch.insertStyleElement=w(),u()(lh.A,ch),lh.A&&lh.A.locals&&lh.A.locals;var dh,fh,ph,mh=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 gh{constructor(t){dh.set(this,void 0),this.domNode=document.createElement("p"),fh.set(this,document.createElement("span")),ph.set(this,document.createElement("span")),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,dh,t,"f"),this.domNode.classList.add(lh.w),mh(this,fh,"f").style.fontWeight="700",this.domNode.append(mh(this,fh,"f"),mh(this,ph,"f")),mh(this,dh,"f").selectedNumberings.addEventListener("change",()=>{!document.body.contains(this.domNode)||this.refresh()}),this.refresh()}refresh(){let t=[...mh(this,dh,"f").selectedNumberings].length;mh(this,fh,"f").textContent=`${t}`,mh(this,ph,"f").textContent=1==t?" numbering is selected.":" numberings are selected."}}dh=new WeakMap,fh=new WeakMap,ph=new WeakMap;var wh=n(153),yh={};yh.styleTagTransform=v(),yh.setAttributes=m(),yh.insert=f().bind(null,"head"),yh.domAPI=c(),yh.insertStyleElement=w(),u()(wh.Ay,yh),wh.Ay&&wh.Ay.locals&&wh.Ay.locals;var vh,bh,xh,_h,Nh,kh,Eh,Sh,Th=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},Mh=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 Ch{constructor(t){vh.add(this),bh.set(this,void 0),this.domNode=document.createElement("div"),xh.set(this,document.createElement("p")),_h.set(this,{All:new L("All",()=>Mh(this,vh,"m",kh).call(this)),Numbering:new L("Numbering",()=>Mh(this,vh,"m",Eh).call(this)),None:new L("None",()=>Mh(this,vh,"m",Sh).call(this))}),Nh.set(this,void 0),Th(this,bh,t,"f"),this.domNode.classList.add(wh.sR),Mh(this,xh,"f").classList.add(wh.Pf),Mh(this,xh,"f").textContent="Select:",this.domNode.append(Mh(this,xh,"f")),Mh(this,_h,"f").All.domNode.style.marginLeft="20px",Mh(this,_h,"f").Numbering.domNode.style.marginLeft="17px",Mh(this,_h,"f").None.domNode.style.marginLeft="17px",this.domNode.append(...["All","Numbering","None"].map(t=>Mh(this,_h,"f")[t].domNode)),t.selectedNumberings.addEventListener("change",()=>{!document.body.contains(this.domNode)||this.refresh()}),Th(this,Nh,new MutationObserver(()=>{!document.body.contains(this.domNode)||this.refresh()}),"f"),Mh(this,Nh,"f").observe(t.drawing.domNode,{childList:!0,subtree:!0}),this.refresh()}refresh(){let t=[...Mh(this,bh,"f").drawing.numberings],e=new Set(Mh(this,bh,"f").selectedNumberings);0==t.length?(Mh(this,_h,"f").All.disable(),Mh(this,_h,"f").All.tooltip.textContent="There are no numberings in the drawing."):e.size==t.length?(Mh(this,_h,"f").All.disable(),Mh(this,_h,"f").All.tooltip.textContent="All numberings are already selected."):(Mh(this,_h,"f").All.enable(),Mh(this,_h,"f").All.tooltip.textContent="Select all numberings.");let n=new Set(Mh(this,bh,"f").selectedBases),r=t.filter(t=>n.has(t.owner));0==n.size?(Mh(this,_h,"f").Numbering.disable(),Mh(this,_h,"f").Numbering.tooltip.textContent="No bases are selected."):0==r.length?(Mh(this,_h,"f").Numbering.disable(),Mh(this,_h,"f").Numbering.tooltip.textContent="None of the selected bases are numbered."):r.every(t=>e.has(t))?(Mh(this,_h,"f").Numbering.disable(),Mh(this,_h,"f").Numbering.tooltip.textContent="All numberings numbering the selected bases are already selected."):(Mh(this,_h,"f").Numbering.enable(),Mh(this,_h,"f").Numbering.tooltip.textContent="Select numberings numbering the selected bases."),0==e.size?(Mh(this,_h,"f").None.disable(),Mh(this,_h,"f").None.tooltip.textContent="No numberings are selected."):(Mh(this,_h,"f").None.enable(),Mh(this,_h,"f").None.tooltip.textContent="Deselect all numberings.")}}bh=new WeakMap,xh=new WeakMap,_h=new WeakMap,Nh=new WeakMap,vh=new WeakSet,kh=function(){Mh(this,bh,"f").addToSelected([...Mh(this,bh,"f").drawing.numberings])},Eh=function(){let t=new Set(Mh(this,bh,"f").selectedBases);Mh(this,bh,"f").addToSelected([...Mh(this,bh,"f").drawing.numberings].filter(e=>t.has(e.owner)))},Sh=function(){Mh(this,bh,"f").removeFromSelected([...Mh(this,bh,"f").drawing.numberings])};var Ah=n(718),Oh={};Oh.styleTagTransform=v(),Oh.setAttributes=m(),Oh.insert=f().bind(null,"head"),Oh.domAPI=c(),Oh.insertStyleElement=w(),u()(Ah.A,Oh),Ah.A&&Ah.A.locals&&Ah.A.locals;var Wh,Ph,jh,Lh,Dh,Bh,Ih,Rh=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},zh=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 Fh{constructor(t){Wh.add(this),Ph.set(this,void 0),this.domNode=document.createElement("div"),jh.set(this,new Ks("Add",()=>zh(this,Wh,"m",Ih).call(this))),Lh.set(this,new K),Dh.set(this,new nt("Only add missing numberings",zh(this,Lh,"f").domNode)),Bh.set(this,void 0),Rh(this,Ph,t,"f"),this.domNode.classList.add(Ah.f),this.domNode.append(zh(this,jh,"f").domNode),zh(this,Lh,"f").domNode.checked=!0,zh(this,Dh,"f").domNode.style.margin="10px 0px 0px 10px",zh(this,Dh,"f").domNode.style.alignSelf="start",this.domNode.append(zh(this,Dh,"f").domNode),t.selectedBases.addEventListener("change",()=>{!document.body.contains(this.domNode)||this.refresh()}),Rh(this,Bh,new MutationObserver(()=>{!document.body.contains(this.domNode)||this.refresh()}),"f"),zh(this,Bh,"f").observe(t.drawing.domNode,{childList:!0,subtree:!0}),zh(this,Lh,"f").domNode.addEventListener("change",()=>this.refresh()),this.refresh()}refresh(){let t=[...zh(this,Ph,"f").selectedBases],e=[...zh(this,Ph,"f").drawing.numberings],n=new Set(e.map(t=>t.owner)),r=t.filter(t=>!n.has(t));0==t.length?(zh(this,jh,"f").disable(),zh(this,jh,"f").tooltip.textContent="No bases are selected."):zh(this,Lh,"f").domNode.checked&&0==r.length?(zh(this,jh,"f").disable(),zh(this,jh,"f").tooltip.textContent="All selected bases are already numbered."):(zh(this,jh,"f").enable(),zh(this,jh,"f").tooltip.textContent="Number the selected bases.")}}Ph=new WeakMap,jh=new WeakMap,Lh=new WeakMap,Dh=new WeakMap,Bh=new WeakMap,Wh=new WeakSet,Ih=function(){let t=[...zh(this,Ph,"f").drawing.bases],e=[...zh(this,Ph,"f").selectedBases];if(0==e.length)return;let n=[...zh(this,Ph,"f").drawing.numberings],r=new Set(n.map(t=>t.owner)),i=e.filter(t=>!r.has(t)),s=zh(this,Lh,"f").domNode.checked?i:e;if(0==s.length)return;zh(this,Ph,"f").pushUndoStack();let o=s.flatMap(e=>{let n=t.indexOf(e)+1;return zh(this,Ph,"f").drawing.number(e,n)});zh(this,Ph,"f").addToSelected(o),this.refresh()};var Uh,qh,Vh=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 Gh{constructor(t){Uh.set(this,void 0),qh.set(this,new Ks("Remove",()=>this.press())),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,Uh,t,"f"),this.domNode.style.marginTop="18px",Vh(this,Uh,"f").selectedOutlines.addEventListener("change",()=>{!document.body.contains(this.domNode)||this.refresh()}),this.refresh()}get domNode(){return Vh(this,qh,"f").domNode}press(){let t=[...Vh(this,Uh,"f").selectedNumberings];0!=t.length?(Vh(this,Uh,"f").pushUndoStack(),t.forEach(t=>t.domNode.remove()),this.refresh()):this.refresh()}refresh(){0==[...Vh(this,Uh,"f").selectedNumberings].length?(Vh(this,qh,"f").disable(),Vh(this,qh,"f").tooltip.textContent="No numberings are selected."):(Vh(this,qh,"f").enable(),Vh(this,qh,"f").tooltip.textContent="Remove the selected numberings from the drawing.")}}Uh=new WeakMap,qh=new WeakMap;var Hh=n(933),Xh={};Xh.styleTagTransform=v(),Xh.setAttributes=m(),Xh.insert=f().bind(null,"head"),Xh.domAPI=c(),Xh.insertStyleElement=w(),u()(Hh.Ay,Xh),Hh.Ay&&Hh.Ay.locals&&Hh.Ay.locals;var Yh,$h,Qh,Zh,Jh,Kh,tu,eu,nu=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},ru=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 iu{constructor(t,e){Yh.add(this),$h.set(this,void 0),Qh.set(this,void 0),this.domNode=document.createElement("div"),Zh.set(this,document.createElement("p")),this.buttons={Front:new L("Front",()=>ru(this,Yh,"m",Jh).call(this)),Back:new L("Back",()=>ru(this,Yh,"m",Kh).call(this))},tu.set(this,{refresh:[]}),nu(this,$h,t,"f"),nu(this,Qh,e,"f"),this.domNode.classList.add(Hh.Te),ru(this,Zh,"f").classList.add(Hh.Pf),ru(this,Zh,"f").textContent="Send to:",this.domNode.append(ru(this,Zh,"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=[...ru(this,$h,"f")];0==t.length?this.buttons.Front.disable():this.buttons.Front.enable(),0==t.length?this.buttons.Back.disable():this.buttons.Back.enable(),ru(this,Yh,"m",eu).call(this,"refresh")}addEventListener(t,e){ru(this,tu,"f")[t].push(e)}removeEventListener(t,e){ru(this,tu,"f")[t]=ru(this,tu,"f")[t].filter(t=>t!==e)}}$h=new WeakMap,Qh=new WeakMap,Zh=new WeakMap,tu=new WeakMap,Yh=new WeakSet,Jh=function(){let t=[...ru(this,$h,"f")];0!=t.length?(ru(this,Qh,"f").pushUndoStack(),t.forEach(t=>(0,_s.bringToFront)(t.domNode)),this.refresh()):this.refresh()},Kh=function(){let t=[...ru(this,$h,"f")];0!=t.length?(ru(this,Qh,"f").pushUndoStack(),t.forEach(t=>(0,_s.sendToBack)(t.domNode)),this.refresh()):this.refresh()},eu=function(t){ru(this,tu,"f")[t].forEach(t=>t())};var su,ou,au,hu,uu=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},lu=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 cu{constructor(t){su.add(this),ou.set(this,void 0),au.set(this,void 0),uu(this,ou,t,"f");let e=t.selectedNumberings;uu(this,au,new iu(e,t),"f"),this.domNode.style.marginTop="26px",lu(this,au,"f").addEventListener("refresh",()=>lu(this,su,"m",hu).call(this)),this.refresh()}get domNode(){return lu(this,au,"f").domNode}refresh(){lu(this,au,"f").refresh()}}ou=new WeakMap,au=new WeakMap,su=new WeakSet,hu=function(){let t=[...lu(this,ou,"f").selectedNumberings];lu(this,au,"f").buttons.Front.tooltip.textContent=0==t.length?"No numberings are selected.":"Bring the selected numberings to the front.",lu(this,au,"f").buttons.Back.tooltip.textContent=0==t.length?"No numberings are selected.":"Send the selected numberings to the back."};var du,fu,pu,mu,gu,wu,yu=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},vu=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 bu{constructor(t,e){du.add(this),fu.set(this,void 0),pu.set(this,void 0),mu.set(this,void 0),gu.set(this,new z({onSubmit:()=>vu(this,du,"m",wu).call(this)})),yu(this,fu,t,"f"),yu(this,pu,e,"f"),t.addEventListener("change",()=>{!document.body.contains(this.domNode)||this.refresh()}),yu(this,mu,new MutationObserver(()=>{!document.body.contains(this.domNode)||this.refresh()}),"f"),vu(this,mu,"f").observe(e.domNode,{characterData:!0,subtree:!0}),this.refresh()}get domNode(){return vu(this,gu,"f").domNode}refresh(){let t=[...vu(this,fu,"f")];try{vu(this,gu,"f").domNode.value=(0,xs.consensusValue)(t.map(t=>t.domNode.textContent))}catch(t){vu(this,gu,"f").domNode.value=""}}}fu=new WeakMap,pu=new WeakMap,mu=new WeakMap,gu=new WeakMap,du=new WeakSet,wu=function(){let t=vu(this,gu,"f").domNode.value;if(t=t.trim(),!t)return void this.refresh();let e=[...vu(this,fu,"f")];0!=e.length?(e.every(e=>e.domNode.textContent===t)||(!this.onBeforeEdit||this.onBeforeEdit(),e.forEach(e=>e.domNode.textContent=t),!this.onEdit||this.onEdit()),this.refresh()):this.refresh()};var xu,_u,Nu,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},Eu=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 Su{constructor(t){xu.set(this,void 0),_u.set(this,void 0),Nu.set(this,void 0),ku(this,xu,t,"f"),ku(this,_u,new bu(t.selectedNumberings,t.drawing),"f"),Eu(this,_u,"f").onBeforeEdit=()=>{t.pushUndoStack()},Eu(this,_u,"f").onEdit=()=>{[...t.selectedNumberings].forEach(t=>{t.displacement.magnitude+=1,t.displacement.magnitude-=1})},ku(this,Nu,new Q("Text Content",Eu(this,_u,"f").domNode),"f"),Eu(this,Nu,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/API/Node/textContent",this.domNode.style.marginTop="23px",this.domNode.style.alignSelf="start"}get domNode(){return Eu(this,Nu,"f").domNode}refresh(){Eu(this,_u,"f").refresh()}}xu=new WeakMap,_u=new WeakMap,Nu=new WeakMap;var Tu,Mu,Cu,Au,Ou,Wu,Pu=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},ju=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,e,n){Tu.add(this),Mu.set(this,void 0),Cu.set(this,void 0),Au.set(this,void 0),Ou.set(this,new z({onSubmit:()=>ju(this,Tu,"m",Wu).call(this)})),Pu(this,Mu,t,"f"),Pu(this,Cu,e,"f"),Pu(this,Au,n,"f"),e.addEventListener("change",()=>{!document.body.contains(this.domNode)||this.refresh()}),new MutationObserver(()=>{!document.body.contains(this.domNode)||this.refresh()}).observe(n.domNode,{attributes:!0,attributeFilter:[t],subtree:!0}),this.refresh()}get domNode(){return ju(this,Ou,"f").domNode}refresh(){try{ju(this,Ou,"f").domNode.value=(0,xs.consensusValue)([...ju(this,Cu,"f")].map(t=>{var e;return null!==(e=t.domNode.getAttribute(ju(this,Mu,"f")))&&void 0!==e?e:""}))}catch(t){ju(this,Ou,"f").domNode.value=""}}}Mu=new WeakMap,Cu=new WeakMap,Au=new WeakMap,Ou=new WeakMap,Tu=new WeakSet,Wu=function(){let t=ju(this,Ou,"f").domNode.value,e=[...ju(this,Cu,"f")];0!=e.length?e.every(e=>e.domNode.getAttribute(ju(this,Mu,"f"))===t)?this.refresh():(!this.onBeforeEdit||this.onBeforeEdit(),e.forEach(e=>e.domNode.setAttribute(ju(this,Mu,"f"),t)),!this.onEdit||this.onEdit()):this.refresh()};var Du,Bu,Iu,Ru=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},zu=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 Fu{constructor(t){Du.set(this,void 0),Bu.set(this,void 0),Iu.set(this,void 0),Ru(this,Du,t,"f");let e=t.selectedNumberings,n=t.drawing;Ru(this,Bu,new Lu("fill",e,n),"f"),zu(this,Bu,"f").onBeforeEdit=()=>t.pushUndoStack(),Ru(this,Iu,new Q("Fill",zu(this,Bu,"f").domNode),"f"),zu(this,Iu,"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 zu(this,Iu,"f").domNode}refresh(){zu(this,Bu,"f").refresh()}}Du=new WeakMap,Bu=new WeakMap,Iu=new WeakMap;var Uu,qu,Vu,Gu,Hu,Xu,Yu,$u=n(543),Qu=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},Zu=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 Ju{constructor(t,e,n){Uu.add(this),qu.set(this,void 0),Vu.set(this,void 0),Gu.set(this,void 0),Hu.set(this,new st),Xu.set(this,void 0),Qu(this,qu,t,"f"),Qu(this,Vu,e,"f"),Qu(this,Gu,n,"f"),Zu(this,Hu,"f").domNode.addEventListener("input",()=>{Zu(this,Uu,"m",Yu).call(this)}),Zu(this,Hu,"f").domNode.addEventListener("focus",()=>{Qu(this,Xu,Zu(this,Hu,"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.domNode,{attributes:!0,attributeFilter:[t],subtree:!0}),this.refresh()}get domNode(){return Zu(this,Hu,"f").domNode}refresh(){let t=[...Zu(this,Vu,"f")];if(0!=t.length)try{let e=$u.camelCase(Zu(this,qu,"f")),n=t.map(t=>window.getComputedStyle(t.domNode)[e]).map(t=>new re(t));Zu(this,Hu,"f").domNode.value=(0,xs.consensusValue)(n.map(t=>t.toHex().toLowerCase()))}catch(t){Zu(this,Hu,"f").domNode.value="#000000"}else Zu(this,Hu,"f").domNode.value="#000000"}}qu=new WeakMap,Vu=new WeakMap,Gu=new WeakMap,Hu=new WeakMap,Xu=new WeakMap,Uu=new WeakSet,Yu=function(){if(Zu(this,Hu,"f").domNode.value===Zu(this,Xu,"f"))return;let t=[...Zu(this,Vu,"f")];0!=t.length?t.every(t=>{var e;return(null===(e=t.domNode.getAttribute(Zu(this,qu,"f")))||void 0===e?void 0:e.toLowerCase())===Zu(this,Hu,"f").domNode.value.toLowerCase()})?this.refresh():(!this.onBeforeEdit||this.onBeforeEdit(),t.forEach(t=>t.domNode.setAttribute(Zu(this,qu,"f"),Zu(this,Hu,"f").domNode.value.toLowerCase())),!this.onEdit||this.onEdit()):this.refresh()};var Ku,tl,el,nl,rl=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},il=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 sl{constructor(t){Ku.set(this,void 0),tl.set(this,void 0),el.set(this,void 0),nl.set(this,{}),rl(this,Ku,t,"f");let e=t.selectedNumberings,n=t.drawing;rl(this,tl,new Ju("fill",e,n),"f"),il(this,tl,"f").onBeforeEdit=()=>{(t.undoStack.isEmpty()||t.undoStack.peek()!==il(this,nl,"f"))&&(t.pushUndoStack(),rl(this,nl,t.undoStack.peek(),"f"))},e.addEventListener("change",()=>{rl(this,nl,{},"f")}),rl(this,el,new ht("Fill Color",il(this,tl,"f").domNode),"f"),il(this,el,"f").domNode.style.marginTop="12px",il(this,el,"f").domNode.style.alignSelf="start",this.refresh()}get domNode(){return il(this,el,"f").domNode}refresh(){il(this,tl,"f").refresh()}}Ku=new WeakMap,tl=new WeakMap,el=new WeakMap,nl=new WeakMap;var ol,al,hl,ul=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},ll=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 cl{constructor(t){ol.set(this,void 0),al.set(this,void 0),hl.set(this,void 0),ul(this,ol,t,"f");let e=t.selectedNumberings,n=t.drawing;ul(this,al,new Lu("fill-opacity",e,n),"f"),ll(this,al,"f").onBeforeEdit=()=>t.pushUndoStack(),ul(this,hl,new Q("Fill Opacity",ll(this,al,"f").domNode),"f"),ll(this,hl,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Attribute/fill-opacity",this.domNode.style.marginTop="12px",this.domNode.style.alignSelf="start",this.refresh()}get domNode(){return ll(this,hl,"f").domNode}refresh(){ll(this,al,"f").refresh()}}ol=new WeakMap,al=new WeakMap,hl=new WeakMap;var dl,fl,pl,ml=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},gl=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 wl{constructor(t){dl.set(this,void 0),fl.set(this,void 0),pl.set(this,void 0),ml(this,dl,t,"f");let e=t.selectedNumberings,n=t.drawing;ml(this,fl,new Lu("font-family",e,n),"f"),gl(this,fl,"f").onBeforeEdit=()=>{t.pushUndoStack()},gl(this,fl,"f").onEdit=()=>{[...e].forEach(t=>{t.displacement.magnitude+=1,t.displacement.magnitude-=1})},ml(this,pl,new Q("Font Family",gl(this,fl,"f").domNode),"f"),gl(this,pl,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Attribute/font-family",this.domNode.style.marginTop="14px",this.domNode.style.alignSelf="start",this.refresh()}get domNode(){return gl(this,pl,"f").domNode}refresh(){gl(this,fl,"f").refresh()}}dl=new WeakMap,fl=new WeakMap,pl=new WeakMap;var yl,vl,bl,xl=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},_l=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 Nl{constructor(t){yl.set(this,void 0),vl.set(this,void 0),bl.set(this,void 0),xl(this,yl,t,"f");let e=t.selectedNumberings,n=t.drawing;xl(this,vl,new Lu("font-size",e,n),"f"),_l(this,vl,"f").onBeforeEdit=()=>{t.pushUndoStack()},_l(this,vl,"f").onEdit=()=>{[...e].forEach(t=>{t.displacement.magnitude+=1,t.displacement.magnitude-=1})},xl(this,bl,new Q("Font Size",_l(this,vl,"f").domNode),"f"),_l(this,bl,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Attribute/font-size",this.domNode.style.marginTop="12px",this.domNode.style.alignSelf="start",this.refresh()}get domNode(){return _l(this,bl,"f").domNode}refresh(){_l(this,vl,"f").refresh()}}yl=new WeakMap,vl=new WeakMap,bl=new WeakMap;var kl,El,Sl,Tl=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},Ml=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 Cl{constructor(t){kl.set(this,void 0),El.set(this,void 0),Sl.set(this,void 0),Tl(this,kl,t,"f");let e=t.selectedNumberings,n=t.drawing;Tl(this,El,new Lu("font-weight",e,n),"f"),Ml(this,El,"f").onBeforeEdit=()=>{t.pushUndoStack()},Ml(this,El,"f").onEdit=()=>{[...e].forEach(t=>{t.displacement.magnitude+=1,t.displacement.magnitude-=1})},Tl(this,Sl,new Q("Font Weight",Ml(this,El,"f").domNode),"f"),Ml(this,Sl,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Attribute/font-weight",this.domNode.style.marginTop="12px",this.domNode.style.alignSelf="start",this.refresh()}get domNode(){return Ml(this,Sl,"f").domNode}refresh(){Ml(this,El,"f").refresh()}}function Al(t){let e=t.domNode.getAttribute("font-weight");if(null===e)return!1;let n=Number.parseFloat(e);return Number.isNaN(n)?"bold"===e.toLowerCase():n>=700}function Ol(t){return!Al(t)}kl=new WeakMap,El=new WeakMap,Sl=new WeakMap;var Wl,Pl,jl,Ll,Dl,Bl=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},Il=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){Wl.add(this),Pl.set(this,void 0),jl.set(this,new K),Ll.set(this,void 0),Bl(this,Pl,t,"f"),Il(this,jl,"f").domNode.addEventListener("change",()=>Il(this,Wl,"m",Dl).call(this)),Bl(this,Ll,new nt("Bold",Il(this,jl,"f").domNode),"f"),this.domNode.style.marginTop="12px",this.domNode.style.alignSelf="start",Il(this,Pl,"f").selectedNumberings.addEventListener("change",()=>{!document.body.contains(this.domNode)||this.refresh()}),new MutationObserver(()=>{!document.body.contains(this.domNode)||this.refresh()}).observe(Il(this,Pl,"f").drawing.domNode,{attributes:!0,attributeFilter:["font-weight"],subtree:!0}),this.refresh()}get domNode(){return Il(this,Ll,"f").domNode}refresh(){let t=[...Il(this,Pl,"f").selectedNumberings];0==t.length?Il(this,jl,"f").domNode.checked=!1:Il(this,jl,"f").domNode.checked=t.every(Al)}}Pl=new WeakMap,jl=new WeakMap,Ll=new WeakMap,Wl=new WeakSet,Dl=function(){let t=[...Il(this,Pl,"f").selectedNumberings];0!=t.length?Il(this,jl,"f").domNode.checked&&t.every(Al)?this.refresh():Il(this,jl,"f").domNode.checked||!t.every(Ol)?(Il(this,Pl,"f").pushUndoStack(),t.forEach(t=>{Il(this,jl,"f").domNode.checked&&Ol(t)?t.domNode.setAttribute("font-weight","700"):!Il(this,jl,"f").domNode.checked&&Al(t)&&t.domNode.setAttribute("font-weight","400"),t.displacement.magnitude+=1,t.displacement.magnitude-=1}),this.refresh(),Il(this,jl,"f").domNode.blur()):this.refresh():this.refresh()};var zl,Fl,Ul,ql=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},Vl=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 Gl{constructor(t){zl.set(this,void 0),Fl.set(this,void 0),Ul.set(this,void 0),ql(this,zl,t,"f");let e=t.selectedNumberings,n=t.drawing;ql(this,Fl,new Lu("font-style",e,n),"f"),Vl(this,Fl,"f").onBeforeEdit=()=>{t.pushUndoStack()},Vl(this,Fl,"f").onEdit=()=>{[...e].forEach(t=>{t.displacement.magnitude+=1,t.displacement.magnitude-=1})},ql(this,Ul,new Q("Font Style",Vl(this,Fl,"f").domNode),"f"),Vl(this,Ul,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Attribute/font-style",this.domNode.style.marginTop="12px",this.domNode.style.alignSelf="start",this.refresh()}get domNode(){return Vl(this,Ul,"f").domNode}refresh(){Vl(this,Fl,"f").refresh()}}zl=new WeakMap,Fl=new WeakMap,Ul=new WeakMap;var Hl,Xl,Yl,$l=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},Ql=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 Zl{constructor(t){Hl.set(this,void 0),Xl.set(this,void 0),Yl.set(this,void 0),$l(this,Hl,t,"f");let e=t.selectedNumberings,n=t.drawing;$l(this,Xl,new Lu("text-decoration",e,n),"f"),Ql(this,Xl,"f").onBeforeEdit=()=>{t.pushUndoStack()},Ql(this,Xl,"f").onEdit=()=>{[...e].forEach(t=>{t.displacement.magnitude+=1,t.displacement.magnitude-=1})},$l(this,Yl,new Q("Text Decoration",Ql(this,Xl,"f").domNode),"f"),Ql(this,Yl,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Attribute/text-decoration",this.domNode.style.marginTop="12px",this.domNode.style.alignSelf="start",this.refresh()}get domNode(){return Ql(this,Yl,"f").domNode}refresh(){Ql(this,Xl,"f").refresh()}}function Jl(t){let e=t.domNode.getAttribute("text-decoration");return null!==e&&e.split(/\s/).map(t=>t.toLowerCase()).includes("underline")}function Kl(t){return!Jl(t)}Hl=new WeakMap,Xl=new WeakMap,Yl=new WeakMap;var tc,ec,nc,rc,ic,sc=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},oc=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 ac{constructor(t){tc.add(this),ec.set(this,void 0),nc.set(this,new K),rc.set(this,void 0),sc(this,ec,t,"f"),oc(this,nc,"f").domNode.addEventListener("change",()=>oc(this,tc,"m",ic).call(this)),sc(this,rc,new nt("Underlined",oc(this,nc,"f").domNode),"f"),this.domNode.style.marginTop="12px",this.domNode.style.alignSelf="start",oc(this,ec,"f").selectedNumberings.addEventListener("change",()=>{!document.body.contains(this.domNode)||this.refresh()}),new MutationObserver(()=>{!document.body.contains(this.domNode)||this.refresh()}).observe(oc(this,ec,"f").drawing.domNode,{attributes:!0,attributeFilter:["text-decoration"],subtree:!0}),this.refresh()}get domNode(){return oc(this,rc,"f").domNode}refresh(){let t=[...oc(this,ec,"f").selectedNumberings];0==t.length?oc(this,nc,"f").domNode.checked=!1:oc(this,nc,"f").domNode.checked=t.every(Jl)}}ec=new WeakMap,nc=new WeakMap,rc=new WeakMap,tc=new WeakSet,ic=function(){let t=[...oc(this,ec,"f").selectedNumberings];0!=t.length?oc(this,nc,"f").domNode.checked&&t.every(Jl)?this.refresh():oc(this,nc,"f").domNode.checked||!t.every(Kl)?(oc(this,ec,"f").pushUndoStack(),t.forEach(t=>{oc(this,nc,"f").domNode.checked&&Kl(t)?t.domNode.setAttribute("text-decoration","underline"):!oc(this,nc,"f").domNode.checked&&Jl(t)&&t.domNode.setAttribute("text-decoration",""),t.displacement.magnitude+=1,t.displacement.magnitude-=1}),this.refresh(),oc(this,nc,"f").domNode.blur()):this.refresh():this.refresh()};var hc=n(380),uc={};uc.styleTagTransform=v(),uc.setAttributes=m(),uc.insert=f().bind(null,"head"),uc.domAPI=c(),uc.insertStyleElement=w(),u()(hc.Ay,uc),hc.Ay&&hc.Ay.locals&&hc.Ay.locals;var lc,cc,dc,fc,pc,mc,gc=n(854),wc=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},yc=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 vc{constructor(t){lc.add(this),cc.set(this,void 0),this.domNode=document.createElement("div"),dc.set(this,document.createElement("p")),fc.set(this,{x:new z({onSubmit:()=>yc(this,lc,"m",mc).call(this,"x")}),y:new z({onSubmit:()=>yc(this,lc,"m",mc).call(this,"y")}),magnitude:new z({onSubmit:()=>yc(this,lc,"m",mc).call(this,"magnitude")}),direction:new z({onSubmit:()=>yc(this,lc,"m",mc).call(this,"direction")})}),pc.set(this,void 0),wc(this,cc,t,"f"),this.domNode.classList.add(hc.d8),yc(this,dc,"f").classList.add(hc.Pf),yc(this,dc,"f").textContent="Displacement:",wc(this,pc,{x:new Q("X",yc(this,fc,"f").x.domNode),y:new Q("Y",yc(this,fc,"f").y.domNode),magnitude:new Q("Magnitude",yc(this,fc,"f").magnitude.domNode),direction:new Q("Direction",yc(this,fc,"f").direction.domNode)},"f"),bc.forEach(t=>{yc(this,pc,"f")[t].domNode.style.marginTop="10px",yc(this,pc,"f")[t].domNode.style.marginLeft="8px",yc(this,pc,"f")[t].domNode.style.alignSelf="start"}),yc(this,pc,"f").x.domNode.style.marginTop="0px",this.domNode.append(...bc.map(t=>yc(this,pc,"f")[t].domNode)),yc(this,cc,"f").selectedNumberings.addEventListener("change",()=>{!document.body.contains(this.domNode)||this.refresh()}),new MutationObserver(()=>{!document.body.contains(this.domNode)||this.refresh()}).observe(yc(this,cc,"f").drawing.domNode,{attributes:!0,attributeFilter:["data-displacement"],subtree:!0}),this.refresh()}refresh(){let t=[...yc(this,cc,"f").selectedNumberings];bc.forEach(e=>{try{yc(this,fc,"f")[e].domNode.value=`${(0,xs.consensusValue)(t.map(t=>t.displacement[e]))}`}catch(t){yc(this,fc,"f")[e].domNode.value=""}})}}cc=new WeakMap,dc=new WeakMap,fc=new WeakMap,pc=new WeakMap,lc=new WeakSet,mc=function(t){let e=Number.parseFloat(yc(this,fc,"f")[t].domNode.value);if(!(0,gc.isFiniteNumber)(e))return void this.refresh();let n=[...yc(this,cc,"f").selectedNumberings];0!=n.length?(n.every(n=>n.displacement[t]===e)||(yc(this,cc,"f").pushUndoStack(),n.forEach(n=>n.displacement[t]=e)),this.refresh()):this.refresh()};const bc=["x","y","magnitude","direction"];var xc,_c,Nc,kc,Ec,Sc,Tc,Mc,Cc,Ac,Oc,Wc,Pc,jc,Lc,Dc,Bc,Ic,Rc,zc,Fc,Uc,qc,Vc,Gc,Hc,Xc=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},Yc=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){xc.add(this),_c.set(this,void 0),this.domNode=document.createElement("div"),Nc.set(this,new M("Numberings",()=>this.toggle())),kc.set(this,document.createElement("div")),Ec.set(this,void 0),Sc.set(this,void 0),Tc.set(this,void 0),Mc.set(this,void 0),Cc.set(this,void 0),Xc(this,_c,t,"f"),this.domNode.classList.add(hh.HS),this.domNode.append(Yc(this,Nc,"f").domNode),Yc(this,kc,"f").classList.add(hh.Qs),this.domNode.append(Yc(this,kc,"f")),Xc(this,Ec,new gh(t),"f"),Yc(this,kc,"f").append(Yc(this,Ec,"f").domNode),Xc(this,Sc,new Ch(t),"f"),Yc(this,kc,"f").append(Yc(this,Sc,"f").domNode),Xc(this,Tc,new Fh(t),"f"),Yc(this,kc,"f").append(Yc(this,Tc,"f").domNode),Xc(this,Mc,new Gh(t),"f"),Yc(this,kc,"f").append(Yc(this,Mc,"f").domNode),Xc(this,Cc,new Qc(t),"f"),Yc(this,kc,"f").append(Yc(this,Cc,"f").domNode),this.collapse()}toggle(){this.isCollapsed()?this.expand():this.collapse()}isCollapsed(){return this.domNode.classList.contains(hh.yZ)}collapse(){this.domNode.classList.add(hh.yZ),Yc(this,Nc,"f").caret.pointRight()}expand(){this.domNode.classList.remove(hh.yZ),Yc(this,Nc,"f").caret.pointDown()}refresh(){Yc(this,xc,"a",Ac).forEach(t=>t.refresh())}}_c=new WeakMap,Nc=new WeakMap,kc=new WeakMap,Ec=new WeakMap,Sc=new WeakMap,Tc=new WeakMap,Mc=new WeakMap,Cc=new WeakMap,xc=new WeakSet,Ac=function(){return[Yc(this,Ec,"f"),Yc(this,Sc,"f"),Yc(this,Tc,"f"),Yc(this,Mc,"f"),Yc(this,Cc,"f")]};class Qc{constructor(t){Oc.add(this),Wc.set(this,void 0),this.domNode=document.createElement("div"),Pc.set(this,void 0),jc.set(this,void 0),Lc.set(this,void 0),Dc.set(this,void 0),Bc.set(this,void 0),Ic.set(this,void 0),Rc.set(this,void 0),zc.set(this,void 0),Fc.set(this,void 0),Uc.set(this,void 0),qc.set(this,void 0),Vc.set(this,void 0),Gc.set(this,void 0),Xc(this,Wc,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())}),Xc(this,Pc,new cu(t),"f"),this.domNode.append(Yc(this,Pc,"f").domNode),Xc(this,jc,new Su(t),"f"),this.domNode.append(Yc(this,jc,"f").domNode),Xc(this,Lc,new Fu(t),"f"),this.domNode.append(Yc(this,Lc,"f").domNode),Xc(this,Dc,new sl(t),"f"),this.domNode.append(Yc(this,Dc,"f").domNode),Xc(this,Bc,new cl(t),"f"),this.domNode.append(Yc(this,Bc,"f").domNode),Xc(this,Ic,new wl(t),"f"),this.domNode.append(Yc(this,Ic,"f").domNode),Xc(this,Rc,new Nl(t),"f"),this.domNode.append(Yc(this,Rc,"f").domNode),Xc(this,zc,new Cl(t),"f"),this.domNode.append(Yc(this,zc,"f").domNode),Xc(this,Fc,new Rl(t),"f"),this.domNode.append(Yc(this,Fc,"f").domNode),Xc(this,Uc,new Gl(t),"f"),this.domNode.append(Yc(this,Uc,"f").domNode),Xc(this,qc,new Zl(t),"f"),this.domNode.append(Yc(this,qc,"f").domNode),Xc(this,Vc,new ac(t),"f"),this.domNode.append(Yc(this,Vc,"f").domNode),Xc(this,Gc,new vc(t),"f"),this.domNode.append(Yc(this,Gc,"f").domNode)}show(){this.domNode.style.display="flex"}hide(){this.domNode.style.display="none"}refresh(){Yc(this,Oc,"a",Hc).forEach(t=>t.refresh()),[...Yc(this,Wc,"f").selectedNumberings].length>0?this.show():this.hide()}}Wc=new WeakMap,Pc=new WeakMap,jc=new WeakMap,Lc=new WeakMap,Dc=new WeakMap,Bc=new WeakMap,Ic=new WeakMap,Rc=new WeakMap,zc=new WeakMap,Fc=new WeakMap,Uc=new WeakMap,qc=new WeakMap,Vc=new WeakMap,Gc=new WeakMap,Oc=new WeakSet,Hc=function(){return[Yc(this,Pc,"f"),Yc(this,jc,"f"),Yc(this,Lc,"f"),Yc(this,Dc,"f"),Yc(this,Bc,"f"),Yc(this,Ic,"f"),Yc(this,Rc,"f"),Yc(this,zc,"f"),Yc(this,Fc,"f"),Yc(this,Uc,"f"),Yc(this,qc,"f"),Yc(this,Vc,"f"),Yc(this,Gc,"f")]};var Zc=n(401),Jc={};Jc.styleTagTransform=v(),Jc.setAttributes=m(),Jc.insert=f().bind(null,"head"),Jc.domAPI=c(),Jc.insertStyleElement=w(),u()(Zc.Ay,Jc),Zc.Ay&&Zc.Ay.locals&&Zc.Ay.locals;var Kc,td,ed,nd=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},rd=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 id{constructor(t){Kc.set(this,void 0),td.set(this,void 0),ed.set(this,void 0),nd(this,Kc,t,"f");let e=t.selectedPrimaryBonds,n=t.drawing;nd(this,td,new Lu("stroke",e,n),"f"),rd(this,td,"f").onBeforeEdit=()=>t.pushUndoStack(),nd(this,ed,new Q("Stroke",rd(this,td,"f").domNode),"f"),rd(this,ed,"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 rd(this,ed,"f").domNode}refresh(){rd(this,td,"f").refresh()}}Kc=new WeakMap,td=new WeakMap,ed=new WeakMap;var sd,od,ad,hd=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},ud=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 ld{constructor(t){sd.set(this,void 0),od.set(this,void 0),ad.set(this,void 0),hd(this,sd,t,"f");let e=t.selectedPrimaryBonds,n=t.drawing;hd(this,od,new Lu("stroke-opacity",e,n),"f"),ud(this,od,"f").onBeforeEdit=()=>t.pushUndoStack(),hd(this,ad,new Q("Stroke Opacity",ud(this,od,"f").domNode),"f"),ud(this,ad,"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 ud(this,ad,"f").domNode}refresh(){ud(this,od,"f").refresh()}}sd=new WeakMap,od=new WeakMap,ad=new WeakMap;var cd,dd,fd,pd=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},md=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 gd{constructor(t){cd.set(this,void 0),dd.set(this,void 0),fd.set(this,void 0),pd(this,cd,t,"f");let e=t.selectedPrimaryBonds,n=t.drawing;pd(this,dd,new Lu("stroke-width",e,n),"f"),md(this,dd,"f").onBeforeEdit=()=>t.pushUndoStack(),pd(this,fd,new Q("Stroke Width",md(this,dd,"f").domNode),"f"),md(this,fd,"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 md(this,fd,"f").domNode}refresh(){md(this,dd,"f").refresh()}}cd=new WeakMap,dd=new WeakMap,fd=new WeakMap;var wd,yd,vd,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){wd.set(this,void 0),yd.set(this,void 0),vd.set(this,void 0),bd(this,wd,t,"f");let e=t.selectedPrimaryBonds,n=t.drawing;bd(this,yd,new Lu("stroke-linecap",e,n),"f"),xd(this,yd,"f").onBeforeEdit=()=>t.pushUndoStack(),bd(this,vd,new Q("Stroke Line-Cap",xd(this,yd,"f").domNode),"f"),xd(this,vd,"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,vd,"f").domNode}refresh(){xd(this,yd,"f").refresh()}}wd=new WeakMap,yd=new WeakMap,vd=new WeakMap;var Nd,kd,Ed,Sd=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},Td=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 Md{constructor(t){Nd.set(this,void 0),kd.set(this,void 0),Ed.set(this,void 0),Sd(this,Nd,t,"f");let e=t.selectedPrimaryBonds,n=t.drawing;Sd(this,kd,new Lu("stroke-dasharray",e,n),"f"),Td(this,kd,"f").onBeforeEdit=()=>t.pushUndoStack(),Sd(this,Ed,new Q("Stroke Dash-Array",Td(this,kd,"f").domNode),"f"),Td(this,Ed,"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 Td(this,Ed,"f").domNode}refresh(){Td(this,kd,"f").refresh()}}Nd=new WeakMap,kd=new WeakMap,Ed=new WeakMap;var Cd,Ad,Od,Wd=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},Pd=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 jd{constructor(t){Cd.set(this,void 0),Ad.set(this,void 0),Od.set(this,void 0),Wd(this,Cd,t,"f");let e=t.selectedPrimaryBonds,n=t.drawing;Wd(this,Ad,new Lu("data-base-padding1",e,n),"f"),Pd(this,Ad,"f").onBeforeEdit=()=>t.pushUndoStack(),Pd(this,Ad,"f").onEdit=()=>{[...e].forEach(t=>{let e=t.basePadding1;t.basePadding1+=1,t.basePadding1=e})},Wd(this,Od,new Q("Base Padding 1",Pd(this,Ad,"f").domNode),"f"),this.domNode.style.marginTop="10px",this.domNode.style.alignSelf="start",this.refresh()}get domNode(){return Pd(this,Od,"f").domNode}refresh(){Pd(this,Ad,"f").refresh()}}Cd=new WeakMap,Ad=new WeakMap,Od=new WeakMap;var Ld,Dd,Bd,Id=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},Rd=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 zd{constructor(t){Ld.set(this,void 0),Dd.set(this,void 0),Bd.set(this,void 0),Id(this,Ld,t,"f");let e=t.selectedPrimaryBonds,n=t.drawing;Id(this,Dd,new Lu("data-base-padding2",e,n),"f"),Rd(this,Dd,"f").onBeforeEdit=()=>t.pushUndoStack(),Rd(this,Dd,"f").onEdit=()=>{[...e].forEach(t=>{let e=t.basePadding2;t.basePadding2+=1,t.basePadding2=e})},Id(this,Bd,new Q("Base Padding 2",Rd(this,Dd,"f").domNode),"f"),this.domNode.style.marginTop="10px",this.domNode.style.alignSelf="start",this.refresh()}get domNode(){return Rd(this,Bd,"f").domNode}refresh(){Rd(this,Dd,"f").refresh()}}Ld=new WeakMap,Dd=new WeakMap,Bd=new WeakMap;var Fd,Ud,qd,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,wf,yf,vf,bf,xf,_f,Nf,kf,Ef,Sf,Tf,Mf,Cf,Af,Of,Wf=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},Pf=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 jf{constructor(t){Fd.add(this),Ud.set(this,void 0),this.domNode=document.createElement("div"),qd.set(this,new M("Primary Bonds",()=>this.toggle())),Vd.set(this,document.createElement("div")),Gd.set(this,void 0),Hd.set(this,void 0),Xd.set(this,document.createElement("div")),Yd.set(this,void 0),$d.set(this,void 0),Qd.set(this,void 0),Zd.set(this,void 0),Jd.set(this,void 0),Kd.set(this,void 0),tf.set(this,void 0),ef.set(this,void 0),nf.set(this,void 0),Wf(this,Ud,t,"f"),this.domNode.classList.add(Zc.gP),this.domNode.append(Pf(this,qd,"f").domNode),Pf(this,Vd,"f").classList.add(Zc.Qs),this.domNode.append(Pf(this,Vd,"f")),Wf(this,Gd,new Lf(t),"f"),Pf(this,Vd,"f").append(Pf(this,Gd,"f").domNode),Wf(this,Hd,new Df(t),"f"),Pf(this,Vd,"f").append(Pf(this,Hd,"f").domNode),Pf(this,Xd,"f").classList.add(Zc.eB),Pf(this,Vd,"f").append(Pf(this,Xd,"f")),t.selectedPrimaryBonds.addEventListener("change",()=>{document.body.contains(this.domNode)&&(0==[...t.selectedPrimaryBonds].length?Pf(this,Fd,"m",sf).call(this):Pf(this,Fd,"m",of).call(this))}),Wf(this,Yd,new Bf(t),"f"),Pf(this,Xd,"f").append(Pf(this,Yd,"f").domNode),Wf(this,$d,new id(t),"f"),Pf(this,Xd,"f").append(Pf(this,$d,"f").domNode),Wf(this,Qd,new If(t),"f"),Pf(this,Xd,"f").append(Pf(this,Qd,"f").domNode),Wf(this,Zd,new ld(t),"f"),Pf(this,Xd,"f").append(Pf(this,Zd,"f").domNode),Wf(this,Jd,new gd(t),"f"),Pf(this,Xd,"f").append(Pf(this,Jd,"f").domNode),Wf(this,Kd,new _d(t),"f"),Pf(this,Xd,"f").append(Pf(this,Kd,"f").domNode),Wf(this,tf,new Md(t),"f"),Pf(this,Xd,"f").append(Pf(this,tf,"f").domNode),Wf(this,ef,new jd(t),"f"),Pf(this,Xd,"f").append(Pf(this,ef,"f").domNode),Wf(this,nf,new zd(t),"f"),Pf(this,Xd,"f").append(Pf(this,nf,"f").domNode),this.collapse(),this.refresh()}isCollapsed(){return this.domNode.classList.contains(Zc.yZ)}collapse(){this.domNode.classList.add(Zc.yZ),Pf(this,qd,"f").caret.pointRight()}expand(){this.domNode.classList.remove(Zc.yZ),Pf(this,qd,"f").caret.pointDown()}toggle(){this.isCollapsed()?this.expand():this.collapse()}refresh(){Pf(this,Fd,"a",rf).forEach(t=>t.refresh()),0==[...Pf(this,Ud,"f").selectedPrimaryBonds].length?Pf(this,Fd,"m",sf).call(this):Pf(this,Fd,"m",of).call(this)}}Ud=new WeakMap,qd=new WeakMap,Vd=new WeakMap,Gd=new WeakMap,Hd=new WeakMap,Xd=new WeakMap,Yd=new WeakMap,$d=new WeakMap,Qd=new WeakMap,Zd=new WeakMap,Jd=new WeakMap,Kd=new WeakMap,tf=new WeakMap,ef=new WeakMap,nf=new WeakMap,Fd=new WeakSet,rf=function(){return[Pf(this,Gd,"f"),Pf(this,Hd,"f"),Pf(this,Yd,"f"),Pf(this,$d,"f"),Pf(this,Qd,"f"),Pf(this,Zd,"f"),Pf(this,Jd,"f"),Pf(this,Kd,"f"),Pf(this,tf,"f"),Pf(this,ef,"f"),Pf(this,nf,"f")]},sf=function(){Pf(this,Xd,"f").style.display="none"},of=function(){Pf(this,Xd,"f").style.display="flex"};class Lf{constructor(t){af.set(this,void 0),this.domNode=document.createElement("p"),hf.set(this,document.createElement("span")),uf.set(this,document.createElement("span")),Wf(this,af,t,"f"),this.domNode.classList.add(Zc.vM),Pf(this,hf,"f").style.fontWeight="700",this.domNode.append(Pf(this,hf,"f"),Pf(this,uf,"f")),Pf(this,af,"f").selectedPrimaryBonds.addEventListener("change",()=>{!document.body.contains(this.domNode)||this.refresh()}),this.refresh()}refresh(){let t=[...Pf(this,af,"f").selectedPrimaryBonds].length;Pf(this,hf,"f").textContent=`${t}`,Pf(this,uf,"f").textContent=1==t?" primary bond is selected.":" primary bonds are selected."}}af=new WeakMap,hf=new WeakMap,uf=new WeakMap;class Df{constructor(t){lf.add(this),cf.set(this,void 0),this.domNode=document.createElement("div"),df.set(this,new M("Select:",()=>this.toggle())),ff.set(this,{All:new L("All",()=>Pf(this,lf,"m",yf).call(this)),None:new L("None",()=>Pf(this,lf,"m",vf).call(this)),Between:new L("Between",()=>Pf(this,lf,"m",bf).call(this)),Connecting:new L("Connecting",()=>Pf(this,lf,"m",_f).call(this))}),pf.set(this,document.createElement("div")),mf.set(this,document.createElement("div")),gf.set(this,document.createElement("div")),wf.set(this,void 0),Wf(this,cf,t,"f"),this.domNode.classList.add(Zc.vw),this.domNode.append(Pf(this,df,"f").domNode),Ns(Pf(this,pf,"f")).css({marginTop:"1.5px",display:"flex",flexDirection:"column",gap:"10px"}),this.domNode.append(Pf(this,pf,"f")),Ns(Pf(this,mf,"f")).css({display:"flex",flexDirection:"row",gap:"27px"}),Pf(this,mf,"f").append(...["All","None"].map(t=>Pf(this,ff,"f")[t].domNode)),Pf(this,pf,"f").append(Pf(this,mf,"f")),Ns(Pf(this,gf,"f")).css({display:"flex",flexDirection:"row",gap:"20px"}),Pf(this,gf,"f").append(...["Between","Connecting"].map(t=>Pf(this,ff,"f")[t].domNode)),Pf(this,pf,"f").append(Pf(this,gf,"f")),Pf(this,gf,"f").style.display="none",Pf(this,df,"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():{}),Wf(this,wf,new MutationObserver(()=>document.body.contains(this.domNode)?this.refresh():{}),"f"),Pf(this,wf,"f").observe(t.drawing.domNode,{childList:!0,subtree:!0}),this.refresh()}toggle(){this.isCollapsed()?this.expand():this.collapse()}isCollapsed(){return"none"==Pf(this,gf,"f").style.display}collapse(){Pf(this,gf,"f").style.display="none",Pf(this,df,"f").caret.pointRight()}expand(){Pf(this,gf,"f").style.display="flex",Pf(this,df,"f").caret.pointDown()}refresh(){let t=[...Pf(this,cf,"f").drawing.primaryBonds],e=new Set(Pf(this,cf,"f").selectedPrimaryBonds);0==t.length?(Pf(this,ff,"f").All.disable(),Pf(this,ff,"f").All.tooltip.textContent="There are no primary bonds in the drawing."):t.every(t=>e.has(t))?(Pf(this,ff,"f").All.disable(),Pf(this,ff,"f").All.tooltip.textContent="All primary bonds are already selected."):(Pf(this,ff,"f").All.enable(),Pf(this,ff,"f").All.tooltip.textContent="Select all primary bonds."),0==e.size?(Pf(this,ff,"f").None.disable(),Pf(this,ff,"f").None.tooltip.textContent="No primary bonds are selected."):(Pf(this,ff,"f").None.enable(),Pf(this,ff,"f").None.tooltip.textContent="Deselect all primary bonds.");let n=[...Pf(this,cf,"f").selectedBases],r=Pf(this,lf,"a",xf);0==n.length?(Pf(this,ff,"f").Between.disable(),Pf(this,ff,"f").Between.tooltip.textContent="No bases are selected."):r.every(t=>e.has(t))?(Pf(this,ff,"f").Between.disable(),Pf(this,ff,"f").Between.tooltip.textContent="All primary bonds between the selected bases are already selected."):(Pf(this,ff,"f").Between.enable(),Pf(this,ff,"f").Between.tooltip.textContent="Select primary bonds between the selected bases.");let i=Pf(this,lf,"a",Nf);0==n.length?(Pf(this,ff,"f").Connecting.disable(),Pf(this,ff,"f").Connecting.tooltip.textContent="No bases are selected."):i.every(t=>e.has(t))?(Pf(this,ff,"f").Connecting.disable(),Pf(this,ff,"f").Connecting.tooltip.textContent="All primary bonds connecting the selected bases are already selected."):(Pf(this,ff,"f").Connecting.enable(),Pf(this,ff,"f").Connecting.tooltip.textContent="Select primary bonds connecting the selected bases.")}}cf=new WeakMap,df=new WeakMap,ff=new WeakMap,pf=new WeakMap,mf=new WeakMap,gf=new WeakMap,wf=new WeakMap,lf=new WeakSet,yf=function(){Pf(this,cf,"f").addToSelected([...Pf(this,cf,"f").drawing.primaryBonds])},vf=function(){Pf(this,cf,"f").removeFromSelected([...Pf(this,cf,"f").drawing.primaryBonds])},bf=function(){Pf(this,cf,"f").addToSelected(Pf(this,lf,"a",xf))},xf=function(){let t=new Set(Pf(this,cf,"f").selectedBases);return[...Pf(this,cf,"f").drawing.primaryBonds].filter(e=>t.has(e.base1)&&t.has(e.base2))},_f=function(){Pf(this,cf,"f").addToSelected(Pf(this,lf,"a",Nf))},Nf=function(){let t=new Set(Pf(this,cf,"f").selectedBases);return[...Pf(this,cf,"f").drawing.primaryBonds].filter(e=>t.has(e.base1)||t.has(e.base2))};class Bf{constructor(t){kf.add(this),Ef.set(this,void 0),Sf.set(this,void 0),Wf(this,Ef,t,"f");let e=t.selectedPrimaryBonds;Wf(this,Sf,new iu(e,t),"f"),this.domNode.style.marginTop="26px",Pf(this,Sf,"f").addEventListener("refresh",()=>Pf(this,kf,"m",Tf).call(this)),this.refresh()}get domNode(){return Pf(this,Sf,"f").domNode}refresh(){Pf(this,Sf,"f").refresh()}}Ef=new WeakMap,Sf=new WeakMap,kf=new WeakSet,Tf=function(){let t=[...Pf(this,Ef,"f").selectedPrimaryBonds];Pf(this,Sf,"f").buttons.Front.tooltip.textContent=0==t.length?"No primary bonds are selected.":"Bring the selected primary bonds to the front.",Pf(this,Sf,"f").buttons.Back.tooltip.textContent=0==t.length?"No primary bonds are selected.":"Send the selected primary bonds to the back."};class If{constructor(t){Mf.set(this,void 0),Cf.set(this,void 0),Af.set(this,void 0),Of.set(this,void 0),Wf(this,Mf,t,"f");let e=t.selectedPrimaryBonds,n=t.drawing;Wf(this,Cf,new Ju("stroke",e,n),"f"),Pf(this,Cf,"f").onBeforeEdit=()=>{(t.undoStack.isEmpty()||t.undoStack.peek()!==Pf(this,Of,"f"))&&(t.pushUndoStack(),Wf(this,Of,t.undoStack.peek(),"f"))},e.addEventListener("change",()=>{Wf(this,Of,void 0,"f")}),Wf(this,Af,new ht("Stroke Color",Pf(this,Cf,"f").domNode),"f"),Pf(this,Af,"f").domNode.style.marginTop="12px",Pf(this,Af,"f").domNode.style.alignSelf="start",this.refresh()}get domNode(){return Pf(this,Af,"f").domNode}refresh(){Pf(this,Cf,"f").refresh()}}Mf=new WeakMap,Cf=new WeakMap,Af=new WeakMap,Of=new WeakMap;var Rf=n(358),zf=n(705),Ff={};Ff.styleTagTransform=v(),Ff.setAttributes=m(),Ff.insert=f().bind(null,"head"),Ff.domAPI=c(),Ff.insertStyleElement=w(),u()(zf.Ay,Ff),zf.Ay&&zf.Ay.locals&&zf.Ay.locals;var Uf,qf,Vf,Gf=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},Hf=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 Xf{constructor(t){Uf.set(this,void 0),qf.set(this,void 0),Vf.set(this,void 0),Gf(this,Uf,t,"f");let e=t.selectedSecondaryBonds,n=t.drawing;Gf(this,qf,new Lu("stroke",e,n),"f"),Hf(this,qf,"f").onBeforeEdit=()=>t.pushUndoStack(),Gf(this,Vf,new Q("Stroke",Hf(this,qf,"f").domNode),"f"),Hf(this,Vf,"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 Hf(this,Vf,"f").domNode}refresh(){Hf(this,qf,"f").refresh()}}Uf=new WeakMap,qf=new WeakMap,Vf=new WeakMap;var Yf,$f,Qf,Zf=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},Jf=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 Kf{constructor(t){Yf.set(this,void 0),$f.set(this,void 0),Qf.set(this,void 0),Zf(this,Yf,t,"f");let e=t.selectedSecondaryBonds,n=t.drawing;Zf(this,$f,new Lu("stroke-opacity",e,n),"f"),Jf(this,$f,"f").onBeforeEdit=()=>t.pushUndoStack(),Zf(this,Qf,new Q("Stroke Opacity",Jf(this,$f,"f").domNode),"f"),Jf(this,Qf,"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 Jf(this,Qf,"f").domNode}refresh(){Jf(this,$f,"f").refresh()}}Yf=new WeakMap,$f=new WeakMap,Qf=new WeakMap;var tp,ep,np,rp=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},ip=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 sp{constructor(t){tp.set(this,void 0),ep.set(this,void 0),np.set(this,void 0),rp(this,tp,t,"f");let e=t.selectedSecondaryBonds,n=t.drawing;rp(this,ep,new Lu("stroke-width",e,n),"f"),ip(this,ep,"f").onBeforeEdit=()=>t.pushUndoStack(),rp(this,np,new Q("Stroke Width",ip(this,ep,"f").domNode),"f"),ip(this,np,"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 ip(this,np,"f").domNode}refresh(){ip(this,ep,"f").refresh()}}tp=new WeakMap,ep=new WeakMap,np=new WeakMap;var op,ap,hp,up=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},lp=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 cp{constructor(t){op.set(this,void 0),ap.set(this,void 0),hp.set(this,void 0),up(this,op,t,"f");let e=t.selectedSecondaryBonds,n=t.drawing;up(this,ap,new Lu("stroke-linecap",e,n),"f"),lp(this,ap,"f").onBeforeEdit=()=>t.pushUndoStack(),up(this,hp,new Q("Stroke Line-Cap",lp(this,ap,"f").domNode),"f"),lp(this,hp,"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 lp(this,hp,"f").domNode}refresh(){lp(this,ap,"f").refresh()}}op=new WeakMap,ap=new WeakMap,hp=new WeakMap;var dp,fp,pp,mp=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},gp=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){dp.set(this,void 0),fp.set(this,void 0),pp.set(this,void 0),mp(this,dp,t,"f");let e=t.selectedSecondaryBonds,n=t.drawing;mp(this,fp,new Lu("stroke-dasharray",e,n),"f"),gp(this,fp,"f").onBeforeEdit=()=>t.pushUndoStack(),mp(this,pp,new Q("Stroke Dash-Array",gp(this,fp,"f").domNode),"f"),gp(this,pp,"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 gp(this,pp,"f").domNode}refresh(){gp(this,fp,"f").refresh()}}dp=new WeakMap,fp=new WeakMap,pp=new WeakMap;var yp,vp,bp,xp=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},_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 Np{constructor(t){yp.set(this,void 0),vp.set(this,void 0),bp.set(this,void 0),xp(this,yp,t,"f");let e=t.selectedSecondaryBonds,n=t.drawing;xp(this,vp,new Lu("data-base-padding1",e,n),"f"),_p(this,vp,"f").onBeforeEdit=()=>t.pushUndoStack(),_p(this,vp,"f").onEdit=()=>{[...e].forEach(t=>{let e=t.basePadding1;t.basePadding1+=1,t.basePadding1=e})},xp(this,bp,new Q("Base Padding 1",_p(this,vp,"f").domNode),"f"),this.domNode.style.marginTop="10px",this.domNode.style.alignSelf="start",this.refresh()}get domNode(){return _p(this,bp,"f").domNode}refresh(){_p(this,vp,"f").refresh()}}yp=new WeakMap,vp=new WeakMap,bp=new WeakMap;var kp,Ep,Sp,Tp=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},Mp=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 Cp{constructor(t){kp.set(this,void 0),Ep.set(this,void 0),Sp.set(this,void 0),Tp(this,kp,t,"f");let e=t.selectedSecondaryBonds,n=t.drawing;Tp(this,Ep,new Lu("data-base-padding2",e,n),"f"),Mp(this,Ep,"f").onBeforeEdit=()=>t.pushUndoStack(),Mp(this,Ep,"f").onEdit=()=>{[...e].forEach(t=>{let e=t.basePadding2;t.basePadding2+=1,t.basePadding2=e})},Tp(this,Sp,new Q("Base Padding 2",Mp(this,Ep,"f").domNode),"f"),this.domNode.style.marginTop="10px",this.domNode.style.alignSelf="start",this.refresh()}get domNode(){return Mp(this,Sp,"f").domNode}refresh(){Mp(this,Ep,"f").refresh()}}kp=new WeakMap,Ep=new WeakMap,Sp=new WeakMap;var Ap,Op,Wp,Pp,jp,Lp,Dp,Bp,Ip,Rp,zp,Fp,Up,qp,Vp,Gp,Hp,Xp,Yp,$p,Qp,Zp,Jp,Kp,tm,em,nm,rm,im,sm,om,am,hm,um,lm,cm,dm,fm,pm,mm,gm,wm,ym,vm,bm,xm,_m,Nm,km,Em,Sm,Tm,Mm,Cm,Am,Om,Wm,Pm,jm,Lm,Dm,Bm,Im,Rm=n(127),zm=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},Fm=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 Um{constructor(t){Ap.add(this),Op.set(this,void 0),this.domNode=document.createElement("div"),Wp.set(this,new M("Secondary Bonds",()=>this.toggle())),Pp.set(this,document.createElement("div")),jp.set(this,void 0),Lp.set(this,void 0),Dp.set(this,void 0),Bp.set(this,void 0),Ip.set(this,document.createElement("div")),Rp.set(this,void 0),zp.set(this,void 0),Fp.set(this,void 0),Up.set(this,void 0),qp.set(this,void 0),Vp.set(this,void 0),Gp.set(this,void 0),Hp.set(this,void 0),Xp.set(this,void 0),zm(this,Op,t,"f"),this.domNode.classList.add(zf.Se),this.domNode.append(Fm(this,Wp,"f").domNode),Fm(this,Pp,"f").classList.add(zf.Qs),this.domNode.append(Fm(this,Pp,"f")),zm(this,jp,new qm(t),"f"),Fm(this,Pp,"f").append(Fm(this,jp,"f").domNode),zm(this,Lp,new Vm(t),"f"),Fm(this,Pp,"f").append(Fm(this,Lp,"f").domNode),zm(this,Dp,new Gm(t),"f"),Fm(this,Pp,"f").append(Fm(this,Dp,"f").domNode),zm(this,Bp,new Hm(t),"f"),Fm(this,Pp,"f").append(Fm(this,Bp,"f").domNode),Fm(this,Ip,"f").classList.add(zf.eB),Fm(this,Pp,"f").append(Fm(this,Ip,"f")),t.selectedSecondaryBonds.addEventListener("change",()=>{document.body.contains(this.domNode)&&(0==[...t.selectedSecondaryBonds].length?Fm(this,Ap,"m",Qp).call(this):Fm(this,Ap,"m",$p).call(this))}),zm(this,Rp,new Xm(t),"f"),Fm(this,Ip,"f").append(Fm(this,Rp,"f").domNode),zm(this,zp,new Xf(t),"f"),Fm(this,Ip,"f").append(Fm(this,zp,"f").domNode),zm(this,Fp,new Ym(t),"f"),Fm(this,Ip,"f").append(Fm(this,Fp,"f").domNode),zm(this,Up,new Kf(t),"f"),Fm(this,Ip,"f").append(Fm(this,Up,"f").domNode),zm(this,qp,new sp(t),"f"),Fm(this,Ip,"f").append(Fm(this,qp,"f").domNode),zm(this,Vp,new cp(t),"f"),Fm(this,Ip,"f").append(Fm(this,Vp,"f").domNode),zm(this,Gp,new wp(t),"f"),Fm(this,Ip,"f").append(Fm(this,Gp,"f").domNode),zm(this,Hp,new Np(t),"f"),Fm(this,Ip,"f").append(Fm(this,Hp,"f").domNode),zm(this,Xp,new Cp(t),"f"),Fm(this,Ip,"f").append(Fm(this,Xp,"f").domNode),this.collapse(),this.refresh()}isCollapsed(){return this.domNode.classList.contains(zf.yZ)}collapse(){this.domNode.classList.add(zf.yZ),Fm(this,Wp,"f").caret.pointRight()}expand(){this.domNode.classList.remove(zf.yZ),Fm(this,Wp,"f").caret.pointDown()}toggle(){this.isCollapsed()?this.expand():this.collapse()}refresh(){Fm(this,Ap,"a",Yp).forEach(t=>t.refresh()),0==[...Fm(this,Op,"f").selectedSecondaryBonds].length?Fm(this,Ap,"m",Qp).call(this):Fm(this,Ap,"m",$p).call(this)}}Op=new WeakMap,Wp=new WeakMap,Pp=new WeakMap,jp=new WeakMap,Lp=new WeakMap,Dp=new WeakMap,Bp=new WeakMap,Ip=new WeakMap,Rp=new WeakMap,zp=new WeakMap,Fp=new WeakMap,Up=new WeakMap,qp=new WeakMap,Vp=new WeakMap,Gp=new WeakMap,Hp=new WeakMap,Xp=new WeakMap,Ap=new WeakSet,Yp=function(){return[Fm(this,jp,"f"),Fm(this,Lp,"f"),Fm(this,Dp,"f"),Fm(this,Bp,"f"),Fm(this,Rp,"f"),Fm(this,zp,"f"),Fm(this,Fp,"f"),Fm(this,Up,"f"),Fm(this,qp,"f"),Fm(this,Vp,"f"),Fm(this,Gp,"f"),Fm(this,Hp,"f"),Fm(this,Xp,"f")]},$p=function(){Fm(this,Ip,"f").style.display="flex"},Qp=function(){Fm(this,Ip,"f").style.display="none"};class qm{constructor(t){Zp.set(this,void 0),this.domNode=document.createElement("p"),Jp.set(this,document.createElement("span")),Kp.set(this,document.createElement("span")),zm(this,Zp,t,"f"),this.domNode.classList.add(zf.vM),Fm(this,Jp,"f").style.fontWeight="700",this.domNode.append(Fm(this,Jp,"f"),Fm(this,Kp,"f")),Fm(this,Zp,"f").selectedSecondaryBonds.addEventListener("change",()=>{!document.body.contains(this.domNode)||this.refresh()}),this.refresh()}refresh(){let t=[...Fm(this,Zp,"f").selectedSecondaryBonds].length;Fm(this,Jp,"f").textContent=`${t}`,Fm(this,Kp,"f").textContent=1==t?" secondary bond is selected.":" secondary bonds are selected."}}Zp=new WeakMap,Jp=new WeakMap,Kp=new WeakMap;class Vm{constructor(t){tm.add(this),em.set(this,void 0),this.domNode=document.createElement("div"),nm.set(this,new M("Select:",()=>this.toggle())),rm.set(this,{All:new L("All",()=>Fm(this,tm,"m",hm).call(this)),None:new L("None",()=>Fm(this,tm,"m",um).call(this)),Between:new L("Between",()=>Fm(this,tm,"m",lm).call(this)),Connecting:new L("Connecting",()=>Fm(this,tm,"m",dm).call(this)),"A:U":new L("A:U",()=>Fm(this,tm,"m",pm).call(this)),"A:T":new L("A:T",()=>Fm(this,tm,"m",gm).call(this)),"G:C":new L("G:C",()=>Fm(this,tm,"m",ym).call(this)),"G:U":new L("G:U",()=>Fm(this,tm,"m",bm).call(this)),"G:T":new L("G:T",()=>Fm(this,tm,"m",_m).call(this))}),im.set(this,document.createElement("div")),sm.set(this,document.createElement("div")),om.set(this,document.createElement("div")),am.set(this,void 0),zm(this,em,t,"f"),this.domNode.classList.add(zf.vw),this.domNode.append(Fm(this,nm,"f").domNode),Ns(Fm(this,im,"f")).css({marginTop:"1.5px",display:"flex",flexDirection:"column",gap:"12px"}),this.domNode.append(Fm(this,im,"f")),Ns(Fm(this,sm,"f")).css({display:"flex",flexDirection:"row",gap:"27px"}),Fm(this,sm,"f").append(...["All","None"].map(t=>Fm(this,rm,"f")[t].domNode)),Fm(this,im,"f").append(Fm(this,sm,"f")),Ns(Fm(this,om,"f")).css({display:"flex",flexDirection:"column",gap:"12px"}),Fm(this,im,"f").append(Fm(this,om,"f")),Fm(this,om,"f").style.display="none",Fm(this,nm,"f").caret.pointRight();let e=document.createElement("div");Ns(e).css({display:"flex",flexDirection:"row",gap:"20px"}),e.append(...["Between","Connecting"].map(t=>Fm(this,rm,"f")[t].domNode)),Fm(this,om,"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=>Fm(this,rm,"f")[t].domNode)),Fm(this,om,"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():{}),zm(this,am,new MutationObserver(()=>document.body.contains(this.domNode)?this.refresh():{}),"f"),Fm(this,am,"f").observe(t.drawing.domNode,{childList:!0,characterData:!0,subtree:!0}),this.refresh()}toggle(){this.isCollapsed()?this.expand():this.collapse()}isCollapsed(){return"none"==Fm(this,om,"f").style.display}collapse(){Fm(this,om,"f").style.display="none",Fm(this,nm,"f").caret.pointRight()}expand(){Fm(this,om,"f").style.display="flex",Fm(this,nm,"f").caret.pointDown()}refresh(){let t=[...Fm(this,em,"f").drawing.secondaryBonds],e=new Set(Fm(this,em,"f").selectedSecondaryBonds);0==t.length?(Fm(this,rm,"f").All.disable(),Fm(this,rm,"f").All.tooltip.textContent="There are no secondary bonds in the drawing."):t.every(t=>e.has(t))?(Fm(this,rm,"f").All.disable(),Fm(this,rm,"f").All.tooltip.textContent="All secondary bonds are already selected."):(Fm(this,rm,"f").All.enable(),Fm(this,rm,"f").All.tooltip.textContent="Select all secondary bonds."),0==e.size?(Fm(this,rm,"f").None.disable(),Fm(this,rm,"f").None.tooltip.textContent="No secondary bonds are selected."):(Fm(this,rm,"f").None.enable(),Fm(this,rm,"f").None.tooltip.textContent="Deselect all secondary bonds.");let n=[...Fm(this,em,"f").selectedBases],r=Fm(this,tm,"a",cm);0==n.length?(Fm(this,rm,"f").Between.disable(),Fm(this,rm,"f").Between.tooltip.textContent="No bases are selected."):r.every(t=>e.has(t))?(Fm(this,rm,"f").Between.disable(),Fm(this,rm,"f").Between.tooltip.textContent="All secondary bonds between the selected bases are already selected."):(Fm(this,rm,"f").Between.enable(),Fm(this,rm,"f").Between.tooltip.textContent="Select secondary bonds between the selected bases.");let i=Fm(this,tm,"a",fm);0==n.length?(Fm(this,rm,"f").Connecting.disable(),Fm(this,rm,"f").Connecting.tooltip.textContent="No bases are selected."):i.every(t=>e.has(t))?(Fm(this,rm,"f").Connecting.disable(),Fm(this,rm,"f").Connecting.tooltip.textContent="All secondary bonds connecting the selected bases are already selected."):(Fm(this,rm,"f").Connecting.enable(),Fm(this,rm,"f").Connecting.tooltip.textContent="Select secondary bonds connecting the selected bases."),[["A:U",Fm(this,tm,"a",mm)],["A:T",Fm(this,tm,"a",wm)],["G:C",Fm(this,tm,"a",vm)],["G:U",Fm(this,tm,"a",xm)],["G:T",Fm(this,tm,"a",Nm)]].forEach(([t,n])=>{0==n.length?(Fm(this,rm,"f")[t].disable(),Fm(this,rm,"f")[t].tooltip.textContent=`There are no ${t} base-pairs in the drawing.`):n.every(t=>e.has(t))?(Fm(this,rm,"f")[t].disable(),Fm(this,rm,"f")[t].tooltip.textContent=`All secondary bonds between ${t} base-pairs are already selected.`):(Fm(this,rm,"f")[t].enable(),Fm(this,rm,"f")[t].tooltip.textContent=`Select secondary bonds between ${t} base-pairs.`)})}}em=new WeakMap,nm=new WeakMap,rm=new WeakMap,im=new WeakMap,sm=new WeakMap,om=new WeakMap,am=new WeakMap,tm=new WeakSet,hm=function(){Fm(this,em,"f").addToSelected([...Fm(this,em,"f").drawing.secondaryBonds])},um=function(){Fm(this,em,"f").removeFromSelected([...Fm(this,em,"f").drawing.secondaryBonds])},lm=function(){Fm(this,em,"f").addToSelected(Fm(this,tm,"a",cm))},cm=function(){let t=new Set(Fm(this,em,"f").selectedBases);return[...Fm(this,em,"f").drawing.secondaryBonds].filter(e=>t.has(e.base1)&&t.has(e.base2))},dm=function(){Fm(this,em,"f").addToSelected(Fm(this,tm,"a",fm))},fm=function(){let t=new Set(Fm(this,em,"f").selectedBases);return[...Fm(this,em,"f").drawing.secondaryBonds].filter(e=>t.has(e.base1)||t.has(e.base2))},pm=function(){Fm(this,em,"f").addToSelected(Fm(this,tm,"a",mm))},mm=function(){return[...Fm(this,em,"f").drawing.secondaryBonds].filter($m)},gm=function(){Fm(this,em,"f").addToSelected(Fm(this,tm,"a",wm))},wm=function(){return[...Fm(this,em,"f").drawing.secondaryBonds].filter(Qm)},ym=function(){Fm(this,em,"f").addToSelected(Fm(this,tm,"a",vm))},vm=function(){return[...Fm(this,em,"f").drawing.secondaryBonds].filter(Zm)},bm=function(){Fm(this,em,"f").addToSelected(Fm(this,tm,"a",xm))},xm=function(){return[...Fm(this,em,"f").drawing.secondaryBonds].filter(Jm)},_m=function(){Fm(this,em,"f").addToSelected(Fm(this,tm,"a",Nm))},Nm=function(){return[...Fm(this,em,"f").drawing.secondaryBonds].filter(Km)};class Gm{constructor(t){km.set(this,void 0),this.domNode=document.createElement("div"),Em.set(this,new Ks("Add",()=>this.press())),Sm.set(this,new K),Tm.set(this,new nt("Only add missing secondary bonds",Fm(this,Sm,"f").domNode)),Mm.set(this,void 0),zm(this,km,t,"f"),this.domNode.classList.add(zf.Ol),this.domNode.append(Fm(this,Em,"f").domNode,Fm(this,Tm,"f").domNode),Fm(this,Sm,"f").domNode.checked=!0,Fm(this,Tm,"f").domNode.style.marginLeft="10px",Fm(this,km,"f").selectedBases.addEventListener("change",()=>{!document.body.contains(this.domNode)||this.refresh()}),zm(this,Mm,new MutationObserver(()=>document.body.contains(this.domNode)?this.refresh():{}),"f"),Fm(this,Mm,"f").observe(t.drawing.domNode,{childList:!0,subtree:!0}),Fm(this,Sm,"f").domNode.addEventListener("change",()=>this.refresh())}press(){let t=[...Fm(this,km,"f").drawing.bases],e=[...Fm(this,km,"f").selectedBases];e=(0,Rf.seqSorted)(e,t);let n=(0,Rm.antiParallelPairs)(e),r=[...Fm(this,km,"f").drawing.secondaryBonds],i=(0,Rm.missing)(eg(r),n);0!=n.length&&(Fm(this,Sm,"f").domNode.checked&&0==i.length||(Fm(this,km,"f").pushUndoStack(),Fm(this,Sm,"f").domNode.checked?i.forEach(t=>Fm(this,km,"f").drawing.addSecondaryBond(...t)):n.forEach(t=>Fm(this,km,"f").drawing.addSecondaryBond(...t))))}refresh(){let t=[...Fm(this,km,"f").drawing.bases],e=[...Fm(this,km,"f").selectedBases];e=(0,Rf.seqSorted)(e,t);let n=(0,Rm.antiParallelPairs)(e),r=[...Fm(this,km,"f").drawing.secondaryBonds],i=(0,Rm.missing)(eg(r),n);0==e.length?(Fm(this,Em,"f").disable(),Fm(this,Em,"f").tooltip.textContent="No bases are selected."):1==e.length?(Fm(this,Em,"f").disable(),Fm(this,Em,"f").tooltip.textContent="At least two bases must be selected."):Fm(this,Sm,"f").domNode.checked&&0==i.length?(Fm(this,Em,"f").disable(),Fm(this,Em,"f").tooltip.textContent="There are no missing pairs between the selected bases."):(Fm(this,Em,"f").enable(),Fm(this,Em,"f").tooltip.textContent="Add secondary bonds between the selected bases.")}}km=new WeakMap,Em=new WeakMap,Sm=new WeakMap,Tm=new WeakMap,Mm=new WeakMap;class Hm{constructor(t){Cm.set(this,void 0),Am.set(this,new Ks("Remove",()=>this.press())),zm(this,Cm,t,"f"),Fm(this,Cm,"f").selectedSecondaryBonds.addEventListener("change",()=>{!document.body.contains(this.domNode)||this.refresh()}),this.domNode.style.marginTop="15px"}get domNode(){return Fm(this,Am,"f").domNode}press(){let t=[...Fm(this,Cm,"f").selectedSecondaryBonds];0!=t.length&&(Fm(this,Cm,"f").pushUndoStack(),t.forEach(t=>t.domNode.remove()))}refresh(){0==[...Fm(this,Cm,"f").selectedSecondaryBonds].length?(Fm(this,Am,"f").disable(),Fm(this,Am,"f").tooltip.textContent="No secondary bonds are selected."):(Fm(this,Am,"f").enable(),Fm(this,Am,"f").tooltip.textContent="Remove the selected secondary bonds from the drawing.")}}Cm=new WeakMap,Am=new WeakMap;class Xm{constructor(t){Om.add(this),Wm.set(this,void 0),Pm.set(this,void 0),zm(this,Wm,t,"f");let e=t.selectedSecondaryBonds;zm(this,Pm,new iu(e,t),"f"),this.domNode.style.marginTop="27px",Fm(this,Pm,"f").addEventListener("refresh",()=>Fm(this,Om,"m",jm).call(this)),this.refresh()}get domNode(){return Fm(this,Pm,"f").domNode}refresh(){Fm(this,Pm,"f").refresh()}}Wm=new WeakMap,Pm=new WeakMap,Om=new WeakSet,jm=function(){let t=[...Fm(this,Wm,"f").selectedSecondaryBonds];Fm(this,Pm,"f").buttons.Front.tooltip.textContent=0==t.length?"No secondary bonds are selected.":"Bring the selected secondary bonds to the front.",Fm(this,Pm,"f").buttons.Back.tooltip.textContent=0==t.length?"No secondary bonds are selected.":"Send the selected secondary bonds to the back."};class Ym{constructor(t){Lm.set(this,void 0),Dm.set(this,void 0),Bm.set(this,void 0),Im.set(this,void 0),zm(this,Lm,t,"f");let e=t.selectedSecondaryBonds,n=t.drawing;zm(this,Dm,new Ju("stroke",e,n),"f"),Fm(this,Dm,"f").onBeforeEdit=()=>{(t.undoStack.isEmpty()||t.undoStack.peek()!==Fm(this,Im,"f"))&&(t.pushUndoStack(),zm(this,Im,t.undoStack.peek(),"f"))},e.addEventListener("change",()=>{zm(this,Im,void 0,"f")}),zm(this,Bm,new ht("Stroke Color",Fm(this,Dm,"f").domNode),"f"),Fm(this,Bm,"f").domNode.style.marginTop="12px",Fm(this,Bm,"f").domNode.style.alignSelf="start",this.refresh()}get domNode(){return Fm(this,Bm,"f").domNode}refresh(){Fm(this,Dm,"f").refresh()}}function $m(t){return new Rf.BasePair(t.base1,t.base2).isAU()}function Qm(t){return new Rf.BasePair(t.base1,t.base2).isAT()}function Zm(t){return new Rf.BasePair(t.base1,t.base2).isGC()}function Jm(t){return new Rf.BasePair(t.base1,t.base2).isGU()}function Km(t){return new Rf.BasePair(t.base1,t.base2).isGT()}function tg(t){return[t.base1,t.base2]}function eg(t){return t.map(tg)}Lm=new WeakMap,Dm=new WeakMap,Bm=new WeakMap,Im=new WeakMap;var ng=n(965),rg={};rg.styleTagTransform=v(),rg.setAttributes=m(),rg.insert=f().bind(null,"head"),rg.domAPI=c(),rg.insertStyleElement=w(),u()(ng.Ay,rg),ng.Ay&&ng.Ay.locals&&ng.Ay.locals;var ig,sg,og,ag,hg,ug,lg,cg,dg,fg,pg=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},mg=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 gg{constructor(t){ig.add(this),sg.set(this,void 0),this.domNode=document.createElement("div"),og.set(this,new M("Drawing",()=>this.toggle())),ag.set(this,document.createElement("div")),hg.set(this,void 0),pg(this,sg,t,"f"),this.domNode.classList.add(ng.fS),this.domNode.append(mg(this,og,"f").domNode),mg(this,ag,"f").classList.add(ng.Qs),this.domNode.append(mg(this,ag,"f")),pg(this,hg,new wg(t),"f"),mg(this,ag,"f").append(mg(this,hg,"f").domNode),this.collapse(),this.refresh()}isCollapsed(){return this.domNode.classList.contains(ng.yZ)}collapse(){this.domNode.classList.add(ng.yZ),mg(this,og,"f").caret.pointRight()}expand(){this.domNode.classList.remove(ng.yZ),mg(this,og,"f").caret.pointDown()}toggle(){this.isCollapsed()?this.expand():this.collapse()}refresh(){mg(this,ig,"a",ug).forEach(t=>t.refresh())}}sg=new WeakMap,og=new WeakMap,ag=new WeakMap,hg=new WeakMap,ig=new WeakSet,ug=function(){return[mg(this,hg,"f")]};class wg{constructor(t){lg.set(this,void 0),cg.set(this,void 0),dg.set(this,void 0),pg(this,lg,t,"f"),pg(this,cg,new Lu("data-name",new yg([t.drawing]),t.drawing),"f"),pg(this,dg,new Q("Name",mg(this,cg,"f").domNode),"f"),this.domNode.style.alignSelf="start",mg(this,cg,"f").domNode.style.width="132px",this.refresh()}get domNode(){return mg(this,dg,"f").domNode}refresh(){mg(this,cg,"f").refresh()}}lg=new WeakMap,cg=new WeakMap,dg=new WeakMap;class yg{constructor(t){fg.set(this,void 0),pg(this,fg,[...t],"f")}[(fg=new WeakMap,Symbol.iterator)](){return mg(this,fg,"f").values()}addEventListener(t,e){}}var vg=n(290),bg={};bg.styleTagTransform=v(),bg.setAttributes=m(),bg.insert=f().bind(null,"head"),bg.domAPI=c(),bg.insertStyleElement=w(),u()(vg.A,bg),vg.A&&vg.A.locals&&vg.A.locals;var xg,_g,Ng,kg,Eg,Sg,Tg,Mg,Cg,Ag,Og=n(139),Wg=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},Pg=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 jg{constructor(t){xg.add(this),_g.set(this,void 0),this.domNode=document.createElement("div"),Ng.set(this,void 0),kg.set(this,void 0),Eg.set(this,void 0),Sg.set(this,void 0),Tg.set(this,void 0),Mg.set(this,void 0),Cg.set(this,void 0),Wg(this,_g,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),Wg(this,Ng,new Ss(t),"f"),n.append(Pg(this,Ng,"f").domNode),Wg(this,kg,new Ha(t),"f"),n.append(Pg(this,kg,"f").domNode),Wg(this,Eg,new $c(t),"f"),n.append(Pg(this,Eg,"f").domNode),Wg(this,Sg,new jf(t),"f"),n.append(Pg(this,Sg,"f").domNode),Wg(this,Tg,new Um(t),"f"),n.append(Pg(this,Tg,"f").domNode),Wg(this,Mg,new gg(t),"f"),n.append(Pg(this,Mg,"f").domNode);let r=function(){let t=document.createElement("p");return t.classList.add(vg._),t.textContent="Close",t}();r.addEventListener("click",()=>this.close()),this.domNode.append(r),Wg(this,Cg,new Og.DragTranslater(this.domNode),"f")}appendTo(t){this.refresh(),this.reposition(),t.appendChild(this.domNode)}close(){this.domNode.remove()}refresh(){Pg(this,xg,"a",Ag).forEach(t=>t.refresh())}reposition(){Pg(this,Cg,"f").untranslate()}}_g=new WeakMap,Ng=new WeakMap,kg=new WeakMap,Eg=new WeakMap,Sg=new WeakMap,Tg=new WeakMap,Mg=new WeakMap,Cg=new WeakMap,xg=new WeakSet,Ag=function(){return[Pg(this,Ng,"f"),Pg(this,kg,"f"),Pg(this,Eg,"f"),Pg(this,Sg,"f"),Pg(this,Tg,"f"),Pg(this,Mg,"f")]}})(),r})());
|