@rnacanvas/forms.edit 15.0.0 → 15.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! For license information please see index.js.LICENSE.txt */
|
|
2
|
-
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports["forms.edit"]=e():t["forms.edit"]=e()}(this,()=>(()=>{var t={56:(t,e,n)=>{"use strict";t.exports=function(t){var e=n.nc;e&&t.setAttribute("nonce",e)}},72:t=>{"use strict";var e=[];function n(t){for(var n=-1,r=0;r<e.length;r++)if(e[r].identifier===t){n=r;break}return n}function r(t,r){for(var s={},o=[],a=0;a<t.length;a++){var u=t[a],h=r.base?u[0]+r.base:u[0],l=s[h]||0,c="".concat(h," ").concat(l);s[h]=l+1;var f=n(c),d={css:u[1],media:u[2],sourceMap:u[3],supports:u[4],layer:u[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 u=r(t,i),h=0;h<s.length;h++){var l=n(s[h]);0===e[l].references&&(e[l].updater(),e.splice(l,1))}s=u}}},113:t=>{"use strict";t.exports=function(t,e){if(e.styleSheet)e.styleSheet.cssText=t;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(t))}}},127:function(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 u(t){return null==t}function h(t){return"object"==typeof t&&null!==t}function l(t){return Array.isArray(t)}function c(t){return l(t)&&0==t.length}function f(t){return l(t)&&t.length>0}function d(t){return l(t)&&t.every(n)}function p(t){return d(t)&&t.length>0}function m(t){return l(t)&&t.every(r)}function g(t){return l(t)&&t.every(i)}function y(t){return l(t)&&t.every(a)}function v(t){return y(t)&&t.length>0}return t.r(e),t.d(e,{isArray:()=>l,isEmptyArray:()=>c,isFiniteNumber:()=>r,isFiniteNumbersArray:()=>m,isNonEmptyArray:()=>f,isNonEmptyNumbersArray:()=>p,isNonEmptyStringsArray:()=>v,isNonFiniteNumber:()=>i,isNonFiniteNumbersArray:()=>g,isNonNegativeFiniteNumber:()=>o,isNonNullObject:()=>h,isNullish:()=>u,isNumber:()=>n,isNumbersArray:()=>d,isPositiveFiniteNumber:()=>s,isString:()=>a,isStringsArray:()=>y}),e})()},986:function(t){t.exports=(()=>{"use strict";var t={d:(e,n)=>{for(var r in n)t.o(n,r)&&!t.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:n[r]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r:t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}},e={};function n(t){var e=0;return t.forEach(function(t){return e+=t}),e}function r(t){return n(t)/t.length}function i(t){t.sort(function(t,e){return t-e})}t.r(e),t.d(e,{areWithin:()=>d,average:()=>r,clamp:()=>f,degrees:()=>g,flipAway:()=>w,isBetween:()=>l,isBetweenExclusive:()=>c,isBetweenInclusive:()=>l,max:()=>h,mean:()=>r,median:()=>a,min:()=>u,normalizeAngle:()=>v,radians:()=>y,sortNumbers:()=>i,sortNumbersAscending:()=>i,sortNumbersDescending:()=>p,sortedNumbers:()=>o,sortedNumbersAscending:()=>o,sortedNumbersDescending:()=>m,sum:()=>n});var s=function(t,e,n){if(n||2===arguments.length)for(var r,i=0,s=e.length;i<s;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))};function o(t){var e=s([],t,!0);return i(e),e}function a(t){if(0==t.length)return NaN;var e=o(t);if(e.length%2!=0)return e[Math.floor(e.length/2)];var n=e.length/2,i=n-1;return r([e[n],e[i]])}function u(t){if(0==t.length)return 1/0;var e=t[0];return t.slice(1).forEach(function(t){e=Math.min(e,t)}),e}function h(t){if(0==t.length)return-1/0;var e=t[0];return t.slice(1).forEach(function(t){e=Math.max(e,t)}),e}function l(t,e,n){return t>=e&&t<=n}function c(t,e,n){return t>e&&t<n}function f(t,e,n){return t<e?e:t>n?n:t}function d(t,e,n){return Math.abs(t-e)<=n}function p(t){i(t),t.reverse()}function m(t){var e=o(t);return e.reverse(),e}function g(t){return t*(180/Math.PI)}function y(t){return t*(Math.PI/180)}function v(t,e){void 0===e&&(e=-Math.PI);var n=t-e;return e+((n%=2*Math.PI)>=0?n:n+2*Math.PI)}function w(t,e){var n=(e=v(e,t))-t;return(n<Math.PI/2||n>3*Math.PI/2)&&(t+=Math.PI),t}return e})()}},e={};function n(r){var i=e[r];if(void 0!==i)return i.exports;var s=e[r]={exports:{}};return t[r].call(s.exports,s,s.exports,n),s.exports}n.d=(t,e)=>{for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var r={};return(()=>{"use strict";n.r(r),n.d(r,{Linkers:()=>g,Stems:()=>m,areConflicting:()=>h,areCrossing:()=>f,areEqual:()=>a,areKnotless:()=>c,areStacked:()=>u,basePairs:()=>w,deepCopy:()=>i,knotless:()=>d,mountainPlotTraversal:()=>y,parseDotBracket:()=>v,radializable:()=>p,sorted:()=>o});var t=n(854),e=function(t,e,n){if(n||2===arguments.length)for(var r,i=0,s=e.length;i<s;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))};function i(n){return(0,t.isNumbersArray)(n)?e([],n,!0):n.map(function(t){return e([],t,!0)})}var s=n(986);function o(t){var e=i(t);return e.forEach(s.sortNumbers),e.sort(function(t,e){return t[0]-e[0]}),e}function a(t,e){var n=i(t),r=i(e);return(0,s.sortNumbers)(n),(0,s.sortNumbers)(r),[0,1].every(function(t){return n[t]==r[t]})}function u(t,e){var n=o([t,e]);return n[0][0]==n[1][0]-1&&n[0][1]==n[1][1]+1}function h(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||u(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),u=o;u<=a;u++)i.push(u);e.push(i),n=r,r=t.shift()}return e},t}();function y(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=t[0],r=t[1],i=l(r);if(!c(r))throw new Error("Pseudoknot(s) encountered.");var s=[],o=0;return n.forEach(function(t,e){var n=e+1,r=i[e];null==r?s.push(o):n<r?(s.push(o),o++):(n==r||o--,s.push(o))}),s}function v(t){var e=t.split(""),n=[".","(",")"];e.forEach(function(t){if(!n.includes(t))throw new Error('Unrecognized character in dot-bracket notation: "'.concat(t,'".'))});var r=[],i=[];if(e.forEach(function(t,e){var n=e+1;if("("==t)i.push(n);else if(")"==t){var s=i.pop();if("number"!=typeof s)throw new Error("Unmatched downstream partner(s) in dot-bracket notation.");r.push([s,n])}}),i.length>0)throw new Error("Unmatched upstream partner(s) in dot-bracket notation.");return o(r)}function w(t,e){return e.forEach(function(e){e.forEach(function(e){if(e<1)throw new Error("Sequence positions must be positive.");if(e>t.length)throw new Error("Position out of sequence range.")})}),e.map(function(e){return[t[e[0]-1],t[e[1]-1]]})}})(),r})(),t.exports=e()},986:function(t){t.exports=(()=>{"use strict";var t={d:(e,n)=>{for(var r in n)t.o(n,r)&&!t.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:n[r]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r:t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}},e={};function n(t){var e=0;return t.forEach(function(t){return e+=t}),e}function r(t){return n(t)/t.length}function i(t){t.sort(function(t,e){return t-e})}t.r(e),t.d(e,{areWithin:()=>d,average:()=>r,clamp:()=>f,degrees:()=>y,flipAway:()=>b,isBetween:()=>l,isBetweenExclusive:()=>c,isBetweenInclusive:()=>l,max:()=>h,mean:()=>r,median:()=>a,min:()=>u,normalizeAngle:()=>w,radians:()=>v,round:()=>g,sortNumbers:()=>i,sortNumbersAscending:()=>i,sortNumbersDescending:()=>p,sortedNumbers:()=>o,sortedNumbersAscending:()=>o,sortedNumbersDescending:()=>m,sum:()=>n});var s=function(t,e,n){if(n||2===arguments.length)for(var r,i=0,s=e.length;i<s;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))};function o(t){var e=s([],t,!0);return i(e),e}function a(t){if(0==t.length)return NaN;var e=o(t);if(e.length%2!=0)return e[Math.floor(e.length/2)];var n=e.length/2,i=n-1;return r([e[n],e[i]])}function u(t){if(0==t.length)return 1/0;var e=t[0];return t.slice(1).forEach(function(t){e=Math.min(e,t)}),e}function h(t){if(0==t.length)return-1/0;var e=t[0];return t.slice(1).forEach(function(t){e=Math.max(e,t)}),e}function l(t,e,n){return t>=e&&t<=n}function c(t,e,n){return t>e&&t<n}function f(t,e,n){return t<e?e:t>n?n:t}function d(t,e,n){return Math.abs(t-e)<=n}function p(t){i(t),t.reverse()}function m(t){var e=o(t);return e.reverse(),e}function g(t,e){return Number.parseFloat(t.toFixed(null!=e?e:0))}function y(t){return t*(180/Math.PI)}function v(t){return t*(Math.PI/180)}function w(t,e){void 0===e&&(e=-Math.PI);var n=t-e;return e+((n%=2*Math.PI)>=0?n:n+2*Math.PI)}function b(t,e){var n=(e=w(e,t))-t;return(n<Math.PI/2||n>3*Math.PI/2)&&(t+=Math.PI),t}return e})()}},e={};function n(r){var i=e[r];if(void 0!==i)return i.exports;var s=e[r]={exports:{}};return t[r].call(s.exports,s,s.exports,n),s.exports}n.d=(t,e)=>{for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var r={};return(()=>{"use strict";function t(t,e){return t[0]===e[0]&&t[1]===e[1]||t[0]===e[1]&&t[1]===e[0]}function e(t,e){if(!e.includes(t))throw new Error("The given base is not present in the provided base-pair.");return t===e[0]?e[1]:e[0]}n.r(r),n.d(r,{FirstPairedBase:()=>s,LastPairedBase:()=>a,LeadingDanglingBases:()=>u,Linkers:()=>f,PositionPairs:()=>i,Stems:()=>c,TrailingDanglingBases:()=>h,antiParallelPairs:()=>w,areEqual:()=>t,consecutivePairs:()=>y,knotless:()=>d,missing:()=>b,mountainPlotTraversal:()=>m,other:()=>e,parallelPairs:()=>v,parseDotBracket:()=>g,radializable:()=>p});class i{constructor(...t){this.targetStructure=t}get(){let t=this.targetStructure[0];return this.targetStructure[1].map(e=>[t.indexOf(e[0])+1,t.indexOf(e[1])+1])}}class s{constructor(...t){this.targetStructure=t}get(){let t=this.targetStructure[0],e=this.targetStructure[1];if(0==e.length)throw new Error("There are no paired bases.");let n=e.flat(),r=t.findIndex(t=>n.includes(t));if(r<0)throw new Error("No paired bases present in sequence.");return t[r]}}var o=n(986);class a{constructor(...t){this.targetStructure=t}get(){let t=this.targetStructure[0],e=this.targetStructure[1];if(0==e.length)throw new Error("There are no paired bases.");let n=e.flat().map(e=>t.indexOf(e));if((0,o.max)(n)<0)throw new Error("No paired bases present in sequence.");return t[(0,o.max)(n)]}}class 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 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 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 a(...this.targetStructure).get(),n=t.indexOf(e);if(n<0)throw new Error("No paired bases present in sequence.");return t.slice(n+1)}}var l=n(369);class c{constructor(...t){this.targetStructure=t}get(){let t=this.targetStructure[0],e=new i(...this.targetStructure).get();return new l.Stems(t,e).get().map(e=>e.map(e=>[t[e[0]-1],t[e[1]-1]]))}}class f{constructor(...t){this.targetStructure=t}get(){let t=this.targetStructure[0],e=new i(...this.targetStructure).get();return new l.Linkers(t,e).get().map(e=>e.map(e=>t[e-1]))}}function d(...t){let[e,n]=t,r=new i(...t).get();(0,l.areKnotless)(r)||(r=(0,l.knotless)(r));let s=r.map(t=>[e[t[0]-1],e[t[1]-1]]);return[[...e],s]}function p(...t){let[e,n]=t,r=new i(...t).get();return[[...e],(0,l.radializable)(r).map(([t,n])=>[e[t-1],e[n-1]])]}function m(...t){let[e,n]=t,r=new i(...t).get();return(0,l.mountainPlotTraversal)(e,r)}function g(t,e){if(e.length>t.length)throw new Error("Dot-bracket notation is longer than the sequence.");return[...(0,l.parseDotBracket)(e)].map(e=>{let n=e[0],r=e[1];return[t[n-1],t[r-1]]})}function y(t){return t.length<2?[]:t.slice(0,-1).map((e,n)=>[t[n],t[n+1]])}function v(t){let e=[],n=Math.floor(t.length/2)-1,r=Math.ceil(t.length/2);for(let i=0;i<=n;i++){let n=t[i],s=t[r+i];e.push([n,s])}return e}function w(t){let e=[];for(let n=0;n<Math.floor(t.length/2);n++){let r=t[n],i=t[t.length-n-1];e.push([r,i])}return e}function b(e,n){return n.filter(n=>!e.find(e=>t(n,e))).map(t=>[...t])}})(),r})(),t.exports=e()},139:function(t){var e;e=()=>(()=>{"use strict";var t={826:(t,e,n)=>{n.d(e,{A:()=>u,y:()=>a});var r=n(601),i=n.n(r),s=n(314),o=n.n(s)()(i());o.push([t.id,"._xow9qroX8E0n35EgMyS {\n cursor: grab;\n}\n\n._xow9qroX8E0n35EgMyS:active {\n cursor: grabbing;\n}\n",""]);var a="_xow9qroX8E0n35EgMyS";const u=o},314:t=>{t.exports=function(t){var e=[];return e.toString=function(){return this.map(function(e){var n="",r=void 0!==e[5];return e[4]&&(n+="@supports (".concat(e[4],") {")),e[2]&&(n+="@media ".concat(e[2]," {")),r&&(n+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),n+=t(e),r&&(n+="}"),e[2]&&(n+="}"),e[4]&&(n+="}"),n}).join("")},e.i=function(t,n,r,i,s){"string"==typeof t&&(t=[[null,t,void 0]]);var o={};if(r)for(var a=0;a<this.length;a++){var u=this[a][0];null!=u&&(o[u]=!0)}for(var h=0;h<t.length;h++){var l=[].concat(t[h]);r&&o[l[0]]||(void 0!==s&&(void 0===l[5]||(l[1]="@layer".concat(l[5].length>0?" ".concat(l[5]):""," {").concat(l[1],"}")),l[5]=s),n&&(l[2]?(l[1]="@media ".concat(l[2]," {").concat(l[1],"}"),l[2]=n):l[2]=n),i&&(l[4]?(l[1]="@supports (".concat(l[4],") {").concat(l[1],"}"),l[4]=i):l[4]="".concat(i)),e.push(l))}},e}},601:t=>{t.exports=function(t){return t[1]}},72:t=>{var e=[];function n(t){for(var n=-1,r=0;r<e.length;r++)if(e[r].identifier===t){n=r;break}return n}function r(t,r){for(var s={},o=[],a=0;a<t.length;a++){var u=t[a],h=r.base?u[0]+r.base:u[0],l=s[h]||0,c="".concat(h," ").concat(l);s[h]=l+1;var f=n(c),d={css:u[1],media:u[2],sourceMap:u[3],supports:u[4],layer:u[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 u=r(t,i),h=0;h<s.length;h++){var l=n(s[h]);0===e[l].references&&(e[l].updater(),e.splice(l,1))}s=u}}},659:t=>{var e={};t.exports=function(t,n){var r=function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(t){n=null}e[t]=n}return e[t]}(t);if(!r)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");r.appendChild(n)}},540:t=>{t.exports=function(t){var e=document.createElement("style");return t.setAttributes(e,t.attributes),t.insert(e,t.options),e}},56:(t,e,n)=>{t.exports=function(t){var e=n.nc;e&&t.setAttribute("nonce",e)}},825:t=>{t.exports=function(t){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var e=t.insertStyleElement(t);return{update:function(n){!function(t,e,n){var r="";n.supports&&(r+="@supports (".concat(n.supports,") {")),n.media&&(r+="@media ".concat(n.media," {"));var i=void 0!==n.layer;i&&(r+="@layer".concat(n.layer.length>0?" ".concat(n.layer):""," {")),r+=n.css,i&&(r+="}"),n.media&&(r+="}"),n.supports&&(r+="}");var s=n.sourceMap;s&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(s))))," */")),e.styleTagTransform(r,t,e.options)}(e,t,n)},remove:function(){!function(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t)}(e)}}}},113:t=>{t.exports=function(t,e){if(e.styleSheet)e.styleSheet.cssText=t;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(t))}}}},e={};function n(r){var i=e[r];if(void 0!==i)return i.exports;var s=e[r]={id:r,exports:{}};return t[r](s,s.exports,n),s.exports}n.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.d=(t,e)=>{for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.nc=void 0;var r={};n.r(r),n.d(r,{DragTranslater:()=>v});var i=n(72),s=n.n(i),o=n(825),a=n.n(o),u=n(659),h=n.n(u),l=n(56),c=n.n(l),f=n(540),d=n.n(f),p=n(113),m=n.n(p),g=n(826),y={};y.styleTagTransform=m(),y.setAttributes=c(),y.insert=h().bind(null,"head"),y.domAPI=a(),y.insertStyleElement=d(),s()(g.A,y),g.A&&g.A.locals&&g.A.locals;class v{constructor(t){this.targetForm=t,this.mouseIsDown=!1,this.interactionDepth="shallow",window.addEventListener("mousedown",t=>this.handleMouseDown(t)),window.addEventListener("mousemove",t=>this.handleMouseMove(t)),window.addEventListener("mouseup",t=>this.handleMouseUp(t)),t.addEventListener("mouseover",e=>{e.target!==t||t.classList.add(g.y)}),t.addEventListener("mouseout",e=>{e.target!==t||t.classList.remove(g.y)})}get currentTranslation(){let t=this.targetForm.getBoundingClientRect(),e=t.x,n=t.y,r=this.targetForm.style.translate;this.targetForm.style.translate="0px 0px";let i=this.targetForm.getBoundingClientRect(),s=i.x,o=i.y;return this.targetForm.style.translate=r,{x:e-s,y:n-o}}set currentTranslation(t){this.targetForm.style.translate=`${t.x}px ${t.y}px`}untranslate(){this.targetForm.style.translate="0px 0px"}handleMouseDown(t){this.lastMouseDown=t,this.mouseIsDown=!0}handleMouseMove(t){if(!this.mouseIsDown)return;if(!this.lastMouseDown)return;if(!(this.lastMouseDown.target instanceof Node))return;if("shallow"==this.interactionDepth){if(this.lastMouseDown.target!==this.targetForm)return}else if(!this.targetForm.contains(this.lastMouseDown.target))return;let e=this.currentTranslation;this.currentTranslation={x:e.x+t.movementX,y:e.y+t.movementY}}handleMouseUp(t){this.mouseIsDown=!1}}return r})(),t.exports=e()},169:function(t){t.exports=(()=>{var t={986:function(t){t.exports=(()=>{"use strict";var t={d:(e,n)=>{for(var r in n)t.o(n,r)&&!t.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:n[r]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r:t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}},e={};function n(t){var e=0;return t.forEach(function(t){return e+=t}),e}function r(t){return n(t)/t.length}function i(t){t.sort(function(t,e){return t-e})}t.r(e),t.d(e,{areWithin:()=>d,average:()=>r,clamp:()=>f,degrees:()=>y,flipAway:()=>b,isBetween:()=>l,isBetweenExclusive:()=>c,isBetweenInclusive:()=>l,max:()=>h,mean:()=>r,median:()=>a,min:()=>u,normalizeAngle:()=>w,radians:()=>v,round:()=>g,sortNumbers:()=>i,sortNumbersAscending:()=>i,sortNumbersDescending:()=>p,sortedNumbers:()=>o,sortedNumbersAscending:()=>o,sortedNumbersDescending:()=>m,sum:()=>n});var s=function(t,e,n){if(n||2===arguments.length)for(var r,i=0,s=e.length;i<s;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))};function o(t){var e=s([],t,!0);return i(e),e}function a(t){if(0==t.length)return NaN;var e=o(t);if(e.length%2!=0)return e[Math.floor(e.length/2)];var n=e.length/2,i=n-1;return r([e[n],e[i]])}function u(t){if(0==t.length)return 1/0;var e=t[0];return t.slice(1).forEach(function(t){e=Math.min(e,t)}),e}function h(t){if(0==t.length)return-1/0;var e=t[0];return t.slice(1).forEach(function(t){e=Math.max(e,t)}),e}function l(t,e,n){return t>=e&&t<=n}function c(t,e,n){return t>e&&t<n}function f(t,e,n){return t<e?e:t>n?n:t}function d(t,e,n){return Math.abs(t-e)<=n}function p(t){i(t),t.reverse()}function m(t){var e=o(t);return e.reverse(),e}function g(t,e){return Number.parseFloat(t.toFixed(null!=e?e:0))}function y(t){return t*(180/Math.PI)}function v(t){return t*(Math.PI/180)}function w(t,e){void 0===e&&(e=-Math.PI);var n=t-e;return e+((n%=2*Math.PI)>=0?n:n+2*Math.PI)}function b(t,e){var n=(e=w(e,t))-t;return(n<Math.PI/2||n>3*Math.PI/2)&&(t+=Math.PI),t}return e})()}},e={};function n(r){var i=e[r];if(void 0!==i)return i.exports;var s=e[r]={exports:{}};return t[r].call(s.exports,s,s.exports,n),s.exports}n.d=(t,e)=>{for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var r={};return(()=>{"use strict";function t(t){if(0==t.length)throw new Error("The array of values is empty.");if(1==new Set(t).size)return t[0];throw new Error("Not all values are the same.")}n.r(r),n.d(r,{consensusNumber:()=>i,consensusValue:()=>t,mostCommonValue:()=>o});var e=n(986);function i(n,r){return t(void 0===r?n:n.map(t=>(0,e.round)(t,r)))}class s{static of(t){return{in:e=>{let n=new Set([t]);return e.filter(t=>n.has(t))}}}}function o(t){if(0==t.length)throw new Error("The array of values is empty.");let n=[...new Set(t)],r=n.map(e=>s.of(e).in(t).length),i=(0,e.max)(r),o=n.findIndex(e=>s.of(e).in(t).length==i);if(o<0)throw new Error("Unable to find the most common value.");return n[o]}})(),r})()},290:(t,e,n)=>{"use strict";n.d(e,{A:()=>u,_:()=>a});var r=n(601),i=n.n(r),s=n(314),o=n.n(s)()(i());o.push([t.id,'.kcto2iumhdvv3MluNmLw {\n position: absolute;\n top: 13px;\n right: 17px;\n\n margin: 0px;\n\n border: none;\n outline: none;\n\n padding: 3px 12px;\n border-radius: 3px;\n\n font-family: "Open Sans", sans-serif;\n font-size: 16px;\n font-weight: 600;\n font-style: normal;\n color: #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 u=o},314:t=>{"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map(function(e){var n="",r=void 0!==e[5];return e[4]&&(n+="@supports (".concat(e[4],") {")),e[2]&&(n+="@media ".concat(e[2]," {")),r&&(n+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),n+=t(e),r&&(n+="}"),e[2]&&(n+="}"),e[4]&&(n+="}"),n}).join("")},e.i=function(t,n,r,i,s){"string"==typeof t&&(t=[[null,t,void 0]]);var o={};if(r)for(var a=0;a<this.length;a++){var u=this[a][0];null!=u&&(o[u]=!0)}for(var h=0;h<t.length;h++){var l=[].concat(t[h]);r&&o[l[0]]||(void 0!==s&&(void 0===l[5]||(l[1]="@layer".concat(l[5].length>0?" ".concat(l[5]):""," {").concat(l[1],"}")),l[5]=s),n&&(l[2]?(l[1]="@media ".concat(l[2]," {").concat(l[1],"}"),l[2]=n):l[2]=n),i&&(l[4]?(l[1]="@supports (".concat(l[4],") {").concat(l[1],"}"),l[4]=i):l[4]="".concat(i)),e.push(l))}},e}},358:function(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 u(t){return null==t}function h(t){return"object"==typeof t&&null!==t}function l(t){return Array.isArray(t)}function c(t){return l(t)&&0==t.length}function f(t){return l(t)&&t.length>0}function d(t){return l(t)&&t.every(n)}function p(t){return d(t)&&t.length>0}function m(t){return l(t)&&t.every(r)}function g(t){return l(t)&&t.every(i)}function y(t){return l(t)&&t.every(a)}function v(t){return y(t)&&t.length>0}return t.r(e),t.d(e,{isArray:()=>l,isEmptyArray:()=>c,isFiniteNumber:()=>r,isFiniteNumbersArray:()=>m,isNonEmptyArray:()=>f,isNonEmptyNumbersArray:()=>p,isNonEmptyStringsArray:()=>v,isNonFiniteNumber:()=>i,isNonFiniteNumbersArray:()=>g,isNonNegativeFiniteNumber:()=>o,isNonNullObject:()=>h,isNullish:()=>u,isNumber:()=>n,isNumbersArray:()=>d,isPositiveFiniteNumber:()=>s,isString:()=>a,isStringsArray:()=>y}),e})()}},e={};function n(r){var i=e[r];if(void 0!==i)return i.exports;var s=e[r]={exports:{}};return t[r].call(s.exports,s,s.exports,n),s.exports}n.d=(t,e)=>{for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var r={};return(()=>{"use strict";function t(t,e){for(let[n,r]of Object.entries(e))t.setAttribute(n,r)}n.r(r),n.d(r,{CoordinateSystem:()=>c,HorizontalClientScaling:()=>d,InnerXML:()=>w,OuterXML:()=>_,Scaling:()=>f,VerticalClientScaling:()=>p,assignUUID:()=>l,bringToFront:()=>m,isSVGGraphicsElement:()=>N,isSVGGraphicsElementsArray:()=>S,sendToBack:()=>g,setAttributes:()=>t});const e={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};var i,s=new Uint8Array(16);function o(){if(!i&&!(i="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return i(s)}for(var a=[],u=0;u<256;++u)a.push((u+256).toString(16).slice(1));const h=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-"+h()}class c{constructor(t){this.targetSVGDoc=t}get width(){return this.targetSVGDoc.viewBox.baseVal.width}get height(){return this.targetSVGDoc.viewBox.baseVal.height}get minX(){return this.targetSVGDoc.viewBox.baseVal.x}get maxX(){return this.minX+this.width}get minY(){return this.targetSVGDoc.viewBox.baseVal.y}get maxY(){return this.minY+this.height}get horizontalScaling(){return this.targetSVGDoc.width.baseVal.value/this.width}get verticalScaling(){return this.targetSVGDoc.height.baseVal.value/this.height}setScaling(t){this.targetSVGDoc.setAttribute("width",""+t*this.width),this.targetSVGDoc.setAttribute("height",""+t*this.height)}get clientWidth(){return this.targetSVGDoc.getBoundingClientRect().width}get clientHeight(){return this.targetSVGDoc.getBoundingClientRect().height}get horizontalClientScaling(){return this.clientWidth/this.width}get verticalClientScaling(){return this.clientHeight/this.height}get minClientX(){return this.targetSVGDoc.getBoundingClientRect().x}get minClientY(){return this.targetSVGDoc.getBoundingClientRect().y}fromClientX(t){return this.minX+(t-this.minClientX)/this.horizontalClientScaling}fromClientY(t){return this.minY+(t-this.minClientY)/this.verticalClientScaling}fromClientCoordinates(t,e){return[this.fromClientX(t),this.fromClientY(e)]}fromClientPoint(t){return{x:this.fromClientX(t.x),y:this.fromClientY(t.y)}}toClientX(t){return this.minClientX+this.horizontalClientScaling*(t-this.minX)}toClientY(t){return this.minClientY+this.verticalClientScaling*(t-this.minY)}toClientCoordinates(t,e){return[this.toClientX(t),this.toClientY(e)]}toClientPoint(t){return{x:this.toClientX(t.x),y:this.toClientY(t.y)}}}class f{constructor(t){this.targetSVGDoc=t}set(t){let e=this.targetSVGDoc.viewBox.baseVal;this.targetSVGDoc.setAttribute("width",t*e.width+"px"),this.targetSVGDoc.setAttribute("height",t*e.height+"px")}}class d{constructor(t){this.targetSVGDoc=t}get(){let t=this.targetSVGDoc.getBoundingClientRect(),e=this.targetSVGDoc.viewBox.baseVal;return t.width/e.width}}class p{constructor(t){this.targetSVGDoc=t}get(){let t=this.targetSVGDoc.getBoundingClientRect(),e=this.targetSVGDoc.viewBox.baseVal;return t.height/e.height}}function m(t){let e=t.parentNode;e&&e.appendChild(t)}function g(t){let e=t.parentNode;e&&e.prepend(t)}var y,v=function(t,e,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!r:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(t):r?r.value:e.get(t)};class w{constructor(t){y.set(this,void 0),function(t,e,n){if("function"==typeof e||!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");e.set(t,n)}(this,y,t)}toString(){return v(this,y,"f").innerHTML}set(t){v(this,y,"f").innerHTML=t}}y=new WeakMap;var b,x=function(t,e,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!r:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(t):r?r.value:e.get(t)};class _{constructor(t){b.set(this,void 0),function(t,e,n){if("function"==typeof e||!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");e.set(t,n)}(this,b,t)}toString(){return x(this,b,"f").outerHTML}set(t){let e=document.createElementNS("http://www.w3.org/2000/svg","svg");if(e.style.height="0px",document.body.append(e),e.innerHTML=t,!e.firstElementChild)throw new Error("Outer XML must encode an SVG element.");if(e.childNodes.length>1)throw new Error("Outer XML cannot encode multiple DOM nodes.");if(e.firstElementChild.tagName.toLowerCase()!=x(this,b,"f").tagName.toLowerCase())throw new Error("Outer XML must specify an SVG element with the same tag name as the target SVG element.");[...x(this,b,"f").attributes].forEach(t=>x(this,b,"f").removeAttribute(t.name)),[...e.firstElementChild.attributes].forEach(t=>x(this,b,"f").setAttribute(t.name,t.value)),x(this,b,"f").innerHTML=e.firstElementChild.innerHTML,e.remove()}}function N(t){return t instanceof SVGGraphicsElement}b=new WeakMap;var k=n(854);function S(t){return(0,k.isArray)(t)&&t.every(N)}})(),r})(),t.exports=e()},731:function(t){var e;e=()=>(()=>{"use strict";var t={d:(e,n)=>{for(var r in n)t.o(n,r)&&!t.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:n[r]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r:t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}},e={};t.r(e),t.d(e,{CenterPoint:()=>h});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},u=function(t,e,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!r:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(t):r?r.value:e.get(t)};class h{constructor(t){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(()=>u(this,n,"m",o).call(this,"move")),"f"),u(this,s,"f").observe(t,{attributes:!0,childList:!0,characterData:!0,subtree:!0})}get x(){let t=u(this,r,"f").getBBox();return t.x+t.width/2}set x(t){let e=this.x,n=[...u(this,r,"f").x.baseVal].map(t=>t.value);0!=n.length||n.push(0),n=n.map(n=>n+(t-e)),u(this,r,"f").setAttribute("x",n.join(", "))}get y(){let t=u(this,r,"f").getBBox();return t.y+t.height/2}set y(t){let e=this.y,n=[...u(this,r,"f").y.baseVal].map(t=>t.value);0!=n.length||n.push(0),n=n.map(n=>n+(t-e)),u(this,r,"f").setAttribute("y",n.join(", "))}addEventListener(t,e){u(this,i,"f")[t].push(e)}removeEventListener(t,e){u(this,i,"f")[t]=u(this,i,"f")[t].filter(t=>t!==e)}}return r=new WeakMap,i=new WeakMap,s=new WeakMap,n=new WeakSet,o=function(t){u(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 u(t){return null==t}function h(t){return"object"==typeof t&&null!==t}function l(t){return Array.isArray(t)}function c(t){return l(t)&&0==t.length}function f(t){return l(t)&&t.length>0}function d(t){return l(t)&&t.every(n)}function p(t){return d(t)&&t.length>0}function m(t){return l(t)&&t.every(r)}function g(t){return l(t)&&t.every(i)}function y(t){return l(t)&&t.every(a)}function v(t){return y(t)&&t.length>0}return t.r(e),t.d(e,{isArray:()=>l,isEmptyArray:()=>c,isFiniteNumber:()=>r,isFiniteNumbersArray:()=>m,isNonEmptyArray:()=>f,isNonEmptyNumbersArray:()=>p,isNonEmptyStringsArray:()=>v,isNonFiniteNumber:()=>i,isNonFiniteNumbersArray:()=>g,isNonNegativeFiniteNumber:()=>o,isNonNullObject:()=>h,isNullish:()=>u,isNumber:()=>n,isNumbersArray:()=>d,isPositiveFiniteNumber:()=>s,isString:()=>a,isStringsArray:()=>y}),e})()},986:function(t){t.exports=(()=>{"use strict";var t={d:(e,n)=>{for(var r in n)t.o(n,r)&&!t.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:n[r]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r:t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}},e={};function n(t){var e=0;return t.forEach(function(t){return e+=t}),e}function r(t){return n(t)/t.length}function i(t){t.sort(function(t,e){return t-e})}t.r(e),t.d(e,{areWithin:()=>d,average:()=>r,clamp:()=>f,degrees:()=>g,flipAway:()=>w,isBetween:()=>l,isBetweenExclusive:()=>c,isBetweenInclusive:()=>l,max:()=>h,mean:()=>r,median:()=>a,min:()=>u,normalizeAngle:()=>v,radians:()=>y,sortNumbers:()=>i,sortNumbersAscending:()=>i,sortNumbersDescending:()=>p,sortedNumbers:()=>o,sortedNumbersAscending:()=>o,sortedNumbersDescending:()=>m,sum:()=>n});var s=function(t,e,n){if(n||2===arguments.length)for(var r,i=0,s=e.length;i<s;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))};function o(t){var e=s([],t,!0);return i(e),e}function a(t){if(0==t.length)return NaN;var e=o(t);if(e.length%2!=0)return e[Math.floor(e.length/2)];var n=e.length/2,i=n-1;return r([e[n],e[i]])}function u(t){if(0==t.length)return 1/0;var e=t[0];return t.slice(1).forEach(function(t){e=Math.min(e,t)}),e}function h(t){if(0==t.length)return-1/0;var e=t[0];return t.slice(1).forEach(function(t){e=Math.max(e,t)}),e}function l(t,e,n){return t>=e&&t<=n}function c(t,e,n){return t>e&&t<n}function f(t,e,n){return t<e?e:t>n?n:t}function d(t,e,n){return Math.abs(t-e)<=n}function p(t){i(t),t.reverse()}function m(t){var e=o(t);return e.reverse(),e}function g(t){return t*(180/Math.PI)}function y(t){return t*(Math.PI/180)}function v(t,e){void 0===e&&(e=-Math.PI);var n=t-e;return e+((n%=2*Math.PI)>=0?n:n+2*Math.PI)}function w(t,e){var n=(e=v(e,t))-t;return(n<Math.PI/2||n>3*Math.PI/2)&&(t+=Math.PI),t}return e})()}},e={};function n(r){var i=e[r];if(void 0!==i)return i.exports;var s=e[r]={exports:{}};return t[r].call(s.exports,s,s.exports,n),s.exports}n.d=(t,e)=>{for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var r={};return(()=>{"use strict";n.r(r),n.d(r,{BasePair:()=>Pn,Nucleobase:()=>Wn,seqSorted:()=>Dn});var t={};n.r(t),n.d(t,{cx:()=>Dt,cy:()=>Bt,height:()=>Rt,rx:()=>Lt,ry:()=>jt,width:()=>It,x:()=>Wt,y:()=>Pt});var e={};n.r(e),n.d(e,{from:()=>Ut,to:()=>Vt});var i={};n.r(i),n.d(i,{MorphArray:()=>Qt,height:()=>te,width:()=>Kt,x:()=>Zt,y:()=>Jt});var s={};n.r(s),n.d(s,{array:()=>Ae,clear:()=>Ee,move:()=>Te,plot:()=>Oe,size:()=>Le});var o={};n.r(o),n.d(o,{amove:()=>an,ax:()=>sn,ay:()=>on,build:()=>un,center:()=>rn,cx:()=>en,cy:()=>nn,length:()=>Ze,move:()=>tn,plain:()=>Qe,x:()=>Je,y:()=>Ke});var a={};n.r(a),n.d(a,{dmove:()=>pn,dx:()=>mn,dy:()=>gn,height:()=>yn,move:()=>vn,size:()=>wn,width:()=>bn,x:()=>xn,y:()=>_n});const u={},h=[];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)),u[t]=Object.assign(u[t]||{},e);else for(const e in t)l(e,t[e])}function c(t){return u[t]||{}}function f(t){h.push(...t)}function d(t,e){let n;const r=t.length,i=[];for(n=0;n<r;n++)i.push(e(t[n]));return i}function p(t){return t%360*Math.PI/180}function m(t){return t.charAt(0).toUpperCase()+t.slice(1)}function g(t,e,n,r){return null!=e&&null!=n||(r=r||t.bbox(),null==e?e=r.width/r.height*n:null==n&&(n=r.height/r.width*e)),{width:e,height:n}}function y(t,e){const n=t.origin;let r=null!=t.ox?t.ox:null!=t.originX?t.originX:"center",i=null!=t.oy?t.oy:null!=t.originY?t.originY:"center";null!=n&&([r,i]=Array.isArray(n)?n:"object"==typeof n?[n.x,n.y]:[n,n]);const s="string"==typeof r,o="string"==typeof i;if(s||o){const{height:t,width:n,x:a,y:u}=e.bbox();s&&(r=r.includes("left")?a:r.includes("right")?a+n:a+n/2),o&&(i=i.includes("top")?u:i.includes("bottom")?u+t:u+t/2)}return[r,i]}const v=new Set(["desc","metadata","title"]),w=t=>v.has(t.nodeName),b=(t,e,n={})=>{const r={...e};for(const t in r)r[t].valueOf()===n[t]&&delete r[t];Object.keys(r).length?t.node.setAttribute("data-svgjs",JSON.stringify(r)):(t.node.removeAttribute("data-svgjs"),t.node.removeAttribute("svgjs:data"))},x="http://www.w3.org/2000/svg",_="http://www.w3.org/2000/xmlns/",N="http://www.w3.org/1999/xlink",k={window:"undefined"==typeof window?null:window,document:"undefined"==typeof document?null:document};class S{}const M={},C="___SYMBOL___ROOT___";function A(t,e=x){return k.document.createElementNS(e,t)}function E(t,e=!1){if(t instanceof S)return t;if("object"==typeof t)return L(t);if(null==t)return new M[C];if("string"==typeof t&&"<"!==t.charAt(0))return L(k.document.querySelector(t));const n=e?k.document.createElement("div"):A("svg");return n.innerHTML=t,t=L(n.firstChild),n.removeChild(n.firstChild),t}function T(t,e){return e&&(e instanceof k.window.Node||e.ownerDocument&&e instanceof e.ownerDocument.defaultView.Node)?e:A(t)}function O(t){if(!t)return null;if(t.instance instanceof S)return t.instance;if("#document-fragment"===t.nodeName)return new M.Fragment(t);let e=m(t.nodeName||"Dom");return"LinearGradient"===e||"RadialGradient"===e?e="Gradient":M[e]||(e="Dom"),new M[e](t)}let L=O;function j(t,e=t.name,n=!1){return M[e]=t,n&&(M[C]=t),f(Object.getOwnPropertyNames(t.prototype)),t}let W=1e3;function P(t){return"Svgjs"+m(t)+W++}function D(t){for(let e=t.children.length-1;e>=0;e--)D(t.children[e]);return t.id?(t.id=P(t.nodeName),t):t}function B(t,e){let n,r;for(r=(t=Array.isArray(t)?t:[t]).length-1;r>=0;r--)for(n in e)t[r].prototype[n]=e[n]}function I(t){return function(...e){const n=e[e.length-1];return!n||n.constructor!==Object||n instanceof Array?t.apply(this,e):t.apply(this,e.slice(0,-1)).attr(n)}}l("Dom",{siblings:function(){return this.parent().children()},position:function(){return this.parent().index(this)},next:function(){return this.siblings()[this.position()+1]},prev:function(){return this.siblings()[this.position()-1]},forward:function(){const t=this.position();return this.parent().add(this.remove(),t+1),this},backward:function(){const t=this.position();return this.parent().add(this.remove(),t?t-1:0),this},front:function(){return this.parent().add(this.remove()),this},back:function(){return this.parent().add(this.remove(),0),this},before:function(t){(t=E(t)).remove();const e=this.position();return this.parent().add(t,e),this},after:function(t){(t=E(t)).remove();const e=this.position();return this.parent().add(t,e+1),this},insertBefore:function(t){return(t=E(t)).before(this),this},insertAfter:function(t){return(t=E(t)).after(this),this}});const R=/^([+-]?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?)([a-z%]*)$/i,z=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i,F=/rgb\((\d+),(\d+),(\d+)\)/,q=/(#[a-z_][a-z0-9\-_]*)/i,U=/\)\s*,?\s*/,V=/\s/g,G=/^#[a-f0-9]{3}$|^#[a-f0-9]{6}$/i,H=/^rgb\(/,X=/^(\s+)?$/,Y=/^[+-]?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,$=/\.(jpg|jpeg|png|gif|svg)(\?[^=]+.*)?/i,Q=/[\s,]+/,Z=/[MLHVCSQTAZ]/i;function J(t){const e=Math.round(t),n=Math.max(0,Math.min(255,e)).toString(16);return 1===n.length?"0"+n:n}function K(t,e){for(let n=e.length;n--;)if(null==t[e[n]])return!1;return!0}function tt(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+6*(e-t)*n:n<.5?e:n<2/3?t+(e-t)*(2/3-n)*6:t}l("Dom",{classes:function(){const t=this.attr("class");return null==t?[]:t.trim().split(Q)},hasClass:function(t){return-1!==this.classes().indexOf(t)},addClass:function(t){if(!this.hasClass(t)){const e=this.classes();e.push(t),this.attr("class",e.join(" "))}return this},removeClass:function(t){return this.hasClass(t)&&this.attr("class",this.classes().filter(function(e){return e!==t}).join(" ")),this},toggleClass:function(t){return this.hasClass(t)?this.removeClass(t):this.addClass(t)}}),l("Dom",{css:function(t,e){const n={};if(0===arguments.length)return this.node.style.cssText.split(/\s*;\s*/).filter(function(t){return!!t.length}).forEach(function(t){const e=t.split(/\s*:\s*/);n[e[0]]=e[1]}),n;if(arguments.length<2){if(Array.isArray(t)){for(const e of t){const t=e;n[e]=this.node.style.getPropertyValue(t)}return n}if("string"==typeof t)return this.node.style.getPropertyValue(t);if("object"==typeof t)for(const e in t)this.node.style.setProperty(e,null==t[e]||X.test(t[e])?"":t[e])}return 2===arguments.length&&this.node.style.setProperty(t,null==e||X.test(e)?"":e),this},show:function(){return this.css("display","")},hide:function(){return this.css("display","none")},visible:function(){return"none"!==this.css("display")}}),l("Dom",{data:function(t,e,n){if(null==t)return this.data(d(function(t){let e;const n=t.length,r=[];for(e=0;e<n;e++)0===t[e].nodeName.indexOf("data-")&&r.push(t[e]);return r}(this.node.attributes),t=>t.nodeName.slice(5)));if(t instanceof Array){const e={};for(const n of t)e[n]=this.data(n);return e}if("object"==typeof t)for(e in t)this.data(e,t[e]);else if(arguments.length<2)try{return JSON.parse(this.attr("data-"+t))}catch(e){return this.attr("data-"+t)}else this.attr("data-"+t,null===e?null:!0===n||"string"==typeof e||"number"==typeof e?e:JSON.stringify(e));return this}}),l("Dom",{remember:function(t,e){if("object"==typeof arguments[0])for(const e in t)this.remember(e,t[e]);else{if(1===arguments.length)return this.memory()[t];this.memory()[t]=e}return this},forget:function(){if(0===arguments.length)this._memory={};else for(let t=arguments.length-1;t>=0;t--)delete this.memory()[arguments[t]];return this},memory:function(){return this._memory=this._memory||{}}});class et{constructor(...t){this.init(...t)}static isColor(t){return t&&(t instanceof et||this.isRgb(t)||this.test(t))}static isRgb(t){return t&&"number"==typeof t.r&&"number"==typeof t.g&&"number"==typeof t.b}static random(t="vibrant",e){const{random:n,round:r,sin:i,PI:s}=Math;if("vibrant"===t){const t=24*n()+57,e=38*n()+45,r=360*n();return new et(t,e,r,"lch")}if("sine"===t){const t=r(80*i(2*s*(e=null==e?n():e)/.5+.01)+150),o=r(50*i(2*s*e/.5+4.6)+200),a=r(100*i(2*s*e/.5+2.3)+150);return new et(t,o,a)}if("pastel"===t){const t=8*n()+86,e=17*n()+9,r=360*n();return new et(t,e,r,"lch")}if("dark"===t){const t=10+10*n(),e=50*n()+86,r=360*n();return new et(t,e,r,"lch")}if("rgb"===t){const t=255*n(),e=255*n(),r=255*n();return new et(t,e,r)}if("lab"===t){const t=100*n(),e=256*n()-128,r=256*n()-128;return new et(t,e,r,"lab")}if("grey"===t){const t=255*n();return new et(t,t,t)}throw new Error("Unsupported random color mode")}static test(t){return"string"==typeof t&&(G.test(t)||H.test(t))}cmyk(){const{_a:t,_b:e,_c:n}=this.rgb(),[r,i,s]=[t,e,n].map(t=>t/255),o=Math.min(1-r,1-i,1-s);return 1===o?new et(0,0,0,1,"cmyk"):new et((1-r-o)/(1-o),(1-i-o)/(1-o),(1-s-o)/(1-o),o,"cmyk")}hsl(){const{_a:t,_b:e,_c:n}=this.rgb(),[r,i,s]=[t,e,n].map(t=>t/255),o=Math.max(r,i,s),a=Math.min(r,i,s),u=(o+a)/2,h=o===a,l=o-a;return new et(360*(h?0:o===r?((i-s)/l+(i<s?6:0))/6:o===i?((s-r)/l+2)/6:o===s?((r-i)/l+4)/6:0),100*(h?0:u>.5?l/(2-o-a):l/(o+a)),100*u,"hsl")}init(t=0,e=0,n=0,r=0,i="rgb"){if(t=t||0,this.space)for(const t in this.space)delete this[this.space[t]];if("number"==typeof t)i="string"==typeof r?r:i,r="string"==typeof r?0:r,Object.assign(this,{_a:t,_b:e,_c:n,_d:r,space:i});else if(t instanceof Array)this.space=e||("string"==typeof t[3]?t[3]:t[4])||"rgb",Object.assign(this,{_a:t[0],_b:t[1],_c:t[2],_d:t[3]||0});else if(t instanceof Object){const n=function(t,e){const n=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:u}=this,h="rgb"===this.space?{r:s,g:o,b:a}:"xyz"===this.space?{x:s,y:o,z:a}:"hsl"===this.space?{h:s,s:o,l:a}:"lab"===this.space?{l:s,a:o,b:a}:"lch"===this.space?{l:s,c:o,h:a}:"cmyk"===this.space?{c:s,m:o,y:a,k:u}:{};Object.assign(this,h)}lab(){const{x:t,y:e,z:n}=this.xyz();return new 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,u=o-s/200,h=16/116,l=.008856,c=7.787;t=.95047*(a**3>l?a**3:(a-h)/c),e=1*(o**3>l?o**3:(o-h)/c),n=1.08883*(u**3>l?u**3:(u-h)/c)}const r=3.2406*t+-1.5372*e+-.4986*n,i=-.9689*t+1.8758*e+.0415*n,s=.0557*t+-.204*e+1.057*n,o=Math.pow,a=.0031308,u=r>a?1.055*o(r,1/2.4)-.055:12.92*r,h=i>a?1.055*o(i,1/2.4)-.055:12.92*i,l=s>a?1.055*o(s,1/2.4)-.055:12.92*s;return new et(255*u,255*h,255*l)}if("hsl"===this.space){let{h:t,s:e,l:n}=this;if(t/=360,e/=100,n/=100,0===e)return n*=255,new 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,u=s>.04045?Math.pow((s+.055)/1.055,2.4):s/12.92,h=(.4124*o+.3576*a+.1805*u)/.95047,l=(.2126*o+.7152*a+.0722*u)/1,c=(.0193*o+.1192*a+.9505*u)/1.08883,f=h>.008856?Math.pow(h,1/3):7.787*h+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,u=t.shear||0,h=t.rotate||t.theta||0,l=new nt(t.origin||t.around||t.ox||t.originX,t.oy||t.originY),c=l.x,f=l.y,d=new nt(t.position||t.px||t.positionX||NaN,t.py||t.positionY||NaN),p=d.x,m=d.y,g=new nt(t.translate||t.tx||t.translateX,t.ty||t.translateY),y=g.x,v=g.y,w=new nt(t.relative||t.rx||t.relativeX,t.ry||t.relativeY);return{scaleX:o,scaleY:a,skewX:i,skewY:s,shear:u,theta:h,rx:w.x,ry:w.y,tx:y,ty:v,ox:c,oy:f,px:p,py:m}}static fromArray(t){return{a:t[0],b:t[1],c:t[2],d:t[3],e:t[4],f:t[5]}}static isMatrixLike(t){return null!=t.a||null!=t.b||null!=t.c||null!=t.d||null!=t.e||null!=t.f}static matrixMultiply(t,e,n){const r=t.a*e.a+t.c*e.b,i=t.b*e.a+t.d*e.b,s=t.a*e.c+t.c*e.d,o=t.b*e.c+t.d*e.d,a=t.e+t.a*e.e+t.c*e.f,u=t.f+t.b*e.e+t.d*e.f;return n.a=r,n.b=i,n.c=s,n.d=o,n.e=a,n.f=u,n}around(t,e,n){return this.clone().aroundO(t,e,n)}aroundO(t,e,n){const r=t||0,i=e||0;return this.translateO(-r,-i).lmultiplyO(n).translateO(r,i)}clone(){return new 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,u=n*s-r*i,h=u>0?1:-1,l=h*Math.sqrt(n*n+r*r),c=Math.atan2(h*r,h*n),f=180/Math.PI*c,d=Math.cos(c),p=Math.sin(c),m=(n*i+r*s)/u,g=i*l/(m*n-r)||s*l/(m*r+n);return{scaleX:l,scaleY:g,shear:m,rotate: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 Ct?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,u=-e/o,h=-n/o,l=t/o,c=-(a*i+h*s),f=-(u*i+l*s);return this.a=a,this.b=u,this.c=h,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:u,e:h,f:l}=this;return this.a=s*r-o*i,this.b=o*r+s*i,this.c=a*r-u*i,this.d=u*r+a*i,this.e=h*r-l*i+n*i-e*r+e,this.f=l*r+h*i-e*i-n*r+n,this}scale(){return this.clone().scaleO(...arguments)}scaleO(t,e=t,n=0,r=0){3===arguments.length&&(r=n,n=e,e=t);const{a:i,b:s,c:o,d:a,e:u,f:h}=this;return this.a=i*t,this.b=s*e,this.c=o*t,this.d=a*e,this.e=u*t-n*t+n,this.f=h*e-r*e+r,this}shear(t,e,n){return this.clone().shearO(t,e,n)}shearO(t,e=0,n=0){const{a:r,b:i,c:s,d:o,e:a,f:u}=this;return this.a=r+i*t,this.c=s+o*t,this.e=a+u*t-n*t,this}skew(){return this.clone().skewO(...arguments)}skewO(t,e=t,n=0,r=0){3===arguments.length&&(r=n,n=e,e=t),t=p(t),e=p(e);const i=Math.tan(t),s=Math.tan(e),{a:o,b:a,c:u,d:h,e:l,f:c}=this;return this.a=o+a*i,this.b=a+o*s,this.c=u+h*i,this.d=h+u*s,this.e=l+c*i-r*i,this.f=c+l*s-n*s,this}skewX(t,e,n){return this.skew(t,0,e,n)}skewY(t,e,n){return this.skew(0,t,e,n)}toArray(){return[this.a,this.b,this.c,this.d,this.e,this.f]}toString(){return"matrix("+this.a+","+this.b+","+this.c+","+this.d+","+this.e+","+this.f+")"}transform(t){if(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=E().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)}j(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 ut(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 u=a/t;u===1/0&&(u=Number.MAX_SAFE_INTEGER/100),e=e||new nt(n/2/s+i.x,r/2/o+i.y);const h=new at(i).transform(new it({scale:u,origin:e}));return this.viewbox(h)}}}),j(at,"Box");class ht extends Array{constructor(t=[],...e){if(super(t,...e),"number"==typeof t)return this;this.length=0,this.push(...t)}}const lt=ht;B([ht],{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)}))}ht.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([ht],t)};let dt=0;const pt={};function mt(t){let e=t.getEventHolder();return e===k.window&&(e=pt),e.events||(e.events={}),e.events}function gt(t){return t.getEventTarget()}function yt(t,e,n,r,i){const s=n.bind(r||t),o=E(t),a=mt(o),u=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,u.addEventListener(e,s,i||!1)})}function vt(t,e,n,r){const i=E(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 u,h;if(n)s[e]&&s[e][a||"*"]&&(o.removeEventListener(e,s[e][a||"*"][n],r||!1),delete s[e][a||"*"][n]);else if(e&&a){if(s[e]&&s[e][a]){for(h in s[e][a])vt(o,[e,a].join("."),h);delete s[e][a]}}else if(a)for(t in s)for(u in s[t])a===u&&vt(o,[t,a].join("."));else if(e){if(s[e]){for(u in s[e])vt(o,[e,u].join("."));delete s[e]}}else{for(t in s)vt(o,t);!function(t){let e=t.getEventHolder();e===k.window&&(e=pt),e.events&&(e.events={})}(i)}})}class wt extends S{addEventListener(){}dispatch(t,e,n){return function(t,e,n,r){const i=gt(t);return e instanceof k.window.Event||(e=new k.window.CustomEvent(e,{detail:n,cancelable:!0,...r})),i.dispatchEvent(e),e}(this,t,e,n)}dispatchEvent(t){const e=this.getEventHolder().events;if(!e)return!0;const n=e[t.type];for(const e in n)for(const r in n[e])n[e][r](t);return!t.defaultPrevented}fire(t,e,n){return this.dispatch(t,e,n),this}getEventHolder(){return this}getEventTarget(){return this}off(t,e,n){return vt(this,t,e,n),this}on(t,e,n,r){return yt(this,t,e,n,r),this}removeEventListener(){}}function bt(){}j(wt,"EventTarget");const xt={"fill-opacity":1,"stroke-opacity":1,"stroke-width":0,"stroke-linejoin":"miter","stroke-linecap":"butt",fill:"#000000",stroke:"#000000",opacity:1,x:0,y:0,cx:0,cy:0,width:0,height:0,r:0,rx:0,ry:0,offset:0,"stop-opacity":1,"stop-color":"#000000","text-anchor":"start"};class _t extends Array{constructor(...t){super(...t),this.init(...t)}clone(){return new this.constructor(this)}init(t){return"number"==typeof t||(this.length=0,this.push(...this.parse(t))),this}parse(t=[]){return t instanceof Array?t:t.trim().split(Q).map(parseFloat)}toArray(){return Array.prototype.concat.apply([],this)}toSet(){return new Set(this)}toString(){return this.join(" ")}valueOf(){const t=[];return t.push(...this),t}}class Nt{constructor(...t){this.init(...t)}convert(t){return new Nt(this.value,t)}divide(t){return t=new Nt(t),new Nt(this/t,this.unit||t.unit)}init(t,e){return e=Array.isArray(t)?t[1]:e,t=Array.isArray(t)?t[0]:t,this.value=0,this.unit=e||"","number"==typeof t?this.value=isNaN(t)?0:isFinite(t)?t:t<0?-34e37:34e37:"string"==typeof t?(e=t.match(R))&&(this.value=parseFloat(e[1]),"%"===e[5]?this.value/=100:"s"===e[5]&&(this.value*=1e3),this.unit=e[5]):t instanceof Nt&&(this.value=t.valueOf(),this.unit=t.unit),this}minus(t){return t=new Nt(t),new Nt(this-t,this.unit||t.unit)}plus(t){return t=new Nt(t),new Nt(this+t,this.unit||t.unit)}times(t){return t=new Nt(t),new Nt(this*t,this.unit||t.unit)}toArray(){return[this.value,this.unit]}toJSON(){return this.toString()}toString(){return("%"===this.unit?~~(1e8*this.value)/1e6:"s"===this.unit?this.value/1e3:this.value)+this.unit}valueOf(){return this.value}}const kt=new Set(["fill","stroke","color","bgcolor","stop-color","flood-color","lighting-color"]),St=[];class Mt extends wt{constructor(t,e){super(),this.node=t,this.type=t.nodeName,e&&t!==e&&this.attr(e)}add(t,e){return(t=E(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 E(t).put(this,e)}children(){return new lt(d(this.node.children,function(t){return O(t)}))}clear(){for(;this.node.hasChildNodes();)this.node.removeChild(this.node.lastChild);return this}clone(t=!0,e=!0){this.writeDataToDom();let n=this.node.cloneNode(t);return e&&(n=D(n)),new this.constructor(n)}each(t,e){const n=this.children();let r,i;for(r=0,i=n.length;r<i;r++)t.apply(n[r],[r,n]),e&&n[r].each(t,e);return this}element(t,e){return this.put(new Mt(A(t),e))}first(){return O(this.node.firstChild)}get(t){return O(this.node.childNodes[t])}getEventHolder(){return this.node}getEventTarget(){return this.node}has(t){return this.index(t)>=0}html(t,e){return this.xml(t,e,"http://www.w3.org/1999/xhtml")}id(t){return void 0!==t||this.node.id||(this.node.id=P(this.type)),this.attr("id",t)}index(t){return[].slice.call(this.node.childNodes).indexOf(t.node)}last(){return O(this.node.lastChild)}matches(t){const e=this.node,n=e.matches||e.matchesSelector||e.msMatchesSelector||e.mozMatchesSelector||e.webkitMatchesSelector||e.oMatchesSelector||null;return n&&n.call(e,t)}parent(t){let e=this;if(!e.node.parentNode)return null;if(e=O(e.node.parentNode),!t)return e;do{if("string"==typeof t?e.matches(t):e instanceof t)return e}while(e=O(e.node.parentNode));return e}put(t,e){return t=E(t),this.add(t,e),t}putIn(t,e){return E(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=E(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=A("wrapper",n),i=k.document.createDocumentFragment();r.innerHTML=t;for(let t=r.children.length;t--;)i.appendChild(r.firstElementChild);const s=this.parent();return e?this.replace(i)&&s:this.add(i)}}B(Mt,{attr:function(t,e,n){if(null==t){t={},e=this.node.attributes;for(const n of e)t[n.nodeName]=Y.test(n.nodeValue)?parseFloat(n.nodeValue):n.nodeValue;return t}if(t instanceof Array)return t.reduce((t,e)=>(t[e]=this.attr(e),t),{});if("object"==typeof t&&t.constructor===Object)for(e in t)this.attr(e,t[e]);else if(null===e)this.node.removeAttribute(t);else{if(null==e)return null==(e=this.node.getAttribute(t))?xt[t]:Y.test(e)?parseFloat(e):e;"number"==typeof(e=St.reduce((e,n)=>n(t,e,this),e))?e=new Nt(e):kt.has(t)&&et.isColor(e)?e=new et(e):e.constructor===Array&&(e=new _t(e)),"leading"===t?this.leading&&this.leading(e):"string"==typeof n?this.node.setAttributeNS(n,t,e.toString()):this.node.setAttribute(t,e.toString()),!this.rebuild||"font-size"!==t&&"x"!==t||this.rebuild()}return this},find:function(t){return ft(t,this.node)},findOne:function(t){return O(this.node.querySelector(t))}}),j(Mt,"Dom");class Ct extends Mt{constructor(t,e){super(t,e),this.dom={},this.node.instance=this,(t.hasAttribute("data-svgjs")||t.hasAttribute("svgjs:data"))&&this.setData(JSON.parse(t.getAttribute("data-svgjs"))??JSON.parse(t.getAttribute("svgjs:data"))??{})}center(t,e){return this.cx(t).cy(e)}cx(t){return null==t?this.x()+this.width()/2:this.x(t-this.width()/2)}cy(t){return null==t?this.y()+this.height()/2:this.y(t-this.height()/2)}defs(){const t=this.root();return t&&t.defs()}dmove(t,e){return this.dx(t).dy(e)}dx(t=0){return this.x(new Nt(t).plus(this.x()))}dy(t=0){return this.y(new Nt(t).plus(this.y()))}getEventHolder(){return this}height(t){return this.attr("height",t)}move(t,e){return this.x(t).y(e)}parents(t=this.root()){const e="string"==typeof t;e||(t=E(t));const n=new lt;let r=this;for(;(r=r.parent())&&r.node!==k.document&&"#document-fragment"!==r.nodeName&&(n.push(r),e||r.node!==t.node)&&(!e||!r.matches(t));)if(r.node===this.root().node)return null;return n}reference(t){if(!(t=this.attr(t)))return null;const e=(t+"").match(q);return e?E(e[1]):null}root(){const t=this.parent(M[C]);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(Ct,{bbox:function(){const t=ut(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=ut(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}}}),j(Ct,"Element");const At={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 Ct)this.attr(t,e);else for(n=At[t].length-1;n>=0;n--)null!=e[At[t][n]]&&this.attr(At.prefix(t,At[t][n]),e[At[t][n]]);return this},l(["Element","Runner"],e)}),l(["Element","Runner"],{matrix:function(t,e,n,r,i,s){return null==t?new it(this):this.attr("transform",new it(t,e,n,r,i,s))},rotate:function(t,e,n){return this.transform({rotate:t,ox:e,oy:n},!0)},skew:function(t,e,n,r){return 1===arguments.length||3===arguments.length?this.transform({skew:t,ox:e,oy:n},!0):this.transform({skew:[t,e],ox:n,oy:r},!0)},shear:function(t,e,n){return this.transform({shear:t,ox:e,oy:n},!0)},scale:function(t,e,n,r){return 1===arguments.length||3===arguments.length?this.transform({scale:t,ox:e,oy:n},!0):this.transform({scale:[t,e],ox:n,oy:r},!0)},translate:function(t,e){return this.transform({translate:[t,e]},!0)},relative:function(t,e){return this.transform({relative:[t,e]},!0)},flip:function(t="both",e="center"){return-1==="xybothtrue".indexOf(t)&&(e=t,t="both"),this.transform({flip:t,origin:e},!0)},opacity:function(t){return this.attr("opacity",t)}}),l("radius",{radius:function(t,e=t){return"radialGradient"===(this._element||this).type?this.attr("r",new Nt(t)):this.rx(t).ry(e)}}),l("Path",{length:function(){return this.node.getTotalLength()},pointAt:function(t){return new nt(this.node.getPointAtLength(t))}}),l(["Element","Runner"],{font:function(t,e){if("object"==typeof t){for(e in t)this.font(e,t[e]);return this}return"leading"===t?this.leading(e):"anchor"===t?this.attr("text-anchor",e):"size"===t||"family"===t||"weight"===t||"stretch"===t||"variant"===t||"style"===t?this.attr("font-"+t,e):this.attr(t,e)}}),l("Element",["click","dblclick","mousedown","mouseup","mouseover","mouseout","mousemove","mouseenter","mouseleave","touchstart","touchmove","touchleave","touchend","touchcancel","contextmenu","wheel","pointerdown","pointermove","pointerup","pointerleave","pointercancel"].reduce(function(t,e){return t[e]=function(t){return null===t?this.off(e):this.on(e,t),this},t},{})),l("Element",{untransform:function(){return this.attr("transform",null)},matrixify:function(){return(this.attr("transform")||"").split(U).slice(0,-1).map(function(t){const e=t.trim().split("(");return[e[0],e[1].split(Q).map(function(t){return parseFloat(t)})]}).reverse().reduce(function(t,e){return"matrix"===e[0]?t.lmultiply(it.fromArray(e[1])):t[e[0]].apply(t,e[1])},new it)},toParent:function(t,e){if(this===t)return this;if(w(this.node))return this.addTo(t,e);const n=this.screenCTM(),r=t.screenCTM().inverse();return this.addTo(t,e).untransform().transform(r.multiply(n)),this},toRoot:function(t){return this.toParent(this.root(),t)},transform:function(t,e){if(null==t||"string"==typeof t){const e=new it(this).decompose();return null==t?e:e[t]}it.isMatrixLike(t)||(t={...t,origin:y(t,this)});const n=new it(!0===e?this:e||!1).transform(t);return this.attr("transform",n)}});class Et extends Ct{flatten(){return this.each(function(){if(this instanceof Et)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()}}j(Et,"Container");class Tt extends Et{constructor(t,e=t){super(T("defs",t),e)}flatten(){return this}ungroup(){return this}}j(Tt,"Defs");class Ot extends Ct{}function Lt(t){return this.attr("rx",t)}function jt(t){return this.attr("ry",t)}function Wt(t){return null==t?this.cx()-this.rx():this.cx(t+this.rx())}function Pt(t){return null==t?this.cy()-this.ry():this.cy(t+this.ry())}function Dt(t){return this.attr("cx",t)}function Bt(t){return this.attr("cy",t)}function It(t){return null==t?2*this.rx():this.rx(new Nt(t).divide(2))}function Rt(t){return null==t?2*this.ry():this.ry(new Nt(t).divide(2))}j(Ot,"Shape");class zt extends Ot{constructor(t,e=t){super(T("ellipse",t),e)}size(t,e){const n=g(this,t,e);return this.rx(new Nt(n.width).divide(2)).ry(new Nt(n.height).divide(2))}}B(zt,t),l("Container",{ellipse:I(function(t=0,e=t){return this.put(new zt).size(t,e).move(0,0)})}),j(zt,"Ellipse");class Ft extends Mt{constructor(t=k.document.createDocumentFragment()){super(t)}xml(t,e,n){if("boolean"==typeof t&&(n=e,e=t,t=null),null==t||"function"==typeof t){const t=new Mt(A("wrapper",n));return t.add(this.node.cloneNode(!0)),t.xml(!1,n)}return super.xml(t,!1,n)}}j(Ft,"Fragment");const qt=Ft;function Ut(t,e){return"radialGradient"===(this._element||this).type?this.attr({fx:new Nt(t),fy:new Nt(e)}):this.attr({x1:new Nt(t),y1:new Nt(e)})}function Vt(t,e){return"radialGradient"===(this._element||this).type?this.attr({cx:new Nt(t),cy:new Nt(e)}):this.attr({x2:new Nt(t),y2:new Nt(e)})}class Gt extends Et{constructor(t,e){super(T(t+"Gradient","string"==typeof t?null:t),e)}attr(t,e,n){return"transform"===t&&(t="gradientTransform"),super.attr(t,e,n)}bbox(){return new at}targets(){return ft("svg [fill*="+this.id()+"]")}toString(){return this.url()}update(t){return this.clear(),"function"==typeof t&&t.call(this,this),this}url(){return"url(#"+this.id()+")"}}B(Gt,e),l({Container:{gradient(...t){return this.defs().gradient(...t)}},Defs:{gradient:I(function(t,e){return this.put(new Gt(t)).update(e)})}}),j(Gt,"Gradient");class Ht extends Et{constructor(t,e=t){super(T("pattern",t),e)}attr(t,e,n){return"transform"===t&&(t="patternTransform"),super.attr(t,e,n)}bbox(){return new at}targets(){return ft("svg [fill*="+this.id()+"]")}toString(){return this.url()}update(t){return this.clear(),"function"==typeof t&&t.call(this,this),this}url(){return"url(#"+this.id()+")"}}l({Container:{pattern(...t){return this.defs().pattern(...t)}},Defs:{pattern:I(function(t,e,n){return this.put(new Ht).update(n).attr({x:0,y:0,width:t,height:e,patternUnits:"userSpaceOnUse"})})}}),j(Ht,"Pattern");class Xt extends Ot{constructor(t,e=t){super(T("image",t),e)}load(t,e){if(!t)return this;const n=new k.window.Image;return yt(n,"load",function(t){const r=this.parent(Ht);0===this.width()&&0===this.height()&&this.size(n.width,n.height),r instanceof Ht&&0===r.width()&&0===r.height()&&r.size(this.width(),this.height()),"function"==typeof e&&e.call(this,t)},this),yt(n,"load error",function(){vt(n)}),this.attr("href",n.src=t,N)}}var Yt;Yt=function(t,e,n){return"fill"!==t&&"stroke"!==t||$.test(e)&&(e=n.root().defs().image(e)),e instanceof Xt&&(e=n.root().defs().pattern(0,0,t=>{t.add(e)})),e},St.push(Yt),l({Container:{image:I(function(t,e){return this.put(new Xt).size(0,0).load(t,e)})}}),j(Xt,"Image");class $t extends _t{bbox(){let t=-1/0,e=-1/0,n=1/0,r=1/0;return this.forEach(function(i){t=Math.max(i[0],t),e=Math.max(i[1],e),n=Math.min(i[0],n),r=Math.min(i[1],r)}),new at(n,r,t-n,e-r)}move(t,e){const n=this.bbox();if(t-=n.x,e-=n.y,!isNaN(t)&&!isNaN(e))for(let n=this.length-1;n>=0;n--)this[n]=[this[n][0]+t,this[n][1]+e];return this}parse(t=[0,0]){const e=[];(t=t instanceof Array?Array.prototype.concat.apply([],t):t.trim().split(Q).map(parseFloat)).length%2!=0&&t.pop();for(let n=0,r=t.length;n<r;n+=2)e.push([t[n],t[n+1]]);return e}size(t,e){let n;const r=this.bbox();for(n=this.length-1;n>=0;n--)r.width&&(this[n][0]=(this[n][0]-r.x)*t/r.width+r.x),r.height&&(this[n][1]=(this[n][1]-r.y)*e/r.height+r.y);return this}toLine(){return{x1:this[0][0],y1:this[0][1],x2:this[1][0],y2:this[1][1]}}toString(){const t=[];for(let e=0,n=this.length;e<n;e++)t.push(this[e].join(","));return t.join(" ")}transform(t){return this.clone().transformO(t)}transformO(t){it.isMatrixLike(t)||(t=new it(t));for(let e=this.length;e--;){const[n,r]=this[e];this[e][0]=t.a*n+t.c*r+t.e,this[e][1]=t.b*n+t.d*r+t.f}return this}}const Qt=$t;function Zt(t){return null==t?this.bbox().x:this.move(t,this.bbox().y)}function Jt(t){return null==t?this.bbox().y:this.move(this.bbox().x,t)}function Kt(t){const e=this.bbox();return null==t?e.width:this.size(t,e.height)}function te(t){const e=this.bbox();return null==t?e.height:this.size(e.width,t)}class ee extends Ot{constructor(t,e=t){super(T("line",t),e)}array(){return new $t([[this.attr("x1"),this.attr("y1")],[this.attr("x2"),this.attr("y2")]])}move(t,e){return this.attr(this.array().move(t,e).toLine())}plot(t,e,n,r){return null==t?this.array():(t=void 0!==e?{x1:t,y1:e,x2:n,y2:r}:new $t(t).toLine(),this.attr(t))}size(t,e){const n=g(this,t,e);return this.attr(this.array().size(n.width,n.height).toLine())}}B(ee,i),l({Container:{line:I(function(...t){return ee.prototype.plot.apply(this.put(new ee),null!=t[0]?t:[0,0,0,0])})}}),j(ee,"Line");class ne extends Et{constructor(t,e=t){super(T("marker",t),e)}height(t){return this.attr("markerHeight",t)}orient(t){return this.attr("orient",t)}ref(t,e){return this.attr("refX",t).attr("refY",e)}toString(){return"url(#"+this.id()+")"}update(t){return this.clear(),"function"==typeof t&&t.call(this,this),this}width(t){return this.attr("markerWidth",t)}}function re(t,e){return function(n){return null==n?this[t]:(this[t]=n,e&&e.call(this),this)}}l({Container:{marker(...t){return this.defs().marker(...t)}},Defs:{marker:I(function(t,e,n){return this.put(new ne).size(t,e).ref(t/2,e/2).viewbox(0,0,t,e).attr("orient","auto").update(n)})},marker:{marker(t,e,n,r){let i=["marker"];return"all"!==t&&i.push(t),i=i.join("-"),t=arguments[1]instanceof ne?arguments[1]:this.defs().marker(e,n,r),this.attr(i,t)}}}),j(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 ue(){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",ue),overshoot:re("_overshoot",ue)}),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 he={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===he[t.segment[0].toUpperCase()]}function de(t,e){t.inNumber&&pe(t,!1);const n=Z.test(e);if(n)t.segment=[e];else{const e=t.lastCommand,n=e.toLowerCase(),r=e===n;t.segment=["m"===n?r?"l":"L":e]}return t.inSegment=!0,t.lastCommand=t.segment[0],n}function pe(t,e){if(!t.inNumber)throw new Error("Parser Error");t.number&&t.segment.push(parseFloat(t.number)),t.inNumber=e,t.number="",t.pointSeen=!1,t.hasExponent=!1,fe(t)&&me(t)}function me(t){t.inSegment=!1,t.absolute&&(t.segment=function(t){const e=t.segment[0];return le[e](t.segment.slice(1),t.p,t.p0)}(t)),t.segments.push(t.segment)}function ge(t){if(!t.segment.length)return!1;const e="A"===t.segment[0].toUpperCase(),n=t.segment.length;return e&&(4===n||5===n)}function ye(t){return"E"===t.lastToken.toUpperCase()}const ve=new Set([" ",",","\t","\n","\r","\f"]);class we extends _t{bbox(){return st().path.setAttribute("d",this.toString()),new at(st.nodes.path.getBBox())}move(t,e){const n=this.bbox();if(t-=n.x,e-=n.y,!isNaN(t)&&!isNaN(e))for(let n,r=this.length-1;r>=0;r--)n=this[r][0],"M"===n||"L"===n||"T"===n?(this[r][1]+=t,this[r][2]+=e):"H"===n?this[r][1]+=t:"V"===n?this[r][1]+=e:"C"===n||"S"===n||"Q"===n?(this[r][1]+=t,this[r][2]+=e,this[r][3]+=t,this[r][4]+=e,"C"===n&&(this[r][5]+=t,this[r][6]+=e)):"A"===n&&(this[r][6]+=t,this[r][7]+=e);return this}parse(t="M0 0"){return Array.isArray(t)&&(t=Array.prototype.concat.apply([],t).toString()),function(t,e=!0){let n=0,r="";const i={segment:[],inNumber:!1,number:"",lastToken:"",inSegment:!1,segments:[],pointSeen:!1,hasExponent:!1,absolute:e,p0:new nt,p:new nt};for(;i.lastToken=r,r=t.charAt(n++);)if(i.inSegment||!de(i,r))if("."!==r)if(isNaN(parseInt(r)))if(ve.has(r))i.inNumber&&pe(i,!1);else if("-"!==r&&"+"!==r)if("E"!==r.toUpperCase()){if(Z.test(r)){if(i.inNumber)pe(i,!1);else{if(!fe(i))throw new Error("parser Error");me(i)}--n}}else i.number+=r,i.hasExponent=!0;else{if(i.inNumber&&!ye(i)){pe(i,!1),--n;continue}i.number+=r,i.inNumber=!0}else{if("0"===i.number||ge(i)){i.inNumber=!0,i.number=r,pe(i,!0);continue}i.inNumber=!0,i.number+=r}else{if(i.pointSeen||i.hasExponent){pe(i,!1),--n;continue}i.inNumber=!0,i.pointSeen=!0,i.number+=r}return i.inNumber&&pe(i,!1),i.inSegment&&fe(i)&&me(i),i.segments}(t)}size(t,e){const n=this.bbox();let r,i;for(n.width=0===n.width?1:n.width,n.height=0===n.height?1:n.height,r=this.length-1;r>=0;r--)i=this[r][0],"M"===i||"L"===i||"T"===i?(this[r][1]=(this[r][1]-n.x)*t/n.width+n.x,this[r][2]=(this[r][2]-n.y)*e/n.height+n.y):"H"===i?this[r][1]=(this[r][1]-n.x)*t/n.width+n.x:"V"===i?this[r][1]=(this[r][1]-n.y)*e/n.height+n.y:"C"===i||"S"===i||"Q"===i?(this[r][1]=(this[r][1]-n.x)*t/n.width+n.x,this[r][2]=(this[r][2]-n.y)*e/n.height+n.y,this[r][3]=(this[r][3]-n.x)*t/n.width+n.x,this[r][4]=(this[r][4]-n.y)*e/n.height+n.y,"C"===i&&(this[r][5]=(this[r][5]-n.x)*t/n.width+n.x,this[r][6]=(this[r][6]-n.y)*e/n.height+n.y)):"A"===i&&(this[r][1]=this[r][1]*t/n.width,this[r][2]=this[r][2]*e/n.height,this[r][6]=(this[r][6]-n.x)*t/n.width+n.x,this[r][7]=(this[r][7]-n.y)*e/n.height+n.y);return this}toString(){return function(t){let e="";for(let n=0,r=t.length;n<r;n++)e+=t[n][0],null!=t[n][1]&&(e+=t[n][1],null!=t[n][2]&&(e+=" ",e+=t[n][2],null!=t[n][3]&&(e+=" ",e+=t[n][3],e+=" ",e+=t[n][4],null!=t[n][5]&&(e+=" ",e+=t[n][5],e+=" ",e+=t[n][6],null!=t[n][7]&&(e+=" ",e+=t[n][7])))));return e+" "}(this)}}const be=t=>{const e=typeof t;return"number"===e?Nt:"string"===e?et.isColor(t)?et:Q.test(t)?Z.test(t)?we:_t:R.test(t)?Nt:_e:Me.indexOf(t.constructor)>-1?t.constructor:Array.isArray(t)?_t:"object"===e?Se:_e};class xe{constructor(t){this._stepper=t||new oe("-"),this._from=null,this._to=null,this._type=null,this._context=null,this._morphObj=null}at(t){return this._morphObj.morph(this._from,this._to,t,this._stepper,this._context)}done(){return this._context.map(this._stepper.done).reduce(function(t,e){return t&&e},!0)}from(t){return null==t?this._from:(this._from=this._set(t),this)}stepper(t){return null==t?this._stepper:(this._stepper=t,this)}to(t){return null==t?this._to:(this._to=this._set(t),this)}type(t){return null==t?this._type:(this._type=t,this)}_set(t){this._type||this.type(be(t));let e=new this._type(t);return this._type===et&&(e=this._to?e[this._to[4]]():this._from?e[this._from[4]]():e),this._type===Se&&(e=this._to?e.align(this._to):this._from?e.align(this._from):e),e=e.toConsumable(),this._morphObj=this._morphObj||new this._type,this._context=this._context||Array.apply(null,Array(e.length)).map(Object).map(function(t){return t.done=!0,t}),e}}class _e{constructor(...t){this.init(...t)}init(t){return t=Array.isArray(t)?t[0]:t,this.value=t,this}toArray(){return[this.value]}valueOf(){return this.value}}class Ne{constructor(...t){this.init(...t)}init(t){return Array.isArray(t)&&(t={scaleX:t[0],scaleY:t[1],shear:t[2],rotate:t[3],translateX:t[4],translateY:t[5],originX:t[6],originY:t[7]}),Object.assign(this,Ne.defaults,t),this}toArray(){const t=this;return[t.scaleX,t.scaleY,t.shear,t.rotate,t.translateX,t.translateY,t.originX,t.originY]}}Ne.defaults={scaleX:1,scaleY:1,shear:0,rotate:0,translateX:0,translateY:0,originX:0,originY:0};const ke=(t,e)=>t[0]<e[0]?-1:t[0]>e[0]?1:0;class Se{constructor(...t){this.init(...t)}align(t){const e=this.values;for(let n=0,r=e.length;n<r;++n){if(e[n+1]===t[n+1]){if(e[n+1]===et&&t[n+7]!==e[n+7]){const e=t[n+7],r=new et(this.values.splice(n+3,5))[e]().toArray();this.values.splice(n+3,0,...r)}n+=e[n+2]+2;continue}if(!t[n+1])return this;const r=(new t[n+1]).toArray(),i=e[n+2]+3;e.splice(n,i,t[n],t[n+1],t[n+2],...r),n+=e[n+2]+2}return this}init(t){if(this.values=[],Array.isArray(t))return void(this.values=t.slice());t=t||{};const e=[];for(const n in t){const r=be(t[n]),i=new r(t[n]).toArray();e.push([n,r,i.length,...i])}return e.sort(ke),this.values=e.reduce((t,e)=>t.concat(e),[]),this}toArray(){return this.values}valueOf(){const t={},e=this.values;for(;e.length;){const n=e.shift(),r=e.shift(),i=e.shift(),s=e.splice(0,i);t[n]=new r(s)}return t}}const Me=[_e,Ne,Se];class Ce extends Ot{constructor(t,e=t){super(T("path",t),e)}array(){return this._array||(this._array=new we(this.attr("d")))}clear(){return delete this._array,this}height(t){return null==t?this.bbox().height:this.size(this.bbox().width,t)}move(t,e){return this.attr("d",this.array().move(t,e))}plot(t){return null==t?this.array():this.clear().attr("d","string"==typeof t?t:this._array=new we(t))}size(t,e){const n=g(this,t,e);return this.attr("d",this.array().size(n.width,n.height))}width(t){return null==t?this.bbox().width:this.size(t,this.bbox().height)}x(t){return null==t?this.bbox().x:this.move(t,this.bbox().y)}y(t){return null==t?this.bbox().y:this.move(this.bbox().x,t)}}function Ae(){return this._array||(this._array=new $t(this.attr("points")))}function Ee(){return delete this._array,this}function Te(t,e){return this.attr("points",this.array().move(t,e))}function Oe(t){return null==t?this.array():this.clear().attr("points","string"==typeof t?t:this._array=new $t(t))}function Le(t,e){const n=g(this,t,e);return this.attr("points",this.array().size(n.width,n.height))}Ce.prototype.MorphArray=we,l({Container:{path:I(function(t){return this.put(new Ce).plot(t||new we)})}}),j(Ce,"Path");class je extends Ot{constructor(t,e=t){super(T("polygon",t),e)}}l({Container:{polygon:I(function(t){return this.put(new je).plot(t||new $t)})}}),B(je,i),B(je,s),j(je,"Polygon");class We extends Ot{constructor(t,e=t){super(T("polyline",t),e)}}l({Container:{polyline:I(function(t){return this.put(new We).plot(t||new $t)})}}),B(We,i),B(We,s),j(We,"Polyline");class Pe extends Ot{constructor(t,e=t){super(T("rect",t),e)}}B(Pe,{rx:Lt,ry:jt}),l({Container:{rect:I(function(t,e){return this.put(new Pe).size(t,e)})}}),j(Pe,"Rect");class De{constructor(){this._first=null,this._last=null}first(){return this._first&&this._first.value}last(){return this._last&&this._last.value}push(t){const e=void 0!==t.next?t:{value:t,next:null,prev:null};return this._last?(e.prev=this._last,this._last.next=e,this._last=e):(this._last=e,this._first=e),e}remove(t){t.prev&&(t.prev.next=t.next),t.next&&(t.next.prev=t.prev),t===this._last&&(this._last=t.prev),t===this._first&&(this._first=t.next),t.prev=null,t.next=null}shift(){const t=this._first;return t?(this._first=t.next,this._first&&(this._first.prev=null),this._last=this._first?this._last:null,t.value):null}}const Be={nextDraw:null,frames:new De,timeouts:new De,immediates:new De,timer:()=>k.window.performance||k.window.Date,transforms:[],frame(t){const e=Be.frames.push({run:t});return null===Be.nextDraw&&(Be.nextDraw=k.window.requestAnimationFrame(Be._draw)),e},timeout(t,e){e=e||0;const n=Be.timer().now()+e,r=Be.timeouts.push({run:t,time:n});return null===Be.nextDraw&&(Be.nextDraw=k.window.requestAnimationFrame(Be._draw)),r},immediate(t){const e=Be.immediates.push(t);return null===Be.nextDraw&&(Be.nextDraw=k.window.requestAnimationFrame(Be._draw)),e},cancelFrame(t){null!=t&&Be.frames.remove(t)},clearTimeout(t){null!=t&&Be.timeouts.remove(t)},cancelImmediate(t){null!=t&&Be.immediates.remove(t)},_draw(t){let e=null;const n=Be.timeouts.last();for(;(e=Be.timeouts.shift())&&(t>=e.time?e.run():Be.timeouts.push(e),e!==n););let r=null;const i=Be.frames.last();for(;r!==i&&(r=Be.frames.shift());)r.run(t);let s=null;for(;s=Be.immediates.shift();)s();Be.nextDraw=Be.timeouts.first()||Be.frames.first()?k.window.requestAnimationFrame(Be._draw):null}},Ie=Be,Re=function(t){const e=t.start,n=t.runner.duration();return{start:e,duration:n,end:e+n,runner:t.runner}},ze=function(){const t=k.window;return(t.performance||t.Date).now()};class Fe extends wt{constructor(t=ze){super(),this._timeSource=t,this.terminate()}active(){return!!this._nextFrame}finish(){return this.time(this.getEndTimeOfTimeline()+1),this.pause()}getEndTime(){const t=this.getLastRunnerInfo(),e=t?t.runner.duration():0;return(t?t.start:this._time)+e}getEndTimeOfTimeline(){const t=this._runners.map(t=>t.start+t.runner.duration());return Math.max(0,...t)}getLastRunnerInfo(){return this.getRunnerInfoById(this._lastRunnerId)}getRunnerInfoById(t){return this._runners[this._runnerIds.indexOf(t)]||null}pause(){return this._paused=!0,this._continue()}persist(t){return null==t?this._persist:(this._persist=t,this)}play(){return this._paused=!1,this.updateTime()._continue()}reverse(t){const e=this.speed();if(null==t)return this.speed(-e);const n=Math.abs(e);return this.speed(t?-n:n)}schedule(t,e,n){if(null==t)return this._runners.map(Re);let r=0;const i=this.getEndTime();if(e=e||0,null==n||"last"===n||"after"===n)r=i;else if("absolute"===n||"start"===n)r=e,e=0;else if("now"===n)r=this._time;else if("relative"===n){const n=this.getRunnerInfoById(t.id);n&&(r=n.start+e,e=0)}else{if("with-last"!==n)throw new Error('Invalid value for the "when" parameter');{const t=this.getLastRunnerInfo();r=t?t.start:this._time}}t.unschedule(),t.timeline(this);const s=t.persist(),o={persist:null===s?this._persist:s,start:r+e,runner:t};return this._lastRunnerId=t.id,this._runners.push(o),this._runners.sort((t,e)=>t.start-e.start),this._runnerIds=this._runners.map(t=>t.runner.id),this.updateTime()._continue(),this}seek(t){return this.time(this._time+t)}source(t){return null==t?this._timeSource:(this._timeSource=t,this)}speed(t){return null==t?this._speed:(this._speed=t,this)}stop(){return this.time(0),this.pause()}time(t){return null==t?this._time:(this._time=t,this._continue(!0))}unschedule(t){const e=this._runnerIds.indexOf(t.id);return e<0||(this._runners.splice(e,1),this._runnerIds.splice(e,1),t.timeline(null)),this}updateTime(){return this.active()||(this._lastSourceTime=this._timeSource()),this}_continue(t=!1){return Ie.cancelFrame(this._nextFrame),this._nextFrame=null,t?this._stepImmediate():(this._paused||(this._nextFrame=Ie.frame(this._step)),this)}_stepFn(t=!1){const e=this._timeSource();let n=e-this._lastSourceTime;t&&(n=0);const r=this._speed*n+(this._time-this._lastStepTime);this._lastSourceTime=e,t||(this._time+=r,this._time=this._time<0?0:this._time),this._lastStepTime=this._time,this.fire("time",this._time);for(let t=this._runners.length;t--;){const e=this._runners[t],n=e.runner;this._time-e.start<=0&&n.reset()}let i=!1;for(let t=0,e=this._runners.length;t<e;t++){const n=this._runners[t],s=n.runner;let o=r;const a=this._time-n.start;a<=0?i=!0:(a<o&&(o=a),s.active()&&(s.step(o).done?!0!==n.persist&&s.duration()-s.time()+this._time+n.persist<this._time&&(s.unschedule(),--t,--e):i=!0))}return i&&!(this._speed<0&&0===this._time)||this._runnerIds.length&&this._speed<0&&this._time>0?this._continue():(this.pause(),this.fire("finished")),this}terminate(){this._startTime=0,this._speed=1,this._persist=0,this._nextFrame=null,this._paused=!0,this._runners=[],this._runnerIds=[],this._lastRunnerId=-1,this._time=0,this._lastSourceTime=0,this._lastStepTime=0,this._step=this._stepFn.bind(this,!1),this._stepImmediate=this._stepFn.bind(this,!0)}}l({Element:{timeline:function(t){return null==t?(this._timeline=this._timeline||new Fe,this._timeline):(this._timeline=t,this)}}});class qe extends wt{constructor(t){super(),this.id=qe.id++,t="function"==typeof(t=null==t?400:t)?new ae(t):t,this._element=null,this._timeline=null,this.done=!1,this._queue=[],this._duration="number"==typeof t&&t,this._isDeclarative=t instanceof ae,this._stepper=this._isDeclarative?t:new oe,this._history={},this.enabled=!0,this._time=0,this._lastTime=0,this._reseted=!0,this.transforms=new it,this.transformId=1,this._haveReversed=!1,this._reverse=!1,this._loopsDone=0,this._swing=!1,this._wait=0,this._times=1,this._frameId=null,this._persist=!!this._isDeclarative||null}static sanitise(t,e,n){let r=1,i=!1,s=0;return e=e??0,n=n||"last","object"!=typeof(t=t??400)||t instanceof se||(e=t.delay??e,n=t.when??n,i=t.swing||i,r=t.times??r,s=t.wait??s,t=t.duration??400),{duration:t,delay:e,swing:i,times:r,wait:s,when:n}}active(t){return null==t?this.enabled:(this.enabled=t,this)}addTransform(t){return this.transforms.lmultiplyO(t),this}after(t){return this.on("finished",t)}animate(t,e,n){const r=qe.sanitise(t,e,n),i=new qe(r.duration);return this._timeline&&i.timeline(this._timeline),this._element&&i.element(this._element),i.loop(r).schedule(r.delay,r.when)}clearTransform(){return this.transforms=new it,this}clearTransformsFromQueue(){this.done&&this._timeline&&this._timeline._runnerIds.includes(this.id)||(this._queue=this._queue.filter(t=>!t.isTransform))}delay(t){return this.animate(0,t)}duration(){return this._times*(this._wait+this._duration)-this._wait}during(t){return this.queue(null,t)}ease(t){return this._stepper=new oe(t),this}element(t){return null==t?this._element:(this._element=t,t._prepareRunner(),this)}finish(){return this.step(1/0)}loop(t,e,n){return"object"==typeof t&&(e=t.swing,n=t.wait,t=t.times),this._times=t||1/0,this._swing=e||!1,this._wait=n||0,!0===this._times&&(this._times=1/0),this}loops(t){const e=this._duration+this._wait;if(null==t){const t=Math.floor(this._time/e),n=(this._time-t*e)/this._duration;return Math.min(t+n,this._times)}const n=t%1,r=e*Math.floor(t)+this._duration*n;return this.time(r)}persist(t){return null==t?this._persist:(this._persist=t,this)}position(t){const e=this._time,n=this._duration,r=this._wait,i=this._times,s=this._swing,o=this._reverse;let a;if(null==t){const t=function(t){const e=s*Math.floor(t%(2*(r+n))/(r+n)),i=e&&!o||!e&&o,a=Math.pow(-1,i)*(t%(r+n))/n+i;return Math.max(Math.min(a,1),0)},u=i*(r+n)-r;return a=e<=0?Math.round(t(1e-5)):e<u?t(e):Math.round(t(u-1e-5)),a}const u=Math.floor(this.loops()),h=s&&u%2==0;return a=u+(h&&!o||o&&h?t:1-t),this.loops(a)}progress(t){return null==t?Math.min(1,this._time/this.duration()):this.time(t*this.duration())}queue(t,e,n,r){return this._queue.push({initialiser:t||bt,runner:e||bt,retarget:n,isTransform:r,initialised:!1,finished:!1}),this.timeline()&&this.timeline()._continue(),this}reset(){return this._reseted||(this.time(0),this._reseted=!0),this}reverse(t){return this._reverse=null==t?!this._reverse:t,this}schedule(t,e,n){if(t instanceof Fe||(n=e,e=t,t=this.timeline()),!t)throw Error("Runner cannot be scheduled without timeline");return t.schedule(this,e,n),this}step(t){if(!this.enabled)return this;t=null==t?16:t,this._time+=t;const e=this.position(),n=this._lastPosition!==e&&this._time>=0;this._lastPosition=e;const r=this.duration(),i=this._lastTime<=0&&this._time>0,s=this._lastTime<r&&this._time>=r;this._lastTime=this._time,i&&this.fire("start",this);const o=this._isDeclarative;this.done=!o&&!s&&this._time>=r,this._reseted=!1;let a=!1;return(n||o)&&(this._initialise(n),this.transforms=new it,a=this._run(o?t:e),this.fire("step",this)),this.done=this.done||a&&o,s&&this.fire("finished",this),this}time(t){if(null==t)return this._time;const e=t-this._time;return this.step(e),this}timeline(t){return void 0===t?this._timeline:(this._timeline=t,this)}unschedule(){const t=this.timeline();return t&&t.unschedule(this),this}_initialise(t){if(t||this._isDeclarative)for(let e=0,n=this._queue.length;e<n;++e){const n=this._queue[e],r=this._isDeclarative||!n.initialised&&t;t=!n.finished,r&&t&&(n.initialiser.call(this),n.initialised=!0)}}_rememberMorpher(t,e){if(this._history[t]={morpher:e,caller:this._queue[this._queue.length-1]},this._isDeclarative){const t=this.timeline();t&&t.play()}}_run(t){let e=!0;for(let n=0,r=this._queue.length;n<r;++n){const r=this._queue[n],i=r.runner.call(this,t);r.finished=r.finished||!0===i,e=e&&r.finished}return e}_tryRetarget(t,e,n){if(this._history[t]){if(!this._history[t].caller.initialised){const e=this._queue.indexOf(this._history[t].caller);return this._queue.splice(e,1),!1}this._history[t].caller.retarget?this._history[t].caller.retarget.call(this,e,n):this._history[t].morpher.to(e),this._history[t].caller.finished=!1;const r=this.timeline();return r&&r.play(),!0}return!1}}qe.id=0;class Ue{constructor(t=new it,e=-1,n=!0){this.transforms=t,this.id=e,this.done=n}clearTransformsFromQueue(){}}B([qe,Ue],{mergeWith(t){return new Ue(t.transforms.lmultiply(this.transforms),t.id)}});const Ve=(t,e)=>t.lmultiplyO(e),Ge=t=>t.transforms;function He(){const t=this._transformationRunners.runners.map(Ge).reduce(Ve,new it);this.transform(t),this._transformationRunners.merge(),1===this._transformationRunners.length()&&(this._frameId=null)}class Xe{constructor(){this.runners=[],this.ids=[]}add(t){if(this.runners.includes(t))return;const e=t.id+1;return this.runners.push(t),this.ids.push(e),this}clearBefore(t){const e=this.ids.indexOf(t+1)||1;return this.ids.splice(0,e,0),this.runners.splice(0,e,new Ue).forEach(t=>t.clearTransformsFromQueue()),this}edit(t,e){const n=this.ids.indexOf(t+1);return this.ids.splice(n,1,t+1),this.runners.splice(n,1,e),this}getByID(t){return this.runners[this.ids.indexOf(t+1)]}length(){return this.ids.length}merge(){let t=null;for(let e=0;e<this.runners.length;++e){const n=this.runners[e];if(!(t&&n.done&&t.done)||n._timeline&&n._timeline._runnerIds.includes(n.id)||t._timeline&&t._timeline._runnerIds.includes(t.id))t=n;else{this.remove(n.id);const r=n.mergeWith(t);this.edit(t.id,r),t=r,--e}}return this}remove(t){const e=this.ids.indexOf(t+1);return this.ids.splice(e,1),this.runners.splice(e,1),this}}l({Element:{animate(t,e,n){const r=qe.sanitise(t,e,n),i=this.timeline();return new qe(r.duration).loop(r).element(this).timeline(i.play()).schedule(r.delay,r.when)},delay(t,e){return this.animate(0,t,e)},_clearTransformRunnersBefore(t){this._transformationRunners.clearBefore(t.id)},_currentTransform(t){return this._transformationRunners.runners.filter(e=>e.id<=t.id).map(Ge).reduce(Ve,new it)},_addRunner(t){this._transformationRunners.add(t),Ie.cancelImmediate(this._frameId),this._frameId=Ie.immediate(He.bind(this))},_prepareRunner(){null==this._frameId&&(this._transformationRunners=(new Xe).add(new Ue(new it(this))))}}}),B(qe,{attr(t,e){return this.styleAttr("attr",t,e)},css(t,e){return this.styleAttr("css",t,e)},styleAttr(t,e,n){if("string"==typeof e)return this.styleAttr(t,{[e]:n});let r=e;if(this._tryRetarget(t,r))return this;let i=new xe(this._stepper).to(r),s=Object.keys(r);return this.queue(function(){i=i.from(this.element()[t](s))},function(e){return this.element()[t](i.at(e).valueOf()),i.done()},function(e){const n=Object.keys(e),o=(a=s,n.filter(t=>!a.includes(t)));var a;if(o.length){const e=this.element()[t](o),n=new Se(i.from()).valueOf();Object.assign(n,e),i.from(n)}const u=new Se(i.to()).valueOf();Object.assign(u,e),i.to(u),s=n,r=e}),this._rememberMorpher(t,i),this},zoom(t,e){if(this._tryRetarget("zoom",t,e))return this;let n=new 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,u,h;return this.queue(function(){o=o||this.element(),s=s||y(t,o),h=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:h;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&&u&&(p.rotate=u)),i.from(p),i.to(d);const m=i.at(l);return u=m.rotate,a=new it(m),this.addTransform(a),o._addRunner(this),i.done()},function(e){(e.origin||"center").toString()!==(t.origin||"center").toString()&&(s=y(e,o)),t={...e,origin:s}},!0),this._isDeclarative&&this._rememberMorpher("transform",i),this},x(t){return this._queueNumber("x",t)},y(t){return this._queueNumber("y",t)},ax(t){return this._queueNumber("ax",t)},ay(t){return this._queueNumber("ay",t)},dx(t=0){return this._queueNumberDelta("x",t)},dy(t=0){return this._queueNumberDelta("y",t)},dmove(t,e){return this.dx(t).dy(e)},_queueNumberDelta(t,e){if(e=new Nt(e),this._tryRetarget(t,e))return this;const n=new xe(this._stepper).to(e);let r=null;return this.queue(function(){r=this.element()[t](),n.from(r),n.to(r+e)},function(e){return this.element()[t](n.at(e)),n.done()},function(t){n.to(r+new Nt(t))}),this._rememberMorpher(t,n),this},_queueObject(t,e){if(this._tryRetarget(t,e))return this;const n=new xe(this._stepper).to(e);return this.queue(function(){n.from(this.element()[t]())},function(e){return this.element()[t](n.at(e)),n.done()}),this._rememberMorpher(t,n),this},_queueNumber(t,e){return this._queueObject(t,new Nt(e))},cx(t){return this._queueNumber("cx",t)},cy(t){return this._queueNumber("cy",t)},move(t,e){return this.x(t).y(e)},amove(t,e){return this.ax(t).ay(e)},center(t,e){return this.cx(t).cy(e)},size(t,e){let n;return t&&e||(n=this._element.bbox()),t||(t=n.width/n.height*e),e||(e=n.height/n.width*t),this.width(t).height(e)},width(t){return this._queueNumber("width",t)},height(t){return this._queueNumber("height",t)},plot(t,e,n,r){if(4===arguments.length)return this.plot([t,e,n,r]);if(this._tryRetarget("plot",t))return this;const i=new xe(this._stepper).type(this._element.MorphArray).to(t);return this.queue(function(){i.from(this._element.array())},function(t){return this._element.plot(i.at(t)),i.done()}),this._rememberMorpher("plot",i),this},leading(t){return this._queueNumber("leading",t)},viewbox(t,e,n,r){return this._queueObject("viewbox",new at(t,e,n,r))},update(t){return"object"!=typeof t?this.update({offset:arguments[0],color:arguments[1],opacity:arguments[2]}):(null!=t.opacity&&this.attr("stop-opacity",t.opacity),null!=t.color&&this.attr("stop-color",t.color),null!=t.offset&&this.attr("offset",t.offset),this)}}),B(qe,{rx:Lt,ry:jt,from:Ut,to:Vt}),j(qe,"Runner");class Ye extends Et{constructor(t,e=t){super(T("svg",t),e),this.namespace()}defs(){return this.isRoot()?O(this.node.querySelector("defs"))||this.put(new Tt):this.root().defs()}isRoot(){return!this.node.parentNode||!(this.node.parentNode instanceof k.window.SVGElement)&&"#document-fragment"!==this.node.parentNode.nodeName}namespace(){return this.isRoot()?this.attr({xmlns:x,version:"1.1"}).attr("xmlns:xlink",N,_):this.root().namespace()}removeNamespace(){return this.attr({xmlns:null,version:null}).attr("xmlns:xlink",null,_).attr("xmlns:svgjs",null,_)}root(){return this.isRoot()?this:super.root()}}l({Container:{nested:I(function(){return this.put(new Ye)})}}),j(Ye,"Svg",!0);class $e extends Et{constructor(t,e=t){super(T("symbol",t),e)}}function Qe(t){return!1===this._build&&this.clear(),this.node.appendChild(k.document.createTextNode(t)),this}function Ze(){return this.node.getComputedTextLength()}function Je(t,e=this.bbox()){return null==t?e.x:this.attr("x",this.attr("x")+t-e.x)}function Ke(t,e=this.bbox()){return null==t?e.y:this.attr("y",this.attr("y")+t-e.y)}function tn(t,e,n=this.bbox()){return this.x(t,n).y(e,n)}function en(t,e=this.bbox()){return null==t?e.cx:this.attr("x",this.attr("x")+t-e.cx)}function nn(t,e=this.bbox()){return null==t?e.cy:this.attr("y",this.attr("y")+t-e.cy)}function rn(t,e,n=this.bbox()){return this.cx(t,n).cy(e,n)}function sn(t){return this.attr("x",t)}function on(t){return this.attr("y",t)}function an(t,e){return this.ax(t).ay(e)}function un(t){return this._build=!!t,this}l({Container:{symbol:I(function(){return this.put(new $e)})}}),j($e,"Symbol");class hn extends Ot{constructor(t,e=t){super(T("text",t),e),this.dom.leading=this.dom.leading??new Nt(1.3),this._rebuild=!0,this._build=!1}leading(t){return null==t?this.dom.leading:(this.dom.leading=new Nt(t),this.rebuild())}rebuild(t){if("boolean"==typeof t&&(this._rebuild=t),this._rebuild){const t=this;let e=0;const n=this.dom.leading;this.each(function(r){if(w(this.node))return;const i=k.window.getComputedStyle(this.node).getPropertyValue("font-size"),s=n*new Nt(i);this.dom.newLined&&(this.attr("x",t.attr("x")),"\n"===this.text()?e+=s:(this.attr("dy",r?s+e:0),e=0))}),this.fire("rebuild")}return this}setData(t){return this.dom=t,this.dom.leading=new Nt(t.leading||1.3),this}writeDataToDom(){return b(this,this.dom,{leading:1.3}),this}text(t){if(void 0===t){const e=this.node.childNodes;let n=0;t="";for(let r=0,i=e.length;r<i;++r)"textPath"===e[r].nodeName||w(e[r])?0===r&&(n=r+1):(r!==n&&3!==e[r].nodeType&&!0===O(e[r]).dom.newLined&&(t+="\n"),t+=e[r].textContent);return t}if(this.clear().build(!0),"function"==typeof t)t.call(this,this);else for(let e=0,n=(t=(t+"").split("\n")).length;e<n;e++)this.newLine(t[e]);return this.build(!1).rebuild()}}B(hn,o),l({Container:{text:I(function(t=""){return this.put(new hn).text(t)}),plain:I(function(t=""){return this.put(new hn).plain(t)})}}),j(hn,"Text");class ln extends Ot{constructor(t,e=t){super(T("tspan",t),e),this._build=!1}dx(t){return this.attr("dx",t)}dy(t){return this.attr("dy",t)}newLine(){this.dom.newLined=!0;const t=this.parent();if(!(t instanceof hn))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()}}}),j(ln,"Tspan");class cn extends Ot{constructor(t,e=t){super(T("circle",t),e)}radius(t){return this.attr("r",t)}rx(t){return this.attr("r",t)}ry(t){return this.rx(t)}size(t){return this.radius(new Nt(t).divide(2))}}B(cn,{x:Wt,y:Pt,cx:Dt,cy:Bt,width:It,height:Rt}),l({Container:{circle:I(function(t=0){return this.put(new cn).size(t).move(0,0)})}}),j(cn,"Circle");class fn extends Et{constructor(t,e=t){super(T("clipPath",t),e)}remove(){return this.targets().forEach(function(t){t.unclip()}),super.remove()}targets(){return ft("svg [clip-path*="+this.id()+"]")}}l({Container:{clip:I(function(){return this.defs().put(new fn)})},Element:{clipper(){return this.reference("clip-path")},clipWith(t){const e=t instanceof fn?t:this.parent().clip().add(t);return this.attr("clip-path","url(#"+e.id()+")")},unclip(){return this.attr("clip-path",null)}}}),j(fn,"ClipPath");class dn extends Ct{constructor(t,e=t){super(T("foreignObject",t),e)}}function pn(t,e){return this.children().forEach(n=>{let r;try{r=n.node instanceof k.window.SVGSVGElement?new at(n.attr(["x","y","width","height"])):n.bbox()}catch(t){return}const i=new it(n),s=i.translate(t,e).transform(i.inverse()),o=new nt(r.x,r.y).transform(s);n.move(o.x,o.y)}),this}function mn(t){return this.dmove(t,0)}function gn(t){return this.dmove(0,t)}function yn(t,e=this.bbox()){return null==t?e.height:this.size(e.width,t,e)}function vn(t=0,e=0,n=this.bbox()){const r=t-n.x,i=e-n.y;return this.dmove(r,i)}function wn(t,e,n=this.bbox()){const r=g(this,t,e,n),i=r.width/n.width,s=r.height/n.height;return this.children().forEach(t=>{const e=new nt(n).transform(new it(t).inverse());t.scale(i,s,e.x,e.y)}),this}function bn(t,e=this.bbox()){return null==t?e.width:this.size(t,e.height,e)}function xn(t,e=this.bbox()){return null==t?e.x:this.move(t,e.y,e)}function _n(t,e=this.bbox()){return null==t?e.y:this.move(e.x,t,e)}l({Container:{foreignObject:I(function(t,e){return this.put(new dn).size(t,e)})}}),j(dn,"ForeignObject");class Nn extends Et{constructor(t,e=t){super(T("g",t),e)}}B(Nn,a),l({Container:{group:I(function(){return this.put(new Nn)})}}),j(Nn,"G");class kn extends Et{constructor(t,e=t){super(T("a",t),e)}target(t){return this.attr("target",t)}to(t){return this.attr("href",t,N)}}B(kn,a),l({Container:{link:I(function(t){return this.put(new kn).to(t)})},Element:{unlink(){const t=this.linker();if(!t)return this;const e=t.parent();if(!e)return this.remove();const n=e.index(t);return e.add(this,n),t.remove(),this},linkTo(t){let e=this.linker();return e||(e=new kn,this.wrap(e)),"function"==typeof t?t.call(e,e):e.to(t),this},linker(){const t=this.parent();return t&&"a"===t.node.nodeName.toLowerCase()?t:null}}}),j(kn,"A");class Sn extends Et{constructor(t,e=t){super(T("mask",t),e)}remove(){return this.targets().forEach(function(t){t.unmask()}),super.remove()}targets(){return ft("svg [mask*="+this.id()+"]")}}l({Container:{mask:I(function(){return this.defs().put(new Sn)})},Element:{masker(){return this.reference("mask")},maskWith(t){const e=t instanceof Sn?t:this.parent().mask().add(t);return this.attr("mask","url(#"+e.id()+")")},unmask(){return this.attr("mask",null)}}}),j(Sn,"Mask");class Mn extends Ct{constructor(t,e=t){super(T("stop",t),e)}update(t){return("number"==typeof t||t instanceof Nt)&&(t={offset:arguments[0],color:arguments[1],opacity:arguments[2]}),null!=t.opacity&&this.attr("stop-opacity",t.opacity),null!=t.color&&this.attr("stop-color",t.color),null!=t.offset&&this.attr("offset",new Nt(t.offset)),this}}l({Gradient:{stop:function(t,e,n){return this.put(new Mn).update(t,e,n)}}}),j(Mn,"Stop");class Cn extends Ct{constructor(t,e=t){super(T("style",t),e)}addText(t=""){return this.node.textContent+=t,this}font(t,e,n={}){return this.rule("@font-face",{fontFamily:t,src:e,...n})}rule(t,e){return this.addText(function(t,e){if(!t)return"";if(!e)return t;let n=t+"{";for(const t in e)n+=t.replace(/([A-Z])/g,function(t,e){return"-"+e.toLowerCase()})+":"+e[t]+";";return n+="}",n}(t,e))}}l("Dom",{style(t,e){return this.put(new Cn).rule(t,e)},fontface(t,e,n){return this.put(new Cn).font(t,e,n)}}),j(Cn,"Style");class An extends hn{constructor(t,e=t){super(T("textPath",t),e)}array(){const t=this.track();return t?t.array():null}plot(t){const e=this.track();let n=null;return e&&(n=e.plot(t)),null==t?n:this}track(){return this.reference("href")}}l({Container:{textPath:I(function(t,e){return t instanceof hn||(t=this.text(t)),t.path(e)})},Text:{path:I(function(t,e=!0){const n=new An;let r;if(t instanceof Ce||(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 hn||(t=(new hn).addTo(this.parent()).text(t)),t.path(this)}),targets(){return ft("svg textPath").filter(t=>(t.attr("href")||"").includes(this.id()))}}}),An.prototype.MorphArray=we,j(An,"TextPath");class En extends Ot{constructor(t,e=t){super(T("use",t),e)}use(t,e){return this.attr("href",(e||"")+"#"+t,N)}}l({Container:{use:I(function(t,e){return this.put(new En).use(t,e)})}}),j(En,"Use"),B([Ye,$e,Xt,Ht,ne],c("viewbox")),B([ee,We,je,Ce],c("marker")),B(hn,c("Text")),B(Ce,c("Path")),B(Tt,c("Defs")),B([hn,ln],c("Tspan")),B([Pe,zt,Gt,qe],c("radius")),B(wt,c("EventTarget")),B(Mt,c("Dom")),B(Ct,c("Element")),B(Ot,c("Shape")),B([Et,qt],c("Container")),B(Gt,c("Gradient")),B(qe,c("Runner")),lt.extend([...new Set(h)]),function(t=[]){Me.push(...[].concat(t))}([Nt,et,at,it,_t,$t,we,nt]),B(Me,{to(t){return(new xe).type(this.constructor).from(this.toArray()).to(t)},fromArray(t){return this.init(t),this},toConsumable(){return this.toArray()},morph(t,e,n,r,i){return this.fromArray(t.map(function(t,s){return r.step(t,e[s],n,i[s],i)}))}});var Tn=n(726),On=n(854),Ln=n(731),jn=n(986);class Wn{static create(t){let e=document.createElementNS("http://www.w3.org/2000/svg","text");e.textContent=t;let n=new Wn(e);return n.assignUUID(),n.setAttributes(Wn.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 Wn(i)}constructor(t){this.domNode=t,this.centerPoint=new Ln.CenterPoint(t)}serialized(){if(!this.id)throw new Error("Nucleobase ID is falsy.");return{id:this.id}}appendTo(t){t.appendChild(this.domNode)}remove(){this.domNode.remove()}isIn(t){return t.contains(this.domNode)&&t!==this.domNode}hasParent(){return!!this.domNode.parentNode}bringToFront(){(0,Tn.bringToFront)(this.domNode)}sendToBack(){(0,Tn.sendToBack)(this.domNode)}getAttribute(t){return this.domNode.getAttribute(t)}setAttribute(t,e){this.domNode.setAttribute(t,e)}setAttributes(t){try{new hn(this.domNode).attr(t)}catch(t){}}get id(){return this.domNode.id}assignUUID(){(0,Tn.assignUUID)(this.domNode)}get textContent(){return this.domNode.textContent}set textContent(t){this.domNode.textContent=t}isA(){var t;return"A"===(null===(t=this.textContent)||void 0===t?void 0:t.toUpperCase())}isU(){var t;return"U"===(null===(t=this.textContent)||void 0===t?void 0:t.toUpperCase())}isT(){var t;return"T"===(null===(t=this.textContent)||void 0===t?void 0:t.toUpperCase())}isG(){var t;return"G"===(null===(t=this.textContent)||void 0===t?void 0:t.toUpperCase())}isC(){var t;return"C"===(null===(t=this.textContent)||void 0===t?void 0:t.toUpperCase())}get bbox(){return this.domNode.getBBox()}getCenterPoint(){return this.centerPoint}setCenterPoint(t){this.centerPoint.x=t.x,this.centerPoint.y=t.y}maintainingCenterPoint(t){let{x:e,y:n}=this.centerPoint;t(),this.centerPoint.x=e,this.centerPoint.y=n}get boundingClientRect(){return this.domNode.getBoundingClientRect()}get clientCenterPoint(){let t=this.domNode.getBoundingClientRect();return{x:(0,jn.mean)([t.left,t.right]),y:(0,jn.mean)([t.top,t.bottom])}}getClientCenterPoint(){return this.clientCenterPoint}}Wn.defaultAttributes={"font-family":"Arial","font-size":"9","font-weight":"700"},Wn.defaultAttributeNames=["font-family","font-size","font-weight"];class Pn{constructor(t,e){this.base1=t,this.base2=e}[Symbol.iterator](){return[this.base1,this.base2].values()}isAU(){return this.base1.isA()&&this.base2.isU()||this.base1.isU()&&this.base2.isA()}isAT(){return this.base1.isA()&&this.base2.isT()||this.base1.isT()&&this.base2.isA()}isGC(){return this.base1.isG()&&this.base2.isC()||this.base1.isC()&&this.base2.isG()}isGU(){return this.base1.isG()&&this.base2.isU()||this.base1.isU()&&this.base2.isG()}isGT(){return this.base1.isG()&&this.base2.isT()||this.base1.isT()&&this.base2.isG()}}function Dn(t,e){let n=new Map;e.forEach((t,e)=>n.set(t,e));let r=[...t];return r.sort((t,e)=>{var r,i;return(null!==(r=n.get(t))&&void 0!==r?r:-1)-(null!==(i=n.get(e))&&void 0!==i?i:-1)}),r}})(),r})(),t.exports=e()},401:(t,e,n)=>{"use strict";n.d(e,{Ay:()=>d,Qs:()=>u,eB:()=>f,gP:()=>a,vM:()=>l,vw:()=>c,yZ:()=>h});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",u="RAWN5K2ehadscPWlBK_9",h="RDvmUBCYTtjR2wzHlmxc",l="R1YlURzvulrm8_Yykjll",c="JuLTZXer4cr4ufASV85l",f="nJxPkvauzUEG66FC0ZAb";const d=o},417:t=>{"use strict";t.exports=function(t,e){return e||(e={}),t?(t=String(t.__esModule?t.default:t),/^['"].*['"]$/.test(t)&&(t=t.slice(1,-1)),e.hash&&(t+=e.hash),/["'() \t\n]|(%20)/.test(t)||e.needQuotes?'"'.concat(t.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):t):t}},419:(t,e,n)=>{"use strict";n.d(e,{A:()=>u,P:()=>a});var r=n(601),i=n.n(r),s=n(314),o=n.n(s)()(i());o.push([t.id,'.cstoj4QoATbKp66WQrBA {\n border-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 u=o},420:(t,e,n)=>{"use strict";n.d(e,{Ay:()=>l,KQ:()=>a,UJ:()=>h,wx:()=>u});var r=n(601),i=n.n(r),s=n(314),o=n.n(s)()(i());o.push([t.id,'.wkp2L4HpJzRg7XSLEG0O {\n width: 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: black;\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",u="Y7tezdMOsnQfs2CQtMUR",h="blLx0TnwxHwlX8qvUigb";const l=o},540:t=>{"use strict";t.exports=function(t){var e=document.createElement("style");return t.setAttributes(e,t.attributes),t.insert(e,t.options),e}},543:function(t,e,n){var r;t=n.nmd(t),function(){var i,s="Expected a function",o="__lodash_hash_undefined__",a="__lodash_placeholder__",u=32,h=128,l=1/0,c=9007199254740991,f=NaN,d=4294967295,p=[["ary",h],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",u],["partialRight",64],["rearg",256]],m="[object Arguments]",g="[object Array]",y="[object Boolean]",v="[object Date]",w="[object Error]",b="[object Function]",x="[object GeneratorFunction]",_="[object Map]",N="[object Number]",k="[object Object]",S="[object Promise]",M="[object RegExp]",C="[object Set]",A="[object String]",E="[object Symbol]",T="[object WeakMap]",O="[object ArrayBuffer]",L="[object DataView]",j="[object Float32Array]",W="[object Float64Array]",P="[object Int8Array]",D="[object Int16Array]",B="[object Int32Array]",I="[object Uint8Array]",R="[object Uint8ClampedArray]",z="[object Uint16Array]",F="[object Uint32Array]",q=/\b__p \+= '';/g,U=/\b(__p \+=) '' \+/g,V=/(__e\(.*?\)|\b__t\)) \+\n'';/g,G=/&(?:amp|lt|gt|quot|#39);/g,H=/[&<>"']/g,X=RegExp(G.source),Y=RegExp(H.source),$=/<%-([\s\S]+?)%>/g,Q=/<%([\s\S]+?)%>/g,Z=/<%=([\s\S]+?)%>/g,J=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,K=/^\w*$/,tt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,et=/[\\^$.*+?()[\]{}|]/g,nt=RegExp(et.source),rt=/^\s+/,it=/\s/,st=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ot=/\{\n\/\* \[wrapped with (.+)\] \*/,at=/,? & /,ut=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ht=/[()=,{}\[\]\/\s]/,lt=/\\(\\)?/g,ct=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,ft=/\w*$/,dt=/^[-+]0x[0-9a-f]+$/i,pt=/^0b[01]+$/i,mt=/^\[object .+?Constructor\]$/,gt=/^0o[0-7]+$/i,yt=/^(?:0|[1-9]\d*)$/,vt=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,wt=/($^)/,bt=/['\n\r\u2028\u2029\\]/g,xt="\\ud800-\\udfff",_t="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Nt="\\u2700-\\u27bf",kt="a-z\\xdf-\\xf6\\xf8-\\xff",St="A-Z\\xc0-\\xd6\\xd8-\\xde",Mt="\\ufe0e\\ufe0f",Ct="\\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",At="["+xt+"]",Et="["+Ct+"]",Tt="["+_t+"]",Ot="\\d+",Lt="["+Nt+"]",jt="["+kt+"]",Wt="[^"+xt+Ct+Ot+Nt+kt+St+"]",Pt="\\ud83c[\\udffb-\\udfff]",Dt="[^"+xt+"]",Bt="(?:\\ud83c[\\udde6-\\uddff]){2}",It="[\\ud800-\\udbff][\\udc00-\\udfff]",Rt="["+St+"]",zt="\\u200d",Ft="(?:"+jt+"|"+Wt+")",qt="(?:"+Rt+"|"+Wt+")",Ut="(?:['’](?:d|ll|m|re|s|t|ve))?",Vt="(?:['’](?:D|LL|M|RE|S|T|VE))?",Gt="(?:"+Tt+"|"+Pt+")?",Ht="["+Mt+"]?",Xt=Ht+Gt+"(?:"+zt+"(?:"+[Dt,Bt,It].join("|")+")"+Ht+Gt+")*",Yt="(?:"+[Lt,Bt,It].join("|")+")"+Xt,$t="(?:"+[Dt+Tt+"?",Tt,Bt,It,At].join("|")+")",Qt=RegExp("['’]","g"),Zt=RegExp(Tt,"g"),Jt=RegExp(Pt+"(?="+Pt+")|"+$t+Xt,"g"),Kt=RegExp([Rt+"?"+jt+"+"+Ut+"(?="+[Et,Rt,"$"].join("|")+")",qt+"+"+Vt+"(?="+[Et,Rt+Ft,"$"].join("|")+")",Rt+"?"+Ft+"+"+Ut,Rt+"+"+Vt,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Ot,Yt].join("|"),"g"),te=RegExp("["+zt+xt+_t+Mt+"]"),ee=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,ne=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],re=-1,ie={};ie[j]=ie[W]=ie[P]=ie[D]=ie[B]=ie[I]=ie[R]=ie[z]=ie[F]=!0,ie[m]=ie[g]=ie[O]=ie[y]=ie[L]=ie[v]=ie[w]=ie[b]=ie[_]=ie[N]=ie[k]=ie[M]=ie[C]=ie[A]=ie[T]=!1;var se={};se[m]=se[g]=se[O]=se[L]=se[y]=se[v]=se[j]=se[W]=se[P]=se[D]=se[B]=se[_]=se[N]=se[k]=se[M]=se[C]=se[A]=se[E]=se[I]=se[R]=se[z]=se[F]=!0,se[w]=se[b]=se[T]=!1;var oe={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},ae=parseFloat,ue=parseInt,he="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,le="object"==typeof self&&self&&self.Object===Object&&self,ce=he||le||Function("return this")(),fe=e&&!e.nodeType&&e,de=fe&&t&&!t.nodeType&&t,pe=de&&de.exports===fe,me=pe&&he.process,ge=function(){try{return de&&de.require&&de.require("util").types||me&&me.binding&&me.binding("util")}catch(t){}}(),ye=ge&&ge.isArrayBuffer,ve=ge&&ge.isDate,we=ge&&ge.isMap,be=ge&&ge.isRegExp,xe=ge&&ge.isSet,_e=ge&&ge.isTypedArray;function Ne(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}function ke(t,e,n,r){for(var i=-1,s=null==t?0:t.length;++i<s;){var o=t[i];e(r,o,n(o),t)}return r}function Se(t,e){for(var n=-1,r=null==t?0:t.length;++n<r&&!1!==e(t[n],n,t););return t}function Me(t,e){for(var n=null==t?0:t.length;n--&&!1!==e(t[n],n,t););return t}function Ce(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 Ae(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 Ee(t,e){return!(null==t||!t.length)&&Re(t,e,0)>-1}function Te(t,e,n){for(var r=-1,i=null==t?0:t.length;++r<i;)if(n(e,t[r]))return!0;return!1}function Oe(t,e){for(var n=-1,r=null==t?0:t.length,i=Array(r);++n<r;)i[n]=e(t[n],n,t);return i}function Le(t,e){for(var n=-1,r=e.length,i=t.length;++n<r;)t[i+n]=e[n];return t}function je(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 We(t,e,n,r){var i=null==t?0:t.length;for(r&&i&&(n=t[--i]);i--;)n=e(n,t[i],i,t);return n}function Pe(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1}var De=Ue("length");function Be(t,e,n){var r;return n(t,function(t,n,i){if(e(t,n,i))return r=n,!1}),r}function Ie(t,e,n,r){for(var i=t.length,s=n+(r?1:-1);r?s--:++s<i;)if(e(t[s],s,t))return s;return-1}function Re(t,e,n){return e==e?function(t,e,n){for(var r=n-1,i=t.length;++r<i;)if(t[r]===e)return r;return-1}(t,e,n):Ie(t,Fe,n)}function ze(t,e,n,r){for(var i=n-1,s=t.length;++i<s;)if(r(t[i],e))return i;return-1}function Fe(t){return t!=t}function qe(t,e){var n=null==t?0:t.length;return n?He(t,e)/n:f}function Ue(t){return function(e){return null==e?i:e[t]}}function Ve(t){return function(e){return null==t?i:t[e]}}function Ge(t,e,n,r,i){return i(t,function(t,i,s){n=r?(r=!1,t):e(n,t,i,s)}),n}function He(t,e){for(var n,r=-1,s=t.length;++r<s;){var o=e(t[r]);o!==i&&(n=n===i?o:n+o)}return n}function Xe(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}function Ye(t){return t?t.slice(0,fn(t)+1).replace(rt,""):t}function $e(t){return function(e){return t(e)}}function Qe(t,e){return Oe(e,function(e){return t[e]})}function Ze(t,e){return t.has(e)}function Je(t,e){for(var n=-1,r=t.length;++n<r&&Re(e,t[n],0)>-1;);return n}function Ke(t,e){for(var n=t.length;n--&&Re(e,t[n],0)>-1;);return n}var tn=Ve({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"}),en=Ve({"&":"&","<":"<",">":">",'"':""","'":"'"});function nn(t){return"\\"+oe[t]}function rn(t){return te.test(t)}function sn(t){var e=-1,n=Array(t.size);return t.forEach(function(t,r){n[++e]=[r,t]}),n}function on(t,e){return function(n){return t(e(n))}}function an(t,e){for(var n=-1,r=t.length,i=0,s=[];++n<r;){var o=t[n];o!==e&&o!==a||(t[n]=a,s[i++]=n)}return s}function un(t){var e=-1,n=Array(t.size);return t.forEach(function(t){n[++e]=t}),n}function hn(t){var e=-1,n=Array(t.size);return t.forEach(function(t){n[++e]=[t,t]}),n}function ln(t){return rn(t)?function(t){for(var e=Jt.lastIndex=0;Jt.test(t);)++e;return e}(t):De(t)}function cn(t){return rn(t)?function(t){return t.match(Jt)||[]}(t):function(t){return t.split("")}(t)}function fn(t){for(var e=t.length;e--&&it.test(t.charAt(e)););return e}var dn=Ve({"&":"&","<":"<",">":">",""":'"',"'":"'"}),pn=function t(e){var n,r=(e=null==e?ce:pn.defaults(ce.Object(),e,pn.pick(ce,ne))).Array,it=e.Date,xt=e.Error,_t=e.Function,Nt=e.Math,kt=e.Object,St=e.RegExp,Mt=e.String,Ct=e.TypeError,At=r.prototype,Et=_t.prototype,Tt=kt.prototype,Ot=e["__core-js_shared__"],Lt=Et.toString,jt=Tt.hasOwnProperty,Wt=0,Pt=(n=/[^.]+$/.exec(Ot&&Ot.keys&&Ot.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",Dt=Tt.toString,Bt=Lt.call(kt),It=ce._,Rt=St("^"+Lt.call(jt).replace(et,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),zt=pe?e.Buffer:i,Ft=e.Symbol,qt=e.Uint8Array,Ut=zt?zt.allocUnsafe:i,Vt=on(kt.getPrototypeOf,kt),Gt=kt.create,Ht=Tt.propertyIsEnumerable,Xt=At.splice,Yt=Ft?Ft.isConcatSpreadable:i,$t=Ft?Ft.iterator:i,Jt=Ft?Ft.toStringTag:i,te=function(){try{var t=us(kt,"defineProperty");return t({},"",{}),t}catch(t){}}(),oe=e.clearTimeout!==ce.clearTimeout&&e.clearTimeout,he=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=At.join,mn=on(kt.keys,kt),gn=Nt.max,yn=Nt.min,vn=it.now,wn=e.parseInt,bn=Nt.random,xn=At.reverse,_n=us(e,"DataView"),Nn=us(e,"Map"),kn=us(e,"Promise"),Sn=us(e,"Set"),Mn=us(e,"WeakMap"),Cn=us(kt,"create"),An=Mn&&new Mn,En={},Tn=Ds(_n),On=Ds(Nn),Ln=Ds(kn),jn=Ds(Sn),Wn=Ds(Mn),Pn=Ft?Ft.prototype:i,Dn=Pn?Pn.valueOf:i,Bn=Pn?Pn.toString:i;function In(t){if(ta(t)&&!Uo(t)&&!(t instanceof qn)){if(t instanceof Fn)return t;if(jt.call(t,"__wrapped__"))return Bs(t)}return new Fn(t)}var Rn=function(){function t(){}return function(e){if(!Ko(e))return{};if(Gt)return Gt(e);t.prototype=e;var n=new t;return t.prototype=i,n}}();function zn(){}function Fn(t,e){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!e,this.__index__=0,this.__values__=i}function qn(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=d,this.__views__=[]}function Un(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function Vn(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function Gn(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function Hn(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new Gn;++e<n;)this.add(t[e])}function Xn(t){var e=this.__data__=new Vn(t);this.size=e.size}function Yn(t,e){var n=Uo(t),r=!n&&qo(t),i=!n&&!r&&Xo(t),s=!n&&!r&&!i&&ua(t),o=n||r||i||s,a=o?Xe(t.length,Mt):[],u=a.length;for(var h in t)!e&&!jt.call(t,h)||o&&("length"==h||i&&("offset"==h||"parent"==h)||s&&("buffer"==h||"byteLength"==h||"byteOffset"==h)||ms(h,u))||a.push(h);return a}function $n(t){var e=t.length;return e?t[Gr(0,e-1)]:i}function Qn(t,e){return Os(Mi(t),sr(e,0,t.length))}function Zn(t){return Os(Mi(t))}function Jn(t,e,n){(n!==i&&!Ro(t[e],n)||n===i&&!(e in t))&&rr(t,e,n)}function Kn(t,e,n){var r=t[e];jt.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&&Ci(e,Ta(e),t)}function rr(t,e,n){"__proto__"==e&&te?te(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}function ir(t,e){for(var n=-1,s=e.length,o=r(s),a=null==t;++n<s;)o[n]=a?i:Sa(t,e[n]);return o}function sr(t,e,n){return t==t&&(n!==i&&(t=t<=n?t:n),e!==i&&(t=t>=e?t:e)),t}function or(t,e,n,r,s,o){var a,u=1&e,h=2&e,l=4&e;if(n&&(a=s?n(t,r,s,o):n(t)),a!==i)return a;if(!Ko(t))return t;var c=Uo(t);if(c){if(a=function(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&jt.call(t,"index")&&(n.index=t.index,n.input=t.input),n}(t),!u)return Mi(t,a)}else{var f=cs(t),d=f==b||f==x;if(Xo(t))return bi(t,u);if(f==k||f==m||d&&!s){if(a=h||d?{}:ds(t),!u)return h?function(t,e){return Ci(t,ls(t),e)}(t,function(t,e){return t&&Ci(e,Oa(e),t)}(a,t)):function(t,e){return Ci(t,hs(t),e)}(t,nr(a,t))}else{if(!se[f])return s?t:{};a=function(t,e,n){var r,i=t.constructor;switch(e){case O:return xi(t);case y:case v:return new i(+t);case L:return function(t,e){var n=e?xi(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}(t,n);case j:case W:case P:case D:case B:case I:case R:case z:case F:return _i(t,n);case _:return new i;case N:case A:return new i(t);case M:return function(t){var e=new t.constructor(t.source,ft.exec(t));return e.lastIndex=t.lastIndex,e}(t);case C:return new i;case E:return r=t,Dn?kt(Dn.call(r)):{}}}(t,f,u)}}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?h?es:ts:h?Oa:Ta)(t);return Se(g||t,function(r,i){g&&(r=t[i=r]),Kn(a,i,or(r,e,n,i,t,o))}),a}function ar(t,e,n){var r=n.length;if(null==t)return!r;for(t=kt(t);r--;){var s=n[r],o=e[s],a=t[s];if(a===i&&!(s in t)||!o(a))return!1}return!0}function ur(t,e,n){if("function"!=typeof t)throw new Ct(s);return Cs(function(){t.apply(i,n)},e)}function hr(t,e,n,r){var i=-1,s=Ee,o=!0,a=t.length,u=[],h=e.length;if(!a)return u;n&&(e=Oe(e,$e(n))),r?(s=Te,o=!1):e.length>=200&&(s=Ze,o=!1,e=new Hn(e));t:for(;++i<a;){var l=t[i],c=null==n?l:n(l);if(l=r||0!==l?l:0,o&&c==c){for(var f=h;f--;)if(e[f]===c)continue t;u.push(l)}else s(e,c,r)||u.push(l)}return u}In.templateSettings={escape:$,evaluate:Q,interpolate:Z,variable:"",imports:{_:In}},In.prototype=zn.prototype,In.prototype.constructor=In,Fn.prototype=Rn(zn.prototype),Fn.prototype.constructor=Fn,qn.prototype=Rn(zn.prototype),qn.prototype.constructor=qn,Un.prototype.clear=function(){this.__data__=Cn?Cn(null):{},this.size=0},Un.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},Un.prototype.get=function(t){var e=this.__data__;if(Cn){var n=e[t];return n===o?i:n}return jt.call(e,t)?e[t]:i},Un.prototype.has=function(t){var e=this.__data__;return Cn?e[t]!==i:jt.call(e,t)},Un.prototype.set=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=Cn&&e===i?o:e,this},Vn.prototype.clear=function(){this.__data__=[],this.size=0},Vn.prototype.delete=function(t){var e=this.__data__,n=tr(e,t);return!(n<0||(n==e.length-1?e.pop():Xt.call(e,n,1),--this.size,0))},Vn.prototype.get=function(t){var e=this.__data__,n=tr(e,t);return n<0?i:e[n][1]},Vn.prototype.has=function(t){return tr(this.__data__,t)>-1},Vn.prototype.set=function(t,e){var n=this.__data__,r=tr(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this},Gn.prototype.clear=function(){this.size=0,this.__data__={hash:new Un,map:new(Nn||Vn),string:new Un}},Gn.prototype.delete=function(t){var e=os(this,t).delete(t);return this.size-=e?1:0,e},Gn.prototype.get=function(t){return os(this,t).get(t)},Gn.prototype.has=function(t){return os(this,t).has(t)},Gn.prototype.set=function(t,e){var n=os(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this},Hn.prototype.add=Hn.prototype.push=function(t){return this.__data__.set(t,o),this},Hn.prototype.has=function(t){return this.__data__.has(t)},Xn.prototype.clear=function(){this.__data__=new Vn,this.size=0},Xn.prototype.delete=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n},Xn.prototype.get=function(t){return this.__data__.get(t)},Xn.prototype.has=function(t){return this.__data__.has(t)},Xn.prototype.set=function(t,e){var n=this.__data__;if(n instanceof Vn){var r=n.__data__;if(!Nn||r.length<199)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new Gn(r)}return n.set(t,e),this.size=n.size,this};var lr=Ti(vr),cr=Ti(wr,!0);function fr(t,e){var n=!0;return lr(t,function(t,r,i){return n=!!e(t,r,i)}),n}function dr(t,e,n){for(var r=-1,s=t.length;++r<s;){var o=t[r],a=e(o);if(null!=a&&(u===i?a==a&&!aa(a):n(a,u)))var u=a,h=o}return h}function pr(t,e){var n=[];return lr(t,function(t,r,i){e(t,r,i)&&n.push(t)}),n}function mr(t,e,n,r,i){var s=-1,o=t.length;for(n||(n=ps),i||(i=[]);++s<o;){var a=t[s];e>0&&n(a)?e>1?mr(a,e-1,n,r,i):Le(i,a):r||(i[i.length]=a)}return i}var gr=Oi(),yr=Oi(!0);function vr(t,e){return t&&gr(t,e,Ta)}function wr(t,e){return t&&yr(t,e,Ta)}function br(t,e){return Ae(e,function(e){return Qo(t[e])})}function xr(t,e){for(var n=0,r=(e=gi(e,t)).length;null!=t&&n<r;)t=t[Ps(e[n++])];return n&&n==r?t:i}function _r(t,e,n){var r=e(t);return Uo(t)?r:Le(r,n(t))}function Nr(t){return null==t?t===i?"[object Undefined]":"[object Null]":Jt&&Jt in kt(t)?function(t){var e=jt.call(t,Jt),n=t[Jt];try{t[Jt]=i;var r=!0}catch(t){}var s=Dt.call(t);return r&&(e?t[Jt]=n:delete t[Jt]),s}(t):function(t){return Dt.call(t)}(t)}function kr(t,e){return t>e}function Sr(t,e){return null!=t&&jt.call(t,e)}function Mr(t,e){return null!=t&&e in kt(t)}function Cr(t,e,n){for(var s=n?Te:Ee,o=t[0].length,a=t.length,u=a,h=r(a),l=1/0,c=[];u--;){var f=t[u];u&&e&&(f=Oe(f,$e(e))),l=yn(f.length,l),h[u]=!n&&(e||o>=120&&f.length>=120)?new Hn(u&&f):i}f=t[0];var d=-1,p=h[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(u=a;--u;){var y=h[u];if(!(y?Ze(y,g):s(t[u],g,n)))continue t}p&&p.push(g),c.push(m)}}return c}function Ar(t,e,n){var r=null==(t=ks(t,e=gi(e,t)))?t:t[Ps(Ys(e))];return null==r?i:Ne(r,t,n)}function Er(t){return ta(t)&&Nr(t)==m}function Tr(t,e,n,r,s){return t===e||(null==t||null==e||!ta(t)&&!ta(e)?t!=t&&e!=e:function(t,e,n,r,s,o){var a=Uo(t),u=Uo(e),h=a?g:cs(t),l=u?g:cs(e),c=(h=h==m?k:h)==k,f=(l=l==m?k:l)==k,d=h==l;if(d&&Xo(t)){if(!Xo(e))return!1;a=!0,c=!1}if(d&&!c)return o||(o=new Xn),a||ua(t)?Ji(t,e,n,r,s,o):function(t,e,n,r,i,s,o){switch(n){case L:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case O:return!(t.byteLength!=e.byteLength||!s(new qt(t),new qt(e)));case y:case v:case N:return Ro(+t,+e);case w:return t.name==e.name&&t.message==e.message;case M:case A:return t==e+"";case _:var a=sn;case C:var u=1&r;if(a||(a=un),t.size!=e.size&&!u)return!1;var h=o.get(t);if(h)return h==e;r|=2,o.set(t,e);var l=Ji(a(t),a(e),r,i,s,o);return o.delete(t),l;case E:if(Dn)return Dn.call(t)==Dn.call(e)}return!1}(t,e,h,n,r,s,o);if(!(1&n)){var p=c&&jt.call(t,"__wrapped__"),b=f&&jt.call(e,"__wrapped__");if(p||b){var x=p?t.value():t,S=b?e.value():e;return o||(o=new Xn),s(x,S,n,r,o)}}return!!d&&(o||(o=new Xn),function(t,e,n,r,s,o){var a=1&n,u=ts(t),h=u.length;if(h!=ts(e).length&&!a)return!1;for(var l=h;l--;){var c=u[l];if(!(a?c in e:jt.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<h;){var g=t[c=u[l]],y=e[c];if(r)var v=a?r(y,g,c,e,t,o):r(g,y,c,t,e,o);if(!(v===i?g===y||s(g,y,n,r,o):v)){p=!1;break}m||(m="constructor"==c)}if(p&&!m){var w=t.constructor,b=e.constructor;w==b||!("constructor"in t)||!("constructor"in e)||"function"==typeof w&&w instanceof w&&"function"==typeof b&&b instanceof b||(p=!1)}return o.delete(t),o.delete(e),p}(t,e,n,r,s,o))}(t,e,n,r,Tr,s))}function Or(t,e,n,r){var s=n.length,o=s,a=!r;if(null==t)return!o;for(t=kt(t);s--;){var u=n[s];if(a&&u[2]?u[1]!==t[u[0]]:!(u[0]in t))return!1}for(;++s<o;){var h=(u=n[s])[0],l=t[h],c=u[1];if(a&&u[2]){if(l===i&&!(h in t))return!1}else{var f=new Xn;if(r)var d=r(l,c,h,t,e,f);if(!(d===i?Tr(c,l,3,r,f):d))return!1}}return!0}function Lr(t){return!(!Ko(t)||(e=t,Pt&&Pt in e))&&(Qo(t)?Rt:mt).test(Ds(t));var e}function jr(t){return"function"==typeof t?t:null==t?nu:"object"==typeof t?Uo(t)?Ir(t[0],t[1]):Br(t):cu(t)}function Wr(t){if(!bs(t))return mn(t);var e=[];for(var n in kt(t))jt.call(t,n)&&"constructor"!=n&&e.push(n);return e}function Pr(t,e){return t<e}function Dr(t,e){var n=-1,i=Go(t)?r(t.length):[];return lr(t,function(t,r,s){i[++n]=e(t,r,s)}),i}function Br(t){var e=as(t);return 1==e.length&&e[0][2]?_s(e[0][0],e[0][1]):function(n){return n===t||Or(n,t,e)}}function Ir(t,e){return ys(t)&&xs(e)?_s(Ps(t),e):function(n){var r=Sa(n,t);return r===i&&r===e?Ma(n,t):Tr(e,r,3)}}function Rr(t,e,n,r,s){t!==e&&gr(e,function(o,a){if(s||(s=new Xn),Ko(o))!function(t,e,n,r,s,o,a){var u=Ss(t,n),h=Ss(e,n),l=a.get(h);if(l)Jn(t,n,l);else{var c=o?o(u,h,n+"",t,e,a):i,f=c===i;if(f){var d=Uo(h),p=!d&&Xo(h),m=!d&&!p&&ua(h);c=h,d||p||m?Uo(u)?c=u:Ho(u)?c=Mi(u):p?(f=!1,c=bi(h,!0)):m?(f=!1,c=_i(h,!0)):c=[]:ra(h)||qo(h)?(c=u,qo(u)?c=ga(u):Ko(u)&&!Qo(u)||(c=ds(h))):f=!1}f&&(a.set(h,c),s(c,h,r,o,a),a.delete(h)),Jn(t,n,c)}}(t,e,a,n,Rr,r,s);else{var u=r?r(Ss(t,a),o,a+"",t,e,s):i;u===i&&(u=o),Jn(t,a,u)}},Oa)}function zr(t,e){var n=t.length;if(n)return ms(e+=e<0?n:0,n)?t[e]:i}function Fr(t,e,n){e=e.length?Oe(e,function(t){return Uo(t)?function(e){return xr(e,1===t.length?t[0]:t)}:t}):[nu];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 u=Ni(i[r],s[r]);if(u)return r>=a?u:u*("desc"==n[r]?-1:1)}return t.index-e.index}(t,e,n)});e--;)t[e]=t[e].value;return t}(i)}function qr(t,e,n){for(var r=-1,i=e.length,s={};++r<i;){var o=e[r],a=xr(t,o);n(a,o)&&Qr(s,gi(o,t),a)}return s}function Ur(t,e,n,r){var i=r?ze:Re,s=-1,o=e.length,a=t;for(t===e&&(e=Mi(e)),n&&(a=Oe(t,$e(n)));++s<o;)for(var u=0,h=e[s],l=n?n(h):h;(u=i(a,l,u,r))>-1;)a!==t&&Xt.call(a,u,1),Xt.call(t,u,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):ui(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 As(Ns(t,e,nu),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,u=t;null!=u&&++s<o;){var h=Ps(e[s]),l=n;if("__proto__"===h||"constructor"===h||"prototype"===h)return t;if(s!=a){var c=u[h];(l=r?r(c,h,u):i)===i&&(l=Ko(c)?c:ms(e[s+1])?[]:{})}Kn(u,h,l),u=u[h]}return t}var Zr=An?function(t,e){return An.set(t,e),t}:nu,Jr=te?function(t,e){return te(t,"toString",{configurable:!0,enumerable:!1,value:Ka(e),writable:!0})}:nu;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,nu,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,u=null===e,h=aa(e),l=e===i;s<o;){var c=de((s+o)/2),f=n(t[c]),d=f!==i,p=null===f,m=f==f,g=aa(f);if(a)var y=r||m;else y=l?m&&(r||d):u?m&&d&&(r||!p):h?m&&d&&!p&&(r||!g):!p&&!g&&(r?f<=e:f<e);y?s=c+1:o=c}return yn(o,4294967294)}function ii(t,e){for(var n=-1,r=t.length,i=0,s=[];++n<r;){var o=t[n],a=e?e(o):o;if(!n||!Ro(a,u)){var u=a;s[i++]=0===o?0:o}}return s}function si(t){return"number"==typeof t?t:aa(t)?f:+t}function oi(t){if("string"==typeof t)return t;if(Uo(t))return Oe(t,oi)+"";if(aa(t))return Bn?Bn.call(t):"";var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}function ai(t,e,n){var r=-1,i=Ee,s=t.length,o=!0,a=[],u=a;if(n)o=!1,i=Te;else if(s>=200){var h=e?null:Hi(t);if(h)return un(h);o=!1,i=Ze,u=new Hn}else u=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=u.length;f--;)if(u[f]===c)continue t;e&&u.push(c),a.push(l)}else i(u,c,n)||(u!==a&&u.push(c),a.push(l))}return a}function ui(t,e){return null==(t=ks(t,e=gi(e,t)))||delete t[Ps(Ys(e))]}function hi(t,e,n,r){return Qr(t,e,n(xr(t,e)),r)}function li(t,e,n,r){for(var i=t.length,s=r?i:-1;(r?s--:++s<i)&&e(t[s],s,t););return n?ti(t,r?0:s,r?s+1:i):ti(t,r?s+1:0,r?i:s)}function ci(t,e){var n=t;return n instanceof qn&&(n=n.value()),je(e,function(t,e){return e.func.apply(e.thisArg,Le([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],u=-1;++u<i;)u!=s&&(o[s]=hr(o[s]||a,t[u],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 u=r<o?e[r]:i;n(a,t[r],u)}return a}function pi(t){return Ho(t)?t:[]}function mi(t){return"function"==typeof t?t:nu}function gi(t,e){return Uo(t)?t:ys(t,e)?[t]:Ws(ya(t))}var yi=Xr;function vi(t,e,n){var r=t.length;return n=n===i?r:n,!e&&n>=r?t:ti(t,e,n)}var wi=oe||function(t){return ce.clearTimeout(t)};function bi(t,e){if(e)return t.slice();var n=t.length,r=Ut?Ut(n):new t.constructor(n);return t.copy(r),r}function xi(t){var e=new t.constructor(t.byteLength);return new qt(e).set(new qt(t)),e}function _i(t,e){var n=e?xi(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}function Ni(t,e){if(t!==e){var n=t!==i,r=null===t,s=t==t,o=aa(t),a=e!==i,u=null===e,h=e==e,l=aa(e);if(!u&&!l&&!o&&t>e||o&&a&&h&&!u&&!l||r&&a&&h||!n&&h||!s)return 1;if(!r&&!o&&!l&&t<e||l&&n&&s&&!r&&!o||u&&n&&s||!a&&s||!h)return-1}return 0}function ki(t,e,n,i){for(var s=-1,o=t.length,a=n.length,u=-1,h=e.length,l=gn(o-a,0),c=r(h+l),f=!i;++u<h;)c[u]=e[u];for(;++s<a;)(f||s<o)&&(c[n[s]]=t[s]);for(;l--;)c[u++]=t[s++];return c}function Si(t,e,n,i){for(var s=-1,o=t.length,a=-1,u=n.length,h=-1,l=e.length,c=gn(o-u,0),f=r(c+l),d=!i;++s<c;)f[s]=t[s];for(var p=s;++h<l;)f[p+h]=e[h];for(;++a<u;)(d||s<o)&&(f[p+n[a]]=t[s++]);return f}function Mi(t,e){var n=-1,i=t.length;for(e||(e=r(i));++n<i;)e[n]=t[n];return e}function Ci(t,e,n,r){var s=!n;n||(n={});for(var o=-1,a=e.length;++o<a;){var u=e[o],h=r?r(n[u],t[u],u,n,t):i;h===i&&(h=t[u]),s?rr(n,u,h):Kn(n,u,h)}return n}function Ai(t,e){return function(n,r){var i=Uo(n)?ke:er,s=e?e():{};return i(n,t,ss(r,2),s)}}function Ei(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 u=n[r];u&&t(e,u,r,o)}return e})}function Ti(t,e){return function(n,r){if(null==n)return n;if(!Go(n))return t(n,r);for(var i=n.length,s=e?i:-1,o=kt(n);(e?s--:++s<i)&&!1!==r(o[s],s,o););return n}}function Oi(t){return function(e,n,r){for(var i=-1,s=kt(e),o=r(e),a=o.length;a--;){var u=o[t?a:++i];if(!1===n(s[u],u,s))break}return e}}function Li(t){return function(e){var n=rn(e=ya(e))?cn(e):i,r=n?n[0]:e.charAt(0),s=n?vi(n,1).join(""):e.slice(1);return r[t]()+s}}function ji(t){return function(e){return je(Qa(qa(e).replace(Qt,"")),t,"")}}function Wi(t){return function(){var e=arguments;switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3]);case 5:return new t(e[0],e[1],e[2],e[3],e[4]);case 6:return new t(e[0],e[1],e[2],e[3],e[4],e[5]);case 7:return new t(e[0],e[1],e[2],e[3],e[4],e[5],e[6])}var n=Rn(t.prototype),r=t.apply(n,e);return Ko(r)?r:n}}function Pi(t){return function(e,n,r){var s=kt(e);if(!Go(e)){var o=ss(n,3);e=Ta(e),n=function(t){return o(s[t],t,s)}}var a=t(e,n,r);return a>-1?s[o?e[a]:a]:i}}function Di(t){return Ki(function(e){var n=e.length,r=n,o=Fn.prototype.thru;for(t&&e.reverse();r--;){var a=e[r];if("function"!=typeof a)throw new Ct(s);if(o&&!u&&"wrapper"==rs(a))var u=new Fn([],!0)}for(r=u?r:n;++r<n;){var h=rs(a=e[r]),l="wrapper"==h?ns(a):i;u=l&&vs(l[0])&&424==l[1]&&!l[4].length&&1==l[9]?u[rs(l[0])].apply(u,l[3]):1==a.length&&vs(a)?u[h]():u.thru(a)}return function(){var t=arguments,r=t[0];if(u&&1==t.length&&Uo(r))return u.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,u,l,c,f){var d=e&h,p=1&e,m=2&e,g=24&e,y=512&e,v=m?i:Wi(t);return function h(){for(var w=arguments.length,b=r(w),x=w;x--;)b[x]=arguments[x];if(g)var _=is(h),N=function(t,e){for(var n=t.length,r=0;n--;)t[n]===e&&++r;return r}(b,_);if(s&&(b=ki(b,s,o,g)),a&&(b=Si(b,a,u,g)),w-=N,g&&w<f){var k=an(b,_);return Vi(t,e,Bi,h.placeholder,n,b,k,l,c,f-w)}var S=p?n:this,M=m?S[t]:t;return w=b.length,l?b=function(t,e){for(var n=t.length,r=yn(e.length,n),s=Mi(t);r--;){var o=e[r];t[r]=ms(o,n)?s[o]:i}return t}(b,l):y&&w>1&&b.reverse(),d&&c<w&&(b.length=c),this&&this!==ce&&this instanceof h&&(M=v||Wi(M)),M.apply(S,b)}}function Ii(t,e){return function(n,r){return function(t,e,n,r){return vr(t,function(t,i,s){e(r,n(t),i,s)}),r}(n,t,e(r),{})}}function Ri(t,e){return function(n,r){var s;if(n===i&&r===i)return e;if(n!==i&&(s=n),r!==i){if(s===i)return r;"string"==typeof n||"string"==typeof r?(n=oi(n),r=oi(r)):(n=si(n),r=si(r)),s=t(n,r)}return s}}function zi(t){return Ki(function(e){return e=Oe(e,$e(ss())),Xr(function(n){var r=this;return t(e,function(t){return Ne(t,r,n)})})})}function Fi(t,e){var n=(e=e===i?" ":oi(e)).length;if(n<2)return n?Hr(e,t):e;var r=Hr(e,fe(t/ln(e)));return rn(e)?vi(cn(r),0,t).join(""):r.slice(0,t)}function qi(t){return function(e,n,s){return s&&"number"!=typeof s&&gs(e,n,s)&&(n=s=i),e=fa(e),n===i?(n=e,e=0):n=fa(n),function(t,e,n,i){for(var s=-1,o=gn(fe((e-t)/(n||1)),0),a=r(o);o--;)a[i?o:++s]=t,t+=n;return a}(e,n,s=s===i?e<n?1:-1:fa(s),t)}}function Ui(t){return function(e,n){return"string"==typeof e&&"string"==typeof n||(e=ma(e),n=ma(n)),t(e,n)}}function Vi(t,e,n,r,s,o,a,h,l,c){var f=8&e;e|=f?u:64,4&(e&=~(f?64:u))||(e&=-4);var d=[t,e,s,f?o:i,f?a:i,f?i:o,f?i:a,h,l,c],p=n.apply(i,d);return vs(t)&&Ms(p,d),p.placeholder=r,Es(p,t,e)}function Gi(t){var e=Nt[t];return function(t,n){if(t=ma(t),(n=null==n?0:yn(da(n),292))&&De(t)){var r=(ya(t)+"e").split("e");return+((r=(ya(e(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return e(t)}}var Hi=Sn&&1/un(new Sn([,-0]))[1]==l?function(t){return new Sn(t)}:au;function Xi(t){return function(e){var n=cs(e);return n==_?sn(e):n==C?hn(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 Ct(s);var m=o?o.length:0;if(m||(e&=-97,o=l=i),f=f===i?f:gn(da(f),0),d=d===i?d:da(d),m-=l?l.length:0,64&e){var g=o,y=l;o=l=i}var v=p?i:ns(t),w=[t,e,n,o,l,g,y,c,f,d];if(v&&function(t,e){var n=t[1],r=e[1],i=n|r,s=i<131,o=r==h&&8==n||r==h&&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 u=e[3];if(u){var l=t[3];t[3]=l?ki(l,u,e[4]):u,t[4]=l?an(t[3],a):e[4]}(u=e[5])&&(l=t[5],t[5]=l?Si(l,u,e[6]):u,t[6]=l?an(t[5],a):e[6]),(u=e[7])&&(t[7]=u),r&h&&(t[8]=null==t[8]?e[8]:yn(t[8],e[8])),null==t[9]&&(t[9]=e[9]),t[0]=e[0],t[1]=i}(w,v),t=w[0],e=w[1],n=w[2],o=w[3],l=w[4],!(d=w[9]=w[9]===i?p?0:t.length:gn(w[9]-m,0))&&24&e&&(e&=-25),e&&1!=e)b=8==e||16==e?function(t,e,n){var s=Wi(t);return function o(){for(var a=arguments.length,u=r(a),h=a,l=is(o);h--;)u[h]=arguments[h];var c=a<3&&u[0]!==l&&u[a-1]!==l?[]:an(u,l);return(a-=c.length)<n?Vi(t,e,Bi,o.placeholder,i,u,c,i,i,n-a):Ne(this&&this!==ce&&this instanceof o?s:t,this,u)}}(t,e,d):e!=u&&33!=e||l.length?Bi.apply(i,w):function(t,e,n,i){var s=1&e,o=Wi(t);return function e(){for(var a=-1,u=arguments.length,h=-1,l=i.length,c=r(l+u),f=this&&this!==ce&&this instanceof e?o:t;++h<l;)c[h]=i[h];for(;u--;)c[h++]=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=Wi(t);return function e(){return(this&&this!==ce&&this instanceof e?i:t).apply(r?n:this,arguments)}}(t,e,n);return Es((v?Zr:Ms)(b,w),t,e)}function $i(t,e,n,r){return t===i||Ro(t,Tt[n])&&!jt.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,u=t.length,h=e.length;if(u!=h&&!(a&&h>u))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<u;){var m=t[f],g=e[f];if(r)var y=a?r(g,m,f,e,t,o):r(m,g,f,t,e,o);if(y!==i){if(y)continue;d=!1;break}if(p){if(!Pe(e,function(t,e){if(!Ze(p,e)&&(m===t||s(m,t,n,r,o)))return p.push(e)})){d=!1;break}}else if(m!==g&&!s(m,g,n,r,o)){d=!1;break}}return o.delete(t),o.delete(e),d}function Ki(t){return As(Ns(t,i,Us),t+"")}function ts(t){return _r(t,Ta,hs)}function es(t){return _r(t,Oa,ls)}var ns=An?function(t){return An.get(t)}:au;function rs(t){for(var e=t.name+"",n=En[e],r=jt.call(En,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(jt.call(In,"placeholder")?In:t).placeholder}function ss(){var t=In.iteratee||ru;return t=t===ru?jr:t,arguments.length?t(arguments[0],arguments[1]):t}function os(t,e){var n,r,i=t.__data__;return("string"==(r=typeof(n=e))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?i["string"==typeof e?"string":"hash"]:i.map}function as(t){for(var e=Ta(t),n=e.length;n--;){var r=e[n],i=t[r];e[n]=[r,i,xs(i)]}return e}function us(t,e){var n=function(t,e){return null==t?i:t[e]}(t,e);return Lr(n)?n:i}var hs=me?function(t){return null==t?[]:(t=kt(t),Ae(me(t),function(e){return Ht.call(t,e)}))}:pu,ls=me?function(t){for(var e=[];t;)Le(e,hs(t)),t=Vt(t);return e}:pu,cs=Nr;function fs(t,e,n){for(var r=-1,i=(e=gi(e,t)).length,s=!1;++r<i;){var o=Ps(e[r]);if(!(s=null!=t&&n(t,o)))break;t=t[o]}return s||++r!=i?s:!!(i=null==t?0:t.length)&&Jo(i)&&ms(o,i)&&(Uo(t)||qo(t))}function ds(t){return"function"!=typeof t.constructor||bs(t)?{}:Rn(Vt(t))}function ps(t){return Uo(t)||qo(t)||!!(Yt&&t&&t[Yt])}function ms(t,e){var n=typeof t;return!!(e=null==e?c:e)&&("number"==n||"symbol"!=n&&yt.test(t))&&t>-1&&t%1==0&&t<e}function gs(t,e,n){if(!Ko(n))return!1;var r=typeof e;return!!("number"==r?Go(n)&&ms(e,n.length):"string"==r&&e in n)&&Ro(n[e],t)}function ys(t,e){if(Uo(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!aa(t))||K.test(t)||!J.test(t)||null!=e&&t in kt(e)}function vs(t){var e=rs(t),n=In[e];if("function"!=typeof n||!(e in qn.prototype))return!1;if(t===n)return!0;var r=ns(n);return!!r&&t===r[0]}(_n&&cs(new _n(new ArrayBuffer(1)))!=L||Nn&&cs(new Nn)!=_||kn&&cs(kn.resolve())!=S||Sn&&cs(new Sn)!=C||Mn&&cs(new Mn)!=T)&&(cs=function(t){var e=Nr(t),n=e==k?t.constructor:i,r=n?Ds(n):"";if(r)switch(r){case Tn:return L;case On:return _;case Ln:return S;case jn:return C;case Wn:return T}return e});var ws=Ot?Qo:mu;function bs(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||Tt)}function xs(t){return t==t&&!Ko(t)}function _s(t,e){return function(n){return null!=n&&n[t]===e&&(e!==i||t in kt(n))}}function Ns(t,e,n){return e=gn(e===i?t.length-1:e,0),function(){for(var i=arguments,s=-1,o=gn(i.length-e,0),a=r(o);++s<o;)a[s]=i[e+s];s=-1;for(var u=r(e+1);++s<e;)u[s]=i[s];return u[e]=n(a),Ne(t,this,u)}}function ks(t,e){return e.length<2?t:xr(t,ti(e,0,-1))}function Ss(t,e){if(("constructor"!==e||"function"!=typeof t[e])&&"__proto__"!=e)return t[e]}var Ms=Ts(Zr),Cs=le||function(t,e){return ce.setTimeout(t,e)},As=Ts(Jr);function Es(t,e,n){var r=e+"";return As(t,function(t,e){var n=e.length;if(!n)return t;var r=n-1;return e[r]=(n>1?"& ":"")+e[r],e=e.join(n>2?", ":" "),t.replace(st,"{\n/* [wrapped with "+e+"] */\n")}(r,function(t,e){return Se(p,function(n){var r="_."+n[0];e&n[1]&&!Ee(t,r)&&t.push(r)}),t.sort()}(function(t){var e=t.match(ot);return e?e[1].split(at):[]}(r),n)))}function Ts(t){var e=0,n=0;return function(){var r=vn(),s=16-(r-n);if(n=r,s>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(i,arguments)}}function Os(t,e){var n=-1,r=t.length,s=r-1;for(e=e===i?r:e;++n<e;){var o=Gr(n,s),a=t[o];t[o]=t[n],t[n]=a}return t.length=e,t}var Ls,js,Ws=(Ls=jo(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===js.size&&js.clear(),t}),js=Ls.cache,Ls);function Ps(t){if("string"==typeof t||aa(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}function Ds(t){if(null!=t){try{return Lt.call(t)}catch(t){}try{return t+""}catch(t){}}return""}function Bs(t){if(t instanceof qn)return t.clone();var e=new Fn(t.__wrapped__,t.__chain__);return e.__actions__=Mi(t.__actions__),e.__index__=t.__index__,e.__values__=t.__values__,e}var Is=Xr(function(t,e){return Ho(t)?hr(t,mr(e,1,Ho,!0)):[]}),Rs=Xr(function(t,e){var n=Ys(e);return Ho(n)&&(n=i),Ho(t)?hr(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)?hr(t,mr(e,1,Ho,!0),i,n):[]});function Fs(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var i=null==n?0:da(n);return i<0&&(i=gn(r+i,0)),Ie(t,ss(e,3),i)}function qs(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var s=r-1;return n!==i&&(s=da(n),s=n<0?gn(r+s,0):yn(s,r-1)),Ie(t,ss(e,3),s,!0)}function Us(t){return null!=t&&t.length?mr(t,1):[]}function Vs(t){return t&&t.length?t[0]:i}var Gs=Xr(function(t){var e=Oe(t,pi);return e.length&&e[0]===t[0]?Cr(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]?Cr(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]?Cr(n,i,e):[]});function Ys(t){var e=null==t?0:t.length;return e?t[e-1]:i}var $s=Xr(Qs);function Qs(t,e){return t&&t.length&&e&&e.length?Ur(t,e):t}var Zs=Ki(function(t,e){var n=null==t?0:t.length,r=ir(t,e);return Vr(t,Oe(e,function(t){return ms(t,n)?+t:t}).sort(Ni)),r});function Js(t){return null==t?t:xn.call(t)}var Ks=Xr(function(t){return ai(mr(t,1,Ho,!0))}),to=Xr(function(t){var e=Ys(t);return Ho(e)&&(e=i),ai(mr(t,1,Ho,!0),ss(e,2))}),eo=Xr(function(t){var e=Ys(t);return e="function"==typeof e?e:i,ai(mr(t,1,Ho,!0),i,e)});function no(t){if(!t||!t.length)return[];var e=0;return t=Ae(t,function(t){if(Ho(t))return e=gn(t.length,e),!0}),Xe(e,function(e){return Oe(t,Ue(e))})}function ro(t,e){if(!t||!t.length)return[];var n=no(t);return null==e?n:Oe(n,function(t){return Ne(e,i,t)})}var io=Xr(function(t,e){return Ho(t)?hr(t,e):[]}),so=Xr(function(t){return fi(Ae(t,Ho))}),oo=Xr(function(t){var e=Ys(t);return Ho(e)&&(e=i),fi(Ae(t,Ho),ss(e,2))}),ao=Xr(function(t){var e=Ys(t);return e="function"==typeof e?e:i,fi(Ae(t,Ho),i,e)}),uo=Xr(no),ho=Xr(function(t){var e=t.length,n=e>1?t[e-1]:i;return n="function"==typeof n?(t.pop(),n):i,ro(t,n)});function lo(t){var e=In(t);return e.__chain__=!0,e}function co(t,e){return e(t)}var fo=Ki(function(t){var e=t.length,n=e?t[0]:0,r=this.__wrapped__,s=function(e){return ir(e,t)};return!(e>1||this.__actions__.length)&&r instanceof qn&&ms(n)?((r=r.slice(n,+n+(e?1:0))).__actions__.push({func:co,args:[s],thisArg:i}),new Fn(r,this.__chain__).thru(function(t){return e&&!t.length&&t.push(i),t})):this.thru(s)}),po=Ai(function(t,e,n){jt.call(t,n)?++t[n]:rr(t,n,1)}),mo=Pi(Fs),go=Pi(qs);function yo(t,e){return(Uo(t)?Se:lr)(t,ss(e,3))}function vo(t,e){return(Uo(t)?Me:cr)(t,ss(e,3))}var wo=Ai(function(t,e,n){jt.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):Ar(t,e,n)}),o}),xo=Ai(function(t,e,n){rr(t,n,e)});function _o(t,e){return(Uo(t)?Oe:Dr)(t,ss(e,3))}var No=Ai(function(t,e,n){t[n?0:1].push(e)},function(){return[[],[]]}),ko=Xr(function(t,e){if(null==t)return[];var n=e.length;return n>1&&gs(t,e[0],e[1])?e=[]:n>2&&gs(e[0],e[1],e[2])&&(e=[e[0]]),Fr(t,mr(e,1),[])}),So=he||function(){return ce.Date.now()};function Mo(t,e,n){return e=n?i:e,e=t&&null==e?t.length:e,Yi(t,h,i,i,i,i,e)}function Co(t,e){var n;if("function"!=typeof e)throw new Ct(s);return t=da(t),function(){return--t>0&&(n=e.apply(this,arguments)),t<=1&&(e=i),n}}var Ao=Xr(function(t,e,n){var r=1;if(n.length){var i=an(n,is(Ao));r|=u}return Yi(t,r,e,n,i)}),Eo=Xr(function(t,e,n){var r=3;if(n.length){var i=an(n,is(Eo));r|=u}return Yi(e,r,t,n,i)});function To(t,e,n){var r,o,a,u,h,l,c=0,f=!1,d=!1,p=!0;if("function"!=typeof t)throw new Ct(s);function m(e){var n=r,s=o;return r=o=i,c=e,u=t.apply(s,n)}function g(t){var n=t-l;return l===i||n>=e||n<0||d&&t-c>=a}function y(){var t=So();if(g(t))return v(t);h=Cs(y,function(t){var n=e-(t-l);return d?yn(n,a-(t-c)):n}(t))}function v(t){return h=i,p&&r?m(t):(r=o=i,u)}function w(){var t=So(),n=g(t);if(r=arguments,o=this,l=t,n){if(h===i)return function(t){return c=t,h=Cs(y,e),f?m(t):u}(l);if(d)return wi(h),h=Cs(y,e),m(l)}return h===i&&(h=Cs(y,e)),u}return e=ma(e)||0,Ko(n)&&(f=!!n.leading,a=(d="maxWait"in n)?gn(ma(n.maxWait)||0,e):a,p="trailing"in n?!!n.trailing:p),w.cancel=function(){h!==i&&wi(h),c=0,r=l=o=h=i},w.flush=function(){return h===i?u:v(So())},w}var Oo=Xr(function(t,e){return ur(t,1,e)}),Lo=Xr(function(t,e,n){return ur(t,ma(e)||0,n)});function jo(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new Ct(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(jo.Cache||Gn),n}function Wo(t){if("function"!=typeof t)throw new Ct(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)}}jo.Cache=Gn;var Po=yi(function(t,e){var n=(e=1==e.length&&Uo(e[0])?Oe(e[0],$e(ss())):Oe(mr(e,1),$e(ss()))).length;return Xr(function(r){for(var i=-1,s=yn(r.length,n);++i<s;)r[i]=e[i].call(this,r[i]);return Ne(t,this,r)})}),Do=Xr(function(t,e){var n=an(e,is(Do));return Yi(t,u,i,e,n)}),Bo=Xr(function(t,e){var n=an(e,is(Bo));return Yi(t,64,i,e,n)}),Io=Ki(function(t,e){return Yi(t,256,i,i,i,e)});function Ro(t,e){return t===e||t!=t&&e!=e}var zo=Ui(kr),Fo=Ui(function(t,e){return t>=e}),qo=Er(function(){return arguments}())?Er:function(t){return ta(t)&&jt.call(t,"callee")&&!Ht.call(t,"callee")},Uo=r.isArray,Vo=ye?$e(ye):function(t){return ta(t)&&Nr(t)==O};function Go(t){return null!=t&&Jo(t.length)&&!Qo(t)}function Ho(t){return ta(t)&&Go(t)}var Xo=ge||mu,Yo=ve?$e(ve):function(t){return ta(t)&&Nr(t)==v};function $o(t){if(!ta(t))return!1;var e=Nr(t);return e==w||"[object DOMException]"==e||"string"==typeof t.message&&"string"==typeof t.name&&!ra(t)}function Qo(t){if(!Ko(t))return!1;var e=Nr(t);return e==b||e==x||"[object AsyncFunction]"==e||"[object Proxy]"==e}function Zo(t){return"number"==typeof t&&t==da(t)}function Jo(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=c}function Ko(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function ta(t){return null!=t&&"object"==typeof t}var ea=we?$e(we):function(t){return ta(t)&&cs(t)==_};function na(t){return"number"==typeof t||ta(t)&&Nr(t)==N}function ra(t){if(!ta(t)||Nr(t)!=k)return!1;var e=Vt(t);if(null===e)return!0;var n=jt.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&Lt.call(n)==Bt}var ia=be?$e(be):function(t){return ta(t)&&Nr(t)==M},sa=xe?$e(xe):function(t){return ta(t)&&cs(t)==C};function oa(t){return"string"==typeof t||!Uo(t)&&ta(t)&&Nr(t)==A}function aa(t){return"symbol"==typeof t||ta(t)&&Nr(t)==E}var ua=_e?$e(_e):function(t){return ta(t)&&Jo(t.length)&&!!ie[Nr(t)]},ha=Ui(Pr),la=Ui(function(t,e){return t<=e});function ca(t){if(!t)return[];if(Go(t))return oa(t)?cn(t):Mi(t);if($t&&t[$t])return function(t){for(var e,n=[];!(e=t.next()).done;)n.push(e.value);return n}(t[$t]());var e=cs(t);return(e==_?sn:e==C?un: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)?ue(t.slice(2),n?2:8):dt.test(t)?f:+t}function ga(t){return Ci(t,Oa(t))}function ya(t){return null==t?"":oi(t)}var va=Ei(function(t,e){if(bs(e)||Go(e))Ci(e,Ta(e),t);else for(var n in e)jt.call(e,n)&&Kn(t,n,e[n])}),wa=Ei(function(t,e){Ci(e,Oa(e),t)}),ba=Ei(function(t,e,n,r){Ci(e,Oa(e),t,r)}),xa=Ei(function(t,e,n,r){Ci(e,Ta(e),t,r)}),_a=Ki(ir),Na=Xr(function(t,e){t=kt(t);var n=-1,r=e.length,s=r>2?e[2]:i;for(s&&gs(e[0],e[1],s)&&(r=1);++n<r;)for(var o=e[n],a=Oa(o),u=-1,h=a.length;++u<h;){var l=a[u],c=t[l];(c===i||Ro(c,Tt[l])&&!jt.call(t,l))&&(t[l]=o[l])}return t}),ka=Xr(function(t){return t.push(i,Qi),Ne(ja,i,t)});function Sa(t,e,n){var r=null==t?i:xr(t,e);return r===i?n:r}function Ma(t,e){return null!=t&&fs(t,e,Mr)}var Ca=Ii(function(t,e,n){null!=e&&"function"!=typeof e.toString&&(e=Dt.call(e)),t[e]=n},Ka(nu)),Aa=Ii(function(t,e,n){null!=e&&"function"!=typeof e.toString&&(e=Dt.call(e)),jt.call(t,e)?t[e].push(n):t[e]=[n]},ss),Ea=Xr(Ar);function Ta(t){return Go(t)?Yn(t):Wr(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&&jt.call(t,r))&&n.push(r);return n}(t)}var La=Ei(function(t,e,n){Rr(t,e,n)}),ja=Ei(function(t,e,n,r){Rr(t,e,n,r)}),Wa=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}),Ci(t,es(t),n),r&&(n=or(n,7,Zi));for(var i=e.length;i--;)ui(n,e[i]);return n}),Pa=Ki(function(t,e){return null==t?{}:function(t,e){return qr(t,e,function(e,n){return Ma(t,n)})}(t,e)});function Da(t,e){if(null==t)return{};var n=Oe(es(t),function(t){return[t]});return e=ss(e),qr(t,n,function(t,n){return e(t,n[0])})}var Ba=Xi(Ta),Ia=Xi(Oa);function Ra(t){return null==t?[]:Qe(t,Ta(t))}var za=ji(function(t,e,n){return e=e.toLowerCase(),t+(n?Fa(e):e)});function Fa(t){return $a(ya(t).toLowerCase())}function qa(t){return(t=ya(t))&&t.replace(vt,tn).replace(Zt,"")}var Ua=ji(function(t,e,n){return t+(n?"-":"")+e.toLowerCase()}),Va=ji(function(t,e,n){return t+(n?" ":"")+e.toLowerCase()}),Ga=Li("toLowerCase"),Ha=ji(function(t,e,n){return t+(n?"_":"")+e.toLowerCase()}),Xa=ji(function(t,e,n){return t+(n?" ":"")+$a(e)}),Ya=ji(function(t,e,n){return t+(n?" ":"")+e.toUpperCase()}),$a=Li("toUpperCase");function Qa(t,e,n){return t=ya(t),(e=n?i:e)===i?function(t){return ee.test(t)}(t)?function(t){return t.match(Kt)||[]}(t):function(t){return t.match(ut)||[]}(t):t.match(e)||[]}var Za=Xr(function(t,e){try{return Ne(t,i,e)}catch(t){return $o(t)?t:new xt(t)}}),Ja=Ki(function(t,e){return Se(e,function(e){e=Ps(e),rr(t,e,Ao(t[e],t))}),t});function Ka(t){return function(){return t}}var tu=Di(),eu=Di(!0);function nu(t){return t}function ru(t){return jr("function"==typeof t?t:or(t,1))}var iu=Xr(function(t,e){return function(n){return Ar(n,t,e)}}),su=Xr(function(t,e){return function(n){return Ar(t,n,e)}});function ou(t,e,n){var r=Ta(e),i=br(e,r);null!=n||Ko(e)&&(i.length||!r.length)||(n=e,e=t,t=this,i=br(e,Ta(e)));var s=!(Ko(n)&&"chain"in n&&!n.chain),o=Qo(t);return Se(i,function(n){var r=e[n];t[n]=r,o&&(t.prototype[n]=function(){var e=this.__chain__;if(s||e){var n=t(this.__wrapped__);return(n.__actions__=Mi(this.__actions__)).push({func:r,args:arguments,thisArg:t}),n.__chain__=e,n}return r.apply(t,Le([this.value()],arguments))})}),t}function au(){}var uu=zi(Oe),hu=zi(Ce),lu=zi(Pe);function cu(t){return ys(t)?Ue(Ps(t)):function(t){return function(e){return xr(e,t)}}(t)}var fu=qi(),du=qi(!0);function pu(){return[]}function mu(){return!1}var gu,yu=Ri(function(t,e){return t+e},0),vu=Gi("ceil"),wu=Ri(function(t,e){return t/e},1),bu=Gi("floor"),xu=Ri(function(t,e){return t*e},1),_u=Gi("round"),Nu=Ri(function(t,e){return t-e},0);return In.after=function(t,e){if("function"!=typeof e)throw new Ct(s);return t=da(t),function(){if(--t<1)return e.apply(this,arguments)}},In.ary=Mo,In.assign=va,In.assignIn=wa,In.assignInWith=ba,In.assignWith=xa,In.at=_a,In.before=Co,In.bind=Ao,In.bindAll=Ja,In.bindKey=Eo,In.castArray=function(){if(!arguments.length)return[];var t=arguments[0];return Uo(t)?t:[t]},In.chain=lo,In.chunk=function(t,e,n){e=(n?gs(t,e,n):e===i)?1:gn(da(e),0);var s=null==t?0:t.length;if(!s||e<1)return[];for(var o=0,a=0,u=r(fe(s/e));o<s;)u[a++]=ti(t,o,o+=e);return u},In.compact=function(t){for(var e=-1,n=null==t?0:t.length,r=0,i=[];++e<n;){var s=t[e];s&&(i[r++]=s)}return i},In.concat=function(){var t=arguments.length;if(!t)return[];for(var e=r(t-1),n=arguments[0],i=t;i--;)e[i-1]=arguments[i];return Le(Uo(n)?Mi(n):[n],mr(e,1))},In.cond=function(t){var e=null==t?0:t.length,n=ss();return t=e?Oe(t,function(t){if("function"!=typeof t[1])throw new Ct(s);return[n(t[0]),t[1]]}):[],Xr(function(n){for(var r=-1;++r<e;){var i=t[r];if(Ne(i[0],this,n))return Ne(i[1],this,n)}})},In.conforms=function(t){return function(t){var e=Ta(t);return function(n){return ar(n,t,e)}}(or(t,1))},In.constant=Ka,In.countBy=po,In.create=function(t,e){var n=Rn(t);return null==e?n:nr(n,e)},In.curry=function t(e,n,r){var s=Yi(e,8,i,i,i,i,i,n=r?i:n);return s.placeholder=t.placeholder,s},In.curryRight=function t(e,n,r){var s=Yi(e,16,i,i,i,i,i,n=r?i:n);return s.placeholder=t.placeholder,s},In.debounce=To,In.defaults=Na,In.defaultsDeep=ka,In.defer=Oo,In.delay=Lo,In.difference=Is,In.differenceBy=Rs,In.differenceWith=zs,In.drop=function(t,e,n){var r=null==t?0:t.length;return r?ti(t,(e=n||e===i?1:da(e))<0?0:e,r):[]},In.dropRight=function(t,e,n){var r=null==t?0:t.length;return r?ti(t,0,(e=r-(e=n||e===i?1:da(e)))<0?0:e):[]},In.dropRightWhile=function(t,e){return t&&t.length?li(t,ss(e,3),!0,!0):[]},In.dropWhile=function(t,e){return t&&t.length?li(t,ss(e,3),!0):[]},In.fill=function(t,e,n,r){var s=null==t?0:t.length;return s?(n&&"number"!=typeof n&&gs(t,e,n)&&(n=0,r=s),function(t,e,n,r){var s=t.length;for((n=da(n))<0&&(n=-n>s?0:s+n),(r=r===i||r>s?s:da(r))<0&&(r+=s),r=n>r?0:pa(r);n<r;)t[n++]=e;return t}(t,e,n,r)):[]},In.filter=function(t,e){return(Uo(t)?Ae:pr)(t,ss(e,3))},In.flatMap=function(t,e){return mr(_o(t,e),1)},In.flatMapDeep=function(t,e){return mr(_o(t,e),l)},In.flatMapDepth=function(t,e,n){return n=n===i?1:da(n),mr(_o(t,e),n)},In.flatten=Us,In.flattenDeep=function(t){return null!=t&&t.length?mr(t,l):[]},In.flattenDepth=function(t,e){return null!=t&&t.length?mr(t,e=e===i?1:da(e)):[]},In.flip=function(t){return Yi(t,512)},In.flow=tu,In.flowRight=eu,In.fromPairs=function(t){for(var e=-1,n=null==t?0:t.length,r={};++e<n;){var i=t[e];r[i[0]]=i[1]}return r},In.functions=function(t){return null==t?[]:br(t,Ta(t))},In.functionsIn=function(t){return null==t?[]:br(t,Oa(t))},In.groupBy=wo,In.initial=function(t){return null!=t&&t.length?ti(t,0,-1):[]},In.intersection=Gs,In.intersectionBy=Hs,In.intersectionWith=Xs,In.invert=Ca,In.invertBy=Aa,In.invokeMap=bo,In.iteratee=ru,In.keyBy=xo,In.keys=Ta,In.keysIn=Oa,In.map=_o,In.mapKeys=function(t,e){var n={};return e=ss(e,3),vr(t,function(t,r,i){rr(n,e(t,r,i),t)}),n},In.mapValues=function(t,e){var n={};return e=ss(e,3),vr(t,function(t,r,i){rr(n,r,e(t,r,i))}),n},In.matches=function(t){return Br(or(t,1))},In.matchesProperty=function(t,e){return Ir(t,or(e,1))},In.memoize=jo,In.merge=La,In.mergeWith=ja,In.method=iu,In.methodOf=su,In.mixin=ou,In.negate=Wo,In.nthArg=function(t){return t=da(t),Xr(function(e){return zr(e,t)})},In.omit=Wa,In.omitBy=function(t,e){return Da(t,Wo(ss(e)))},In.once=function(t){return Co(2,t)},In.orderBy=function(t,e,n,r){return null==t?[]:(Uo(e)||(e=null==e?[]:[e]),Uo(n=r?i:n)||(n=null==n?[]:[n]),Fr(t,e,n))},In.over=uu,In.overArgs=Po,In.overEvery=hu,In.overSome=lu,In.partial=Do,In.partialRight=Bo,In.partition=No,In.pick=Pa,In.pickBy=Da,In.property=cu,In.propertyOf=function(t){return function(e){return null==t?i:xr(t,e)}},In.pull=$s,In.pullAll=Qs,In.pullAllBy=function(t,e,n){return t&&t.length&&e&&e.length?Ur(t,e,ss(n,2)):t},In.pullAllWith=function(t,e,n){return t&&t.length&&e&&e.length?Ur(t,e,i,n):t},In.pullAt=Zs,In.range=fu,In.rangeRight=du,In.rearg=Io,In.reject=function(t,e){return(Uo(t)?Ae:pr)(t,Wo(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 Ct(s);return Xr(t,e=e===i?e:da(e))},In.reverse=Js,In.sampleSize=function(t,e,n){return e=(n?gs(t,e,n):e===i)?1:da(e),(Uo(t)?Qn:$r)(t,e)},In.set=function(t,e,n){return null==t?t:Qr(t,e,n)},In.setWith=function(t,e,n,r){return r="function"==typeof r?r:i,null==t?t:Qr(t,e,n,r)},In.shuffle=function(t){return(Uo(t)?Zn:Kr)(t)},In.slice=function(t,e,n){var r=null==t?0:t.length;return r?(n&&"number"!=typeof n&&gs(t,e,n)?(e=0,n=r):(e=null==e?0:da(e),n=n===i?r:da(n)),ti(t,e,n)):[]},In.sortBy=ko,In.sortedUniq=function(t){return t&&t.length?ii(t):[]},In.sortedUniqBy=function(t,e){return t&&t.length?ii(t,ss(e,2)):[]},In.split=function(t,e,n){return n&&"number"!=typeof n&&gs(t,e,n)&&(e=n=i),(n=n===i?d:n>>>0)?(t=ya(t))&&("string"==typeof e||null!=e&&!ia(e))&&!(e=oi(e))&&rn(t)?vi(cn(t),0,n):t.split(e,n):[]},In.spread=function(t,e){if("function"!=typeof t)throw new Ct(s);return e=null==e?0:gn(da(e),0),Xr(function(n){var r=n[e],i=vi(n,0,e);return r&&Le(i,r),Ne(t,this,i)})},In.tail=function(t){var e=null==t?0:t.length;return e?ti(t,1,e):[]},In.take=function(t,e,n){return t&&t.length?ti(t,0,(e=n||e===i?1: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 Ct(s);return Ko(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),To(t,e,{leading:r,maxWait:e,trailing:i})},In.thru=co,In.toArray=ca,In.toPairs=Ba,In.toPairsIn=Ia,In.toPath=function(t){return Uo(t)?Oe(t,Ps):aa(t)?[t]:Mi(Ws(ya(t)))},In.toPlainObject=ga,In.transform=function(t,e,n){var r=Uo(t),i=r||Xo(t)||ua(t);if(e=ss(e,4),null==n){var s=t&&t.constructor;n=i?r?new s:[]:Ko(t)&&Qo(s)?Rn(Vt(t)):{}}return(i?Se:vr)(t,function(t,r,i){return e(n,t,r,i)}),n},In.unary=function(t){return Mo(t,1)},In.union=Ks,In.unionBy=to,In.unionWith=eo,In.uniq=function(t){return t&&t.length?ai(t):[]},In.uniqBy=function(t,e){return t&&t.length?ai(t,ss(e,2)):[]},In.uniqWith=function(t,e){return e="function"==typeof e?e:i,t&&t.length?ai(t,i,e):[]},In.unset=function(t,e){return null==t||ui(t,e)},In.unzip=no,In.unzipWith=ro,In.update=function(t,e,n){return null==t?t:hi(t,e,mi(n))},In.updateWith=function(t,e,n,r){return r="function"==typeof r?r:i,null==t?t:hi(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=uo,In.zipObject=function(t,e){return di(t||[],e||[],Kn)},In.zipObjectDeep=function(t,e){return di(t||[],e||[],Qr)},In.zipWith=ho,In.entries=Ba,In.entriesIn=Ia,In.extend=wa,In.extendWith=ba,ou(In,In),In.add=yu,In.attempt=Za,In.camelCase=za,In.capitalize=Fa,In.ceil=vu,In.clamp=function(t,e,n){return n===i&&(n=e,e=i),n!==i&&(n=(n=ma(n))==n?n:0),e!==i&&(e=(e=ma(e))==e?e:0),sr(ma(t),e,n)},In.clone=function(t){return or(t,4)},In.cloneDeep=function(t){return or(t,5)},In.cloneDeepWith=function(t,e){return or(t,5,e="function"==typeof e?e:i)},In.cloneWith=function(t,e){return or(t,4,e="function"==typeof e?e:i)},In.conformsTo=function(t,e){return null==e||ar(t,e,Ta(e))},In.deburr=qa,In.defaultTo=function(t,e){return null==t||t!=t?e:t},In.divide=wu,In.endsWith=function(t,e,n){t=ya(t),e=oi(e);var r=t.length,s=n=n===i?r:sr(da(n),0,r);return(n-=e.length)>=0&&t.slice(n,s)==e},In.eq=Ro,In.escape=function(t){return(t=ya(t))&&Y.test(t)?t.replace(H,en):t},In.escapeRegExp=function(t){return(t=ya(t))&&nt.test(t)?t.replace(et,"\\$&"):t},In.every=function(t,e,n){var r=Uo(t)?Ce:fr;return n&&gs(t,e,n)&&(e=i),r(t,ss(e,3))},In.find=mo,In.findIndex=Fs,In.findKey=function(t,e){return Be(t,ss(e,3),vr)},In.findLast=go,In.findLastIndex=qs,In.findLastKey=function(t,e){return Be(t,ss(e,3),wr)},In.floor=bu,In.forEach=yo,In.forEachRight=vo,In.forIn=function(t,e){return null==t?t:gr(t,ss(e,3),Oa)},In.forInRight=function(t,e){return null==t?t:yr(t,ss(e,3),Oa)},In.forOwn=function(t,e){return t&&vr(t,ss(e,3))},In.forOwnRight=function(t,e){return t&&wr(t,ss(e,3))},In.get=Sa,In.gt=zo,In.gte=Fo,In.has=function(t,e){return null!=t&&fs(t,e,Sr)},In.hasIn=Ma,In.head=Vs,In.identity=nu,In.includes=function(t,e,n,r){t=Go(t)?t:Ra(t),n=n&&!r?da(n):0;var i=t.length;return n<0&&(n=gn(i+n,0)),oa(t)?n<=i&&t.indexOf(e,n)>-1:!!i&&Re(t,e,n)>-1},In.indexOf=function(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var i=null==n?0:da(n);return i<0&&(i=gn(r+i,0)),Re(t,e,i)},In.inRange=function(t,e,n){return e=fa(e),n===i?(n=e,e=0):n=fa(n),function(t,e,n){return t>=yn(e,n)&&t<gn(e,n)}(t=ma(t),e,n)},In.invoke=Ea,In.isArguments=qo,In.isArray=Uo,In.isArrayBuffer=Vo,In.isArrayLike=Go,In.isArrayLikeObject=Ho,In.isBoolean=function(t){return!0===t||!1===t||ta(t)&&Nr(t)==y},In.isBuffer=Xo,In.isDate=Yo,In.isElement=function(t){return ta(t)&&1===t.nodeType&&!ra(t)},In.isEmpty=function(t){if(null==t)return!0;if(Go(t)&&(Uo(t)||"string"==typeof t||"function"==typeof t.splice||Xo(t)||ua(t)||qo(t)))return!t.length;var e=cs(t);if(e==_||e==C)return!t.size;if(bs(t))return!Wr(t).length;for(var n in t)if(jt.call(t,n))return!1;return!0},In.isEqual=function(t,e){return Tr(t,e)},In.isEqualWith=function(t,e,n){var r=(n="function"==typeof n?n:i)?n(t,e):i;return r===i?Tr(t,e,i,n):!!r},In.isError=$o,In.isFinite=function(t){return"number"==typeof t&&De(t)},In.isFunction=Qo,In.isInteger=Zo,In.isLength=Jo,In.isMap=ea,In.isMatch=function(t,e){return t===e||Or(t,e,as(e))},In.isMatchWith=function(t,e,n){return n="function"==typeof n?n:i,Or(t,e,as(e),n)},In.isNaN=function(t){return na(t)&&t!=+t},In.isNative=function(t){if(ws(t))throw new xt("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Lr(t)},In.isNil=function(t){return null==t},In.isNull=function(t){return null===t},In.isNumber=na,In.isObject=Ko,In.isObjectLike=ta,In.isPlainObject=ra,In.isRegExp=ia,In.isSafeInteger=function(t){return Zo(t)&&t>=-9007199254740991&&t<=c},In.isSet=sa,In.isString=oa,In.isSymbol=aa,In.isTypedArray=ua,In.isUndefined=function(t){return t===i},In.isWeakMap=function(t){return ta(t)&&cs(t)==T},In.isWeakSet=function(t){return ta(t)&&"[object WeakSet]"==Nr(t)},In.join=function(t,e){return null==t?"":Ve.call(t,e)},In.kebabCase=Ua,In.last=Ys,In.lastIndexOf=function(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var s=r;return n!==i&&(s=(s=da(n))<0?gn(r+s,0):yn(s,r-1)),e==e?function(t,e,n){for(var r=n+1;r--;)if(t[r]===e)return r;return r}(t,e,s):Ie(t,Fe,s,!0)},In.lowerCase=Va,In.lowerFirst=Ga,In.lt=ha,In.lte=la,In.max=function(t){return t&&t.length?dr(t,nu,kr):i},In.maxBy=function(t,e){return t&&t.length?dr(t,ss(e,2),kr):i},In.mean=function(t){return qe(t,nu)},In.meanBy=function(t,e){return qe(t,ss(e,2))},In.min=function(t){return t&&t.length?dr(t,nu,Pr):i},In.minBy=function(t,e){return t&&t.length?dr(t,ss(e,2),Pr):i},In.stubArray=pu,In.stubFalse=mu,In.stubObject=function(){return{}},In.stubString=function(){return""},In.stubTrue=function(){return!0},In.multiply=xu,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=au,In.now=So,In.pad=function(t,e,n){t=ya(t);var r=(e=da(e))?ln(t):0;if(!e||r>=e)return t;var i=(e-r)/2;return Fi(de(i),n)+t+Fi(fe(i),n)},In.padEnd=function(t,e,n){t=ya(t);var r=(e=da(e))?ln(t):0;return e&&r<e?t+Fi(e-r,n):t},In.padStart=function(t,e,n){t=ya(t);var r=(e=da(e))?ln(t):0;return e&&r<e?Fi(e-r,n)+t:t},In.parseInt=function(t,e,n){return n||null==e?e=0:e&&(e=+e),wn(ya(t).replace(rt,""),e||0)},In.random=function(t,e,n){if(n&&"boolean"!=typeof n&&gs(t,e,n)&&(e=n=i),n===i&&("boolean"==typeof e?(n=e,e=i):"boolean"==typeof t&&(n=t,t=i)),t===i&&e===i?(t=0,e=1):(t=fa(t),e===i?(e=t,t=0):e=fa(e)),t>e){var r=t;t=e,e=r}if(n||t%1||e%1){var s=bn();return yn(t+s*(e-t+ae("1e-"+((s+"").length-1))),e)}return Gr(t,e)},In.reduce=function(t,e,n){var r=Uo(t)?je:Ge,i=arguments.length<3;return r(t,ss(e,4),n,i,lr)},In.reduceRight=function(t,e,n){var r=Uo(t)?We:Ge,i=arguments.length<3;return r(t,ss(e,4),n,i,cr)},In.repeat=function(t,e,n){return e=(n?gs(t,e,n):e===i)?1:da(e),Hr(ya(t),e)},In.replace=function(){var t=arguments,e=ya(t[0]);return t.length<3?e:e.replace(t[1],t[2])},In.result=function(t,e,n){var r=-1,s=(e=gi(e,t)).length;for(s||(s=1,t=i);++r<s;){var o=null==t?i:t[Ps(e[r])];o===i&&(r=s,o=n),t=Qo(o)?o.call(t):o}return t},In.round=_u,In.runInContext=t,In.sample=function(t){return(Uo(t)?$n:Yr)(t)},In.size=function(t){if(null==t)return 0;if(Go(t))return oa(t)?ln(t):t.length;var e=cs(t);return e==_||e==C?t.size:Wr(t).length},In.snakeCase=Ha,In.some=function(t,e,n){var r=Uo(t)?Pe:ei;return n&&gs(t,e,n)&&(e=i),r(t,ss(e,3))},In.sortedIndex=function(t,e){return ni(t,e)},In.sortedIndexBy=function(t,e,n){return ri(t,e,ss(n,2))},In.sortedIndexOf=function(t,e){var n=null==t?0:t.length;if(n){var r=ni(t,e);if(r<n&&Ro(t[r],e))return r}return-1},In.sortedLastIndex=function(t,e){return ni(t,e,!0)},In.sortedLastIndexBy=function(t,e,n){return ri(t,e,ss(n,2),!0)},In.sortedLastIndexOf=function(t,e){if(null!=t&&t.length){var n=ni(t,e,!0)-1;if(Ro(t[n],e))return n}return-1},In.startCase=Xa,In.startsWith=function(t,e,n){return t=ya(t),n=null==n?0:sr(da(n),0,t.length),e=oi(e),t.slice(n,n+e.length)==e},In.subtract=Nu,In.sum=function(t){return t&&t.length?He(t,nu):0},In.sumBy=function(t,e){return t&&t.length?He(t,ss(e,2)):0},In.template=function(t,e,n){var r=In.templateSettings;n&&gs(t,e,n)&&(e=i),t=ya(t),e=ba({},e,r,$i);var s,o,a=ba({},e.imports,r.imports,$i),u=Ta(a),h=Qe(a,u),l=0,c=e.interpolate||wt,f="__p += '",d=St((e.escape||wt).source+"|"+c.source+"|"+(c===Z?ct:wt).source+"|"+(e.evaluate||wt).source+"|$","g"),p="//# sourceURL="+(jt.call(e,"sourceURL")?(e.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++re+"]")+"\n";t.replace(d,function(e,n,r,i,a,u){return r||(r=i),f+=t.slice(l,u).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=u+e.length,e}),f+="';\n";var m=jt.call(e,"variable")&&e.variable;if(m){if(ht.test(m))throw new xt("Invalid `variable` option passed into `_.template`")}else f="with (obj) {\n"+f+"\n}\n";f=(o?f.replace(q,""):f).replace(U,"$1").replace(V,"$1;"),f="function("+(m||"obj")+") {\n"+(m?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(s?", __e = _.escape":"")+(o?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+f+"return __p\n}";var g=Za(function(){return _t(u,p+"return "+f).apply(i,h)});if(g.source=f,$o(g))throw g;return g},In.times=function(t,e){if((t=da(t))<1||t>c)return[];var n=d,r=yn(t,d);e=ss(e),t-=d;for(var i=Xe(r,e);++n<t;)e(n);return i},In.toFinite=fa,In.toInteger=da,In.toLength=pa,In.toLower=function(t){return ya(t).toLowerCase()},In.toNumber=ma,In.toSafeInteger=function(t){return t?sr(da(t),-9007199254740991,c):0===t?t:0},In.toString=ya,In.toUpper=function(t){return ya(t).toUpperCase()},In.trim=function(t,e,n){if((t=ya(t))&&(n||e===i))return Ye(t);if(!t||!(e=oi(e)))return t;var r=cn(t),s=cn(e);return vi(r,Je(r,s),Ke(r,s)+1).join("")},In.trimEnd=function(t,e,n){if((t=ya(t))&&(n||e===i))return t.slice(0,fn(t)+1);if(!t||!(e=oi(e)))return t;var r=cn(t);return vi(r,0,Ke(r,cn(e))+1).join("")},In.trimStart=function(t,e,n){if((t=ya(t))&&(n||e===i))return t.replace(rt,"");if(!t||!(e=oi(e)))return t;var r=cn(t);return vi(r,Je(r,cn(e))).join("")},In.truncate=function(t,e){var n=30,r="...";if(Ko(e)){var s="separator"in e?e.separator:s;n="length"in e?da(e.length):n,r="omission"in e?oi(e.omission):r}var o=(t=ya(t)).length;if(rn(t)){var a=cn(t);o=a.length}if(n>=o)return t;var u=n-ln(r);if(u<1)return r;var h=a?vi(a,0,u).join(""):t.slice(0,u);if(s===i)return h+r;if(a&&(u+=h.length-u),ia(s)){if(t.slice(u).search(s)){var l,c=h;for(s.global||(s=St(s.source,ya(ft.exec(s))+"g")),s.lastIndex=0;l=s.exec(c);)var f=l.index;h=h.slice(0,f===i?u:f)}}else if(t.indexOf(oi(s),u)!=u){var d=h.lastIndexOf(s);d>-1&&(h=h.slice(0,d))}return h+r},In.unescape=function(t){return(t=ya(t))&&X.test(t)?t.replace(G,dn):t},In.uniqueId=function(t){var e=++Wt;return ya(t)+e},In.upperCase=Ya,In.upperFirst=$a,In.each=yo,In.eachRight=vo,In.first=Vs,ou(In,(gu={},vr(In,function(t,e){jt.call(In.prototype,e)||(gu[e]=t)}),gu),{chain:!1}),In.VERSION="4.17.21",Se(["bind","bindKey","curry","curryRight","partial","partialRight"],function(t){In[t].placeholder=In}),Se(["drop","take"],function(t,e){qn.prototype[t]=function(n){n=n===i?1:gn(da(n),0);var r=this.__filtered__&&!e?new qn(this):this.clone();return r.__filtered__?r.__takeCount__=yn(n,r.__takeCount__):r.__views__.push({size:yn(n,d),type:t+(r.__dir__<0?"Right":"")}),r},qn.prototype[t+"Right"]=function(e){return this.reverse()[t](e).reverse()}}),Se(["filter","map","takeWhile"],function(t,e){var n=e+1,r=1==n||3==n;qn.prototype[t]=function(t){var e=this.clone();return e.__iteratees__.push({iteratee:ss(t,3),type:n}),e.__filtered__=e.__filtered__||r,e}}),Se(["head","last"],function(t,e){var n="take"+(e?"Right":"");qn.prototype[t]=function(){return this[n](1).value()[0]}}),Se(["initial","tail"],function(t,e){var n="drop"+(e?"":"Right");qn.prototype[t]=function(){return this.__filtered__?new qn(this):this[n](1)}}),qn.prototype.compact=function(){return this.filter(nu)},qn.prototype.find=function(t){return this.filter(t).head()},qn.prototype.findLast=function(t){return this.reverse().find(t)},qn.prototype.invokeMap=Xr(function(t,e){return"function"==typeof t?new qn(this):this.map(function(n){return Ar(n,t,e)})}),qn.prototype.reject=function(t){return this.filter(Wo(ss(t)))},qn.prototype.slice=function(t,e){t=da(t);var n=this;return n.__filtered__&&(t>0||e<0)?new qn(n):(t<0?n=n.takeRight(-t):t&&(n=n.drop(t)),e!==i&&(n=(e=da(e))<0?n.dropRight(-e):n.take(e-t)),n)},qn.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},qn.prototype.toArray=function(){return this.take(d)},vr(qn.prototype,function(t,e){var n=/^(?:filter|find|map|reject)|While$/.test(e),r=/^(?:head|last)$/.test(e),s=In[r?"take"+("last"==e?"Right":""):e],o=r||/^find/.test(e);s&&(In.prototype[e]=function(){var e=this.__wrapped__,a=r?[1]:arguments,u=e instanceof qn,h=a[0],l=u||Uo(e),c=function(t){var e=s.apply(In,Le([t],a));return r&&f?e[0]:e};l&&n&&"function"==typeof h&&1!=h.length&&(u=l=!1);var f=this.__chain__,d=!!this.__actions__.length,p=o&&!f,m=u&&!d;if(!o&&l){e=m?e:new qn(this);var g=t.apply(e,a);return g.__actions__.push({func:co,args:[c],thisArg:i}),new Fn(g,f)}return p&&m?t.apply(this,a):(g=this.thru(c),p?r?g.value()[0]:g.value():g)})}),Se(["pop","push","shift","sort","splice","unshift"],function(t){var e=At[t],n=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",r=/^(?:pop|shift)$/.test(t);In.prototype[t]=function(){var t=arguments;if(r&&!this.__chain__){var i=this.value();return e.apply(Uo(i)?i:[],t)}return this[n](function(n){return e.apply(Uo(n)?n:[],t)})}}),vr(qn.prototype,function(t,e){var n=In[e];if(n){var r=n.name+"";jt.call(En,r)||(En[r]=[]),En[r].push({name:e,func:n})}}),En[Bi(i,2).name]=[{name:"wrapper",func:i}],qn.prototype.clone=function(){var t=new qn(this.__wrapped__);return t.__actions__=Mi(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=Mi(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=Mi(this.__views__),t},qn.prototype.reverse=function(){if(this.__filtered__){var t=new qn(this);t.__dir__=-1,t.__filtered__=!0}else(t=this.clone()).__dir__*=-1;return t},qn.prototype.value=function(){var t=this.__wrapped__.value(),e=this.__dir__,n=Uo(t),r=e<0,i=n?t.length:0,s=function(t,e,n){for(var r=-1,i=n.length;++r<i;){var s=n[r],o=s.size;switch(s.type){case"drop":t+=o;break;case"dropRight":e-=o;break;case"take":e=yn(e,t+o);break;case"takeRight":t=gn(t,e-o)}}return{start:t,end:e}}(0,i,this.__views__),o=s.start,a=s.end,u=a-o,h=r?a:o-1,l=this.__iteratees__,c=l.length,f=0,d=yn(u,this.__takeCount__);if(!n||!r&&i==u&&d==u)return ci(t,this.__actions__);var p=[];t:for(;u--&&f<d;){for(var m=-1,g=t[h+=e];++m<c;){var y=l[m],v=y.iteratee,w=y.type,b=v(g);if(2==w)g=b;else if(!b){if(1==w)continue t;break t}}p[f++]=g}return p},In.prototype.at=fo,In.prototype.chain=function(){return lo(this)},In.prototype.commit=function(){return new Fn(this.value(),this.__chain__)},In.prototype.next=function(){this.__values__===i&&(this.__values__=ca(this.value()));var t=this.__index__>=this.__values__.length;return{done:t,value:t?i:this.__values__[this.__index__++]}},In.prototype.plant=function(t){for(var e,n=this;n instanceof zn;){var r=Bs(n);r.__index__=0,r.__values__=i,e?s.__wrapped__=r:e=r;var s=r;n=n.__wrapped__}return s.__wrapped__=t,e},In.prototype.reverse=function(){var t=this.__wrapped__;if(t instanceof qn){var e=t;return this.__actions__.length&&(e=new qn(this)),(e=e.reverse()).__actions__.push({func:co,args:[Js],thisArg:i}),new Fn(e,this.__chain__)}return this.thru(Js)},In.prototype.toJSON=In.prototype.valueOf=In.prototype.value=function(){return ci(this.__wrapped__,this.__actions__)},In.prototype.first=In.prototype.head,$t&&(In.prototype[$t]=function(){return this}),In}();ce._=pn,(r=function(){return pn}.call(e,n,e,t))===i||(t.exports=r)}.call(this)},584:(t,e,n)=>{"use strict";n.d(e,{Ay:()=>c,OW:()=>h,Qq:()=>u,Z7:()=>l,kY:()=>a});var r=n(601),i=n.n(r),s=n(314),o=n.n(s)()(i());o.push([t.id,'.PxTHOvfPECESZe6OxVvg {\n display: flex;\n flex-direction: row;\n align-items: center;\n\n align-self: start;\n\n pointer-events: auto;\n\n cursor: pointer;\n}\n\n.hcTi6yK4eMJ8Mc61rqGY {\n margin: 0px;\n padding: 0px;\n\n font-family: "Open Sans", sans-serif;\n font-size: 12px;\n font-weight: 700;\n font-style: normal;\n color: 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",u="hcTi6yK4eMJ8Mc61rqGY",h="lVFnQ83G0WswDpb_v1xo",l="MwdzfSTS8dcFWG_qqlI9";const c=o},601:t=>{"use strict";t.exports=function(t){return t[1]}},633:(t,e,n)=>{"use strict";n.d(e,{Ay:()=>v,IU:()=>d,QB:()=>y,Qs:()=>f,Te:()=>g,aW:()=>c,eB:()=>m,ho:()=>l,lf:()=>a,m9:()=>h,vw:()=>p,wx:()=>u});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",u="sE2YASqaiPZdV9dz58A7",h="BYZcOJiOX5zLxIrbc3gR",l="mOH6VML7hViujtEoNaOA",c="u5w42CVwU4PQ7GiSuy4G",f="TCp4dzyF9qmbX3ejDOkL",d="WOjw8GKoS54KQAOlumMa",p="CEKK9ESfVFUX5lmGT49Q",m="REx8U43f426EyuXTroHH",g="vXdbsaENeFcx9uTlNetr",y="a5Wi7rcTlB2tWpGwD8zf";const v=o},659:t=>{"use strict";var e={};t.exports=function(t,n){var r=function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(t){n=null}e[t]=n}return e[t]}(t);if(!r)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");r.appendChild(n)}},678:(t,e,n)=>{"use strict";n.d(e,{Ay:()=>h,ZZ:()=>a,o3:()=>u});var r=n(601),i=n.n(r),s=n(314),o=n.n(s)()(i());o.push([t.id,'.rIHrsark1WbeRGC9M1ZY {\n display: flex;\n flex-direction: row;\n align-items: center;\n\n font-family: "Open Sans", sans-serif;\n font-size: 12px;\n font-weight: 700;\n font-style: normal;\n color: 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",u="P5PJGaHxnhsEaezm8Nhg";const h=o},692:function(t,e){var n;!function(e,n){"use strict";"object"==typeof t.exports?t.exports=e.document?n(e,!0):function(t){if(!t.document)throw new Error("jQuery requires a window with a document");return n(t)}:n(e)}("undefined"!=typeof window?window:this,function(r,i){"use strict";var s=[],o=Object.getPrototypeOf,a=s.slice,u=s.flat?function(t){return s.flat.call(t)}:function(t){return s.concat.apply([],t)},h=s.push,l=s.indexOf,c={},f=c.toString,d=c.hasOwnProperty,p=d.toString,m=p.call(Object),g={},y=function(t){return"function"==typeof t&&"number"!=typeof t.nodeType&&"function"!=typeof t.item},v=function(t){return null!=t&&t===t.window},w=r.document,b={type:!0,src:!0,nonce:!0,noModule:!0};function x(t,e,n){var r,i,s=(n=n||w).createElement("script");if(s.text=t,e)for(r in b)(i=e[r]||e.getAttribute&&e.getAttribute(r))&&s.setAttribute(r,i);n.head.appendChild(s).parentNode.removeChild(s)}function _(t){return null==t?t+"":"object"==typeof t||"function"==typeof t?c[f.call(t)]||"object":typeof t}var N="3.7.1",k=/HTML$/i,S=function(t,e){return new S.fn.init(t,e)};function M(t){var e=!!t&&"length"in t&&t.length,n=_(t);return!y(t)&&!v(t)&&("array"===n||0===e||"number"==typeof e&&e>0&&e-1 in t)}function C(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()}S.fn=S.prototype={jquery:N,constructor:S,length:0,toArray:function(){return a.call(this)},get:function(t){return null==t?a.call(this):t<0?this[t+this.length]:this[t]},pushStack:function(t){var e=S.merge(this.constructor(),t);return e.prevObject=this,e},each:function(t){return S.each(this,t)},map:function(t){return this.pushStack(S.map(this,function(e,n){return t.call(e,n,e)}))},slice:function(){return this.pushStack(a.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(S.grep(this,function(t,e){return(e+1)%2}))},odd:function(){return this.pushStack(S.grep(this,function(t,e){return e%2}))},eq:function(t){var e=this.length,n=+t+(t<0?e:0);return this.pushStack(n>=0&&n<e?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:h,sort:s.sort,splice:s.splice},S.extend=S.fn.extend=function(){var t,e,n,r,i,s,o=arguments[0]||{},a=1,u=arguments.length,h=!1;for("boolean"==typeof o&&(h=o,o=arguments[a]||{},a++),"object"==typeof o||y(o)||(o={}),a===u&&(o=this,a--);a<u;a++)if(null!=(t=arguments[a]))for(e in t)r=t[e],"__proto__"!==e&&o!==r&&(h&&r&&(S.isPlainObject(r)||(i=Array.isArray(r)))?(n=o[e],s=i&&!Array.isArray(n)?[]:i||S.isPlainObject(n)?n:{},i=!1,o[e]=S.extend(h,s,r)):void 0!==r&&(o[e]=r));return o},S.extend({expando:"jQuery"+(N+Math.random()).replace(/\D/g,""),isReady:!0,error:function(t){throw new Error(t)},noop:function(){},isPlainObject:function(t){var e,n;return!(!t||"[object Object]"!==f.call(t)||(e=o(t))&&("function"!=typeof(n=d.call(e,"constructor")&&e.constructor)||p.call(n)!==m))},isEmptyObject:function(t){var e;for(e in t)return!1;return!0},globalEval:function(t,e,n){x(t,{nonce:e&&e.nonce},n)},each:function(t,e){var n,r=0;if(M(t))for(n=t.length;r<n&&!1!==e.call(t[r],r,t[r]);r++);else for(r in t)if(!1===e.call(t[r],r,t[r]))break;return t},text:function(t){var e,n="",r=0,i=t.nodeType;if(!i)for(;e=t[r++];)n+=S.text(e);return 1===i||11===i?t.textContent:9===i?t.documentElement.textContent:3===i||4===i?t.nodeValue:n},makeArray:function(t,e){var n=e||[];return null!=t&&(M(Object(t))?S.merge(n,"string"==typeof t?[t]:t):h.call(n,t)),n},inArray:function(t,e,n){return null==e?-1:l.call(e,t,n)},isXMLDoc:function(t){var e=t&&t.namespaceURI,n=t&&(t.ownerDocument||t).documentElement;return!k.test(e||n&&n.nodeName||"HTML")},merge:function(t,e){for(var n=+e.length,r=0,i=t.length;r<n;r++)t[i++]=e[r];return t.length=i,t},grep:function(t,e,n){for(var r=[],i=0,s=t.length,o=!n;i<s;i++)!e(t[i],i)!==o&&r.push(t[i]);return r},map:function(t,e,n){var r,i,s=0,o=[];if(M(t))for(r=t.length;s<r;s++)null!=(i=e(t[s],s,n))&&o.push(i);else for(s in t)null!=(i=e(t[s],s,n))&&o.push(i);return u(o)},guid:1,support:g}),"function"==typeof Symbol&&(S.fn[Symbol.iterator]=s[Symbol.iterator]),S.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(t,e){c["[object "+e+"]"]=e.toLowerCase()});var A=s.pop,E=s.sort,T=s.splice,O="[\\x20\\t\\r\\n\\f]",L=new RegExp("^"+O+"+|((?:^|[^\\\\])(?:\\\\.)*)"+O+"+$","g");S.contains=function(t,e){var n=e&&e.parentNode;return t===n||!(!n||1!==n.nodeType||!(t.contains?t.contains(n):t.compareDocumentPosition&&16&t.compareDocumentPosition(n)))};var j=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g;function W(t,e){return e?"\0"===t?"�":t.slice(0,-1)+"\\"+t.charCodeAt(t.length-1).toString(16)+" ":"\\"+t}S.escapeSelector=function(t){return(t+"").replace(j,W)};var P=w,D=h;!function(){var t,e,n,i,o,u,h,c,f,p,m=D,y=S.expando,v=0,w=0,b=tt(),x=tt(),_=tt(),N=tt(),k=function(t,e){return t===e&&(o=!0),0},M="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",j="(?:\\\\[\\da-fA-F]{1,6}"+O+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",W="\\["+O+"*("+j+")(?:"+O+"*([*^$|!~]?=)"+O+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+j+"))|)"+O+"*\\]",B=":("+j+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+W+")*)|.*)\\)|)",I=new RegExp(O+"+","g"),R=new RegExp("^"+O+"*,"+O+"*"),z=new RegExp("^"+O+"*([>+~]|"+O+")"+O+"*"),F=new RegExp(O+"|>"),q=new RegExp(B),U=new RegExp("^"+j+"$"),V={ID:new RegExp("^#("+j+")"),CLASS:new RegExp("^\\.("+j+")"),TAG:new RegExp("^("+j+"|[*])"),ATTR:new RegExp("^"+W),PSEUDO:new RegExp("^"+B),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+O+"*(even|odd|(([+-]|)(\\d*)n|)"+O+"*(?:([+-]|)"+O+"*(\\d+)|))"+O+"*\\)|)","i"),bool:new RegExp("^(?:"+M+")$","i"),needsContext:new RegExp("^"+O+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+O+"*((?:-\\d)?\\d*)"+O+"*\\)|)(?=[^-]|$)","i")},G=/^(?:input|select|textarea|button)$/i,H=/^h\d$/i,X=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,Y=/[+~]/,$=new RegExp("\\\\[\\da-fA-F]{1,6}"+O+"?|\\\\([^\\r\\n\\f])","g"),Q=function(t,e){var n="0x"+t.slice(1)-65536;return e||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320))},Z=function(){ut()},J=ft(function(t){return!0===t.disabled&&C(t,"fieldset")},{dir:"parentNode",next:"legend"});try{m.apply(s=a.call(P.childNodes),P.childNodes),s[P.childNodes.length].nodeType}catch(t){m={apply:function(t,e){D.apply(t,a.call(e))},call:function(t){D.apply(t,a.call(arguments,1))}}}function K(t,e,n,r){var i,s,o,a,h,l,d,p=e&&e.ownerDocument,v=e?e.nodeType:9;if(n=n||[],"string"!=typeof t||!t||1!==v&&9!==v&&11!==v)return n;if(!r&&(ut(e),e=e||u,c)){if(11!==v&&(h=X.exec(t)))if(i=h[1]){if(9===v){if(!(o=e.getElementById(i)))return n;if(o.id===i)return m.call(n,o),n}else if(p&&(o=p.getElementById(i))&&K.contains(e,o)&&o.id===i)return m.call(n,o),n}else{if(h[2])return m.apply(n,e.getElementsByTagName(t)),n;if((i=h[3])&&e.getElementsByClassName)return m.apply(n,e.getElementsByClassName(i)),n}if(!(N[t+" "]||f&&f.test(t))){if(d=t,p=e,1===v&&(F.test(t)||z.test(t))){for((p=Y.test(t)&&at(e.parentNode)||e)==e&&g.scope||((a=e.getAttribute("id"))?a=S.escapeSelector(a):e.setAttribute("id",a=y)),s=(l=lt(t)).length;s--;)l[s]=(a?"#"+a:":scope")+" "+ct(l[s]);d=l.join(",")}try{return m.apply(n,p.querySelectorAll(d)),n}catch(e){N(t,!0)}finally{a===y&&e.removeAttribute("id")}}}return vt(t.replace(L,"$1"),e,n,r)}function tt(){var t=[];return function n(r,i){return t.push(r+" ")>e.cacheLength&&delete n[t.shift()],n[r+" "]=i}}function et(t){return t[y]=!0,t}function nt(t){var e=u.createElement("fieldset");try{return!!t(e)}catch(t){return!1}finally{e.parentNode&&e.parentNode.removeChild(e),e=null}}function rt(t){return function(e){return C(e,"input")&&e.type===t}}function it(t){return function(e){return(C(e,"input")||C(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 ut(t){var n,r=t?t.ownerDocument||t:P;return r!=u&&9===r.nodeType&&r.documentElement?(h=(u=r).documentElement,c=!S.isXMLDoc(u),p=h.matches||h.webkitMatchesSelector||h.msMatchesSelector,h.msMatchesSelector&&P!=u&&(n=u.defaultView)&&n.top!==n&&n.addEventListener("unload",Z),g.getById=nt(function(t){return h.appendChild(t).id=S.expando,!u.getElementsByName||!u.getElementsByName(S.expando).length}),g.disconnectedMatch=nt(function(t){return p.call(t,"*")}),g.scope=nt(function(){return u.querySelectorAll(":scope")}),g.cssHas=nt(function(){try{return u.querySelector(":has(*,:jqfake)"),!1}catch(t){return!0}}),g.getById?(e.filter.ID=function(t){var e=t.replace($,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)},f=[],nt(function(t){var e;h.appendChild(t).innerHTML="<a id='"+y+"' href='' disabled='disabled'></a><select id='"+y+"-\r\\' disabled='disabled'><option selected=''></option></select>",t.querySelectorAll("[selected]").length||f.push("\\["+O+"*(?:value|"+M+")"),t.querySelectorAll("[id~="+y+"-]").length||f.push("~="),t.querySelectorAll("a#"+y+"+*").length||f.push(".#.+[+~]"),t.querySelectorAll(":checked").length||f.push(":checked"),(e=u.createElement("input")).setAttribute("type","hidden"),t.appendChild(e).setAttribute("name","D"),h.appendChild(t).disabled=!0,2!==t.querySelectorAll(":disabled").length&&f.push(":enabled",":disabled"),(e=u.createElement("input")).setAttribute("name",""),t.appendChild(e),t.querySelectorAll("[name='']").length||f.push("\\["+O+"*name"+O+"*="+O+"*(?:''|\"\")")}),g.cssHas||f.push(":has"),f=f.length&&new RegExp(f.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===u||t.ownerDocument==P&&K.contains(P,t)?-1:e===u||e.ownerDocument==P&&K.contains(P,e)?1:i?l.call(i,t)-l.call(i,e):0:4&n?-1:1)},u):u}for(t in K.matches=function(t,e){return K(t,null,null,e)},K.matchesSelector=function(t,e){if(ut(t),c&&!N[e+" "]&&(!f||!f.test(e)))try{var n=p.call(t,e);if(n||g.disconnectedMatch||t.document&&11!==t.document.nodeType)return n}catch(t){N(e,!0)}return K(e,u,null,[t]).length>0},K.contains=function(t,e){return(t.ownerDocument||t)!=u&&ut(t),S.contains(t,e)},K.attr=function(t,n){(t.ownerDocument||t)!=u&&ut(t);var r=e.attrHandle[n.toLowerCase()],i=r&&d.call(e.attrHandle,n.toLowerCase())?r(t,n,!c):void 0;return void 0!==i?i:t.getAttribute(n)},K.error=function(t){throw new Error("Syntax error, unrecognized expression: "+t)},S.uniqueSort=function(t){var e,n=[],r=0,s=0;if(o=!g.sortStable,i=!g.sortStable&&a.call(t,0),E.call(t,k),o){for(;e=t[s++];)e===t[s]&&(r=n.push(s));for(;r--;)T.call(t,n[r],1)}return i=null,t},S.fn.uniqueSort=function(){return this.pushStack(S.uniqueSort(a.apply(this)))},e=S.expr={cacheLength:50,createPseudo:et,match:V,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(t){return t[1]=t[1].replace($,Q),t[3]=(t[3]||t[4]||t[5]||"").replace($,Q),"~="===t[2]&&(t[3]=" "+t[3]+" "),t.slice(0,4)},CHILD:function(t){return t[1]=t[1].toLowerCase(),"nth"===t[1].slice(0,3)?(t[3]||K.error(t[0]),t[4]=+(t[4]?t[5]+(t[6]||1):2*("even"===t[3]||"odd"===t[3])),t[5]=+(t[7]+t[8]||"odd"===t[3])):t[3]&&K.error(t[0]),t},PSEUDO:function(t){var e,n=!t[6]&&t[2];return V.CHILD.test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||"":n&&q.test(n)&&(e=lt(n,!0))&&(e=n.indexOf(")",n.length-e)-n.length)&&(t[0]=t[0].slice(0,e),t[2]=n.slice(0,e)),t.slice(0,3))}},filter:{TAG:function(t){var e=t.replace($,Q).toLowerCase();return"*"===t?function(){return!0}:function(t){return C(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,u){var h,l,c,f,d,p=s!==o?"nextSibling":"previousSibling",m=e.parentNode,g=a&&e.nodeName.toLowerCase(),w=!u&&!a,b=!1;if(m){if(s){for(;p;){for(c=e;c=c[p];)if(a?C(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(b=(f=(h=(l=m[y]||(m[y]={}))[t]||[])[0]===v&&h[1])&&h[2],c=f&&m.childNodes[f];c=++f&&c&&c[p]||(b=f=0)||d.pop();)if(1===c.nodeType&&++b&&c===e){l[t]=[v,f,b];break}}else if(w&&(b=f=(h=(l=e[y]||(e[y]={}))[t]||[])[0]===v&&h[1]),!1===b)for(;(c=++f&&c&&c[p]||(b=f=0)||d.pop())&&(!(a?C(c,g):1===c.nodeType)||!++b||(w&&((l=c[y]||(c[y]={}))[t]=[v,b]),c!==e)););return(b-=i)===r||b%r===0&&b/r>=0}}},PSEUDO:function(t,n){var r,i=e.pseudos[t]||e.setFilters[t.toLowerCase()]||K.error("unsupported pseudo: "+t);return i[y]?i(n):i.length>1?(r=[t,t,"",n],e.setFilters.hasOwnProperty(t.toLowerCase())?et(function(t,e){for(var r,s=i(t,n),o=s.length;o--;)t[r=l.call(t,s[o])]=!(e[r]=s[o])}):function(t){return i(t,0,r)}):i}},pseudos:{not:et(function(t){var e=[],n=[],r=yt(t.replace(L,"$1"));return r[y]?et(function(t,e,n,i){for(var s,o=r(t,null,i,[]),a=t.length;a--;)(s=o[a])&&(t[a]=!(e[a]=s))}):function(t,i,s){return e[0]=t,r(e,null,s,n),e[0]=null,!n.pop()}}),has:et(function(t){return function(e){return K(t,e).length>0}}),contains:et(function(t){return t=t.replace($,Q),function(e){return(e.textContent||S.text(e)).indexOf(t)>-1}}),lang:et(function(t){return U.test(t||"")||K.error("unsupported lang: "+t),t=t.replace($,Q).toLowerCase(),function(e){var n;do{if(n=c?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return(n=n.toLowerCase())===t||0===n.indexOf(t+"-")}while((e=e.parentNode)&&1===e.nodeType);return!1}}),target:function(t){var e=r.location&&r.location.hash;return e&&e.slice(1)===t.id},root:function(t){return t===h},focus:function(t){return t===function(){try{return u.activeElement}catch(t){}}()&&u.hasFocus()&&!!(t.type||t.href||~t.tabIndex)},enabled:st(!1),disabled:st(!0),checked:function(t){return C(t,"input")&&!!t.checked||C(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 C(t,"input")&&"button"===t.type||C(t,"button")},text:function(t){var e;return C(t,"input")&&"text"===t.type&&(null==(e=t.getAttribute("type"))||"text"===e.toLowerCase())},first:ot(function(){return[0]}),last:ot(function(t,e){return[e-1]}),eq:ot(function(t,e,n){return[n<0?n+e:n]}),even:ot(function(t,e){for(var n=0;n<e;n+=2)t.push(n);return t}),odd:ot(function(t,e){for(var n=1;n<e;n+=2)t.push(n);return t}),lt:ot(function(t,e,n){var r;for(r=n<0?n+e:n>e?e:n;--r>=0;)t.push(r);return t}),gt:ot(function(t,e,n){for(var r=n<0?n+e:n;++r<e;)t.push(r);return t})}},e.pseudos.nth=e.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})e.pseudos[t]=rt(t);for(t in{submit:!0,reset:!0})e.pseudos[t]=it(t);function ht(){}function lt(t,n){var r,i,s,o,a,u,h,l=x[t+" "];if(l)return n?0:l.slice(0);for(a=t,u=[],h=e.preFilter;a;){for(o in r&&!(i=R.exec(a))||(i&&(a=a.slice(i[0].length)||a),u.push(s=[])),r=!1,(i=z.exec(a))&&(r=i.shift(),s.push({value:r,type:i[0].replace(L," ")}),a=a.slice(r.length)),e.filter)!(i=V[o].exec(a))||h[o]&&!(i=h[o](i))||(r=i.shift(),s.push({value:r,type:o,matches:i}),a=a.slice(r.length));if(!r)break}return n?a.length:a?K.error(t):x(t,u).slice(0)}function ct(t){for(var e=0,n=t.length,r="";e<n;e++)r+=t[e].value;return r}function ft(t,e,n){var r=e.dir,i=e.next,s=i||r,o=n&&"parentNode"===s,a=w++;return e.first?function(e,n,i){for(;e=e[r];)if(1===e.nodeType||o)return t(e,n,i);return!1}:function(e,n,u){var h,l,c=[v,a];if(u){for(;e=e[r];)if((1===e.nodeType||o)&&t(e,n,u))return!0}else for(;e=e[r];)if(1===e.nodeType||o)if(l=e[y]||(e[y]={}),i&&C(e,i))e=e[r]||e;else{if((h=l[s])&&h[0]===v&&h[1]===a)return c[2]=h[2];if(l[s]=c,c[2]=t(e,n,u))return!0}return!1}}function dt(t){return t.length>1?function(e,n,r){for(var i=t.length;i--;)if(!t[i](e,n,r))return!1;return!0}:t[0]}function pt(t,e,n,r,i){for(var s,o=[],a=0,u=t.length,h=null!=e;a<u;a++)(s=t[a])&&(n&&!n(s,r,i)||(o.push(s),h&&e.push(a)));return o}function mt(t,e,n,r,i,s){return r&&!r[y]&&(r=mt(r)),i&&!i[y]&&(i=mt(i,s)),et(function(s,o,a,u){var h,c,f,d,p=[],g=[],y=o.length,v=s||function(t,e,n){for(var r=0,i=e.length;r<i;r++)K(t,e[r],n);return n}(e||"*",a.nodeType?[a]:a,[]),w=!t||!s&&e?v:pt(v,p,t,a,u);if(n?n(w,d=i||(s?t:y||r)?[]:o,a,u):d=w,r)for(h=pt(d,g),r(h,[],a,u),c=h.length;c--;)(f=h[c])&&(d[g[c]]=!(w[g[c]]=f));if(s){if(i||t){if(i){for(h=[],c=d.length;c--;)(f=d[c])&&h.push(w[c]=f);i(null,d=[],h,u)}for(c=d.length;c--;)(f=d[c])&&(h=i?l.call(s,f):p[c])>-1&&(s[h]=!(o[h]=f))}}else d=pt(d===o?d.splice(y,d.length):d),i?i(null,o,d,u):m.apply(o,d)})}function gt(t){for(var r,i,s,o=t.length,a=e.relative[t[0].type],u=a||e.relative[" "],h=a?1:0,c=ft(function(t){return t===r},u,!0),f=ft(function(t){return l.call(r,t)>-1},u,!0),d=[function(t,e,i){var s=!a&&(i||e!=n)||((r=e).nodeType?c(t,e,i):f(t,e,i));return r=null,s}];h<o;h++)if(i=e.relative[t[h].type])d=[ft(dt(d),i)];else{if((i=e.filter[t[h].type].apply(null,t[h].matches))[y]){for(s=++h;s<o&&!e.relative[t[s].type];s++);return mt(h>1&&dt(d),h>1&&ct(t.slice(0,h-1).concat({value:" "===t[h-2].type?"*":""})).replace(L,"$1"),i,h<s&>(t.slice(h,s)),s<o&>(t=t.slice(s)),s<o&&ct(t))}d.push(i)}return dt(d)}function yt(t,r){var i,s=[],o=[],a=_[t+" "];if(!a){for(r||(r=lt(t)),i=r.length;i--;)(a=gt(r[i]))[y]?s.push(a):o.push(a);a=_(t,function(t,r){var i=r.length>0,s=t.length>0,o=function(o,a,h,l,f){var d,p,g,y=0,w="0",b=o&&[],x=[],_=n,N=o||s&&e.find.TAG("*",f),k=v+=null==_?1:Math.random()||.1,M=N.length;for(f&&(n=a==u||a||f);w!==M&&null!=(d=N[w]);w++){if(s&&d){for(p=0,a||d.ownerDocument==u||(ut(d),h=!c);g=t[p++];)if(g(d,a||u,h)){m.call(l,d);break}f&&(v=k)}i&&((d=!g&&d)&&y--,o&&b.push(d))}if(y+=w,i&&w!==y){for(p=0;g=r[p++];)g(b,x,a,h);if(o){if(y>0)for(;w--;)b[w]||x[w]||(x[w]=A.call(l));x=pt(x)}m.apply(l,x),f&&!o&&x.length>0&&y+r.length>1&&S.uniqueSort(l)}return f&&(v=k,n=_),b};return i?et(o):o}(o,s)),a.selector=t}return a}function vt(t,n,r,i){var s,o,a,u,h,l="function"==typeof t&&t,f=!i&<(t=l.selector||t);if(r=r||[],1===f.length){if((o=f[0]=f[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[u=a.type]);)if((h=e.find[u])&&(i=h(a.matches[0].replace($,Q),Y.test(o[0].type)&&at(n.parentNode)||n))){if(o.splice(s,1),!(t=i.length&&ct(o)))return m.apply(r,i),r;break}}return(l||yt(t,f))(i,n,!c,r,!n||Y.test(t)&&at(n.parentNode)||n),r}ht.prototype=e.filters=e.pseudos,e.setFilters=new ht,g.sortStable=y.split("").sort(k).join("")===y,ut(),g.sortDetached=nt(function(t){return 1&t.compareDocumentPosition(u.createElement("fieldset"))}),S.find=K,S.expr[":"]=S.expr.pseudos,S.unique=S.uniqueSort,K.compile=yt,K.select=vt,K.setDocument=ut,K.tokenize=lt,K.escape=S.escapeSelector,K.getText=S.text,K.isXML=S.isXMLDoc,K.selectors=S.expr,K.support=S.support,K.uniqueSort=S.uniqueSort}();var B=function(t,e,n){for(var r=[],i=void 0!==n;(t=t[e])&&9!==t.nodeType;)if(1===t.nodeType){if(i&&S(t).is(n))break;r.push(t)}return r},I=function(t,e){for(var n=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&n.push(t);return n},R=S.expr.match.needsContext,z=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function F(t,e,n){return y(e)?S.grep(t,function(t,r){return!!e.call(t,r,t)!==n}):e.nodeType?S.grep(t,function(t){return t===e!==n}):"string"!=typeof e?S.grep(t,function(t){return l.call(e,t)>-1!==n}):S.filter(e,t,n)}S.filter=function(t,e,n){var r=e[0];return n&&(t=":not("+t+")"),1===e.length&&1===r.nodeType?S.find.matchesSelector(r,t)?[r]:[]:S.find.matches(t,S.grep(e,function(t){return 1===t.nodeType}))},S.fn.extend({find:function(t){var e,n,r=this.length,i=this;if("string"!=typeof t)return this.pushStack(S(t).filter(function(){for(e=0;e<r;e++)if(S.contains(i[e],this))return!0}));for(n=this.pushStack([]),e=0;e<r;e++)S.find(t,i[e],n);return r>1?S.uniqueSort(n):n},filter:function(t){return this.pushStack(F(this,t||[],!1))},not:function(t){return this.pushStack(F(this,t||[],!0))},is:function(t){return!!F(this,"string"==typeof t&&R.test(t)?S(t):t||[],!1).length}});var q,U=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(S.fn.init=function(t,e,n){var r,i;if(!t)return this;if(n=n||q,"string"==typeof t){if(!(r="<"===t[0]&&">"===t[t.length-1]&&t.length>=3?[null,t,null]:U.exec(t))||!r[1]&&e)return!e||e.jquery?(e||n).find(t):this.constructor(e).find(t);if(r[1]){if(e=e instanceof S?e[0]:e,S.merge(this,S.parseHTML(r[1],e&&e.nodeType?e.ownerDocument||e:w,!0)),z.test(r[1])&&S.isPlainObject(e))for(r in e)y(this[r])?this[r](e[r]):this.attr(r,e[r]);return this}return(i=w.getElementById(r[2]))&&(this[0]=i,this.length=1),this}return t.nodeType?(this[0]=t,this.length=1,this):y(t)?void 0!==n.ready?n.ready(t):t(S):S.makeArray(t,this)}).prototype=S.fn,q=S(w);var V=/^(?:parents|prev(?:Until|All))/,G={children:!0,contents:!0,next:!0,prev:!0};function H(t,e){for(;(t=t[e])&&1!==t.nodeType;);return t}S.fn.extend({has:function(t){var e=S(t,this),n=e.length;return this.filter(function(){for(var t=0;t<n;t++)if(S.contains(this,e[t]))return!0})},closest:function(t,e){var n,r=0,i=this.length,s=[],o="string"!=typeof t&&S(t);if(!R.test(t))for(;r<i;r++)for(n=this[r];n&&n!==e;n=n.parentNode)if(n.nodeType<11&&(o?o.index(n)>-1:1===n.nodeType&&S.find.matchesSelector(n,t))){s.push(n);break}return this.pushStack(s.length>1?S.uniqueSort(s):s)},index:function(t){return t?"string"==typeof t?l.call(S(t),this[0]):l.call(this,t.jquery?t[0]:t):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(t,e){return this.pushStack(S.uniqueSort(S.merge(this.get(),S(t,e))))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),S.each({parent:function(t){var e=t.parentNode;return e&&11!==e.nodeType?e:null},parents:function(t){return B(t,"parentNode")},parentsUntil:function(t,e,n){return B(t,"parentNode",n)},next:function(t){return H(t,"nextSibling")},prev:function(t){return H(t,"previousSibling")},nextAll:function(t){return B(t,"nextSibling")},prevAll:function(t){return B(t,"previousSibling")},nextUntil:function(t,e,n){return B(t,"nextSibling",n)},prevUntil:function(t,e,n){return B(t,"previousSibling",n)},siblings:function(t){return I((t.parentNode||{}).firstChild,t)},children:function(t){return I(t.firstChild)},contents:function(t){return null!=t.contentDocument&&o(t.contentDocument)?t.contentDocument:(C(t,"template")&&(t=t.content||t),S.merge([],t.childNodes))}},function(t,e){S.fn[t]=function(n,r){var i=S.map(this,e,n);return"Until"!==t.slice(-5)&&(r=n),r&&"string"==typeof r&&(i=S.filter(r,i)),this.length>1&&(G[t]||S.uniqueSort(i),V.test(t)&&i.reverse()),this.pushStack(i)}});var X=/[^\x20\t\r\n\f]+/g;function Y(t){return t}function $(t){throw t}function Q(t,e,n,r){var i;try{t&&y(i=t.promise)?i.call(t).done(e).fail(n):t&&y(i=t.then)?i.call(t,e,n):e.apply(void 0,[t].slice(r))}catch(t){n.apply(void 0,[t])}}S.Callbacks=function(t){t="string"==typeof t?function(t){var e={};return S.each(t.match(X)||[],function(t,n){e[n]=!0}),e}(t):S.extend({},t);var e,n,r,i,s=[],o=[],a=-1,u=function(){for(i=i||t.once,r=e=!0;o.length;a=-1)for(n=o.shift();++a<s.length;)!1===s[a].apply(n[0],n[1])&&t.stopOnFalse&&(a=s.length,n=!1);t.memory||(n=!1),e=!1,i&&(s=n?[]:"")},h={add:function(){return s&&(n&&!e&&(a=s.length-1,o.push(n)),function e(n){S.each(n,function(n,r){y(r)?t.unique&&h.has(r)||s.push(r):r&&r.length&&"string"!==_(r)&&e(r)})}(arguments),n&&!e&&u()),this},remove:function(){return S.each(arguments,function(t,e){for(var n;(n=S.inArray(e,s,n))>-1;)s.splice(n,1),n<=a&&a--}),this},has:function(t){return t?S.inArray(t,s)>-1:s.length>0},empty:function(){return s&&(s=[]),this},disable:function(){return i=o=[],s=n="",this},disabled:function(){return!s},lock:function(){return i=o=[],n||e||(s=n=""),this},locked:function(){return!!i},fireWith:function(t,n){return i||(n=[t,(n=n||[]).slice?n.slice():n],o.push(n),e||u()),this},fire:function(){return h.fireWith(this,arguments),this},fired:function(){return!!r}};return h},S.extend({Deferred:function(t){var e=[["notify","progress",S.Callbacks("memory"),S.Callbacks("memory"),2],["resolve","done",S.Callbacks("once memory"),S.Callbacks("once memory"),0,"resolved"],["reject","fail",S.Callbacks("once memory"),S.Callbacks("once memory"),1,"rejected"]],n="pending",i={state:function(){return n},always:function(){return s.done(arguments).fail(arguments),this},catch:function(t){return i.then(null,t)},pipe:function(){var t=arguments;return S.Deferred(function(n){S.each(e,function(e,r){var i=y(t[r[4]])&&t[r[4]];s[r[1]](function(){var t=i&&i.apply(this,arguments);t&&y(t.promise)?t.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[r[0]+"With"](this,i?[t]:arguments)})}),t=null}).promise()},then:function(t,n,i){var s=0;function o(t,e,n,i){return function(){var a=this,u=arguments,h=function(){var r,h;if(!(t<s)){if((r=n.apply(a,u))===e.promise())throw new TypeError("Thenable self-resolution");h=r&&("object"==typeof r||"function"==typeof r)&&r.then,y(h)?i?h.call(r,o(s,e,Y,i),o(s,e,$,i)):(s++,h.call(r,o(s,e,Y,i),o(s,e,$,i),o(s,e,Y,e.notifyWith))):(n!==Y&&(a=void 0,u=[r]),(i||e.resolveWith)(a,u))}},l=i?h:function(){try{h()}catch(r){S.Deferred.exceptionHook&&S.Deferred.exceptionHook(r,l.error),t+1>=s&&(n!==$&&(a=void 0,u=[r]),e.rejectWith(a,u))}};t?l():(S.Deferred.getErrorHook?l.error=S.Deferred.getErrorHook():S.Deferred.getStackHook&&(l.error=S.Deferred.getStackHook()),r.setTimeout(l))}}return S.Deferred(function(r){e[0][3].add(o(0,r,y(i)?i:Y,r.notifyWith)),e[1][3].add(o(0,r,y(t)?t:Y)),e[2][3].add(o(0,r,y(n)?n:$))}).promise()},promise:function(t){return null!=t?S.extend(t,i):i}},s={};return S.each(e,function(t,r){var o=r[2],a=r[5];i[r[1]]=o.add,a&&o.add(function(){n=a},e[3-t][2].disable,e[3-t][3].disable,e[0][2].lock,e[0][3].lock),o.add(r[3].fire),s[r[0]]=function(){return s[r[0]+"With"](this===s?void 0:this,arguments),this},s[r[0]+"With"]=o.fireWith}),i.promise(s),t&&t.call(s,s),s},when:function(t){var e=arguments.length,n=e,r=Array(n),i=a.call(arguments),s=S.Deferred(),o=function(t){return function(n){r[t]=this,i[t]=arguments.length>1?a.call(arguments):n,--e||s.resolveWith(r,i)}};if(e<=1&&(Q(t,s.done(o(n)).resolve,s.reject,!e),"pending"===s.state()||y(i[n]&&i[n].then)))return s.then();for(;n--;)Q(i[n],o(n),s.reject);return s.promise()}});var Z=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;S.Deferred.exceptionHook=function(t,e){r.console&&r.console.warn&&t&&Z.test(t.name)&&r.console.warn("jQuery.Deferred exception: "+t.message,t.stack,e)},S.readyException=function(t){r.setTimeout(function(){throw t})};var J=S.Deferred();function K(){w.removeEventListener("DOMContentLoaded",K),r.removeEventListener("load",K),S.ready()}S.fn.ready=function(t){return J.then(t).catch(function(t){S.readyException(t)}),this},S.extend({isReady:!1,readyWait:1,ready:function(t){(!0===t?--S.readyWait:S.isReady)||(S.isReady=!0,!0!==t&&--S.readyWait>0||J.resolveWith(w,[S]))}}),S.ready.then=J.then,"complete"===w.readyState||"loading"!==w.readyState&&!w.documentElement.doScroll?r.setTimeout(S.ready):(w.addEventListener("DOMContentLoaded",K),r.addEventListener("load",K));var tt=function(t,e,n,r,i,s,o){var a=0,u=t.length,h=null==n;if("object"===_(n))for(a in i=!0,n)tt(t,e,a,n[a],!0,s,o);else if(void 0!==r&&(i=!0,y(r)||(o=!0),h&&(o?(e.call(t,r),e=null):(h=e,e=function(t,e,n){return h.call(S(t),n)})),e))for(;a<u;a++)e(t[a],n,o?r:r.call(t[a],a,e(t[a],n)));return i?t:h?e.call(t):u?e(t[0],n):s},et=/^-ms-/,nt=/-([a-z])/g;function rt(t,e){return e.toUpperCase()}function it(t){return t.replace(et,"ms-").replace(nt,rt)}var st=function(t){return 1===t.nodeType||9===t.nodeType||!+t.nodeType};function ot(){this.expando=S.expando+ot.uid++}ot.uid=1,ot.prototype={cache:function(t){var e=t[this.expando];return e||(e={},st(t)&&(t.nodeType?t[this.expando]=e:Object.defineProperty(t,this.expando,{value:e,configurable:!0}))),e},set:function(t,e,n){var r,i=this.cache(t);if("string"==typeof e)i[it(e)]=n;else for(r in e)i[it(r)]=e[r];return i},get:function(t,e){return void 0===e?this.cache(t):t[this.expando]&&t[this.expando][it(e)]},access:function(t,e,n){return void 0===e||e&&"string"==typeof e&&void 0===n?this.get(t,e):(this.set(t,e,n),void 0!==n?n:e)},remove:function(t,e){var n,r=t[this.expando];if(void 0!==r){if(void 0!==e){n=(e=Array.isArray(e)?e.map(it):(e=it(e))in r?[e]:e.match(X)||[]).length;for(;n--;)delete r[e[n]]}(void 0===e||S.isEmptyObject(r))&&(t.nodeType?t[this.expando]=void 0:delete t[this.expando])}},hasData:function(t){var e=t[this.expando];return void 0!==e&&!S.isEmptyObject(e)}};var at=new ot,ut=new ot,ht=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,lt=/[A-Z]/g;function ct(t,e,n){var r;if(void 0===n&&1===t.nodeType)if(r="data-"+e.replace(lt,"-$&").toLowerCase(),"string"==typeof(n=t.getAttribute(r))){try{n=function(t){return"true"===t||"false"!==t&&("null"===t?null:t===+t+""?+t:ht.test(t)?JSON.parse(t):t)}(n)}catch(t){}ut.set(t,e,n)}else n=void 0;return n}S.extend({hasData:function(t){return ut.hasData(t)||at.hasData(t)},data:function(t,e,n){return ut.access(t,e,n)},removeData:function(t,e){ut.remove(t,e)},_data:function(t,e,n){return at.access(t,e,n)},_removeData:function(t,e){at.remove(t,e)}}),S.fn.extend({data:function(t,e){var n,r,i,s=this[0],o=s&&s.attributes;if(void 0===t){if(this.length&&(i=ut.get(s),1===s.nodeType&&!at.get(s,"hasDataAttrs"))){for(n=o.length;n--;)o[n]&&0===(r=o[n].name).indexOf("data-")&&(r=it(r.slice(5)),ct(s,r,i[r]));at.set(s,"hasDataAttrs",!0)}return i}return"object"==typeof t?this.each(function(){ut.set(this,t)}):tt(this,function(e){var n;if(s&&void 0===e)return void 0!==(n=ut.get(s,t))||void 0!==(n=ct(s,t))?n:void 0;this.each(function(){ut.set(this,t,e)})},null,e,arguments.length>1,null,!0)},removeData:function(t){return this.each(function(){ut.remove(this,t)})}}),S.extend({queue:function(t,e,n){var r;if(t)return e=(e||"fx")+"queue",r=at.get(t,e),n&&(!r||Array.isArray(n)?r=at.access(t,e,S.makeArray(n)):r.push(n)),r||[]},dequeue:function(t,e){e=e||"fx";var n=S.queue(t,e),r=n.length,i=n.shift(),s=S._queueHooks(t,e);"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===e&&n.unshift("inprogress"),delete s.stop,i.call(t,function(){S.dequeue(t,e)},s)),!r&&s&&s.empty.fire()},_queueHooks:function(t,e){var n=e+"queueHooks";return at.get(t,n)||at.access(t,n,{empty:S.Callbacks("once memory").add(function(){at.remove(t,[e+"queue",n])})})}}),S.fn.extend({queue:function(t,e){var n=2;return"string"!=typeof t&&(e=t,t="fx",n--),arguments.length<n?S.queue(this[0],t):void 0===e?this:this.each(function(){var n=S.queue(this,t,e);S._queueHooks(this,t),"fx"===t&&"inprogress"!==n[0]&&S.dequeue(this,t)})},dequeue:function(t){return this.each(function(){S.dequeue(this,t)})},clearQueue:function(t){return this.queue(t||"fx",[])},promise:function(t,e){var n,r=1,i=S.Deferred(),s=this,o=this.length,a=function(){--r||i.resolveWith(s,[s])};for("string"!=typeof t&&(e=t,t=void 0),t=t||"fx";o--;)(n=at.get(s[o],t+"queueHooks"))&&n.empty&&(r++,n.empty.add(a));return a(),i.promise(e)}});var ft=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,dt=new RegExp("^(?:([+-])=|)("+ft+")([a-z%]*)$","i"),pt=["Top","Right","Bottom","Left"],mt=w.documentElement,gt=function(t){return S.contains(t.ownerDocument,t)},yt={composed:!0};mt.getRootNode&&(gt=function(t){return S.contains(t.ownerDocument,t)||t.getRootNode(yt)===t.ownerDocument});var vt=function(t,e){return"none"===(t=e||t).style.display||""===t.style.display&>(t)&&"none"===S.css(t,"display")};function wt(t,e,n,r){var i,s,o=20,a=r?function(){return r.cur()}:function(){return S.css(t,e,"")},u=a(),h=n&&n[3]||(S.cssNumber[e]?"":"px"),l=t.nodeType&&(S.cssNumber[e]||"px"!==h&&+u)&&dt.exec(S.css(t,e));if(l&&l[3]!==h){for(u/=2,h=h||l[3],l=+u||1;o--;)S.style(t,e,l+h),(1-s)*(1-(s=a()/u||.5))<=0&&(o=0),l/=s;l*=2,S.style(t,e,l+h),n=n||[]}return n&&(l=+l||+u||0,i=n[1]?l+(n[1]+1)*n[2]:+n[2],r&&(r.unit=h,r.start=l,r.end=i)),i}var bt={};function xt(t){var e,n=t.ownerDocument,r=t.nodeName,i=bt[r];return i||(e=n.body.appendChild(n.createElement(r)),i=S.css(e,"display"),e.parentNode.removeChild(e),"none"===i&&(i="block"),bt[r]=i,i)}function _t(t,e){for(var n,r,i=[],s=0,o=t.length;s<o;s++)(r=t[s]).style&&(n=r.style.display,e?("none"===n&&(i[s]=at.get(r,"display")||null,i[s]||(r.style.display="")),""===r.style.display&&vt(r)&&(i[s]=xt(r))):"none"!==n&&(i[s]="none",at.set(r,"display",n)));for(s=0;s<o;s++)null!=i[s]&&(t[s].style.display=i[s]);return t}S.fn.extend({show:function(){return _t(this,!0)},hide:function(){return _t(this)},toggle:function(t){return"boolean"==typeof t?t?this.show():this.hide():this.each(function(){vt(this)?S(this).show():S(this).hide()})}});var Nt,kt,St=/^(?:checkbox|radio)$/i,Mt=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,Ct=/^$|^module$|\/(?:java|ecma)script/i;Nt=w.createDocumentFragment().appendChild(w.createElement("div")),(kt=w.createElement("input")).setAttribute("type","radio"),kt.setAttribute("checked","checked"),kt.setAttribute("name","t"),Nt.appendChild(kt),g.checkClone=Nt.cloneNode(!0).cloneNode(!0).lastChild.checked,Nt.innerHTML="<textarea>x</textarea>",g.noCloneChecked=!!Nt.cloneNode(!0).lastChild.defaultValue,Nt.innerHTML="<option></option>",g.option=!!Nt.lastChild;var At={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 Et(t,e){var n;return n=void 0!==t.getElementsByTagName?t.getElementsByTagName(e||"*"):void 0!==t.querySelectorAll?t.querySelectorAll(e||"*"):[],void 0===e||e&&C(t,e)?S.merge([t],n):n}function Tt(t,e){for(var n=0,r=t.length;n<r;n++)at.set(t[n],"globalEval",!e||at.get(e[n],"globalEval"))}At.tbody=At.tfoot=At.colgroup=At.caption=At.thead,At.th=At.td,g.option||(At.optgroup=At.option=[1,"<select multiple='multiple'>","</select>"]);var Ot=/<|&#?\w+;/;function Lt(t,e,n,r,i){for(var s,o,a,u,h,l,c=e.createDocumentFragment(),f=[],d=0,p=t.length;d<p;d++)if((s=t[d])||0===s)if("object"===_(s))S.merge(f,s.nodeType?[s]:s);else if(Ot.test(s)){for(o=o||c.appendChild(e.createElement("div")),a=(Mt.exec(s)||["",""])[1].toLowerCase(),u=At[a]||At._default,o.innerHTML=u[1]+S.htmlPrefilter(s)+u[2],l=u[0];l--;)o=o.lastChild;S.merge(f,o.childNodes),(o=c.firstChild).textContent=""}else f.push(e.createTextNode(s));for(c.textContent="",d=0;s=f[d++];)if(r&&S.inArray(s,r)>-1)i&&i.push(s);else if(h=gt(s),o=Et(c.appendChild(s),"script"),h&&Tt(o),n)for(l=0;s=o[l++];)Ct.test(s.type||"")&&n.push(s);return c}var jt=/^([^.]*)(?:\.(.+)|)/;function Wt(){return!0}function Pt(){return!1}function Dt(t,e,n,r,i,s){var o,a;if("object"==typeof e){for(a in"string"!=typeof n&&(r=r||n,n=void 0),e)Dt(t,a,n,r,e[a],s);return t}if(null==r&&null==i?(i=n,r=n=void 0):null==i&&("string"==typeof n?(i=r,r=void 0):(i=r,r=n,n=void 0)),!1===i)i=Pt;else if(!i)return t;return 1===s&&(o=i,i=function(t){return S().off(t),o.apply(this,arguments)},i.guid=o.guid||(o.guid=S.guid++)),t.each(function(){S.event.add(this,e,i,r,n)})}function Bt(t,e,n){n?(at.set(t,e,!1),S.event.add(t,e,{namespace:!1,handler:function(t){var n,r=at.get(this,e);if(1&t.isTrigger&&this[e]){if(r)(S.event.special[e]||{}).delegateType&&t.stopPropagation();else if(r=a.call(arguments),at.set(this,e,r),this[e](),n=at.get(this,e),at.set(this,e,!1),r!==n)return t.stopImmediatePropagation(),t.preventDefault(),n}else r&&(at.set(this,e,S.event.trigger(r[0],r.slice(1),this)),t.stopPropagation(),t.isImmediatePropagationStopped=Wt)}})):void 0===at.get(t,e)&&S.event.add(t,e,Wt)}S.event={global:{},add:function(t,e,n,r,i){var s,o,a,u,h,l,c,f,d,p,m,g=at.get(t);if(st(t))for(n.handler&&(n=(s=n).handler,i=s.selector),i&&S.find.matchesSelector(mt,i),n.guid||(n.guid=S.guid++),(u=g.events)||(u=g.events=Object.create(null)),(o=g.handle)||(o=g.handle=function(e){return void 0!==S&&S.event.triggered!==e.type?S.event.dispatch.apply(t,arguments):void 0}),h=(e=(e||"").match(X)||[""]).length;h--;)d=m=(a=jt.exec(e[h])||[])[1],p=(a[2]||"").split(".").sort(),d&&(c=S.event.special[d]||{},d=(i?c.delegateType:c.bindType)||d,c=S.event.special[d]||{},l=S.extend({type:d,origType:m,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&S.expr.match.needsContext.test(i),namespace:p.join(".")},s),(f=u[d])||((f=u[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),S.event.global[d]=!0)},remove:function(t,e,n,r,i){var s,o,a,u,h,l,c,f,d,p,m,g=at.hasData(t)&&at.get(t);if(g&&(u=g.events)){for(h=(e=(e||"").match(X)||[""]).length;h--;)if(d=m=(a=jt.exec(e[h])||[])[1],p=(a[2]||"").split(".").sort(),d){for(c=S.event.special[d]||{},f=u[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)||S.removeEvent(t,d,g.handle),delete u[d])}else for(d in u)S.event.remove(t,d+e[h],n,r,!0);S.isEmptyObject(u)&&at.remove(t,"handle events")}},dispatch:function(t){var e,n,r,i,s,o,a=new Array(arguments.length),u=S.event.fix(t),h=(at.get(this,"events")||Object.create(null))[u.type]||[],l=S.event.special[u.type]||{};for(a[0]=u,e=1;e<arguments.length;e++)a[e]=arguments[e];if(u.delegateTarget=this,!l.preDispatch||!1!==l.preDispatch.call(this,u)){for(o=S.event.handlers.call(this,u,h),e=0;(i=o[e++])&&!u.isPropagationStopped();)for(u.currentTarget=i.elem,n=0;(s=i.handlers[n++])&&!u.isImmediatePropagationStopped();)u.rnamespace&&!1!==s.namespace&&!u.rnamespace.test(s.namespace)||(u.handleObj=s,u.data=s.data,void 0!==(r=((S.event.special[s.origType]||{}).handle||s.handler).apply(i.elem,a))&&!1===(u.result=r)&&(u.preventDefault(),u.stopPropagation()));return l.postDispatch&&l.postDispatch.call(this,u),u.result}},handlers:function(t,e){var n,r,i,s,o,a=[],u=e.delegateCount,h=t.target;if(u&&h.nodeType&&!("click"===t.type&&t.button>=1))for(;h!==this;h=h.parentNode||this)if(1===h.nodeType&&("click"!==t.type||!0!==h.disabled)){for(s=[],o={},n=0;n<u;n++)void 0===o[i=(r=e[n]).selector+" "]&&(o[i]=r.needsContext?S(i,this).index(h)>-1:S.find(i,this,null,[h]).length),o[i]&&s.push(r);s.length&&a.push({elem:h,handlers:s})}return h=this,u<e.length&&a.push({elem:h,handlers:e.slice(u)}),a},addProp:function(t,e){Object.defineProperty(S.Event.prototype,t,{enumerable:!0,configurable:!0,get:y(e)?function(){if(this.originalEvent)return e(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[t]},set:function(e){Object.defineProperty(this,t,{enumerable:!0,configurable:!0,writable:!0,value:e})}})},fix:function(t){return t[S.expando]?t:new S.Event(t)},special:{load:{noBubble:!0},click:{setup:function(t){var e=this||t;return St.test(e.type)&&e.click&&C(e,"input")&&Bt(e,"click",!0),!1},trigger:function(t){var e=this||t;return St.test(e.type)&&e.click&&C(e,"input")&&Bt(e,"click"),!0},_default:function(t){var e=t.target;return St.test(e.type)&&e.click&&C(e,"input")&&at.get(e,"click")||C(e,"a")}},beforeunload:{postDispatch:function(t){void 0!==t.result&&t.originalEvent&&(t.originalEvent.returnValue=t.result)}}}},S.removeEvent=function(t,e,n){t.removeEventListener&&t.removeEventListener(e,n)},S.Event=function(t,e){if(!(this instanceof S.Event))return new S.Event(t,e);t&&t.type?(this.originalEvent=t,this.type=t.type,this.isDefaultPrevented=t.defaultPrevented||void 0===t.defaultPrevented&&!1===t.returnValue?Wt:Pt,this.target=t.target&&3===t.target.nodeType?t.target.parentNode:t.target,this.currentTarget=t.currentTarget,this.relatedTarget=t.relatedTarget):this.type=t,e&&S.extend(this,e),this.timeStamp=t&&t.timeStamp||Date.now(),this[S.expando]=!0},S.Event.prototype={constructor:S.Event,isDefaultPrevented:Pt,isPropagationStopped:Pt,isImmediatePropagationStopped:Pt,isSimulated:!1,preventDefault:function(){var t=this.originalEvent;this.isDefaultPrevented=Wt,t&&!this.isSimulated&&t.preventDefault()},stopPropagation:function(){var t=this.originalEvent;this.isPropagationStopped=Wt,t&&!this.isSimulated&&t.stopPropagation()},stopImmediatePropagation:function(){var t=this.originalEvent;this.isImmediatePropagationStopped=Wt,t&&!this.isSimulated&&t.stopImmediatePropagation(),this.stopPropagation()}},S.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:!0},S.event.addProp),S.each({focus:"focusin",blur:"focusout"},function(t,e){function n(t){if(w.documentMode){var n=at.get(this,"handle"),r=S.event.fix(t);r.type="focusin"===t.type?"focus":"blur",r.isSimulated=!0,n(t),r.target===r.currentTarget&&n(r)}else S.event.simulate(e,t.target,S.event.fix(t))}S.event.special[t]={setup:function(){var r;if(Bt(this,t,!0),!w.documentMode)return!1;(r=at.get(this,e))||this.addEventListener(e,n),at.set(this,e,(r||0)+1)},trigger:function(){return Bt(this,t),!0},teardown:function(){var t;if(!w.documentMode)return!1;(t=at.get(this,e)-1)?at.set(this,e,t):(this.removeEventListener(e,n),at.remove(this,e))},_default:function(e){return at.get(e.target,t)},delegateType:e},S.event.special[e]={setup:function(){var r=this.ownerDocument||this.document||this,i=w.documentMode?this:r,s=at.get(i,e);s||(w.documentMode?this.addEventListener(e,n):r.addEventListener(t,n,!0)),at.set(i,e,(s||0)+1)},teardown:function(){var r=this.ownerDocument||this.document||this,i=w.documentMode?this:r,s=at.get(i,e)-1;s?at.set(i,e,s):(w.documentMode?this.removeEventListener(e,n):r.removeEventListener(t,n,!0),at.remove(i,e))}}}),S.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(t,e){S.event.special[t]={delegateType:e,bindType:e,handle:function(t){var n,r=t.relatedTarget,i=t.handleObj;return r&&(r===this||S.contains(this,r))||(t.type=i.origType,n=i.handler.apply(this,arguments),t.type=e),n}}}),S.fn.extend({on:function(t,e,n,r){return Dt(this,t,e,n,r)},one:function(t,e,n,r){return Dt(this,t,e,n,r,1)},off:function(t,e,n){var r,i;if(t&&t.preventDefault&&t.handleObj)return r=t.handleObj,S(t.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler),this;if("object"==typeof t){for(i in t)this.off(i,e,t[i]);return this}return!1!==e&&"function"!=typeof e||(n=e,e=void 0),!1===n&&(n=Pt),this.each(function(){S.event.remove(this,t,n,e)})}});var It=/<script|<style|<link/i,Rt=/checked\s*(?:[^=]|=\s*.checked.)/i,zt=/^\s*<!\[CDATA\[|\]\]>\s*$/g;function Ft(t,e){return C(t,"table")&&C(11!==e.nodeType?e:e.firstChild,"tr")&&S(t).children("tbody")[0]||t}function qt(t){return t.type=(null!==t.getAttribute("type"))+"/"+t.type,t}function Ut(t){return"true/"===(t.type||"").slice(0,5)?t.type=t.type.slice(5):t.removeAttribute("type"),t}function Vt(t,e){var n,r,i,s,o,a;if(1===e.nodeType){if(at.hasData(t)&&(a=at.get(t).events))for(i in at.remove(e,"handle events"),a)for(n=0,r=a[i].length;n<r;n++)S.event.add(e,i,a[i][n]);ut.hasData(t)&&(s=ut.access(t),o=S.extend({},s),ut.set(e,o))}}function Gt(t,e){var n=e.nodeName.toLowerCase();"input"===n&&St.test(t.type)?e.checked=t.checked:"input"!==n&&"textarea"!==n||(e.defaultValue=t.defaultValue)}function Ht(t,e,n,r){e=u(e);var i,s,o,a,h,l,c=0,f=t.length,d=f-1,p=e[0],m=y(p);if(m||f>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(f&&(s=(i=Lt(e,t[0].ownerDocument,!1,t,r)).firstChild,1===i.childNodes.length&&(i=s),s||r)){for(a=(o=S.map(Et(i,"script"),qt)).length;c<f;c++)h=i,c!==d&&(h=S.clone(h,!0,!0),a&&S.merge(o,Et(h,"script"))),n.call(t[c],h,c);if(a)for(l=o[o.length-1].ownerDocument,S.map(o,Ut),c=0;c<a;c++)h=o[c],Ct.test(h.type||"")&&!at.access(h,"globalEval")&&S.contains(l,h)&&(h.src&&"module"!==(h.type||"").toLowerCase()?S._evalUrl&&!h.noModule&&S._evalUrl(h.src,{nonce:h.nonce||h.getAttribute("nonce")},l):x(h.textContent.replace(zt,""),h,l))}return t}function Xt(t,e,n){for(var r,i=e?S.filter(e,t):t,s=0;null!=(r=i[s]);s++)n||1!==r.nodeType||S.cleanData(Et(r)),r.parentNode&&(n&>(r)&&Tt(Et(r,"script")),r.parentNode.removeChild(r));return t}S.extend({htmlPrefilter:function(t){return t},clone:function(t,e,n){var r,i,s,o,a=t.cloneNode(!0),u=gt(t);if(!(g.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||S.isXMLDoc(t)))for(o=Et(a),r=0,i=(s=Et(t)).length;r<i;r++)Gt(s[r],o[r]);if(e)if(n)for(s=s||Et(t),o=o||Et(a),r=0,i=s.length;r<i;r++)Vt(s[r],o[r]);else Vt(t,a);return(o=Et(a,"script")).length>0&&Tt(o,!u&&Et(t,"script")),a},cleanData:function(t){for(var e,n,r,i=S.event.special,s=0;void 0!==(n=t[s]);s++)if(st(n)){if(e=n[at.expando]){if(e.events)for(r in e.events)i[r]?S.event.remove(n,r):S.removeEvent(n,r,e.handle);n[at.expando]=void 0}n[ut.expando]&&(n[ut.expando]=void 0)}}}),S.fn.extend({detach:function(t){return Xt(this,t,!0)},remove:function(t){return Xt(this,t)},text:function(t){return tt(this,function(t){return void 0===t?S.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=t)})},null,t,arguments.length)},append:function(){return Ht(this,arguments,function(t){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Ft(this,t).appendChild(t)})},prepend:function(){return Ht(this,arguments,function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=Ft(this,t);e.insertBefore(t,e.firstChild)}})},before:function(){return Ht(this,arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this)})},after:function(){return Ht(this,arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this.nextSibling)})},empty:function(){for(var t,e=0;null!=(t=this[e]);e++)1===t.nodeType&&(S.cleanData(Et(t,!1)),t.textContent="");return this},clone:function(t,e){return t=null!=t&&t,e=null==e?t:e,this.map(function(){return S.clone(this,t,e)})},html:function(t){return tt(this,function(t){var e=this[0]||{},n=0,r=this.length;if(void 0===t&&1===e.nodeType)return e.innerHTML;if("string"==typeof t&&!It.test(t)&&!At[(Mt.exec(t)||["",""])[1].toLowerCase()]){t=S.htmlPrefilter(t);try{for(;n<r;n++)1===(e=this[n]||{}).nodeType&&(S.cleanData(Et(e,!1)),e.innerHTML=t);e=0}catch(t){}}e&&this.empty().append(t)},null,t,arguments.length)},replaceWith:function(){var t=[];return Ht(this,arguments,function(e){var n=this.parentNode;S.inArray(this,t)<0&&(S.cleanData(Et(this)),n&&n.replaceChild(e,this))},t)}}),S.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(t,e){S.fn[t]=function(t){for(var n,r=[],i=S(t),s=i.length-1,o=0;o<=s;o++)n=o===s?this:this.clone(!0),S(i[o])[e](n),h.apply(r,n.get());return this.pushStack(r)}});var Yt=new RegExp("^("+ft+")(?!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),u=t.style;return(n=n||Qt(t))&&(o=n.getPropertyValue(e)||n[e],a&&o&&(o=o.replace(L,"$1")||void 0),""!==o||gt(t)||(o=S.style(t,e)),!g.pixelBoxStyles()&&Yt.test(o)&&Jt.test(e)&&(r=u.width,i=u.minWidth,s=u.maxWidth,u.minWidth=u.maxWidth=u.width=o,o=n.width,u.width=r,u.minWidth=i,u.maxWidth=s)),void 0!==o?o+"":o}function te(t,e){return{get:function(){if(!t())return(this.get=e).apply(this,arguments);delete this.get}}}!function(){function t(){if(l){h.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",l.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",mt.appendChild(h).appendChild(l);var t=r.getComputedStyle(l);n="1%"!==t.top,u=12===e(t.marginLeft),l.style.right="60%",o=36===e(t.right),i=36===e(t.width),l.style.position="absolute",s=12===e(l.offsetWidth/3),mt.removeChild(h),l=null}}function e(t){return Math.round(parseFloat(t))}var n,i,s,o,a,u,h=w.createElement("div"),l=w.createElement("div");l.style&&(l.style.backgroundClip="content-box",l.cloneNode(!0).style.backgroundClip="",g.clearCloneStyle="content-box"===l.style.backgroundClip,S.extend(g,{boxSizingReliable:function(){return t(),i},pixelBoxStyles:function(){return t(),o},pixelPosition:function(){return t(),n},reliableMarginLeft:function(){return t(),u},scrollboxSize:function(){return t(),s},reliableTrDimensions:function(){var t,e,n,i;return null==a&&(t=w.createElement("table"),e=w.createElement("tr"),n=w.createElement("div"),t.style.cssText="position:absolute;left:-11111px;border-collapse:separate",e.style.cssText="box-sizing:content-box;border:1px solid",e.style.height="1px",n.style.height="9px",n.style.display="block",mt.appendChild(t).appendChild(e).appendChild(n),i=r.getComputedStyle(e),a=parseInt(i.height,10)+parseInt(i.borderTopWidth,10)+parseInt(i.borderBottomWidth,10)===e.offsetHeight,mt.removeChild(t)),a}}))}();var ee=["Webkit","Moz","ms"],ne=w.createElement("div").style,re={};function ie(t){return S.cssProps[t]||re[t]||(t in ne?t:re[t]=function(t){for(var e=t[0].toUpperCase()+t.slice(1),n=ee.length;n--;)if((t=ee[n]+e)in ne)return t}(t)||t)}var se=/^(none|table(?!-c[ea]).+)/,oe={position:"absolute",visibility:"hidden",display:"block"},ae={letterSpacing:"0",fontWeight:"400"};function ue(t,e,n){var r=dt.exec(e);return r?Math.max(0,r[2]-(n||0))+(r[3]||"px"):e}function he(t,e,n,r,i,s){var o="width"===e?1:0,a=0,u=0,h=0;if(n===(r?"border":"content"))return 0;for(;o<4;o+=2)"margin"===n&&(h+=S.css(t,n+pt[o],!0,i)),r?("content"===n&&(u-=S.css(t,"padding"+pt[o],!0,i)),"margin"!==n&&(u-=S.css(t,"border"+pt[o]+"Width",!0,i))):(u+=S.css(t,"padding"+pt[o],!0,i),"padding"!==n?u+=S.css(t,"border"+pt[o]+"Width",!0,i):a+=S.css(t,"border"+pt[o]+"Width",!0,i));return!r&&s>=0&&(u+=Math.max(0,Math.ceil(t["offset"+e[0].toUpperCase()+e.slice(1)]-s-u-a-.5))||0),u+h}function le(t,e,n){var r=Qt(t),i=(!g.boxSizingReliable()||n)&&"border-box"===S.css(t,"boxSizing",!1,r),s=i,o=Kt(t,e,r),a="offset"+e[0].toUpperCase()+e.slice(1);if(Yt.test(o)){if(!n)return o;o="auto"}return(!g.boxSizingReliable()&&i||!g.reliableTrDimensions()&&C(t,"tr")||"auto"===o||!parseFloat(o)&&"inline"===S.css(t,"display",!1,r))&&t.getClientRects().length&&(i="border-box"===S.css(t,"boxSizing",!1,r),(s=a in t)&&(o=t[a])),(o=parseFloat(o)||0)+he(t,e,n||(i?"border":"content"),s,r,o)+"px"}function ce(t,e,n,r,i){return new ce.prototype.init(t,e,n,r,i)}S.extend({cssHooks:{opacity:{get:function(t,e){if(e){var n=Kt(t,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,aspectRatio:!0,borderImageSlice:!0,columnCount:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,scale:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeMiterlimit:!0,strokeOpacity:!0},cssProps:{},style:function(t,e,n,r){if(t&&3!==t.nodeType&&8!==t.nodeType&&t.style){var i,s,o,a=it(e),u=$t.test(e),h=t.style;if(u||(e=ie(a)),o=S.cssHooks[e]||S.cssHooks[a],void 0===n)return o&&"get"in o&&void 0!==(i=o.get(t,!1,r))?i:h[e];"string"==(s=typeof n)&&(i=dt.exec(n))&&i[1]&&(n=wt(t,e,i),s="number"),null!=n&&n==n&&("number"!==s||u||(n+=i&&i[3]||(S.cssNumber[a]?"":"px")),g.clearCloneStyle||""!==n||0!==e.indexOf("background")||(h[e]="inherit"),o&&"set"in o&&void 0===(n=o.set(t,n,r))||(u?h.setProperty(e,n):h[e]=n))}},css:function(t,e,n,r){var i,s,o,a=it(e);return $t.test(e)||(e=ie(a)),(o=S.cssHooks[e]||S.cssHooks[a])&&"get"in o&&(i=o.get(t,!0,n)),void 0===i&&(i=Kt(t,e,r)),"normal"===i&&e in ae&&(i=ae[e]),""===n||n?(s=parseFloat(i),!0===n||isFinite(s)?s||0:i):i}}),S.each(["height","width"],function(t,e){S.cssHooks[e]={get:function(t,n,r){if(n)return!se.test(S.css(t,"display"))||t.getClientRects().length&&t.getBoundingClientRect().width?le(t,e,r):Zt(t,oe,function(){return le(t,e,r)})},set:function(t,n,r){var i,s=Qt(t),o=!g.scrollboxSize()&&"absolute"===s.position,a=(o||r)&&"border-box"===S.css(t,"boxSizing",!1,s),u=r?he(t,e,r,a,s):0;return a&&o&&(u-=Math.ceil(t["offset"+e[0].toUpperCase()+e.slice(1)]-parseFloat(s[e])-he(t,e,"border",!1,s)-.5)),u&&(i=dt.exec(n))&&"px"!==(i[3]||"px")&&(t.style[e]=n,n=S.css(t,e)),ue(0,n,u)}}}),S.cssHooks.marginLeft=te(g.reliableMarginLeft,function(t,e){if(e)return(parseFloat(Kt(t,"marginLeft"))||t.getBoundingClientRect().left-Zt(t,{marginLeft:0},function(){return t.getBoundingClientRect().left}))+"px"}),S.each({margin:"",padding:"",border:"Width"},function(t,e){S.cssHooks[t+e]={expand:function(n){for(var r=0,i={},s="string"==typeof n?n.split(" "):[n];r<4;r++)i[t+pt[r]+e]=s[r]||s[r-2]||s[0];return i}},"margin"!==t&&(S.cssHooks[t+e].set=ue)}),S.fn.extend({css:function(t,e){return tt(this,function(t,e,n){var r,i,s={},o=0;if(Array.isArray(e)){for(r=Qt(t),i=e.length;o<i;o++)s[e[o]]=S.css(t,e[o],!1,r);return s}return void 0!==n?S.style(t,e,n):S.css(t,e)},t,e,arguments.length>1)}}),S.Tween=ce,ce.prototype={constructor:ce,init:function(t,e,n,r,i,s){this.elem=t,this.prop=n,this.easing=i||S.easing._default,this.options=e,this.start=this.now=this.cur(),this.end=r,this.unit=s||(S.cssNumber[n]?"":"px")},cur:function(){var t=ce.propHooks[this.prop];return t&&t.get?t.get(this):ce.propHooks._default.get(this)},run:function(t){var e,n=ce.propHooks[this.prop];return this.options.duration?this.pos=e=S.easing[this.easing](t,this.options.duration*t,0,1,this.options.duration):this.pos=e=t,this.now=(this.end-this.start)*e+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):ce.propHooks._default.set(this),this}},ce.prototype.init.prototype=ce.prototype,ce.propHooks={_default:{get:function(t){var e;return 1!==t.elem.nodeType||null!=t.elem[t.prop]&&null==t.elem.style[t.prop]?t.elem[t.prop]:(e=S.css(t.elem,t.prop,""))&&"auto"!==e?e:0},set:function(t){S.fx.step[t.prop]?S.fx.step[t.prop](t):1!==t.elem.nodeType||!S.cssHooks[t.prop]&&null==t.elem.style[ie(t.prop)]?t.elem[t.prop]=t.now:S.style(t.elem,t.prop,t.now+t.unit)}}},ce.propHooks.scrollTop=ce.propHooks.scrollLeft={set:function(t){t.elem.nodeType&&t.elem.parentNode&&(t.elem[t.prop]=t.now)}},S.easing={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2},_default:"swing"},S.fx=ce.prototype.init,S.fx.step={};var fe,de,pe=/^(?:toggle|show|hide)$/,me=/queueHooks$/;function ge(){de&&(!1===w.hidden&&r.requestAnimationFrame?r.requestAnimationFrame(ge):r.setTimeout(ge,S.fx.interval),S.fx.tick())}function ye(){return r.setTimeout(function(){fe=void 0}),fe=Date.now()}function ve(t,e){var n,r=0,i={height:t};for(e=e?1:0;r<4;r+=2-e)i["margin"+(n=pt[r])]=i["padding"+n]=t;return e&&(i.opacity=i.width=t),i}function we(t,e,n){for(var r,i=(be.tweeners[e]||[]).concat(be.tweeners["*"]),s=0,o=i.length;s<o;s++)if(r=i[s].call(n,e,t))return r}function be(t,e,n){var r,i,s=0,o=be.prefilters.length,a=S.Deferred().always(function(){delete u.elem}),u=function(){if(i)return!1;for(var e=fe||ye(),n=Math.max(0,h.startTime+h.duration-e),r=1-(n/h.duration||0),s=0,o=h.tweens.length;s<o;s++)h.tweens[s].run(r);return a.notifyWith(t,[h,r,n]),r<1&&o?n:(o||a.notifyWith(t,[h,1,0]),a.resolveWith(t,[h]),!1)},h=a.promise({elem:t,props:S.extend({},e),opts:S.extend(!0,{specialEasing:{},easing:S.easing._default},n),originalProperties:e,originalOptions:n,startTime:fe||ye(),duration:n.duration,tweens:[],createTween:function(e,n){var r=S.Tween(t,h.opts,e,n,h.opts.specialEasing[e]||h.opts.easing);return h.tweens.push(r),r},stop:function(e){var n=0,r=e?h.tweens.length:0;if(i)return this;for(i=!0;n<r;n++)h.tweens[n].run(1);return e?(a.notifyWith(t,[h,1,0]),a.resolveWith(t,[h,e])):a.rejectWith(t,[h,e]),this}}),l=h.props;for(function(t,e){var n,r,i,s,o;for(n in t)if(i=e[r=it(n)],s=t[n],Array.isArray(s)&&(i=s[1],s=t[n]=s[0]),n!==r&&(t[r]=s,delete t[n]),(o=S.cssHooks[r])&&"expand"in o)for(n in s=o.expand(s),delete t[r],s)n in t||(t[n]=s[n],e[n]=i);else e[r]=i}(l,h.opts.specialEasing);s<o;s++)if(r=be.prefilters[s].call(h,t,l,h.opts))return y(r.stop)&&(S._queueHooks(h.elem,h.opts.queue).stop=r.stop.bind(r)),r;return S.map(l,we,h),y(h.opts.start)&&h.opts.start.call(t,h),h.progress(h.opts.progress).done(h.opts.done,h.opts.complete).fail(h.opts.fail).always(h.opts.always),S.fx.timer(S.extend(u,{elem:t,anim:h,queue:h.opts.queue})),h}S.Animation=S.extend(be,{tweeners:{"*":[function(t,e){var n=this.createTween(t,e);return wt(n.elem,t,dt.exec(e),n),n}]},tweener:function(t,e){y(t)?(e=t,t=["*"]):t=t.match(X);for(var n,r=0,i=t.length;r<i;r++)n=t[r],be.tweeners[n]=be.tweeners[n]||[],be.tweeners[n].unshift(e)},prefilters:[function(t,e,n){var r,i,s,o,a,u,h,l,c="width"in e||"height"in e,f=this,d={},p=t.style,m=t.nodeType&&vt(t),g=at.get(t,"fxshow");for(r in n.queue||(null==(o=S._queueHooks(t,"fx")).unqueued&&(o.unqueued=0,a=o.empty.fire,o.empty.fire=function(){o.unqueued||a()}),o.unqueued++,f.always(function(){f.always(function(){o.unqueued--,S.queue(t,"fx").length||o.empty.fire()})})),e)if(i=e[r],pe.test(i)){if(delete e[r],s=s||"toggle"===i,i===(m?"hide":"show")){if("show"!==i||!g||void 0===g[r])continue;m=!0}d[r]=g&&g[r]||S.style(t,r)}if((u=!S.isEmptyObject(e))||!S.isEmptyObject(d))for(r in c&&1===t.nodeType&&(n.overflow=[p.overflow,p.overflowX,p.overflowY],null==(h=g&&g.display)&&(h=at.get(t,"display")),"none"===(l=S.css(t,"display"))&&(h?l=h:(_t([t],!0),h=t.style.display||h,l=S.css(t,"display"),_t([t]))),("inline"===l||"inline-block"===l&&null!=h)&&"none"===S.css(t,"float")&&(u||(f.done(function(){p.display=h}),null==h&&(l=p.display,h="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]})),u=!1,d)u||(g?"hidden"in g&&(m=g.hidden):g=at.access(t,"fxshow",{display:h}),s&&(g.hidden=!m),m&&_t([t],!0),f.done(function(){for(r in m||_t([t]),at.remove(t,"fxshow"),d)S.style(t,r,d[r])})),u=we(m?g[r]:0,r,f),r in g||(g[r]=u.start,m&&(u.end=u.start,u.start=0))}],prefilter:function(t,e){e?be.prefilters.unshift(t):be.prefilters.push(t)}}),S.speed=function(t,e,n){var r=t&&"object"==typeof t?S.extend({},t):{complete:n||!n&&e||y(t)&&t,duration:t,easing:n&&e||e&&!y(e)&&e};return S.fx.off?r.duration=0:"number"!=typeof r.duration&&(r.duration in S.fx.speeds?r.duration=S.fx.speeds[r.duration]:r.duration=S.fx.speeds._default),null!=r.queue&&!0!==r.queue||(r.queue="fx"),r.old=r.complete,r.complete=function(){y(r.old)&&r.old.call(this),r.queue&&S.dequeue(this,r.queue)},r},S.fn.extend({fadeTo:function(t,e,n,r){return this.filter(vt).css("opacity",0).show().end().animate({opacity:e},t,n,r)},animate:function(t,e,n,r){var i=S.isEmptyObject(t),s=S.speed(e,n,r),o=function(){var e=be(this,S.extend({},t),s);(i||at.get(this,"finish"))&&e.stop(!0)};return o.finish=o,i||!1===s.queue?this.each(o):this.queue(s.queue,o)},stop:function(t,e,n){var r=function(t){var e=t.stop;delete t.stop,e(n)};return"string"!=typeof t&&(n=e,e=t,t=void 0),e&&this.queue(t||"fx",[]),this.each(function(){var e=!0,i=null!=t&&t+"queueHooks",s=S.timers,o=at.get(this);if(i)o[i]&&o[i].stop&&r(o[i]);else for(i in o)o[i]&&o[i].stop&&me.test(i)&&r(o[i]);for(i=s.length;i--;)s[i].elem!==this||null!=t&&s[i].queue!==t||(s[i].anim.stop(n),e=!1,s.splice(i,1));!e&&n||S.dequeue(this,t)})},finish:function(t){return!1!==t&&(t=t||"fx"),this.each(function(){var e,n=at.get(this),r=n[t+"queue"],i=n[t+"queueHooks"],s=S.timers,o=r?r.length:0;for(n.finish=!0,S.queue(this,t,[]),i&&i.stop&&i.stop.call(this,!0),e=s.length;e--;)s[e].elem===this&&s[e].queue===t&&(s[e].anim.stop(!0),s.splice(e,1));for(e=0;e<o;e++)r[e]&&r[e].finish&&r[e].finish.call(this);delete n.finish})}}),S.each(["toggle","show","hide"],function(t,e){var n=S.fn[e];S.fn[e]=function(t,r,i){return null==t||"boolean"==typeof t?n.apply(this,arguments):this.animate(ve(e,!0),t,r,i)}}),S.each({slideDown:ve("show"),slideUp:ve("hide"),slideToggle:ve("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(t,e){S.fn[t]=function(t,n,r){return this.animate(e,t,n,r)}}),S.timers=[],S.fx.tick=function(){var t,e=0,n=S.timers;for(fe=Date.now();e<n.length;e++)(t=n[e])()||n[e]!==t||n.splice(e--,1);n.length||S.fx.stop(),fe=void 0},S.fx.timer=function(t){S.timers.push(t),S.fx.start()},S.fx.interval=13,S.fx.start=function(){de||(de=!0,ge())},S.fx.stop=function(){de=null},S.fx.speeds={slow:600,fast:200,_default:400},S.fn.delay=function(t,e){return t=S.fx&&S.fx.speeds[t]||t,e=e||"fx",this.queue(e,function(e,n){var i=r.setTimeout(e,t);n.stop=function(){r.clearTimeout(i)}})},function(){var t=w.createElement("input"),e=w.createElement("select").appendChild(w.createElement("option"));t.type="checkbox",g.checkOn=""!==t.value,g.optSelected=e.selected,(t=w.createElement("input")).value="t",t.type="radio",g.radioValue="t"===t.value}();var xe,_e=S.expr.attrHandle;S.fn.extend({attr:function(t,e){return tt(this,S.attr,t,e,arguments.length>1)},removeAttr:function(t){return this.each(function(){S.removeAttr(this,t)})}}),S.extend({attr:function(t,e,n){var r,i,s=t.nodeType;if(3!==s&&8!==s&&2!==s)return void 0===t.getAttribute?S.prop(t,e,n):(1===s&&S.isXMLDoc(t)||(i=S.attrHooks[e.toLowerCase()]||(S.expr.match.bool.test(e)?xe:void 0)),void 0!==n?null===n?void S.removeAttr(t,e):i&&"set"in i&&void 0!==(r=i.set(t,n,e))?r:(t.setAttribute(e,n+""),n):i&&"get"in i&&null!==(r=i.get(t,e))?r:null==(r=S.find.attr(t,e))?void 0:r)},attrHooks:{type:{set:function(t,e){if(!g.radioValue&&"radio"===e&&C(t,"input")){var n=t.value;return t.setAttribute("type",e),n&&(t.value=n),e}}}},removeAttr:function(t,e){var n,r=0,i=e&&e.match(X);if(i&&1===t.nodeType)for(;n=i[r++];)t.removeAttribute(n)}}),xe={set:function(t,e,n){return!1===e?S.removeAttr(t,n):t.setAttribute(n,n),n}},S.each(S.expr.match.bool.source.match(/\w+/g),function(t,e){var n=_e[e]||S.find.attr;_e[e]=function(t,e,r){var i,s,o=e.toLowerCase();return r||(s=_e[o],_e[o]=i,i=null!=n(t,e,r)?o:null,_e[o]=s),i}});var Ne=/^(?:input|select|textarea|button)$/i,ke=/^(?:a|area)$/i;function Se(t){return(t.match(X)||[]).join(" ")}function Me(t){return t.getAttribute&&t.getAttribute("class")||""}function Ce(t){return Array.isArray(t)?t:"string"==typeof t&&t.match(X)||[]}S.fn.extend({prop:function(t,e){return tt(this,S.prop,t,e,arguments.length>1)},removeProp:function(t){return this.each(function(){delete this[S.propFix[t]||t]})}}),S.extend({prop:function(t,e,n){var r,i,s=t.nodeType;if(3!==s&&8!==s&&2!==s)return 1===s&&S.isXMLDoc(t)||(e=S.propFix[e]||e,i=S.propHooks[e]),void 0!==n?i&&"set"in i&&void 0!==(r=i.set(t,n,e))?r:t[e]=n:i&&"get"in i&&null!==(r=i.get(t,e))?r:t[e]},propHooks:{tabIndex:{get:function(t){var e=S.find.attr(t,"tabindex");return e?parseInt(e,10):Ne.test(t.nodeName)||ke.test(t.nodeName)&&t.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),g.optSelected||(S.propHooks.selected={get:function(t){var e=t.parentNode;return e&&e.parentNode&&e.parentNode.selectedIndex,null},set:function(t){var e=t.parentNode;e&&(e.selectedIndex,e.parentNode&&e.parentNode.selectedIndex)}}),S.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){S.propFix[this.toLowerCase()]=this}),S.fn.extend({addClass:function(t){var e,n,r,i,s,o;return y(t)?this.each(function(e){S(this).addClass(t.call(this,e,Me(this)))}):(e=Ce(t)).length?this.each(function(){if(r=Me(this),n=1===this.nodeType&&" "+Se(r)+" "){for(s=0;s<e.length;s++)i=e[s],n.indexOf(" "+i+" ")<0&&(n+=i+" ");o=Se(n),r!==o&&this.setAttribute("class",o)}}):this},removeClass:function(t){var e,n,r,i,s,o;return y(t)?this.each(function(e){S(this).removeClass(t.call(this,e,Me(this)))}):arguments.length?(e=Ce(t)).length?this.each(function(){if(r=Me(this),n=1===this.nodeType&&" "+Se(r)+" "){for(s=0;s<e.length;s++)for(i=e[s];n.indexOf(" "+i+" ")>-1;)n=n.replace(" "+i+" "," ");o=Se(n),r!==o&&this.setAttribute("class",o)}}):this:this.attr("class","")},toggleClass:function(t,e){var n,r,i,s,o=typeof t,a="string"===o||Array.isArray(t);return y(t)?this.each(function(n){S(this).toggleClass(t.call(this,n,Me(this),e),e)}):"boolean"==typeof e&&a?e?this.addClass(t):this.removeClass(t):(n=Ce(t),this.each(function(){if(a)for(s=S(this),i=0;i<n.length;i++)r=n[i],s.hasClass(r)?s.removeClass(r):s.addClass(r);else void 0!==t&&"boolean"!==o||((r=Me(this))&&at.set(this,"__className__",r),this.setAttribute&&this.setAttribute("class",r||!1===t?"":at.get(this,"__className__")||""))}))},hasClass:function(t){var e,n,r=0;for(e=" "+t+" ";n=this[r++];)if(1===n.nodeType&&(" "+Se(Me(n))+" ").indexOf(e)>-1)return!0;return!1}});var Ae=/\r/g;S.fn.extend({val:function(t){var e,n,r,i=this[0];return arguments.length?(r=y(t),this.each(function(n){var i;1===this.nodeType&&(null==(i=r?t.call(this,n,S(this).val()):t)?i="":"number"==typeof i?i+="":Array.isArray(i)&&(i=S.map(i,function(t){return null==t?"":t+""})),(e=S.valHooks[this.type]||S.valHooks[this.nodeName.toLowerCase()])&&"set"in e&&void 0!==e.set(this,i,"value")||(this.value=i))})):i?(e=S.valHooks[i.type]||S.valHooks[i.nodeName.toLowerCase()])&&"get"in e&&void 0!==(n=e.get(i,"value"))?n:"string"==typeof(n=i.value)?n.replace(Ae,""):null==n?"":n:void 0}}),S.extend({valHooks:{option:{get:function(t){var e=S.find.attr(t,"value");return null!=e?e:Se(S.text(t))}},select:{get:function(t){var e,n,r,i=t.options,s=t.selectedIndex,o="select-one"===t.type,a=o?null:[],u=o?s+1:i.length;for(r=s<0?u:o?s:0;r<u;r++)if(((n=i[r]).selected||r===s)&&!n.disabled&&(!n.parentNode.disabled||!C(n.parentNode,"optgroup"))){if(e=S(n).val(),o)return e;a.push(e)}return a},set:function(t,e){for(var n,r,i=t.options,s=S.makeArray(e),o=i.length;o--;)((r=i[o]).selected=S.inArray(S.valHooks.option.get(r),s)>-1)&&(n=!0);return n||(t.selectedIndex=-1),s}}}}),S.each(["radio","checkbox"],function(){S.valHooks[this]={set:function(t,e){if(Array.isArray(e))return t.checked=S.inArray(S(t).val(),e)>-1}},g.checkOn||(S.valHooks[this].get=function(t){return null===t.getAttribute("value")?"on":t.value})});var Ee=r.location,Te={guid:Date.now()},Oe=/\?/;S.parseXML=function(t){var e,n;if(!t||"string"!=typeof t)return null;try{e=(new r.DOMParser).parseFromString(t,"text/xml")}catch(t){}return n=e&&e.getElementsByTagName("parsererror")[0],e&&!n||S.error("Invalid XML: "+(n?S.map(n.childNodes,function(t){return t.textContent}).join("\n"):t)),e};var Le=/^(?:focusinfocus|focusoutblur)$/,je=function(t){t.stopPropagation()};S.extend(S.event,{trigger:function(t,e,n,i){var s,o,a,u,h,l,c,f,p=[n||w],m=d.call(t,"type")?t.type:t,g=d.call(t,"namespace")?t.namespace.split("."):[];if(o=f=a=n=n||w,3!==n.nodeType&&8!==n.nodeType&&!Le.test(m+S.event.triggered)&&(m.indexOf(".")>-1&&(g=m.split("."),m=g.shift(),g.sort()),h=m.indexOf(":")<0&&"on"+m,(t=t[S.expando]?t:new S.Event(m,"object"==typeof t&&t)).isTrigger=i?2:3,t.namespace=g.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+g.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=n),e=null==e?[t]:S.makeArray(e,[t]),c=S.event.special[m]||{},i||!c.trigger||!1!==c.trigger.apply(n,e))){if(!i&&!c.noBubble&&!v(n)){for(u=c.delegateType||m,Le.test(u+m)||(o=o.parentNode);o;o=o.parentNode)p.push(o),a=o;a===(n.ownerDocument||w)&&p.push(a.defaultView||a.parentWindow||r)}for(s=0;(o=p[s++])&&!t.isPropagationStopped();)f=o,t.type=s>1?u:c.bindType||m,(l=(at.get(o,"events")||Object.create(null))[t.type]&&at.get(o,"handle"))&&l.apply(o,e),(l=h&&o[h])&&l.apply&&st(o)&&(t.result=l.apply(o,e),!1===t.result&&t.preventDefault());return t.type=m,i||t.isDefaultPrevented()||c._default&&!1!==c._default.apply(p.pop(),e)||!st(n)||h&&y(n[m])&&!v(n)&&((a=n[h])&&(n[h]=null),S.event.triggered=m,t.isPropagationStopped()&&f.addEventListener(m,je),n[m](),t.isPropagationStopped()&&f.removeEventListener(m,je),S.event.triggered=void 0,a&&(n[h]=a)),t.result}},simulate:function(t,e,n){var r=S.extend(new S.Event,n,{type:t,isSimulated:!0});S.event.trigger(r,null,e)}}),S.fn.extend({trigger:function(t,e){return this.each(function(){S.event.trigger(t,e,this)})},triggerHandler:function(t,e){var n=this[0];if(n)return S.event.trigger(t,e,n,!0)}});var We=/\[\]$/,Pe=/\r?\n/g,De=/^(?:submit|button|image|reset|file)$/i,Be=/^(?:input|select|textarea|keygen)/i;function Ie(t,e,n,r){var i;if(Array.isArray(e))S.each(e,function(e,i){n||We.test(t)?r(t,i):Ie(t+"["+("object"==typeof i&&null!=i?e:"")+"]",i,n,r)});else if(n||"object"!==_(e))r(t,e);else for(i in e)Ie(t+"["+i+"]",e[i],n,r)}S.param=function(t,e){var n,r=[],i=function(t,e){var n=y(e)?e():e;r[r.length]=encodeURIComponent(t)+"="+encodeURIComponent(null==n?"":n)};if(null==t)return"";if(Array.isArray(t)||t.jquery&&!S.isPlainObject(t))S.each(t,function(){i(this.name,this.value)});else for(n in t)Ie(n,t[n],e,i);return r.join("&")},S.fn.extend({serialize:function(){return S.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var t=S.prop(this,"elements");return t?S.makeArray(t):this}).filter(function(){var t=this.type;return this.name&&!S(this).is(":disabled")&&Be.test(this.nodeName)&&!De.test(t)&&(this.checked||!St.test(t))}).map(function(t,e){var n=S(this).val();return null==n?null:Array.isArray(n)?S.map(n,function(t){return{name:e.name,value:t.replace(Pe,"\r\n")}}):{name:e.name,value:n.replace(Pe,"\r\n")}}).get()}});var Re=/%20/g,ze=/#.*$/,Fe=/([?&])_=[^&]*/,qe=/^(.*?):[ \t]*([^\r\n]*)$/gm,Ue=/^(?:GET|HEAD)$/,Ve=/^\/\//,Ge={},He={},Xe="*/".concat("*"),Ye=w.createElement("a");function $e(t){return function(e,n){"string"!=typeof e&&(n=e,e="*");var r,i=0,s=e.toLowerCase().match(X)||[];if(y(n))for(;r=s[i++];)"+"===r[0]?(r=r.slice(1)||"*",(t[r]=t[r]||[]).unshift(n)):(t[r]=t[r]||[]).push(n)}}function Qe(t,e,n,r){var i={},s=t===He;function o(a){var u;return i[a]=!0,S.each(t[a]||[],function(t,a){var h=a(e,n,r);return"string"!=typeof h||s||i[h]?s?!(u=h):void 0:(e.dataTypes.unshift(h),o(h),!1)}),u}return o(e.dataTypes[0])||!i["*"]&&o("*")}function Ze(t,e){var n,r,i=S.ajaxSettings.flatOptions||{};for(n in e)void 0!==e[n]&&((i[n]?t:r||(r={}))[n]=e[n]);return r&&S.extend(!0,t,r),t}Ye.href=Ee.href,S.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Ee.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(Ee.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Xe,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":S.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(t,e){return e?Ze(Ze(t,S.ajaxSettings),e):Ze(S.ajaxSettings,t)},ajaxPrefilter:$e(Ge),ajaxTransport:$e(He),ajax:function(t,e){"object"==typeof t&&(e=t,t=void 0),e=e||{};var n,i,s,o,a,u,h,l,c,f,d=S.ajaxSetup({},e),p=d.context||d,m=d.context&&(p.nodeType||p.jquery)?S(p):S.event,g=S.Deferred(),y=S.Callbacks("once memory"),v=d.statusCode||{},b={},x={},_="canceled",N={readyState:0,getResponseHeader:function(t){var e;if(h){if(!o)for(o={};e=qe.exec(s);)o[e[1].toLowerCase()+" "]=(o[e[1].toLowerCase()+" "]||[]).concat(e[2]);e=o[t.toLowerCase()+" "]}return null==e?null:e.join(", ")},getAllResponseHeaders:function(){return h?s:null},setRequestHeader:function(t,e){return null==h&&(t=x[t.toLowerCase()]=x[t.toLowerCase()]||t,b[t]=e),this},overrideMimeType:function(t){return null==h&&(d.mimeType=t),this},statusCode:function(t){var e;if(t)if(h)N.always(t[N.status]);else for(e in t)v[e]=[v[e],t[e]];return this},abort:function(t){var e=t||_;return n&&n.abort(e),k(0,e),this}};if(g.promise(N),d.url=((t||d.url||Ee.href)+"").replace(Ve,Ee.protocol+"//"),d.type=e.method||e.type||d.method||d.type,d.dataTypes=(d.dataType||"*").toLowerCase().match(X)||[""],null==d.crossDomain){u=w.createElement("a");try{u.href=d.url,u.href=u.href,d.crossDomain=Ye.protocol+"//"+Ye.host!=u.protocol+"//"+u.host}catch(t){d.crossDomain=!0}}if(d.data&&d.processData&&"string"!=typeof d.data&&(d.data=S.param(d.data,d.traditional)),Qe(Ge,d,e,N),h)return N;for(c in(l=S.event&&d.global)&&0===S.active++&&S.event.trigger("ajaxStart"),d.type=d.type.toUpperCase(),d.hasContent=!Ue.test(d.type),i=d.url.replace(ze,""),d.hasContent?d.data&&d.processData&&0===(d.contentType||"").indexOf("application/x-www-form-urlencoded")&&(d.data=d.data.replace(Re,"+")):(f=d.url.slice(i.length),d.data&&(d.processData||"string"==typeof d.data)&&(i+=(Oe.test(i)?"&":"?")+d.data,delete d.data),!1===d.cache&&(i=i.replace(Fe,"$1"),f=(Oe.test(i)?"&":"?")+"_="+Te.guid+++f),d.url=i+f),d.ifModified&&(S.lastModified[i]&&N.setRequestHeader("If-Modified-Since",S.lastModified[i]),S.etag[i]&&N.setRequestHeader("If-None-Match",S.etag[i])),(d.data&&d.hasContent&&!1!==d.contentType||e.contentType)&&N.setRequestHeader("Content-Type",d.contentType),N.setRequestHeader("Accept",d.dataTypes[0]&&d.accepts[d.dataTypes[0]]?d.accepts[d.dataTypes[0]]+("*"!==d.dataTypes[0]?", "+Xe+"; q=0.01":""):d.accepts["*"]),d.headers)N.setRequestHeader(c,d.headers[c]);if(d.beforeSend&&(!1===d.beforeSend.call(p,N,d)||h))return N.abort();if(_="abort",y.add(d.complete),N.done(d.success),N.fail(d.error),n=Qe(He,d,e,N)){if(N.readyState=1,l&&m.trigger("ajaxSend",[N,d]),h)return N;d.async&&d.timeout>0&&(a=r.setTimeout(function(){N.abort("timeout")},d.timeout));try{h=!1,n.send(b,k)}catch(t){if(h)throw t;k(-1,t)}}else k(-1,"No Transport");function k(t,e,o,u){var c,f,w,b,x,_=e;h||(h=!0,a&&r.clearTimeout(a),n=void 0,s=u||"",N.readyState=t>0?4:0,c=t>=200&&t<300||304===t,o&&(b=function(t,e,n){for(var r,i,s,o,a=t.contents,u=t.dataTypes;"*"===u[0];)u.shift(),void 0===r&&(r=t.mimeType||e.getResponseHeader("Content-Type"));if(r)for(i in a)if(a[i]&&a[i].test(r)){u.unshift(i);break}if(u[0]in n)s=u[0];else{for(i in n){if(!u[0]||t.converters[i+" "+u[0]]){s=i;break}o||(o=i)}s=s||o}if(s)return s!==u[0]&&u.unshift(s),n[s]}(d,N,o)),!c&&S.inArray("script",d.dataTypes)>-1&&S.inArray("json",d.dataTypes)<0&&(d.converters["text script"]=function(){}),b=function(t,e,n,r){var i,s,o,a,u,h={},l=t.dataTypes.slice();if(l[1])for(o in t.converters)h[o.toLowerCase()]=t.converters[o];for(s=l.shift();s;)if(t.responseFields[s]&&(n[t.responseFields[s]]=e),!u&&r&&t.dataFilter&&(e=t.dataFilter(e,t.dataType)),u=s,s=l.shift())if("*"===s)s=u;else if("*"!==u&&u!==s){if(!(o=h[u+" "+s]||h["* "+s]))for(i in h)if((a=i.split(" "))[1]===s&&(o=h[u+" "+a[0]]||h["* "+a[0]])){!0===o?o=h[i]:!0!==h[i]&&(s=a[0],l.unshift(a[1]));break}if(!0!==o)if(o&&t.throws)e=o(e);else try{e=o(e)}catch(t){return{state:"parsererror",error:o?t:"No conversion from "+u+" to "+s}}}return{state:"success",data:e}}(d,b,N,c),c?(d.ifModified&&((x=N.getResponseHeader("Last-Modified"))&&(S.lastModified[i]=x),(x=N.getResponseHeader("etag"))&&(S.etag[i]=x)),204===t||"HEAD"===d.type?_="nocontent":304===t?_="notmodified":(_=b.state,f=b.data,c=!(w=b.error))):(w=_,!t&&_||(_="error",t<0&&(t=0))),N.status=t,N.statusText=(e||_)+"",c?g.resolveWith(p,[f,_,N]):g.rejectWith(p,[N,_,w]),N.statusCode(v),v=void 0,l&&m.trigger(c?"ajaxSuccess":"ajaxError",[N,d,c?f:w]),y.fireWith(p,[N,_]),l&&(m.trigger("ajaxComplete",[N,d]),--S.active||S.event.trigger("ajaxStop")))}return N},getJSON:function(t,e,n){return S.get(t,e,n,"json")},getScript:function(t,e){return S.get(t,void 0,e,"script")}}),S.each(["get","post"],function(t,e){S[e]=function(t,n,r,i){return y(n)&&(i=i||r,r=n,n=void 0),S.ajax(S.extend({url:t,type:e,dataType:i,data:n,success:r},S.isPlainObject(t)&&t))}}),S.ajaxPrefilter(function(t){var e;for(e in t.headers)"content-type"===e.toLowerCase()&&(t.contentType=t.headers[e]||"")}),S._evalUrl=function(t,e,n){return S.ajax({url:t,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(t){S.globalEval(t,e,n)}})},S.fn.extend({wrapAll:function(t){var e;return this[0]&&(y(t)&&(t=t.call(this[0])),e=S(t,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&e.insertBefore(this[0]),e.map(function(){for(var t=this;t.firstElementChild;)t=t.firstElementChild;return t}).append(this)),this},wrapInner:function(t){return y(t)?this.each(function(e){S(this).wrapInner(t.call(this,e))}):this.each(function(){var e=S(this),n=e.contents();n.length?n.wrapAll(t):e.append(t)})},wrap:function(t){var e=y(t);return this.each(function(n){S(this).wrapAll(e?t.call(this,n):t)})},unwrap:function(t){return this.parent(t).not("body").each(function(){S(this).replaceWith(this.childNodes)}),this}}),S.expr.pseudos.hidden=function(t){return!S.expr.pseudos.visible(t)},S.expr.pseudos.visible=function(t){return!!(t.offsetWidth||t.offsetHeight||t.getClientRects().length)},S.ajaxSettings.xhr=function(){try{return new r.XMLHttpRequest}catch(t){}};var Je={0:200,1223:204},Ke=S.ajaxSettings.xhr();g.cors=!!Ke&&"withCredentials"in Ke,g.ajax=Ke=!!Ke,S.ajaxTransport(function(t){var e,n;if(g.cors||Ke&&!t.crossDomain)return{send:function(i,s){var o,a=t.xhr();if(a.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(o in t.xhrFields)a[o]=t.xhrFields[o];for(o in t.mimeType&&a.overrideMimeType&&a.overrideMimeType(t.mimeType),t.crossDomain||i["X-Requested-With"]||(i["X-Requested-With"]="XMLHttpRequest"),i)a.setRequestHeader(o,i[o]);e=function(t){return function(){e&&(e=n=a.onload=a.onerror=a.onabort=a.ontimeout=a.onreadystatechange=null,"abort"===t?a.abort():"error"===t?"number"!=typeof a.status?s(0,"error"):s(a.status,a.statusText):s(Je[a.status]||a.status,a.statusText,"text"!==(a.responseType||"text")||"string"!=typeof a.responseText?{binary:a.response}:{text:a.responseText},a.getAllResponseHeaders()))}},a.onload=e(),n=a.onerror=a.ontimeout=e("error"),void 0!==a.onabort?a.onabort=n:a.onreadystatechange=function(){4===a.readyState&&r.setTimeout(function(){e&&n()})},e=e("abort");try{a.send(t.hasContent&&t.data||null)}catch(t){if(e)throw t}},abort:function(){e&&e()}}}),S.ajaxPrefilter(function(t){t.crossDomain&&(t.contents.script=!1)}),S.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(t){return S.globalEval(t),t}}}),S.ajaxPrefilter("script",function(t){void 0===t.cache&&(t.cache=!1),t.crossDomain&&(t.type="GET")}),S.ajaxTransport("script",function(t){var e,n;if(t.crossDomain||t.scriptAttrs)return{send:function(r,i){e=S("<script>").attr(t.scriptAttrs||{}).prop({charset:t.scriptCharset,src:t.url}).on("load error",n=function(t){e.remove(),n=null,t&&i("error"===t.type?404:200,t.type)}),w.head.appendChild(e[0])},abort:function(){n&&n()}}});var tn,en=[],nn=/(=)\?(?=&|$)|\?\?/;S.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var t=en.pop()||S.expando+"_"+Te.guid++;return this[t]=!0,t}}),S.ajaxPrefilter("json jsonp",function(t,e,n){var i,s,o,a=!1!==t.jsonp&&(nn.test(t.url)?"url":"string"==typeof t.data&&0===(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&nn.test(t.data)&&"data");if(a||"jsonp"===t.dataTypes[0])return i=t.jsonpCallback=y(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,a?t[a]=t[a].replace(nn,"$1"+i):!1!==t.jsonp&&(t.url+=(Oe.test(t.url)?"&":"?")+t.jsonp+"="+i),t.converters["script json"]=function(){return o||S.error(i+" was not called"),o[0]},t.dataTypes[0]="json",s=r[i],r[i]=function(){o=arguments},n.always(function(){void 0===s?S(r).removeProp(i):r[i]=s,t[i]&&(t.jsonpCallback=e.jsonpCallback,en.push(i)),o&&y(s)&&s(o[0]),o=s=void 0}),"script"}),g.createHTMLDocument=((tn=w.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===tn.childNodes.length),S.parseHTML=function(t,e,n){return"string"!=typeof t?[]:("boolean"==typeof e&&(n=e,e=!1),e||(g.createHTMLDocument?((r=(e=w.implementation.createHTMLDocument("")).createElement("base")).href=w.location.href,e.head.appendChild(r)):e=w),s=!n&&[],(i=z.exec(t))?[e.createElement(i[1])]:(i=Lt([t],e,s),s&&s.length&&S(s).remove(),S.merge([],i.childNodes)));var r,i,s},S.fn.load=function(t,e,n){var r,i,s,o=this,a=t.indexOf(" ");return a>-1&&(r=Se(t.slice(a)),t=t.slice(0,a)),y(e)?(n=e,e=void 0):e&&"object"==typeof e&&(i="POST"),o.length>0&&S.ajax({url:t,type:i||"GET",dataType:"html",data:e}).done(function(t){s=arguments,o.html(r?S("<div>").append(S.parseHTML(t)).find(r):t)}).always(n&&function(t,e){o.each(function(){n.apply(this,s||[t.responseText,e,t])})}),this},S.expr.pseudos.animated=function(t){return S.grep(S.timers,function(e){return t===e.elem}).length},S.offset={setOffset:function(t,e,n){var r,i,s,o,a,u,h=S.css(t,"position"),l=S(t),c={};"static"===h&&(t.style.position="relative"),a=l.offset(),s=S.css(t,"top"),u=S.css(t,"left"),("absolute"===h||"fixed"===h)&&(s+u).indexOf("auto")>-1?(o=(r=l.position()).top,i=r.left):(o=parseFloat(s)||0,i=parseFloat(u)||0),y(e)&&(e=e.call(t,n,S.extend({},a))),null!=e.top&&(c.top=e.top-a.top+o),null!=e.left&&(c.left=e.left-a.left+i),"using"in e?e.using.call(t,c):l.css(c)}},S.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(e){S.offset.setOffset(this,t,e)});var e,n,r=this[0];return r?r.getClientRects().length?(e=r.getBoundingClientRect(),n=r.ownerDocument.defaultView,{top:e.top+n.pageYOffset,left:e.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var t,e,n,r=this[0],i={top:0,left:0};if("fixed"===S.css(r,"position"))e=r.getBoundingClientRect();else{for(e=this.offset(),n=r.ownerDocument,t=r.offsetParent||n.documentElement;t&&(t===n.body||t===n.documentElement)&&"static"===S.css(t,"position");)t=t.parentNode;t&&t!==r&&1===t.nodeType&&((i=S(t).offset()).top+=S.css(t,"borderTopWidth",!0),i.left+=S.css(t,"borderLeftWidth",!0))}return{top:e.top-i.top-S.css(r,"marginTop",!0),left:e.left-i.left-S.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var t=this.offsetParent;t&&"static"===S.css(t,"position");)t=t.offsetParent;return t||mt})}}),S.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,e){var n="pageYOffset"===e;S.fn[t]=function(r){return tt(this,function(t,r,i){var s;if(v(t)?s=t:9===t.nodeType&&(s=t.defaultView),void 0===i)return s?s[e]:t[r];s?s.scrollTo(n?s.pageXOffset:i,n?i:s.pageYOffset):t[r]=i},t,r,arguments.length)}}),S.each(["top","left"],function(t,e){S.cssHooks[e]=te(g.pixelPosition,function(t,n){if(n)return n=Kt(t,e),Yt.test(n)?S(t).position()[e]+"px":n})}),S.each({Height:"height",Width:"width"},function(t,e){S.each({padding:"inner"+t,content:e,"":"outer"+t},function(n,r){S.fn[r]=function(i,s){var o=arguments.length&&(n||"boolean"!=typeof i),a=n||(!0===i||!0===s?"margin":"border");return tt(this,function(e,n,i){var s;return v(e)?0===r.indexOf("outer")?e["inner"+t]:e.document.documentElement["client"+t]:9===e.nodeType?(s=e.documentElement,Math.max(e.body["scroll"+t],s["scroll"+t],e.body["offset"+t],s["offset"+t],s["client"+t])):void 0===i?S.css(e,n,a):S.style(e,n,i,a)},e,o?i:void 0,o)}})}),S.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(t,e){S.fn[e]=function(t){return this.on(e,t)}}),S.fn.extend({bind:function(t,e,n){return this.on(t,null,e,n)},unbind:function(t,e){return this.off(t,null,e)},delegate:function(t,e,n,r){return this.on(e,t,n,r)},undelegate:function(t,e,n){return 1===arguments.length?this.off(t,"**"):this.off(e,t||"**",n)},hover:function(t,e){return this.on("mouseenter",t).on("mouseleave",e||t)}}),S.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(t,e){S.fn[e]=function(t,n){return arguments.length>0?this.on(e,null,t,n):this.trigger(e)}});var rn=/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;S.proxy=function(t,e){var n,r,i;if("string"==typeof e&&(n=t[e],e=t,t=n),y(t))return r=a.call(arguments,2),i=function(){return t.apply(e||this,r.concat(a.call(arguments)))},i.guid=t.guid=t.guid||S.guid++,i},S.holdReady=function(t){t?S.readyWait++:S.ready(!0)},S.isArray=Array.isArray,S.parseJSON=JSON.parse,S.nodeName=C,S.isFunction=y,S.isWindow=v,S.camelCase=it,S.type=_,S.now=Date.now,S.isNumeric=function(t){var e=S.type(t);return("number"===e||"string"===e)&&!isNaN(t-parseFloat(t))},S.trim=function(t){return null==t?"":(t+"").replace(rn,"$1")},void 0===(n=function(){return S}.apply(e,[]))||(t.exports=n);var sn=r.jQuery,on=r.$;return S.noConflict=function(t){return r.$===S&&(r.$=on),t&&r.jQuery===S&&(r.jQuery=sn),S},void 0===i&&(r.jQuery=r.$=S),S})},704:function(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 u=t[a],h=r.base?u[0]+r.base:u[0],l=s[h]||0,c="".concat(h," ").concat(l);s[h]=l+1;var f=n(c),d={css:u[1],media:u[2],sourceMap:u[3],supports:u[4],layer:u[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 u=r(t,i),h=0;h<s.length;h++){var l=n(s[h]);0===e[l].references&&(e[l].updater(),e.splice(l,1))}s=u}}},113:t=>{"use strict";t.exports=function(t,e){if(e.styleSheet)e.styleSheet.cssText=t;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(t))}}},314:t=>{"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map(function(e){var n="",r=void 0!==e[5];return e[4]&&(n+="@supports (".concat(e[4],") {")),e[2]&&(n+="@media ".concat(e[2]," {")),r&&(n+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),n+=t(e),r&&(n+="}"),e[2]&&(n+="}"),e[4]&&(n+="}"),n}).join("")},e.i=function(t,n,r,i,s){"string"==typeof t&&(t=[[null,t,void 0]]);var o={};if(r)for(var a=0;a<this.length;a++){var u=this[a][0];null!=u&&(o[u]=!0)}for(var h=0;h<t.length;h++){var l=[].concat(t[h]);r&&o[l[0]]||(void 0!==s&&(void 0===l[5]||(l[1]="@layer".concat(l[5].length>0?" ".concat(l[5]):""," {").concat(l[1],"}")),l[5]=s),n&&(l[2]?(l[1]="@media ".concat(l[2]," {").concat(l[1],"}"),l[2]=n):l[2]=n),i&&(l[4]?(l[1]="@supports (".concat(l[4],") {").concat(l[1],"}"),l[4]=i):l[4]="".concat(i)),e.push(l))}},e}},540:t=>{"use strict";t.exports=function(t){var e=document.createElement("style");return t.setAttributes(e,t.attributes),t.insert(e,t.options),e}},601:t=>{"use strict";t.exports=function(t){return t[1]}},645:function(t){var e;e=()=>(()=>{var t={986:function(t){t.exports=(()=>{"use strict";var t={d:(e,n)=>{for(var r in n)t.o(n,r)&&!t.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:n[r]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r:t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}},e={};function n(t){var e=0;return t.forEach(function(t){return e+=t}),e}function r(t){return n(t)/t.length}function i(t){t.sort(function(t,e){return t-e})}t.r(e),t.d(e,{areWithin:()=>d,average:()=>r,clamp:()=>f,degrees:()=>g,flipAway:()=>w,isBetween:()=>l,isBetweenExclusive:()=>c,isBetweenInclusive:()=>l,max:()=>h,mean:()=>r,median:()=>a,min:()=>u,normalizeAngle:()=>v,radians:()=>y,sortNumbers:()=>i,sortNumbersAscending:()=>i,sortNumbersDescending:()=>p,sortedNumbers:()=>o,sortedNumbersAscending:()=>o,sortedNumbersDescending:()=>m,sum:()=>n});var s=function(t,e,n){if(n||2===arguments.length)for(var r,i=0,s=e.length;i<s;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))};function o(t){var e=s([],t,!0);return i(e),e}function a(t){if(0==t.length)return NaN;var e=o(t);if(e.length%2!=0)return e[Math.floor(e.length/2)];var n=e.length/2,i=n-1;return r([e[n],e[i]])}function u(t){if(0==t.length)return 1/0;var e=t[0];return t.slice(1).forEach(function(t){e=Math.min(e,t)}),e}function h(t){if(0==t.length)return-1/0;var e=t[0];return t.slice(1).forEach(function(t){e=Math.max(e,t)}),e}function l(t,e,n){return t>=e&&t<=n}function c(t,e,n){return t>e&&t<n}function f(t,e,n){return t<e?e:t>n?n:t}function d(t,e,n){return Math.abs(t-e)<=n}function p(t){i(t),t.reverse()}function m(t){var e=o(t);return e.reverse(),e}function g(t){return t*(180/Math.PI)}function y(t){return t*(Math.PI/180)}function v(t,e){void 0===e&&(e=-Math.PI);var n=t-e;return e+((n%=2*Math.PI)>=0?n:n+2*Math.PI)}function w(t,e){var n=(e=v(e,t))-t;return(n<Math.PI/2||n>3*Math.PI/2)&&(t+=Math.PI),t}return e})()}},e={};function n(r){var i=e[r];if(void 0!==i)return i.exports;var s=e[r]={exports:{}};return t[r].call(s.exports,s,s.exports,n),s.exports}n.d=(t,e)=>{for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var r={};return(()=>{"use strict";n.r(r),n.d(r,{Box:()=>e});var t=n(986);class e{static bounding(n){let r=n.map(t=>e.matching(t)),i=(0,t.min)(r.map(t=>t.left)),s=(0,t.min)(r.map(t=>t.top)),o=(0,t.max)(r.map(t=>t.right))-i,a=(0,t.max)(r.map(t=>t.bottom))-s;return new e(i,s,o,a)}static matching(t){let{x:n,y:r,width:i,height:s}=t;return new e(n,r,i,s)}constructor(t,e,n,r){this.x=t,this.y=e,this.width=n,this.height=r}get centerX(){return this.minX+this.width/2}get centerY(){return this.minY+this.height/2}get minX(){return this.x}get minY(){return this.y}get maxX(){return this.minX+this.width}get maxY(){return this.minY+this.height}get top(){return this.minY}get right(){return this.maxX}get bottom(){return this.maxY}get left(){return this.minX}isBoundedBy(t){let n=e.matching(t);return this.minX>=n.minX&&this.minY>=n.minY&&this.maxX<=n.maxX&&this.maxY<=n.maxY}padded(t,n){return"number"!=typeof n&&(n=t),new e(this.x-t,this.y-n,this.width+2*t,this.height+2*n)}peripheralPoint(t){let e=this.width/2,n=this.height/2,r=Math.pow(Math.pow(e,2)+Math.pow(n,2),.5),i=this.centerX+r*Math.cos(t),s=this.centerY+r*Math.sin(t),o=r;return Math.abs(this.centerX-i)>e&&(o=Math.abs(e/Math.cos(t)),o=Number.isFinite(o)?o:n),Math.abs(this.centerY-s)>n&&(o=Math.abs(n/Math.sin(t)),o=Number.isFinite(o)?o:e),{x:this.centerX+o*Math.cos(t),y:this.centerY+o*Math.sin(t)}}}})(),r})(),t.exports=e()},659:t=>{"use strict";var e={};t.exports=function(t,n){var r=function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(t){n=null}e[t]=n}return e[t]}(t);if(!r)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");r.appendChild(n)}},825:t=>{"use strict";t.exports=function(t){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var e=t.insertStyleElement(t);return{update:function(n){!function(t,e,n){var r="";n.supports&&(r+="@supports (".concat(n.supports,") {")),n.media&&(r+="@media ".concat(n.media," {"));var i=void 0!==n.layer;i&&(r+="@layer".concat(n.layer.length>0?" ".concat(n.layer):""," {")),r+=n.css,i&&(r+="}"),n.media&&(r+="}"),n.supports&&(r+="}");var s=n.sourceMap;s&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(s))))," */")),e.styleTagTransform(r,t,e.options)}(e,t,n)},remove:function(){!function(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t)}(e)}}}},865:(t,e,n)=>{"use strict";n.d(e,{Ay:()=>c,JJ:()=>l,Qq:()=>u,YL:()=>a,jJ:()=>h});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",u="p5_D557pe0GpEcfAZAWo",h="D8UCSOzbDas70ahLaazC",l="RCKbqYEd_F2wRTu_tJpk";const c=o}},e={};function n(r){var i=e[r];if(void 0!==i)return i.exports;var s=e[r]={id:r,exports:{}};return t[r].call(s.exports,s,s.exports,n),s.exports}n.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.d=(t,e)=>{for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.nc=void 0;var r={};return(()=>{"use strict";n.r(r),n.d(r,{Tooltip:()=>L});var t=n(72),e=n.n(t),i=n(825),s=n.n(i),o=n(659),a=n.n(o),u=n(56),h=n.n(u),l=n(540),c=n.n(l),f=n(113),d=n.n(f),p=n(865),m={};m.styleTagTransform=d(),m.setAttributes=h(),m.insert=a().bind(null,"head"),m.domAPI=s(),m.insertStyleElement=c(),e()(p.Ay,m),p.Ay&&p.Ay.locals&&p.Ay.locals;var g,y,v,w,b,x,_,N,k,S,M,C,A,E=n(645),T=function(t,e,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!r:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(t):r?r.value:e.get(t)},O=function(t,e,n,r,i){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?i.call(t,n):i?i.value=n:e.set(t,n),n};class L{constructor(t){g.add(this),y.set(this,document.createElement("div")),v.set(this,document.createElement("p")),w.set(this,document.createElement("div")),b.set(this,document.createElement("div")),x.set(this,5),_.set(this,0),N.set(this,void 0),k.set(this,()=>{}),S.set(this,()=>{}),T(this,y,"f").classList.add(p.YL),T(this,v,"f").classList.add(p.Qq),T(this,v,"f").textContent=null!=t?t:"",T(this,y,"f").append(T(this,v,"f")),T(this,w,"f").classList.add(p.jJ),T(this,y,"f").append(T(this,w,"f")),T(this,b,"f").classList.add(p.JJ),T(this,y,"f").append(T(this,b,"f"))}get textContent(){return T(this,v,"f").textContent}set textContent(t){let e=!T(this,g,"m",A).call(this);T(this,g,"m",C).call(this),T(this,v,"f").textContent=t,e&&T(this,g,"m",M).call(this)}get owner(){return T(this,N,"f")}set owner(t){T(this,N,"f")&&(T(this,N,"f").removeEventListener("mouseover",T(this,k,"f")),T(this,N,"f").removeEventListener("mouseout",T(this,S,"f"))),O(this,N,t,"f"),t&&(t.addEventListener("mouseover",()=>T(this,g,"m",M).call(this)),t.addEventListener("mouseout",()=>T(this,g,"m",C).call(this)))}get padding(){return T(this,x,"f")}set padding(t){O(this,x,t,"f"),T(this,g,"m",A).call(this)||(T(this,g,"m",C).call(this),T(this,g,"m",M).call(this))}get pointerDisplacement(){return T(this,_,"f")}set pointerDisplacement(t){O(this,_,t,"f"),T(this,g,"m",A).call(this)||(T(this,g,"m",C).call(this),T(this,g,"m",M).call(this))}}y=new WeakMap,v=new WeakMap,w=new WeakMap,b=new WeakMap,x=new WeakMap,_=new WeakMap,N=new WeakMap,k=new WeakMap,S=new WeakMap,g=new WeakSet,M=function(){if(T(this,y,"f").style.left="0px",T(this,y,"f").style.top="0px",T(this,w,"f").style.marginLeft=`${T(this,_,"f")}px`,T(this,b,"f").style.marginLeft=`${T(this,_,"f")}px`,document.body.append(T(this,y,"f")),!T(this,N,"f"))return;let t=T(this,y,"f").getBoundingClientRect().width,e=T(this,v,"f").getBoundingClientRect().height+T(this,w,"f").getBoundingClientRect().height/2-1,n=E.Box.matching(T(this,N,"f").getBoundingClientRect()).padded(T(this,x,"f"));T(this,y,"f").style.left=n.peripheralPoint(3*Math.PI/2).x-t/2-T(this,_,"f")/2+"px",T(this,y,"f").style.top=n.peripheralPoint(3*Math.PI/2).y-e+"px"},C=function(){T(this,y,"f").remove()},A=function(){return!document.body.contains(T(this,y,"f"))}})(),r})(),t.exports=e()},705:(t,e,n)=>{"use strict";n.d(e,{Ay:()=>p,Ol:()=>f,Qs:()=>u,Se:()=>a,eB:()=>d,vM:()=>l,vw:()=>c,yZ:()=>h});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",u="Nc_rMplF2zhIq3zYlKFl",h="UArJtlXrClYUqKvYzpXe",l="rgGEAvKvdVba2DrspkU6",c="mLPVUA5YiyA4OksC17sb",f="pCuHfZ8GeFUaELxeOyqs",d="IhPX3q3sGT4fPIlgUdp1";const p=o},709:(t,e,n)=>{"use strict";n.d(e,{A:()=>u,V:()=>a});var r=n(601),i=n.n(r),s=n(314),o=n.n(s)()(i());o.push([t.id,".yIqz0290EZWCxr9FN3XJ {\n border-radius: 50%;\n\n width: 26px;\n height: 26px;\n\n padding: 3.5px;\n\n background-color: white;\n\n border: solid 1px #767676;\n\n cursor: pointer;\n}\n\n.yIqz0290EZWCxr9FN3XJ:hover {\n border-color: black;\n}\n\n.yIqz0290EZWCxr9FN3XJ::-webkit-color-swatch {\n border-radius: 50%;\n\n border-width: 0px;\n}\n\n.yIqz0290EZWCxr9FN3XJ::-moz-color-swatch {\n border-radius: 50%;\n\n border: solid 1px white;\n}\n\n.yIqz0290EZWCxr9FN3XJ::-webkit-color-swatch-wrapper {\n padding: 1px;\n}\n",""]);var a="yIqz0290EZWCxr9FN3XJ";const u=o},723:(t,e,n)=>{"use strict";n.d(e,{Ay:()=>l,Wu:()=>u,kL:()=>a,r9:()=>h});var r=n(601),i=n.n(r),s=n(314),o=n.n(s)()(i());o.push([t.id,'.X7DPHJCVbRpHEB9gcm0Z {\n position: relative;\n\n 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",u="vDAwbQmWCc39SmNMFRtv",h="BAlKKbk1BfHF_fPz1gpc";const l=o},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 u(t){return null==t}function h(t){return"object"==typeof t&&null!==t}function l(t){return Array.isArray(t)}function c(t){return l(t)&&0==t.length}function f(t){return l(t)&&t.length>0}function d(t){return l(t)&&t.every(n)}function p(t){return d(t)&&t.length>0}function m(t){return l(t)&&t.every(r)}function g(t){return l(t)&&t.every(i)}function y(t){return l(t)&&t.every(a)}function v(t){return y(t)&&t.length>0}return t.r(e),t.d(e,{isArray:()=>l,isEmptyArray:()=>c,isFiniteNumber:()=>r,isFiniteNumbersArray:()=>m,isNonEmptyArray:()=>f,isNonEmptyNumbersArray:()=>p,isNonEmptyStringsArray:()=>v,isNonFiniteNumber:()=>i,isNonFiniteNumbersArray:()=>g,isNonNegativeFiniteNumber:()=>o,isNonNullObject:()=>h,isNullish:()=>u,isNumber:()=>n,isNumbersArray:()=>d,isPositiveFiniteNumber:()=>s,isString:()=>a,isStringsArray:()=>y}),e})()}},e={};function n(r){var i=e[r];if(void 0!==i)return i.exports;var s=e[r]={exports:{}};return t[r].call(s.exports,s,s.exports,n),s.exports}n.d=(t,e)=>{for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var r={};return(()=>{"use strict";function t(t,e){for(let[n,r]of Object.entries(e))t.setAttribute(n,r)}n.r(r),n.d(r,{CoordinateSystem:()=>c,HorizontalClientScaling:()=>d,InnerXML:()=>w,OuterXML:()=>_,Scaling:()=>f,VerticalClientScaling:()=>p,assignUUID:()=>l,bringToFront:()=>m,drawOnCanvas:()=>C,isSVGGraphicsElement:()=>N,isSVGGraphicsElementsArray:()=>S,sendToBack:()=>g,setAttributes:()=>t});const e={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};var i,s=new Uint8Array(16);function o(){if(!i&&!(i="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return i(s)}for(var a=[],u=0;u<256;++u)a.push((u+256).toString(16).slice(1));const h=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-"+h()}class c{constructor(t){this.targetSVGDoc=t}get width(){return this.targetSVGDoc.viewBox.baseVal.width}get height(){return this.targetSVGDoc.viewBox.baseVal.height}get minX(){return this.targetSVGDoc.viewBox.baseVal.x}get maxX(){return this.minX+this.width}get minY(){return this.targetSVGDoc.viewBox.baseVal.y}get maxY(){return this.minY+this.height}get horizontalScaling(){return this.targetSVGDoc.width.baseVal.value/this.width}get verticalScaling(){return this.targetSVGDoc.height.baseVal.value/this.height}setScaling(t){this.targetSVGDoc.setAttribute("width",""+t*this.width),this.targetSVGDoc.setAttribute("height",""+t*this.height)}get clientWidth(){return this.targetSVGDoc.getBoundingClientRect().width}get clientHeight(){return this.targetSVGDoc.getBoundingClientRect().height}get horizontalClientScaling(){return this.clientWidth/this.width}get verticalClientScaling(){return this.clientHeight/this.height}get minClientX(){return this.targetSVGDoc.getBoundingClientRect().x}get minClientY(){return this.targetSVGDoc.getBoundingClientRect().y}fromClientX(t){return this.minX+(t-this.minClientX)/this.horizontalClientScaling}fromClientY(t){return this.minY+(t-this.minClientY)/this.verticalClientScaling}fromClientCoordinates(t,e){return[this.fromClientX(t),this.fromClientY(e)]}fromClientPoint(t){return{x:this.fromClientX(t.x),y:this.fromClientY(t.y)}}toClientX(t){return this.minClientX+this.horizontalClientScaling*(t-this.minX)}toClientY(t){return this.minClientY+this.verticalClientScaling*(t-this.minY)}toClientCoordinates(t,e){return[this.toClientX(t),this.toClientY(e)]}toClientPoint(t){return{x:this.toClientX(t.x),y:this.toClientY(t.y)}}}class f{constructor(t){this.targetSVGDoc=t}set(t){let e=this.targetSVGDoc.viewBox.baseVal;this.targetSVGDoc.setAttribute("width",t*e.width+"px"),this.targetSVGDoc.setAttribute("height",t*e.height+"px")}}class d{constructor(t){this.targetSVGDoc=t}get(){let t=this.targetSVGDoc.getBoundingClientRect(),e=this.targetSVGDoc.viewBox.baseVal;return t.width/e.width}}class p{constructor(t){this.targetSVGDoc=t}get(){let t=this.targetSVGDoc.getBoundingClientRect(),e=this.targetSVGDoc.viewBox.baseVal;return t.height/e.height}}function m(t){let e=t.parentNode;e&&e.appendChild(t)}function g(t){let e=t.parentNode;e&&e.prepend(t)}var y,v=function(t,e,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!r:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(t):r?r.value:e.get(t)};class w{constructor(t){y.set(this,void 0),function(t,e,n){if("function"==typeof e||!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");e.set(t,n)}(this,y,t)}toString(){return v(this,y,"f").innerHTML}set(t){v(this,y,"f").innerHTML=t}}y=new WeakMap;var b,x=function(t,e,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!r:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(t):r?r.value:e.get(t)};class _{constructor(t){b.set(this,void 0),function(t,e,n){if("function"==typeof e||!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");e.set(t,n)}(this,b,t)}toString(){return x(this,b,"f").outerHTML}set(t){let e=document.createElementNS("http://www.w3.org/2000/svg","svg");if(e.style.height="0px",document.body.append(e),e.innerHTML=t,!e.firstElementChild)throw new Error("Outer XML must encode an SVG element.");if(e.childNodes.length>1)throw new Error("Outer XML cannot encode multiple DOM nodes.");if(e.firstElementChild.tagName.toLowerCase()!=x(this,b,"f").tagName.toLowerCase())throw new Error("Outer XML must specify an SVG element with the same tag name as the target SVG element.");[...x(this,b,"f").attributes].forEach(t=>x(this,b,"f").removeAttribute(t.name)),[...e.firstElementChild.attributes].forEach(t=>x(this,b,"f").setAttribute(t.name,t.value)),x(this,b,"f").innerHTML=e.firstElementChild.innerHTML,e.remove()}}function N(t){return t instanceof SVGGraphicsElement}b=new WeakMap;var k=n(854);function S(t){return(0,k.isArray)(t)&&t.every(N)}var M=function(t,e,n,r){return new(n||(n=Promise))(function(i,s){function o(t){try{u(r.next(t))}catch(t){s(t)}}function a(t){try{u(r.throw(t))}catch(t){s(t)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n(function(t){t(e)})).then(o,a)}u((r=r.apply(t,e||[])).next())})};function C(t){return M(this,void 0,void 0,function*(){let e=document.createElement("canvas");e.style.position="fixed",e.style.display="none",e.style.pointerEvents="none",document.body.append(e),e.width=t.width.baseVal.value,e.height=t.height.baseVal.value;let n=e.getContext("2d");if(!n)throw new Error("Unable to get canvas context.");let r=(new XMLSerializer).serializeToString(t),i=new Image;return i.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(r),yield i.decode(),n.drawImage(i,0,0,t.width.baseVal.value,t.height.baseVal.value),e.remove(),e.style.position="",e.style.display="",e.style.pointerEvents="",e})}})(),r})(),t.exports=e()},825:t=>{"use strict";t.exports=function(t){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var e=t.insertStyleElement(t);return{update:function(n){!function(t,e,n){var r="";n.supports&&(r+="@supports (".concat(n.supports,") {")),n.media&&(r+="@media ".concat(n.media," {"));var i=void 0!==n.layer;i&&(r+="@layer".concat(n.layer.length>0?" ".concat(n.layer):""," {")),r+=n.css,i&&(r+="}"),n.media&&(r+="}"),n.supports&&(r+="}");var s=n.sourceMap;s&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(s))))," */")),e.styleTagTransform(r,t,e.options)}(e,t,n)},remove:function(){!function(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t)}(e)}}}},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),u=n.n(a),h=new URL(n(889),n.b),l=o()(i()),c=u()(h);l.push([t.id,`.pMUxgRC_f4NzkoelkDpX {\n appearance: none;\n\n margin: 0px;\n padding: 0px;\n\n border: none;\n outline: none;\n\n border-radius: 1px;\n\n width: 15px;\n height: 15px;\n\n background-color: white;\n\n cursor: pointer;\n}\n\n.pMUxgRC_f4NzkoelkDpX:checked {\n background-color: rgb(255, 194, 194);\n\n background-image: url(${c});\n}\n`,""]);var f="pMUxgRC_f4NzkoelkDpX";const d=l},887:(t,e,n)=>{"use strict";n.d(e,{Ay:()=>l,Qq:()=>u,lI:()=>a,r9:()=>h});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",u="qTVXpnB_go4Q_8V0QAhx",h="IgtWfVpmdN_e04k18xHb";const l=o},889:t=>{"use strict";t.exports="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxNSAxNSI+PHBhdGggZmlsbD0ibm9uZSIgc3Ryb2tlPSJibGFjayIgc3Ryb2tlLWxpbmVjYXA9IiIgc3Ryb2tlLWxpbmVqb2luPSIiIHN0cm9rZS13aWR0aD0iMiIgZD0iTTMuNSA4LjUgTDcuNSAxMS41IEwgMTEuNSAzLjUiLz48L3N2Zz4="},924:(t,e,n)=>{"use strict";n.d(e,{Ay:()=>g,QB:()=>m,Qs:()=>u,Te:()=>p,VX:()=>c,eB:()=>d,ho:()=>h,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",u="VFDUY2z_WgJp1fVc8TCw",h="dJmYzq3wi8hxLecdDaOF",l="Z3lHB1W2K4m8JuZOnWs9",c="GZP6NKFkjkjlFVlDU6AZ",f="f1LDX7M42DUD9AT6Mh5p",d="wq_gmBRSZasSLYaUmdWp",p="niaBwqy1zBIMYC42Y7LP",m="_YkLdMiLPhNIvuLLypQE";const g=o},933:(t,e,n)=>{"use strict";n.d(e,{Ay:()=>h,Pf:()=>u,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",u="GQe6FmedcfLCp15a2z6w";const h=o},965:(t,e,n)=>{"use strict";n.d(e,{Ay:()=>l,Qs:()=>u,fS:()=>a,yZ:()=>h});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",u="k7K01e2GUrQW3HOTGKLg",h="uQ4YNz02_aOj4lo6H7WY";const l=o}},e={};function n(r){var i=e[r];if(void 0!==i)return i.exports;var s=e[r]={id:r,loaded:!1,exports:{}};return t[r].call(s.exports,s,s.exports,n),s.loaded=!0,s.exports}n.m=t,n.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.d=(t,e)=>{for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.nmd=t=>(t.paths=[],t.children||(t.children=[]),t),n.b="undefined"!=typeof document&&document.baseURI||self.location.href,n.nc=void 0;var r={};return(()=>{"use strict";n.r(r),n.d(r,{EditingForm:()=>Qf});var t={};n.r(t),n.d(t,{cx:()=>Ie,cy:()=>Re,height:()=>Fe,rx:()=>We,ry:()=>Pe,width:()=>ze,x:()=>De,y:()=>Be});var e={};n.r(e),n.d(e,{from:()=>Ge,to:()=>He});var i={};n.r(i),n.d(i,{MorphArray:()=>Je,height:()=>nn,width:()=>en,x:()=>Ke,y:()=>tn});var s={};n.r(s),n.d(s,{array:()=>On,clear:()=>Ln,move:()=>jn,plot:()=>Wn,size:()=>Pn});var o={};n.r(o),n.d(o,{amove:()=>hr,ax:()=>ar,ay:()=>ur,build:()=>lr,center:()=>or,cx:()=>ir,cy:()=>sr,length:()=>tr,move:()=>rr,plain:()=>Kn,x:()=>er,y:()=>nr});var a={};n.r(a),n.d(a,{dmove:()=>gr,dx:()=>yr,dy:()=>vr,height:()=>wr,move:()=>br,size:()=>xr,width:()=>_r,x:()=>Nr,y:()=>kr});var u=n(72),h=n.n(u),l=n(825),c=n.n(l),f=n(659),d=n.n(f),p=n(56),m=n.n(p),g=n(540),y=n.n(g),v=n(113),w=n.n(v),b=n(420),x={};x.styleTagTransform=w(),x.setAttributes=m(),x.insert=d().bind(null,"head"),x.domAPI=c(),x.insertStyleElement=y(),h()(b.Ay,x),b.Ay&&b.Ay.locals&&b.Ay.locals;var _=n(633),N={};N.styleTagTransform=w(),N.setAttributes=m(),N.insert=d().bind(null,"head"),N.domAPI=c(),N.insertStyleElement=y(),h()(_.Ay,N),_.Ay&&_.Ay.locals&&_.Ay.locals;var k=n(584),S={};S.styleTagTransform=w(),S.setAttributes=m(),S.insert=d().bind(null,"head"),S.domAPI=c(),S.insertStyleElement=y(),h()(k.Ay,S),k.Ay&&k.Ay.locals&&k.Ay.locals;var M,C=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 A{constructor(t,e){this.domNode=document.createElement("div"),this.caret=new E,M.set(this,document.createElement("p")),this.domNode.classList.add(k.kY),!e||(this.domNode.onclick=e),this.caret.domNode.style.marginRight="6px",this.caret.domNode.style.pointerEvents="auto",this.domNode.append(this.caret.domNode),C(this,M,"f").classList.add(k.Qq),!t||(this.textContent=t),this.domNode.append(C(this,M,"f"))}get textContent(){return C(this,M,"f").textContent}set textContent(t){C(this,M,"f").textContent=t}}M=new WeakMap;class E{constructor(){this.domNode=document.createElementNS("http://www.w3.org/2000/svg","svg"),this.domNode.classList.add(k.OW),this.domNode.setAttribute("viewBox","0 0 6 10"),this.domNode.setAttribute("width","6"),this.domNode.setAttribute("height","10"),this.domNode.innerHTML='\n <path\n d="M 1 1 L 5 5 L 1 9"\n stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"\n fill="none"\n ></path>\n '}pointRight(){this.domNode.classList.remove(k.Z7)}pointDown(){this.domNode.classList.add(k.Z7)}}var T=n(887),O={};O.styleTagTransform=w(),O.setAttributes=m(),O.insert=d().bind(null,"head"),O.domAPI=c(),O.insertStyleElement=y(),h()(T.Ay,O),T.Ay&&T.Ay.locals&&T.Ay.locals;var L,j=n(704),W=function(t,e,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!r:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(t):r?r.value:e.get(t)};class P{constructor(t,e){this.domNode=document.createElement("div"),L.set(this,document.createElement("p")),this.tooltip=new j.Tooltip(""),!e||(this.domNode.onclick=e),this.domNode.classList.add(T.lI),W(this,L,"f").classList.add(T.Qq),W(this,L,"f").textContent=null!=t?t:"",this.domNode.append(W(this,L,"f")),this.tooltip.owner=this.domNode}get textContent(){return W(this,L,"f").textContent}set textContent(t){W(this,L,"f").textContent=t}disable(){this.domNode.classList.add(T.r9)}enable(){this.domNode.classList.remove(T.r9)}}L=new WeakMap;var D=n(419),B={};B.styleTagTransform=w(),B.setAttributes=m(),B.insert=d().bind(null,"head"),B.domAPI=c(),B.insertStyleElement=y(),h()(D.A,B),D.A&&D.A.locals&&D.A.locals;var I,R;class z{constructor(t){I.add(this),this.props=t,this.domNode=document.createElement("input"),this.domNode.type="text",this.domNode.classList.add(D.P),this.domNode.addEventListener("blur",()=>function(t,e,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!r:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(t):r?r.value:e.get(t)}(this,I,"m",R).call(this)),this.domNode.addEventListener("keydown",t=>{"enter"==t.key.toLowerCase()&&this.domNode.blur()})}}I=new WeakSet,R=function(){var t;(null===(t=this.props)||void 0===t?void 0:t.onSubmit)&&this.props.onSubmit()};var F=n(678),q={};q.styleTagTransform=w(),q.setAttributes=m(),q.insert=d().bind(null,"head"),q.domAPI=c(),q.insertStyleElement=y(),h()(F.Ay,q),F.Ay&&F.Ay.locals&&F.Ay.locals;var U,V,G=function(t,e,n,r,i){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?i.call(t,n):i?i.value=n:e.set(t,n),n},H=function(t,e,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!r:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(t):r?r.value:e.get(t)};class X{constructor(t,e){this.name=t,this.domNode=document.createElement("label"),U.set(this,void 0),V.set(this,void 0),this.domNode.classList.add(F.ZZ),G(this,U,e,"f"),G(this,V,document.createElement("a"),"f"),H(this,V,"f").textContent=t,H(this,V,"f").target="_blank",H(this,V,"f").rel="noopener noreferrer",H(this,V,"f").style.marginLeft="8px",this.domNode.append(e,H(this,V,"f"))}get infoLink(){return H(this,V,"f").href}set infoLink(t){H(this,V,"f").href=t,t?H(this,V,"f").classList.add(F.o3):H(this,V,"f").classList.remove(F.o3)}}U=new WeakMap,V=new WeakMap;var Y,$=function(t,e,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!r:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(t):r?r.value:e.get(t)};class Q{constructor(t,e){this.name=t,Y.set(this,void 0),function(t,e,n,r,i){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");"a"===r?i.call(t,n):i?i.value=n:e.set(t,n)}(this,Y,new X(t,e),"f"),this.domNode.style.cursor="text"}get domNode(){return $(this,Y,"f").domNode}get infoLink(){return $(this,Y,"f").infoLink}set infoLink(t){$(this,Y,"f").infoLink=t}}Y=new WeakMap;var Z=n(881),J={};J.styleTagTransform=w(),J.setAttributes=m(),J.insert=d().bind(null,"head"),J.domAPI=c(),J.insertStyleElement=y(),h()(Z.A,J),Z.A&&Z.A.locals&&Z.A.locals;class K{constructor(){this.domNode=document.createElement("input"),this.domNode.type="checkbox",this.domNode.classList.add(Z.k)}}var tt,et=function(t,e,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!r:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(t):r?r.value:e.get(t)};class nt{constructor(t,e){this.name=t,tt.set(this,void 0),function(t,e,n,r,i){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");"a"===r?i.call(t,n):i?i.value=n:e.set(t,n)}(this,tt,new X(t,e),"f"),this.domNode.style.cursor="pointer"}get domNode(){return et(this,tt,"f").domNode}get infoLink(){return et(this,tt,"f").infoLink}set infoLink(t){et(this,tt,"f").infoLink=t}}tt=new WeakMap;var rt=n(709),it={};it.styleTagTransform=w(),it.setAttributes=m(),it.insert=d().bind(null,"head"),it.domAPI=c(),it.insertStyleElement=y(),h()(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 ut{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 ht={},lt=[];function ct(t,e){if(Array.isArray(t))for(const n of t)ct(n,e);else if("object"!=typeof t)dt(Object.getOwnPropertyNames(e)),ht[t]=Object.assign(ht[t]||{},e);else for(const e in t)ct(e,t[e])}function ft(t){return ht[t]||{}}function dt(t){lt.push(...t)}function pt(t,e){let n;const r=t.length,i=[];for(n=0;n<r;n++)i.push(e(t[n]));return i}function mt(t){return t%360*Math.PI/180}function gt(t){return t.replace(/([A-Z])/g,function(t,e){return"-"+e.toLowerCase()})}function yt(t){return t.charAt(0).toUpperCase()+t.slice(1)}function vt(t,e,n,r){return null!=e&&null!=n||(r=r||t.bbox(),null==e?e=r.width/r.height*n:null==n&&(n=r.height/r.width*e)),{width:e,height:n}}function wt(t,e){const n=t.origin;let r=null!=t.ox?t.ox:null!=t.originX?t.originX:"center",i=null!=t.oy?t.oy:null!=t.originY?t.originY:"center";null!=n&&([r,i]=Array.isArray(n)?n:"object"==typeof n?[n.x,n.y]:[n,n]);const s="string"==typeof r,o="string"==typeof i;if(s||o){const{height:t,width:n,x:a,y:u}=e.bbox();s&&(r=r.includes("left")?a:r.includes("right")?a+n:a+n/2),o&&(i=i.includes("top")?u:i.includes("bottom")?u+t:u+t/2)}return[r,i]}const bt=new Set(["desc","metadata","title"]),xt=t=>bt.has(t.nodeName),_t=(t,e,n={})=>{const r={...e};for(const t in r)r[t].valueOf()===n[t]&&delete r[t];Object.keys(r).length?t.node.setAttribute("data-svgjs",JSON.stringify(r)):(t.node.removeAttribute("data-svgjs"),t.node.removeAttribute("svgjs:data"))},Nt="http://www.w3.org/2000/svg",kt="http://www.w3.org/2000/xmlns/",St="http://www.w3.org/1999/xlink",Mt={window:"undefined"==typeof window?null:window,document:"undefined"==typeof document?null:document};class Ct{}const At={},Et="___SYMBOL___ROOT___";function Tt(t,e=Nt){return Mt.document.createElementNS(e,t)}function Ot(t,e=!1){if(t instanceof Ct)return t;if("object"==typeof t)return Wt(t);if(null==t)return new At[Et];if("string"==typeof t&&"<"!==t.trim().charAt(0))return Wt(Mt.document.querySelector(t));const n=e?Mt.document.createElement("div"):Tt("svg");return n.innerHTML=t.trim(),t=Wt(n.firstElementChild),n.removeChild(n.firstElementChild),t}function Lt(t,e){return e&&(e instanceof Mt.window.Node||e.ownerDocument&&e instanceof e.ownerDocument.defaultView.Node)?e:Tt(t)}function jt(t){if(!t)return null;if(t.instance instanceof Ct)return t.instance;if("#document-fragment"===t.nodeName)return new At.Fragment(t);let e=yt(t.nodeName||"Dom");return"LinearGradient"===e||"RadialGradient"===e?e="Gradient":At[e]||(e="Dom"),new At[e](t)}let Wt=jt;function Pt(t,e=t.name,n=!1){return At[e]=t,n&&(At[Et]=t),dt(Object.getOwnPropertyNames(t.prototype)),t}let Dt=1e3;function Bt(t){return"Svgjs"+yt(t)+Dt++}function It(t){for(let e=t.children.length-1;e>=0;e--)It(t.children[e]);return t.id?(t.id=Bt(t.nodeName),t):t}function Rt(t,e){let n,r;for(r=(t=Array.isArray(t)?t:[t]).length-1;r>=0;r--)for(n in e)t[r].prototype[n]=e[n]}function zt(t){return function(...e){const n=e[e.length-1];return!n||n.constructor!==Object||n instanceof Array?t.apply(this,e):t.apply(this,e.slice(0,-1)).attr(n)}}ct("Dom",{siblings:function(){return this.parent().children()},position:function(){return this.parent().index(this)},next:function(){return this.siblings()[this.position()+1]},prev:function(){return this.siblings()[this.position()-1]},forward:function(){const t=this.position();return this.parent().add(this.remove(),t+1),this},backward:function(){const t=this.position();return this.parent().add(this.remove(),t?t-1:0),this},front:function(){return this.parent().add(this.remove()),this},back:function(){return this.parent().add(this.remove(),0),this},before:function(t){(t=Ot(t)).remove();const e=this.position();return this.parent().add(t,e),this},after:function(t){(t=Ot(t)).remove();const e=this.position();return this.parent().add(t,e+1),this},insertBefore:function(t){return(t=Ot(t)).before(this),this},insertAfter:function(t){return(t=Ot(t)).after(this),this}});const Ft=/^([+-]?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?)([a-z%]*)$/i,qt=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i,Ut=/rgb\((\d+),(\d+),(\d+)\)/,Vt=/(#[a-z_][a-z0-9\-_]*)/i,Gt=/\)\s*,?\s*/,Ht=/\s/g,Xt=/^#[a-f0-9]{3}$|^#[a-f0-9]{6}$/i,Yt=/^rgb\(/,$t=/^(\s+)?$/,Qt=/^[+-]?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,Zt=/\.(jpg|jpeg|png|gif|svg)(\?[^=]+.*)?/i,Jt=/[\s,]+/,Kt=/[MLHVCSQTAZ]/i;function te(t){const e=Math.round(t),n=Math.max(0,Math.min(255,e)).toString(16);return 1===n.length?"0"+n:n}function ee(t,e){for(let n=e.length;n--;)if(null==t[e[n]])return!1;return!0}function ne(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+6*(e-t)*n:n<.5?e:n<2/3?t+(e-t)*(2/3-n)*6:t}ct("Dom",{classes:function(){const t=this.attr("class");return null==t?[]:t.trim().split(Jt)},hasClass:function(t){return-1!==this.classes().indexOf(t)},addClass:function(t){if(!this.hasClass(t)){const e=this.classes();e.push(t),this.attr("class",e.join(" "))}return this},removeClass:function(t){return this.hasClass(t)&&this.attr("class",this.classes().filter(function(e){return e!==t}).join(" ")),this},toggleClass:function(t){return this.hasClass(t)?this.removeClass(t):this.addClass(t)}}),ct("Dom",{css:function(t,e){const n={};if(0===arguments.length)return this.node.style.cssText.split(/\s*;\s*/).filter(function(t){return!!t.length}).forEach(function(t){const e=t.split(/\s*:\s*/);n[e[0]]=e[1]}),n;if(arguments.length<2){if(Array.isArray(t)){for(const e of t){const t=e;n[e]=this.node.style.getPropertyValue(t)}return n}if("string"==typeof t)return this.node.style.getPropertyValue(t);if("object"==typeof t)for(const e in t)this.node.style.setProperty(e,null==t[e]||$t.test(t[e])?"":t[e])}return 2===arguments.length&&this.node.style.setProperty(t,null==e||$t.test(e)?"":e),this},show:function(){return this.css("display","")},hide:function(){return this.css("display","none")},visible:function(){return"none"!==this.css("display")}}),ct("Dom",{data:function(t,e,n){if(null==t)return this.data(pt(function(t,e){let n;const r=t.length,i=[];for(n=0;n<r;n++)e(t[n])&&i.push(t[n]);return i}(this.node.attributes,t=>0===t.nodeName.indexOf("data-")),t=>t.nodeName.slice(5)));if(t instanceof Array){const e={};for(const n of t)e[n]=this.data(n);return e}if("object"==typeof t)for(e in t)this.data(e,t[e]);else if(arguments.length<2)try{return JSON.parse(this.attr("data-"+t))}catch(e){return this.attr("data-"+t)}else this.attr("data-"+t,null===e?null:!0===n||"string"==typeof e||"number"==typeof e?e:JSON.stringify(e));return this}}),ct("Dom",{remember:function(t,e){if("object"==typeof arguments[0])for(const e in t)this.remember(e,t[e]);else{if(1===arguments.length)return this.memory()[t];this.memory()[t]=e}return this},forget:function(){if(0===arguments.length)this._memory={};else for(let t=arguments.length-1;t>=0;t--)delete this.memory()[arguments[t]];return this},memory:function(){return this._memory=this._memory||{}}});class re{constructor(...t){this.init(...t)}static isColor(t){return t&&(t instanceof re||this.isRgb(t)||this.test(t))}static isRgb(t){return t&&"number"==typeof t.r&&"number"==typeof t.g&&"number"==typeof t.b}static random(t="vibrant",e){const{random:n,round:r,sin:i,PI:s}=Math;if("vibrant"===t){const t=24*n()+57,e=38*n()+45,r=360*n();return new re(t,e,r,"lch")}if("sine"===t){const t=r(80*i(2*s*(e=null==e?n():e)/.5+.01)+150),o=r(50*i(2*s*e/.5+4.6)+200),a=r(100*i(2*s*e/.5+2.3)+150);return new re(t,o,a)}if("pastel"===t){const t=8*n()+86,e=17*n()+9,r=360*n();return new re(t,e,r,"lch")}if("dark"===t){const t=10+10*n(),e=50*n()+86,r=360*n();return new re(t,e,r,"lch")}if("rgb"===t){const t=255*n(),e=255*n(),r=255*n();return new re(t,e,r)}if("lab"===t){const t=100*n(),e=256*n()-128,r=256*n()-128;return new re(t,e,r,"lab")}if("grey"===t){const t=255*n();return new re(t,t,t)}throw new Error("Unsupported random color mode")}static test(t){return"string"==typeof t&&(Xt.test(t)||Yt.test(t))}cmyk(){const{_a:t,_b:e,_c:n}=this.rgb(),[r,i,s]=[t,e,n].map(t=>t/255),o=Math.min(1-r,1-i,1-s);return 1===o?new re(0,0,0,1,"cmyk"):new re((1-r-o)/(1-o),(1-i-o)/(1-o),(1-s-o)/(1-o),o,"cmyk")}hsl(){const{_a:t,_b:e,_c:n}=this.rgb(),[r,i,s]=[t,e,n].map(t=>t/255),o=Math.max(r,i,s),a=Math.min(r,i,s),u=(o+a)/2,h=o===a,l=o-a;return new re(360*(h?0:o===r?((i-s)/l+(i<s?6:0))/6:o===i?((s-r)/l+2)/6:o===s?((r-i)/l+4)/6:0),100*(h?0:u>.5?l/(2-o-a):l/(o+a)),100*u,"hsl")}init(t=0,e=0,n=0,r=0,i="rgb"){if(t=t||0,this.space)for(const t in this.space)delete this[this.space[t]];if("number"==typeof t)i="string"==typeof r?r:i,r="string"==typeof r?0:r,Object.assign(this,{_a:t,_b:e,_c:n,_d:r,space:i});else if(t instanceof Array)this.space=e||("string"==typeof t[3]?t[3]:t[4])||"rgb",Object.assign(this,{_a:t[0],_b:t[1],_c:t[2],_d:t[3]||0});else if(t instanceof Object){const n=function(t,e){const n=ee(t,"rgb")?{_a:t.r,_b:t.g,_c:t.b,_d:0,space:"rgb"}:ee(t,"xyz")?{_a:t.x,_b:t.y,_c:t.z,_d:0,space:"xyz"}:ee(t,"hsl")?{_a:t.h,_b:t.s,_c:t.l,_d:0,space:"hsl"}:ee(t,"lab")?{_a:t.l,_b:t.a,_c:t.b,_d:0,space:"lab"}:ee(t,"lch")?{_a:t.l,_b:t.c,_c:t.h,_d:0,space:"lch"}:ee(t,"cmyk")?{_a:t.c,_b:t.m,_c:t.y,_d:t.k,space:"cmyk"}:{_a:0,_b:0,_c:0,space:"rgb"};return n.space=e||n.space,n}(t,e);Object.assign(this,n)}else if("string"==typeof t)if(Yt.test(t)){const e=t.replace(Ht,""),[n,r,i]=Ut.exec(e).slice(1,4).map(t=>parseInt(t));Object.assign(this,{_a:n,_b:r,_c:i,_d:0,space:"rgb"})}else{if(!Xt.test(t))throw Error("Unsupported string format, can't construct Color");{const e=t=>parseInt(t,16),[,n,r,i]=qt.exec(function(t){return 4===t.length?["#",t.substring(1,2),t.substring(1,2),t.substring(2,3),t.substring(2,3),t.substring(3,4),t.substring(3,4)].join(""):t}(t)).map(e);Object.assign(this,{_a:n,_b:r,_c:i,_d:0,space:"rgb"})}}const{_a:s,_b:o,_c:a,_d:u}=this,h="rgb"===this.space?{r:s,g:o,b:a}:"xyz"===this.space?{x:s,y:o,z:a}:"hsl"===this.space?{h:s,s:o,l:a}:"lab"===this.space?{l:s,a:o,b:a}:"lch"===this.space?{l:s,c:o,h:a}:"cmyk"===this.space?{c:s,m:o,y:a,k:u}:{};Object.assign(this,h)}lab(){const{x:t,y:e,z:n}=this.xyz();return new 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,u=o-s/200,h=16/116,l=.008856,c=7.787;t=.95047*(a**3>l?a**3:(a-h)/c),e=1*(o**3>l?o**3:(o-h)/c),n=1.08883*(u**3>l?u**3:(u-h)/c)}const r=3.2406*t+-1.5372*e+-.4986*n,i=-.9689*t+1.8758*e+.0415*n,s=.0557*t+-.204*e+1.057*n,o=Math.pow,a=.0031308,u=r>a?1.055*o(r,1/2.4)-.055:12.92*r,h=i>a?1.055*o(i,1/2.4)-.055:12.92*i,l=s>a?1.055*o(s,1/2.4)-.055:12.92*s;return new re(255*u,255*h,255*l)}if("hsl"===this.space){let{h:t,s:e,l:n}=this;if(t/=360,e/=100,n/=100,0===e)return n*=255,new 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,u=s>.04045?Math.pow((s+.055)/1.055,2.4):s/12.92,h=(.4124*o+.3576*a+.1805*u)/.95047,l=(.2126*o+.7152*a+.0722*u)/1,c=(.0193*o+.1192*a+.9505*u)/1.08883,f=h>.008856?Math.pow(h,1/3):7.787*h+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 re(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 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,u=t.shear||0,h=t.rotate||t.theta||0,l=new ie(t.origin||t.around||t.ox||t.originX,t.oy||t.originY),c=l.x,f=l.y,d=new ie(t.position||t.px||t.positionX||NaN,t.py||t.positionY||NaN),p=d.x,m=d.y,g=new ie(t.translate||t.tx||t.translateX,t.ty||t.translateY),y=g.x,v=g.y,w=new ie(t.relative||t.rx||t.relativeX,t.ry||t.relativeY);return{scaleX:o,scaleY:a,skewX:i,skewY:s,shear:u,theta:h,rx:w.x,ry:w.y,tx:y,ty:v,ox:c,oy:f,px:p,py:m}}static fromArray(t){return{a:t[0],b:t[1],c:t[2],d:t[3],e:t[4],f:t[5]}}static isMatrixLike(t){return null!=t.a||null!=t.b||null!=t.c||null!=t.d||null!=t.e||null!=t.f}static matrixMultiply(t,e,n){const r=t.a*e.a+t.c*e.b,i=t.b*e.a+t.d*e.b,s=t.a*e.c+t.c*e.d,o=t.b*e.c+t.d*e.d,a=t.e+t.a*e.e+t.c*e.f,u=t.f+t.b*e.e+t.d*e.f;return n.a=r,n.b=i,n.c=s,n.d=o,n.e=a,n.f=u,n}around(t,e,n){return this.clone().aroundO(t,e,n)}aroundO(t,e,n){const r=t||0,i=e||0;return this.translateO(-r,-i).lmultiplyO(n).translateO(r,i)}clone(){return new 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,u=n*s-r*i,h=u>0?1:-1,l=h*Math.sqrt(n*n+r*r),c=Math.atan2(h*r,h*n),f=180/Math.PI*c,d=Math.cos(c),p=Math.sin(c),m=(n*i+r*s)/u,g=i*l/(m*n-r)||s*l/(m*r+n);return{scaleX:l,scaleY:g,shear:m,rotate: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 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 Ee?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,u=-e/o,h=-n/o,l=t/o,c=-(a*i+h*s),f=-(u*i+l*s);return this.a=a,this.b=u,this.c=h,this.d=l,this.e=c,this.f=f,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:u,e:h,f:l}=this;return this.a=s*r-o*i,this.b=o*r+s*i,this.c=a*r-u*i,this.d=u*r+a*i,this.e=h*r-l*i+n*i-e*r+e,this.f=l*r+h*i-e*i-n*r+n,this}scale(){return this.clone().scaleO(...arguments)}scaleO(t,e=t,n=0,r=0){3===arguments.length&&(r=n,n=e,e=t);const{a:i,b:s,c:o,d:a,e:u,f:h}=this;return this.a=i*t,this.b=s*e,this.c=o*t,this.d=a*e,this.e=u*t-n*t+n,this.f=h*e-r*e+r,this}shear(t,e,n){return this.clone().shearO(t,e,n)}shearO(t,e=0,n=0){const{a:r,b:i,c:s,d:o,e:a,f:u}=this;return this.a=r+i*t,this.c=s+o*t,this.e=a+u*t-n*t,this}skew(){return this.clone().skewO(...arguments)}skewO(t,e=t,n=0,r=0){3===arguments.length&&(r=n,n=e,e=t),t=mt(t),e=mt(e);const i=Math.tan(t),s=Math.tan(e),{a:o,b:a,c:u,d:h,e:l,f:c}=this;return this.a=o+a*i,this.b=a+o*s,this.c=u+h*i,this.d=h+u*s,this.e=l+c*i-r*i,this.f=c+l*s-n*s,this}skewX(t,e,n){return this.skew(t,0,e,n)}skewY(t,e,n){return this.skew(0,t,e,n)}toArray(){return[this.a,this.b,this.c,this.d,this.e,this.f]}toString(){return"matrix("+this.a+","+this.b+","+this.c+","+this.d+","+this.e+","+this.f+")"}transform(t){if(oe.isMatrixLike(t))return new oe(t).multiplyO(this);const e=oe.formatTransforms(t),{x:n,y:r}=new ie(e.ox,e.oy).transform(this),i=(new oe).translateO(e.rx,e.ry).lmultiplyO(this).translateO(-n,-r).scaleO(e.scaleX,e.scaleY).skewO(e.skewX,e.skewY).shearO(e.shear).rotateO(e.theta).translateO(n,r);if(isFinite(e.px)||isFinite(e.py)){const t=new ie(n,r).transform(i),s=isFinite(e.px)?e.px-t.x:0,o=isFinite(e.py)?e.py-t.y:0;i.translateO(s,o)}return i.translateO(e.tx,e.ty),i}translate(t,e){return this.clone().translateO(t,e)}translateO(t,e){return this.e+=t||0,this.f+=e||0,this}valueOf(){return{a:this.a,b:this.b,c:this.c,d:this.d,e:this.e,f:this.f}}}function ae(){if(!ae.nodes){const t=Ot().size(2,0);t.node.style.cssText=["opacity: 0","position: absolute","left: -100%","top: -100%","overflow: hidden"].join(";"),t.attr("focusable","false"),t.attr("aria-hidden","true");const e=t.path().node;ae.nodes={svg:t,path:e}}if(!ae.nodes.svg.node.parentNode){const t=Mt.document.body||Mt.document.documentElement;ae.nodes.svg.addTo(t)}return ae.nodes}function ue(t){return!(t.width||t.height||t.x||t.y)}Pt(oe,"Matrix");class he{constructor(...t){this.init(...t)}addOffset(){return this.x+=Mt.window.pageXOffset,this.y+=Mt.window.pageYOffset,new he(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 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 he(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 he(e,r,n-e,i-r)}}function le(t,e,n){let r;try{if(r=e(t.node),ue(r)&&(i=t.node)!==Mt.document&&!(Mt.document.documentElement.contains||function(t){for(;t.parentNode;)t=t.parentNode;return t===Mt.document}).call(Mt.document.documentElement,i))throw new Error("Element not in the dom")}catch(e){r=n(t)}var i;return r}ct({viewbox:{viewbox(t,e,n,r){return null==t?new he(this.attr("viewBox")):this.attr("viewBox",new he(t,e,n,r))},zoom(t,e){let{width:n,height:r}=this.attr(["width","height"]);if((n||r)&&"string"!=typeof n&&"string"!=typeof r||(n=this.node.clientWidth,r=this.node.clientHeight),!n||!r)throw new Error("Impossible to get absolute width and height. Please provide an absolute width and height attribute on the zooming element");const i=this.viewbox(),s=n/i.width,o=r/i.height,a=Math.min(s,o);if(null==t)return a;let u=a/t;u===1/0&&(u=Number.MAX_SAFE_INTEGER/100),e=e||new ie(n/2/s+i.x,r/2/o+i.y);const h=new he(i).transform(new oe({scale:u,origin:e}));return this.viewbox(h)}}}),Pt(he,"Box");class ce extends Array{constructor(t=[],...e){if(super(t,...e),"number"==typeof t)return this;this.length=0,this.push(...t)}}const fe=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 de=["toArray","constructor","each"];function pe(t,e){return new fe(pt((e||Mt.document).querySelectorAll(t),function(t){return jt(t)}))}ce.extend=function(t){t=t.reduce((t,e)=>(de.includes(e)||"_"===e[0]||(e in Array.prototype&&(t["$"+e]=Array.prototype[e]),t[e]=function(...t){return this.each(e,...t)}),t),{}),Rt([ce],t)};let me=0;const ge={};function ye(t){let e=t.getEventHolder();return e===Mt.window&&(e=ge),e.events||(e.events={}),e.events}function ve(t){return t.getEventTarget()}function we(t,e,n,r,i){const s=n.bind(r||t),o=Ot(t),a=ye(o),u=ve(o);e=Array.isArray(e)?e:e.split(Jt),n._svgjsListenerId||(n._svgjsListenerId=++me),e.forEach(function(t){const e=t.split(".")[0],r=t.split(".")[1]||"*";a[e]=a[e]||{},a[e][r]=a[e][r]||{},a[e][r][n._svgjsListenerId]=s,u.addEventListener(e,s,i||!1)})}function be(t,e,n,r){const i=Ot(t),s=ye(i),o=ve(i);("function"!=typeof n||(n=n._svgjsListenerId))&&(e=Array.isArray(e)?e:(e||"").split(Jt)).forEach(function(t){const e=t&&t.split(".")[0],a=t&&t.split(".")[1];let u,h;if(n)s[e]&&s[e][a||"*"]&&(o.removeEventListener(e,s[e][a||"*"][n],r||!1),delete s[e][a||"*"][n]);else if(e&&a){if(s[e]&&s[e][a]){for(h in s[e][a])be(o,[e,a].join("."),h);delete s[e][a]}}else if(a)for(t in s)for(u in s[t])a===u&&be(o,[t,a].join("."));else if(e){if(s[e]){for(u in s[e])be(o,[e,u].join("."));delete s[e]}}else{for(t in s)be(o,t);!function(t){let e=t.getEventHolder();e===Mt.window&&(e=ge),e.events&&(e.events={})}(i)}})}class xe extends Ct{addEventListener(){}dispatch(t,e,n){return function(t,e,n,r){const i=ve(t);return e instanceof Mt.window.Event||(e=new Mt.window.CustomEvent(e,{detail:n,cancelable:!0,...r})),i.dispatchEvent(e),e}(this,t,e,n)}dispatchEvent(t){const e=this.getEventHolder().events;if(!e)return!0;const n=e[t.type];for(const e in n)for(const r in n[e])n[e][r](t);return!t.defaultPrevented}fire(t,e,n){return this.dispatch(t,e,n),this}getEventHolder(){return this}getEventTarget(){return this}off(t,e,n){return be(this,t,e,n),this}on(t,e,n,r){return we(this,t,e,n,r),this}removeEventListener(){}}function _e(){}Pt(xe,"EventTarget");const Ne={"fill-opacity":1,"stroke-opacity":1,"stroke-width":0,"stroke-linejoin":"miter","stroke-linecap":"butt",fill:"#000000",stroke:"#000000",opacity:1,x:0,y:0,cx:0,cy:0,width:0,height:0,r:0,rx:0,ry:0,offset:0,"stop-opacity":1,"stop-color":"#000000","text-anchor":"start"};class ke extends Array{constructor(...t){super(...t),this.init(...t)}clone(){return new this.constructor(this)}init(t){return"number"==typeof t||(this.length=0,this.push(...this.parse(t))),this}parse(t=[]){return t instanceof Array?t:t.trim().split(Jt).map(parseFloat)}toArray(){return Array.prototype.concat.apply([],this)}toSet(){return new Set(this)}toString(){return this.join(" ")}valueOf(){const t=[];return t.push(...this),t}}class Se{constructor(...t){this.init(...t)}convert(t){return new Se(this.value,t)}divide(t){return t=new Se(t),new Se(this/t,this.unit||t.unit)}init(t,e){return e=Array.isArray(t)?t[1]:e,t=Array.isArray(t)?t[0]:t,this.value=0,this.unit=e||"","number"==typeof t?this.value=isNaN(t)?0:isFinite(t)?t:t<0?-34e37:34e37:"string"==typeof t?(e=t.match(Ft))&&(this.value=parseFloat(e[1]),"%"===e[5]?this.value/=100:"s"===e[5]&&(this.value*=1e3),this.unit=e[5]):t instanceof Se&&(this.value=t.valueOf(),this.unit=t.unit),this}minus(t){return t=new Se(t),new Se(this-t,this.unit||t.unit)}plus(t){return t=new Se(t),new Se(this+t,this.unit||t.unit)}times(t){return t=new Se(t),new Se(this*t,this.unit||t.unit)}toArray(){return[this.value,this.unit]}toJSON(){return this.toString()}toString(){return("%"===this.unit?~~(1e8*this.value)/1e6:"s"===this.unit?this.value/1e3:this.value)+this.unit}valueOf(){return this.value}}const Me=new Set(["fill","stroke","color","bgcolor","stop-color","flood-color","lighting-color"]),Ce=[];class Ae extends xe{constructor(t,e){super(),this.node=t,this.type=t.nodeName,e&&t!==e&&this.attr(e)}add(t,e){return(t=Ot(t)).removeNamespace&&this.node instanceof Mt.window.SVGElement&&t.removeNamespace(),null==e?this.node.appendChild(t.node):t.node!==this.node.childNodes[e]&&this.node.insertBefore(t.node,this.node.childNodes[e]),this}addTo(t,e){return Ot(t).put(this,e)}children(){return new fe(pt(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=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 Ae(Tt(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=Bt(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=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=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=Tt("wrapper",n),i=Mt.document.createDocumentFragment();r.innerHTML=t;for(let t=r.children.length;t--;)i.appendChild(r.firstElementChild);const s=this.parent();return e?this.replace(i)&&s:this.add(i)}}Rt(Ae,{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=Ce.reduce((e,n)=>n(t,e,this),e))?e=new Se(e):Me.has(t)&&re.isColor(e)?e=new re(e):e.constructor===Array&&(e=new ke(e)),"leading"===t?this.leading&&this.leading(e):"string"==typeof n?this.node.setAttributeNS(n,t,e.toString()):this.node.setAttribute(t,e.toString()),!this.rebuild||"font-size"!==t&&"x"!==t||this.rebuild()}return this},find:function(t){return pe(t,this.node)},findOne:function(t){return jt(this.node.querySelector(t))}}),Pt(Ae,"Dom");class Ee extends Ae{constructor(t,e){super(t,e),this.dom={},this.node.instance=this,(t.hasAttribute("data-svgjs")||t.hasAttribute("svgjs:data"))&&this.setData(JSON.parse(t.getAttribute("data-svgjs"))??JSON.parse(t.getAttribute("svgjs:data"))??{})}center(t,e){return this.cx(t).cy(e)}cx(t){return null==t?this.x()+this.width()/2:this.x(t-this.width()/2)}cy(t){return null==t?this.y()+this.height()/2:this.y(t-this.height()/2)}defs(){const t=this.root();return t&&t.defs()}dmove(t,e){return this.dx(t).dy(e)}dx(t=0){return this.x(new Se(t).plus(this.x()))}dy(t=0){return this.y(new Se(t).plus(this.y()))}getEventHolder(){return this}height(t){return this.attr("height",t)}move(t,e){return this.x(t).y(e)}parents(t=this.root()){const e="string"==typeof t;e||(t=Ot(t));const n=new fe;let r=this;for(;(r=r.parent())&&r.node!==Mt.document&&"#document-fragment"!==r.nodeName&&(n.push(r),e||r.node!==t.node)&&(!e||!r.matches(t));)if(r.node===this.root().node)return null;return n}reference(t){if(!(t=this.attr(t)))return null;const e=(t+"").match(Vt);return e?Ot(e[1]):null}root(){const t=this.parent(At[Et]);return t&&t.root()}setData(t){return this.dom=t,this}size(t,e){const n=vt(this,t,e);return this.width(new Se(n.width)).height(new Se(n.height))}width(t){return this.attr("width",t)}writeDataToDom(){return _t(this,this.dom),super.writeDataToDom()}x(t){return this.attr("x",t)}y(t){return this.attr("y",t)}}Rt(Ee,{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 he(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 he(e);return t?n.transform(t.screenCTM().inverseO()):n.addOffset()},inside:function(t,e){const n=this.bbox();return t>n.x&&e>n.y&&t<n.x+n.width&&e<n.y+n.height},point:function(t,e){return new ie(t,e).transformO(this.screenCTM().inverseO())},ctm:function(){return new oe(this.node.getCTM())},screenCTM:function(){try{if("function"==typeof this.isRoot&&!this.isRoot()){const t=this.rect(1,1),e=t.node.getScreenCTM();return t.remove(),new oe(e)}return new oe(this.node.getScreenCTM())}catch(t){return console.warn(`Cannot get CTM from SVG node ${this.node.nodeName}. Is the element rendered?`),new oe}}}),Pt(Ee,"Element");const Te={stroke:["color","width","opacity","linecap","linejoin","miterlimit","dasharray","dashoffset"],fill:["color","opacity","rule"],prefix:function(t,e){return"color"===e?t:t+"-"+e}};["fill","stroke"].forEach(function(t){const e={};let n;e[t]=function(e){if(void 0===e)return this.attr(t);if("string"==typeof e||e instanceof re||re.isRgb(e)||e instanceof Ee)this.attr(t,e);else for(n=Te[t].length-1;n>=0;n--)null!=e[Te[t][n]]&&this.attr(Te.prefix(t,Te[t][n]),e[Te[t][n]]);return this},ct(["Element","Runner"],e)}),ct(["Element","Runner"],{matrix:function(t,e,n,r,i,s){return null==t?new oe(this):this.attr("transform",new oe(t,e,n,r,i,s))},rotate:function(t,e,n){return this.transform({rotate:t,ox:e,oy:n},!0)},skew:function(t,e,n,r){return 1===arguments.length||3===arguments.length?this.transform({skew:t,ox:e,oy:n},!0):this.transform({skew:[t,e],ox:n,oy:r},!0)},shear:function(t,e,n){return this.transform({shear:t,ox:e,oy:n},!0)},scale:function(t,e,n,r){return 1===arguments.length||3===arguments.length?this.transform({scale:t,ox:e,oy:n},!0):this.transform({scale:[t,e],ox:n,oy:r},!0)},translate:function(t,e){return this.transform({translate:[t,e]},!0)},relative:function(t,e){return this.transform({relative:[t,e]},!0)},flip:function(t="both",e="center"){return-1==="xybothtrue".indexOf(t)&&(e=t,t="both"),this.transform({flip:t,origin:e},!0)},opacity:function(t){return this.attr("opacity",t)}}),ct("radius",{radius:function(t,e=t){return"radialGradient"===(this._element||this).type?this.attr("r",new Se(t)):this.rx(t).ry(e)}}),ct("Path",{length:function(){return this.node.getTotalLength()},pointAt:function(t){return new ie(this.node.getPointAtLength(t))}}),ct(["Element","Runner"],{font:function(t,e){if("object"==typeof t){for(e in t)this.font(e,t[e]);return this}return"leading"===t?this.leading(e):"anchor"===t?this.attr("text-anchor",e):"size"===t||"family"===t||"weight"===t||"stretch"===t||"variant"===t||"style"===t?this.attr("font-"+t,e):this.attr(t,e)}}),ct("Element",["click","dblclick","mousedown","mouseup","mouseover","mouseout","mousemove","mouseenter","mouseleave","touchstart","touchmove","touchleave","touchend","touchcancel","contextmenu","wheel","pointerdown","pointermove","pointerup","pointerleave","pointercancel"].reduce(function(t,e){return t[e]=function(t){return null===t?this.off(e):this.on(e,t),this},t},{})),ct("Element",{untransform:function(){return this.attr("transform",null)},matrixify:function(){return(this.attr("transform")||"").split(Gt).slice(0,-1).map(function(t){const e=t.trim().split("(");return[e[0],e[1].split(Jt).map(function(t){return parseFloat(t)})]}).reverse().reduce(function(t,e){return"matrix"===e[0]?t.lmultiply(oe.fromArray(e[1])):t[e[0]].apply(t,e[1])},new oe)},toParent:function(t,e){if(this===t)return this;if(xt(this.node))return this.addTo(t,e);const n=this.screenCTM(),r=t.screenCTM().inverse();return this.addTo(t,e).untransform().transform(r.multiply(n)),this},toRoot:function(t){return this.toParent(this.root(),t)},transform:function(t,e){if(null==t||"string"==typeof t){const e=new oe(this).decompose();return null==t?e:e[t]}oe.isMatrixLike(t)||(t={...t,origin:wt(t,this)});const n=new oe(!0===e?this:e||!1).transform(t);return this.attr("transform",n)}});class Oe extends Ee{flatten(){return this.each(function(){if(this instanceof Oe)return this.flatten().ungroup()}),this}ungroup(t=this.parent(),e=t.index(this)){return e=-1===e?t.children().length:e,this.each(function(n,r){return r[r.length-n-1].toParent(t,e)}),this.remove()}}Pt(Oe,"Container");class Le extends Oe{constructor(t,e=t){super(Lt("defs",t),e)}flatten(){return this}ungroup(){return this}}Pt(Le,"Defs");class je extends Ee{}function We(t){return this.attr("rx",t)}function Pe(t){return this.attr("ry",t)}function De(t){return null==t?this.cx()-this.rx():this.cx(t+this.rx())}function Be(t){return null==t?this.cy()-this.ry():this.cy(t+this.ry())}function Ie(t){return this.attr("cx",t)}function Re(t){return this.attr("cy",t)}function ze(t){return null==t?2*this.rx():this.rx(new Se(t).divide(2))}function Fe(t){return null==t?2*this.ry():this.ry(new Se(t).divide(2))}Pt(je,"Shape");class qe extends je{constructor(t,e=t){super(Lt("ellipse",t),e)}size(t,e){const n=vt(this,t,e);return this.rx(new Se(n.width).divide(2)).ry(new Se(n.height).divide(2))}}Rt(qe,t),ct("Container",{ellipse:zt(function(t=0,e=t){return this.put(new qe).size(t,e).move(0,0)})}),Pt(qe,"Ellipse");class Ue extends Ae{constructor(t=Mt.document.createDocumentFragment()){super(t)}xml(t,e,n){if("boolean"==typeof t&&(n=e,e=t,t=null),null==t||"function"==typeof t){const t=new Ae(Tt("wrapper",n));return t.add(this.node.cloneNode(!0)),t.xml(!1,n)}return super.xml(t,!1,n)}}Pt(Ue,"Fragment");const Ve=Ue;function Ge(t,e){return"radialGradient"===(this._element||this).type?this.attr({fx:new Se(t),fy:new Se(e)}):this.attr({x1:new Se(t),y1:new Se(e)})}function He(t,e){return"radialGradient"===(this._element||this).type?this.attr({cx:new Se(t),cy:new Se(e)}):this.attr({x2:new Se(t),y2:new Se(e)})}class Xe extends Oe{constructor(t,e){super(Lt(t+"Gradient","string"==typeof t?null:t),e)}attr(t,e,n){return"transform"===t&&(t="gradientTransform"),super.attr(t,e,n)}bbox(){return new he}targets(){return pe("svg [fill*="+this.id()+"]")}toString(){return this.url()}update(t){return this.clear(),"function"==typeof t&&t.call(this,this),this}url(){return"url(#"+this.id()+")"}}Rt(Xe,e),ct({Container:{gradient(...t){return this.defs().gradient(...t)}},Defs:{gradient:zt(function(t,e){return this.put(new Xe(t)).update(e)})}}),Pt(Xe,"Gradient");class Ye extends Oe{constructor(t,e=t){super(Lt("pattern",t),e)}attr(t,e,n){return"transform"===t&&(t="patternTransform"),super.attr(t,e,n)}bbox(){return new he}targets(){return pe("svg [fill*="+this.id()+"]")}toString(){return this.url()}update(t){return this.clear(),"function"==typeof t&&t.call(this,this),this}url(){return"url(#"+this.id()+")"}}ct({Container:{pattern(...t){return this.defs().pattern(...t)}},Defs:{pattern:zt(function(t,e,n){return this.put(new Ye).update(n).attr({x:0,y:0,width:t,height:e,patternUnits:"userSpaceOnUse"})})}}),Pt(Ye,"Pattern");class $e extends je{constructor(t,e=t){super(Lt("image",t),e)}load(t,e){if(!t)return this;const n=new Mt.window.Image;return we(n,"load",function(t){const r=this.parent(Ye);0===this.width()&&0===this.height()&&this.size(n.width,n.height),r instanceof Ye&&0===r.width()&&0===r.height()&&r.size(this.width(),this.height()),"function"==typeof e&&e.call(this,t)},this),we(n,"load error",function(){be(n)}),this.attr("href",n.src=t,St)}}var Qe;Qe=function(t,e,n){return"fill"!==t&&"stroke"!==t||Zt.test(e)&&(e=n.root().defs().image(e)),e instanceof $e&&(e=n.root().defs().pattern(0,0,t=>{t.add(e)})),e},Ce.push(Qe),ct({Container:{image:zt(function(t,e){return this.put(new $e).size(0,0).load(t,e)})}}),Pt($e,"Image");class Ze extends ke{bbox(){let t=-1/0,e=-1/0,n=1/0,r=1/0;return this.forEach(function(i){t=Math.max(i[0],t),e=Math.max(i[1],e),n=Math.min(i[0],n),r=Math.min(i[1],r)}),new he(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 je{constructor(t,e=t){super(Lt("line",t),e)}array(){return new Ze([[this.attr("x1"),this.attr("y1")],[this.attr("x2"),this.attr("y2")]])}move(t,e){return this.attr(this.array().move(t,e).toLine())}plot(t,e,n,r){return null==t?this.array():(t=void 0!==e?{x1:t,y1:e,x2:n,y2:r}:new Ze(t).toLine(),this.attr(t))}size(t,e){const n=vt(this,t,e);return this.attr(this.array().size(n.width,n.height).toLine())}}Rt(rn,i),ct({Container:{line:zt(function(...t){return rn.prototype.plot.apply(this.put(new rn),null!=t[0]?t:[0,0,0,0])})}}),Pt(rn,"Line");class sn extends Oe{constructor(t,e=t){super(Lt("marker",t),e)}height(t){return this.attr("markerHeight",t)}orient(t){return this.attr("orient",t)}ref(t,e){return this.attr("refX",t).attr("refY",e)}toString(){return"url(#"+this.id()+")"}update(t){return this.clear(),"function"==typeof t&&t.call(this,this),this}width(t){return this.attr("markerWidth",t)}}function on(t,e){return function(n){return null==n?this[t]:(this[t]=n,e&&e.call(this),this)}}ct({Container:{marker(...t){return this.defs().marker(...t)}},Defs:{marker:zt(function(t,e,n){return this.put(new sn).size(t,e).ref(t/2,e/2).viewbox(0,0,t,e).attr("orient","auto").update(n)})},marker:{marker(t,e,n,r){let i=["marker"];return"all"!==t&&i.push(t),i=i.join("-"),t=arguments[1]instanceof sn?arguments[1]:this.defs().marker(e,n,r),this.attr(i,t)}}}),Pt(sn,"Marker");const an={"-":function(t){return t},"<>":function(t){return-Math.cos(t*Math.PI)/2+.5},">":function(t){return Math.sin(t*Math.PI/2)},"<":function(t){return 1-Math.cos(t*Math.PI/2)},bezier:function(t,e,n,r){return function(i){return i<0?t>0?e/t*i:n>0?r/n*i:0:i>1?n<1?(1-r)/(1-n)*i+(r-n)/(1-n):t<1?(1-e)/(1-t)*i+(e-t)/(1-t):1:3*i*(1-i)**2*e+3*i**2*(1-i)*r+i**3}},steps:function(t,e="end"){e=e.split("-").reverse()[0];let n=t;return"none"===e?--n:"both"===e&&++n,(r,i=!1)=>{let s=Math.floor(r*t);const o=r*s%1==0;return"start"!==e&&"both"!==e||++s,i&&o&&--s,r>=0&&s<0&&(s=0),r<=1&&s>n&&(s=n),s/n}}};class un{done(){return!1}}class hn extends un{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 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 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 fn={M:2,L:2,H:1,V:1,C:6,S:4,Q:4,T:2,A:7,Z:0},dn={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)dn[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 dn[t](e,n,r)}}(pn[t].toUpperCase());function mn(t){return t.segment.length&&t.segment.length-1===fn[t.segment[0].toUpperCase()]}function gn(t,e){t.inNumber&&yn(t,!1);const n=Kt.test(e);if(n)t.segment=[e];else{const e=t.lastCommand,n=e.toLowerCase(),r=e===n;t.segment=["m"===n?r?"l":"L":e]}return t.inSegment=!0,t.lastCommand=t.segment[0],n}function yn(t,e){if(!t.inNumber)throw new Error("Parser Error");t.number&&t.segment.push(parseFloat(t.number)),t.inNumber=e,t.number="",t.pointSeen=!1,t.hasExponent=!1,mn(t)&&vn(t)}function vn(t){t.inSegment=!1,t.absolute&&(t.segment=function(t){const e=t.segment[0];return dn[e](t.segment.slice(1),t.p,t.p0)}(t)),t.segments.push(t.segment)}function wn(t){if(!t.segment.length)return!1;const e="A"===t.segment[0].toUpperCase(),n=t.segment.length;return e&&(4===n||5===n)}function bn(t){return"E"===t.lastToken.toUpperCase()}const xn=new Set([" ",",","\t","\n","\r","\f"]);class _n extends ke{bbox(){return ae().path.setAttribute("d",this.toString()),new he(ae.nodes.path.getBBox())}move(t,e){const n=this.bbox();if(t-=n.x,e-=n.y,!isNaN(t)&&!isNaN(e))for(let n,r=this.length-1;r>=0;r--)n=this[r][0],"M"===n||"L"===n||"T"===n?(this[r][1]+=t,this[r][2]+=e):"H"===n?this[r][1]+=t:"V"===n?this[r][1]+=e:"C"===n||"S"===n||"Q"===n?(this[r][1]+=t,this[r][2]+=e,this[r][3]+=t,this[r][4]+=e,"C"===n&&(this[r][5]+=t,this[r][6]+=e)):"A"===n&&(this[r][6]+=t,this[r][7]+=e);return this}parse(t="M0 0"){return Array.isArray(t)&&(t=Array.prototype.concat.apply([],t).toString()),function(t,e=!0){let n=0,r="";const i={segment:[],inNumber:!1,number:"",lastToken:"",inSegment:!1,segments:[],pointSeen:!1,hasExponent:!1,absolute:e,p0:new ie,p:new ie};for(;i.lastToken=r,r=t.charAt(n++);)if(i.inSegment||!gn(i,r))if("."!==r)if(isNaN(parseInt(r)))if(xn.has(r))i.inNumber&&yn(i,!1);else if("-"!==r&&"+"!==r)if("E"!==r.toUpperCase()){if(Kt.test(r)){if(i.inNumber)yn(i,!1);else{if(!mn(i))throw new Error("parser Error");vn(i)}--n}}else i.number+=r,i.hasExponent=!0;else{if(i.inNumber&&!bn(i)){yn(i,!1),--n;continue}i.number+=r,i.inNumber=!0}else{if("0"===i.number||wn(i)){i.inNumber=!0,i.number=r,yn(i,!0);continue}i.inNumber=!0,i.number+=r}else{if(i.pointSeen||i.hasExponent){yn(i,!1),--n;continue}i.inNumber=!0,i.pointSeen=!0,i.number+=r}return i.inNumber&&yn(i,!1),i.inSegment&&mn(i)&&vn(i),i.segments}(t)}size(t,e){const n=this.bbox();let r,i;for(n.width=0===n.width?1:n.width,n.height=0===n.height?1:n.height,r=this.length-1;r>=0;r--)i=this[r][0],"M"===i||"L"===i||"T"===i?(this[r][1]=(this[r][1]-n.x)*t/n.width+n.x,this[r][2]=(this[r][2]-n.y)*e/n.height+n.y):"H"===i?this[r][1]=(this[r][1]-n.x)*t/n.width+n.x:"V"===i?this[r][1]=(this[r][1]-n.y)*e/n.height+n.y:"C"===i||"S"===i||"Q"===i?(this[r][1]=(this[r][1]-n.x)*t/n.width+n.x,this[r][2]=(this[r][2]-n.y)*e/n.height+n.y,this[r][3]=(this[r][3]-n.x)*t/n.width+n.x,this[r][4]=(this[r][4]-n.y)*e/n.height+n.y,"C"===i&&(this[r][5]=(this[r][5]-n.x)*t/n.width+n.x,this[r][6]=(this[r][6]-n.y)*e/n.height+n.y)):"A"===i&&(this[r][1]=this[r][1]*t/n.width,this[r][2]=this[r][2]*e/n.height,this[r][6]=(this[r][6]-n.x)*t/n.width+n.x,this[r][7]=(this[r][7]-n.y)*e/n.height+n.y);return this}toString(){return function(t){let e="";for(let n=0,r=t.length;n<r;n++)e+=t[n][0],null!=t[n][1]&&(e+=t[n][1],null!=t[n][2]&&(e+=" ",e+=t[n][2],null!=t[n][3]&&(e+=" ",e+=t[n][3],e+=" ",e+=t[n][4],null!=t[n][5]&&(e+=" ",e+=t[n][5],e+=" ",e+=t[n][6],null!=t[n][7]&&(e+=" ",e+=t[n][7])))));return e+" "}(this)}}const Nn=t=>{const e=typeof t;return"number"===e?Se:"string"===e?re.isColor(t)?re:Jt.test(t)?Kt.test(t)?_n:ke:Ft.test(t)?Se:Sn:En.indexOf(t.constructor)>-1?t.constructor:Array.isArray(t)?ke:"object"===e?An:Sn};class kn{constructor(t){this._stepper=t||new hn("-"),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===An&&(e=this._to?e.align(this._to):this._from?e.align(this._from):e),e=e.toConsumable(),this._morphObj=this._morphObj||new this._type,this._context=this._context||Array.apply(null,Array(e.length)).map(Object).map(function(t){return t.done=!0,t}),e}}class Sn{constructor(...t){this.init(...t)}init(t){return t=Array.isArray(t)?t[0]:t,this.value=t,this}toArray(){return[this.value]}valueOf(){return this.value}}class Mn{constructor(...t){this.init(...t)}init(t){return Array.isArray(t)&&(t={scaleX:t[0],scaleY:t[1],shear:t[2],rotate:t[3],translateX:t[4],translateY:t[5],originX:t[6],originY:t[7]}),Object.assign(this,Mn.defaults,t),this}toArray(){const t=this;return[t.scaleX,t.scaleY,t.shear,t.rotate,t.translateX,t.translateY,t.originX,t.originY]}}Mn.defaults={scaleX:1,scaleY:1,shear:0,rotate:0,translateX:0,translateY:0,originX:0,originY:0};const Cn=(t,e)=>t[0]<e[0]?-1:t[0]>e[0]?1:0;class An{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(Cn),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 En=[Sn,Mn,An];class Tn extends je{constructor(t,e=t){super(Lt("path",t),e)}array(){return this._array||(this._array=new _n(this.attr("d")))}clear(){return delete this._array,this}height(t){return null==t?this.bbox().height:this.size(this.bbox().width,t)}move(t,e){return this.attr("d",this.array().move(t,e))}plot(t){return null==t?this.array():this.clear().attr("d","string"==typeof t?t:this._array=new _n(t))}size(t,e){const n=vt(this,t,e);return this.attr("d",this.array().size(n.width,n.height))}width(t){return null==t?this.bbox().width:this.size(t,this.bbox().height)}x(t){return null==t?this.bbox().x:this.move(t,this.bbox().y)}y(t){return null==t?this.bbox().y:this.move(this.bbox().x,t)}}function On(){return this._array||(this._array=new Ze(this.attr("points")))}function Ln(){return delete this._array,this}function jn(t,e){return this.attr("points",this.array().move(t,e))}function Wn(t){return null==t?this.array():this.clear().attr("points","string"==typeof t?t:this._array=new Ze(t))}function Pn(t,e){const n=vt(this,t,e);return this.attr("points",this.array().size(n.width,n.height))}Tn.prototype.MorphArray=_n,ct({Container:{path:zt(function(t){return this.put(new Tn).plot(t||new _n)})}}),Pt(Tn,"Path");class Dn extends je{constructor(t,e=t){super(Lt("polygon",t),e)}}ct({Container:{polygon:zt(function(t){return this.put(new Dn).plot(t||new Ze)})}}),Rt(Dn,i),Rt(Dn,s),Pt(Dn,"Polygon");class Bn extends je{constructor(t,e=t){super(Lt("polyline",t),e)}}ct({Container:{polyline:zt(function(t){return this.put(new Bn).plot(t||new Ze)})}}),Rt(Bn,i),Rt(Bn,s),Pt(Bn,"Polyline");class In extends je{constructor(t,e=t){super(Lt("rect",t),e)}}Rt(In,{rx:We,ry:Pe}),ct({Container:{rect:zt(function(t,e){return this.put(new In).size(t,e)})}}),Pt(In,"Rect");class Rn{constructor(){this._first=null,this._last=null}first(){return this._first&&this._first.value}last(){return this._last&&this._last.value}push(t){const e=void 0!==t.next?t:{value:t,next:null,prev:null};return this._last?(e.prev=this._last,this._last.next=e,this._last=e):(this._last=e,this._first=e),e}remove(t){t.prev&&(t.prev.next=t.next),t.next&&(t.next.prev=t.prev),t===this._last&&(this._last=t.prev),t===this._first&&(this._first=t.next),t.prev=null,t.next=null}shift(){const t=this._first;return t?(this._first=t.next,this._first&&(this._first.prev=null),this._last=this._first?this._last:null,t.value):null}}const zn={nextDraw:null,frames:new Rn,timeouts:new Rn,immediates:new Rn,timer:()=>Mt.window.performance||Mt.window.Date,transforms:[],frame(t){const e=zn.frames.push({run:t});return null===zn.nextDraw&&(zn.nextDraw=Mt.window.requestAnimationFrame(zn._draw)),e},timeout(t,e){e=e||0;const n=zn.timer().now()+e,r=zn.timeouts.push({run:t,time:n});return null===zn.nextDraw&&(zn.nextDraw=Mt.window.requestAnimationFrame(zn._draw)),r},immediate(t){const e=zn.immediates.push(t);return null===zn.nextDraw&&(zn.nextDraw=Mt.window.requestAnimationFrame(zn._draw)),e},cancelFrame(t){null!=t&&zn.frames.remove(t)},clearTimeout(t){null!=t&&zn.timeouts.remove(t)},cancelImmediate(t){null!=t&&zn.immediates.remove(t)},_draw(t){let e=null;const n=zn.timeouts.last();for(;(e=zn.timeouts.shift())&&(t>=e.time?e.run():zn.timeouts.push(e),e!==n););let r=null;const i=zn.frames.last();for(;r!==i&&(r=zn.frames.shift());)r.run(t);let s=null;for(;s=zn.immediates.shift();)s();zn.nextDraw=zn.timeouts.first()||zn.frames.first()?Mt.window.requestAnimationFrame(zn._draw):null}},Fn=zn,qn=function(t){const e=t.start,n=t.runner.duration();return{start:e,duration:n,end:e+n,runner:t.runner}},Un=function(){const t=Mt.window;return(t.performance||t.Date).now()};class Vn extends xe{constructor(t=Un){super(),this._timeSource=t,this.terminate()}active(){return!!this._nextFrame}finish(){return this.time(this.getEndTimeOfTimeline()+1),this.pause()}getEndTime(){const t=this.getLastRunnerInfo(),e=t?t.runner.duration():0;return(t?t.start:this._time)+e}getEndTimeOfTimeline(){const t=this._runners.map(t=>t.start+t.runner.duration());return Math.max(0,...t)}getLastRunnerInfo(){return this.getRunnerInfoById(this._lastRunnerId)}getRunnerInfoById(t){return this._runners[this._runnerIds.indexOf(t)]||null}pause(){return this._paused=!0,this._continue()}persist(t){return null==t?this._persist:(this._persist=t,this)}play(){return this._paused=!1,this.updateTime()._continue()}reverse(t){const e=this.speed();if(null==t)return this.speed(-e);const n=Math.abs(e);return this.speed(t?-n:n)}schedule(t,e,n){if(null==t)return this._runners.map(qn);let r=0;const i=this.getEndTime();if(e=e||0,null==n||"last"===n||"after"===n)r=i;else if("absolute"===n||"start"===n)r=e,e=0;else if("now"===n)r=this._time;else if("relative"===n){const n=this.getRunnerInfoById(t.id);n&&(r=n.start+e,e=0)}else{if("with-last"!==n)throw new Error('Invalid value for the "when" parameter');{const t=this.getLastRunnerInfo();r=t?t.start:this._time}}t.unschedule(),t.timeline(this);const s=t.persist(),o={persist:null===s?this._persist:s,start:r+e,runner:t};return this._lastRunnerId=t.id,this._runners.push(o),this._runners.sort((t,e)=>t.start-e.start),this._runnerIds=this._runners.map(t=>t.runner.id),this.updateTime()._continue(),this}seek(t){return this.time(this._time+t)}source(t){return null==t?this._timeSource:(this._timeSource=t,this)}speed(t){return null==t?this._speed:(this._speed=t,this)}stop(){return this.time(0),this.pause()}time(t){return null==t?this._time:(this._time=t,this._continue(!0))}unschedule(t){const e=this._runnerIds.indexOf(t.id);return e<0||(this._runners.splice(e,1),this._runnerIds.splice(e,1),t.timeline(null)),this}updateTime(){return this.active()||(this._lastSourceTime=this._timeSource()),this}_continue(t=!1){return Fn.cancelFrame(this._nextFrame),this._nextFrame=null,t?this._stepImmediate():(this._paused||(this._nextFrame=Fn.frame(this._step)),this)}_stepFn(t=!1){const e=this._timeSource();let n=e-this._lastSourceTime;t&&(n=0);const r=this._speed*n+(this._time-this._lastStepTime);this._lastSourceTime=e,t||(this._time+=r,this._time=this._time<0?0:this._time),this._lastStepTime=this._time,this.fire("time",this._time);for(let t=this._runners.length;t--;){const e=this._runners[t],n=e.runner;this._time-e.start<=0&&n.reset()}let i=!1;for(let t=0,e=this._runners.length;t<e;t++){const n=this._runners[t],s=n.runner;let o=r;const a=this._time-n.start;a<=0?i=!0:(a<o&&(o=a),s.active()&&(s.step(o).done?!0!==n.persist&&s.duration()-s.time()+this._time+n.persist<this._time&&(s.unschedule(),--t,--e):i=!0))}return i&&!(this._speed<0&&0===this._time)||this._runnerIds.length&&this._speed<0&&this._time>0?this._continue():(this.pause(),this.fire("finished")),this}terminate(){this._startTime=0,this._speed=1,this._persist=0,this._nextFrame=null,this._paused=!0,this._runners=[],this._runnerIds=[],this._lastRunnerId=-1,this._time=0,this._lastSourceTime=0,this._lastStepTime=0,this._step=this._stepFn.bind(this,!1),this._stepImmediate=this._stepFn.bind(this,!0)}}ct({Element:{timeline:function(t){return null==t?(this._timeline=this._timeline||new Vn,this._timeline):(this._timeline=t,this)}}});class Gn extends xe{constructor(t){super(),this.id=Gn.id++,t="function"==typeof(t=null==t?400:t)?new ln(t):t,this._element=null,this._timeline=null,this.done=!1,this._queue=[],this._duration="number"==typeof t&&t,this._isDeclarative=t instanceof ln,this._stepper=this._isDeclarative?t:new hn,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 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=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 hn(t),this}element(t){return null==t?this._element:(this._element=t,t._prepareRunner(),this)}finish(){return this.step(1/0)}loop(t,e,n){return"object"==typeof t&&(e=t.swing,n=t.wait,t=t.times),this._times=t||1/0,this._swing=e||!1,this._wait=n||0,!0===this._times&&(this._times=1/0),this}loops(t){const e=this._duration+this._wait;if(null==t){const t=Math.floor(this._time/e),n=(this._time-t*e)/this._duration;return Math.min(t+n,this._times)}const n=t%1,r=e*Math.floor(t)+this._duration*n;return this.time(r)}persist(t){return null==t?this._persist:(this._persist=t,this)}position(t){const e=this._time,n=this._duration,r=this._wait,i=this._times,s=this._swing,o=this._reverse;let a;if(null==t){const t=function(t){const e=s*Math.floor(t%(2*(r+n))/(r+n)),i=e&&!o||!e&&o,a=Math.pow(-1,i)*(t%(r+n))/n+i;return Math.max(Math.min(a,1),0)},u=i*(r+n)-r;return a=e<=0?Math.round(t(1e-5)):e<u?t(e):Math.round(t(u-1e-5)),a}const u=Math.floor(this.loops()),h=s&&u%2==0;return a=u+(h&&!o||o&&h?t:1-t),this.loops(a)}progress(t){return null==t?Math.min(1,this._time/this.duration()):this.time(t*this.duration())}queue(t,e,n,r){return this._queue.push({initialiser:t||_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 An(i.from()).valueOf();Object.assign(n,e),i.from(n)}const u=new An(i.to()).valueOf();Object.assign(u,e),i.to(u),s=n,r=e}),this._rememberMorpher(t,i),this},zoom(t,e){if(this._tryRetarget("zoom",t,e))return this;let n=new kn(this._stepper).to(new Se(t));return this.queue(function(){n=n.from(this.element().zoom())},function(t){return this.element().zoom(n.at(t),e),n.done()},function(t,r){e=r,n.to(t)}),this._rememberMorpher("zoom",n),this},transform(t,e,n){if(e=t.relative||e,this._isDeclarative&&!e&&this._tryRetarget("transform",t))return this;const r=oe.isMatrixLike(t);n=null!=t.affine?t.affine:null!=n?n:!r;const i=new kn(this._stepper).type(n?Mn:oe);let s,o,a,u,h;return this.queue(function(){o=o||this.element(),s=s||wt(t,o),h=new oe(e?void 0:o),o._addRunner(this),e||o._clearTransformRunnersBefore(this)},function(l){e||this.clearTransform();const{x:c,y:f}=new ie(s).transform(o._currentTransform(this));let d=new oe({...t,origin:[c,f]}),p=this._isDeclarative&&a?a:h;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&&u&&(p.rotate=u)),i.from(p),i.to(d);const m=i.at(l);return u=m.rotate,a=new oe(m),this.addTransform(a),o._addRunner(this),i.done()},function(e){(e.origin||"center").toString()!==(t.origin||"center").toString()&&(s=wt(e,o)),t={...e,origin:s}},!0),this._isDeclarative&&this._rememberMorpher("transform",i),this},x(t){return this._queueNumber("x",t)},y(t){return this._queueNumber("y",t)},ax(t){return this._queueNumber("ax",t)},ay(t){return this._queueNumber("ay",t)},dx(t=0){return this._queueNumberDelta("x",t)},dy(t=0){return this._queueNumberDelta("y",t)},dmove(t,e){return this.dx(t).dy(e)},_queueNumberDelta(t,e){if(e=new Se(e),this._tryRetarget(t,e))return this;const n=new kn(this._stepper).to(e);let r=null;return this.queue(function(){r=this.element()[t](),n.from(r),n.to(r+e)},function(e){return this.element()[t](n.at(e)),n.done()},function(t){n.to(r+new Se(t))}),this._rememberMorpher(t,n),this},_queueObject(t,e){if(this._tryRetarget(t,e))return this;const n=new kn(this._stepper).to(e);return this.queue(function(){n.from(this.element()[t]())},function(e){return this.element()[t](n.at(e)),n.done()}),this._rememberMorpher(t,n),this},_queueNumber(t,e){return this._queueObject(t,new Se(e))},cx(t){return this._queueNumber("cx",t)},cy(t){return this._queueNumber("cy",t)},move(t,e){return this.x(t).y(e)},amove(t,e){return this.ax(t).ay(e)},center(t,e){return this.cx(t).cy(e)},size(t,e){let n;return t&&e||(n=this._element.bbox()),t||(t=n.width/n.height*e),e||(e=n.height/n.width*t),this.width(t).height(e)},width(t){return this._queueNumber("width",t)},height(t){return this._queueNumber("height",t)},plot(t,e,n,r){if(4===arguments.length)return this.plot([t,e,n,r]);if(this._tryRetarget("plot",t))return this;const i=new kn(this._stepper).type(this._element.MorphArray).to(t);return this.queue(function(){i.from(this._element.array())},function(t){return this._element.plot(i.at(t)),i.done()}),this._rememberMorpher("plot",i),this},leading(t){return this._queueNumber("leading",t)},viewbox(t,e,n,r){return this._queueObject("viewbox",new he(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:We,ry:Pe,from:Ge,to:He}),Pt(Gn,"Runner");class Zn extends Oe{constructor(t,e=t){super(Lt("svg",t),e),this.namespace()}defs(){return this.isRoot()?jt(this.node.querySelector("defs"))||this.put(new Le):this.root().defs()}isRoot(){return!this.node.parentNode||!(this.node.parentNode instanceof Mt.window.SVGElement)&&"#document-fragment"!==this.node.parentNode.nodeName}namespace(){return this.isRoot()?this.attr({xmlns:Nt,version:"1.1"}).attr("xmlns:xlink",St,kt):this.root().namespace()}removeNamespace(){return this.attr({xmlns:null,version:null}).attr("xmlns:xlink",null,kt).attr("xmlns:svgjs",null,kt)}root(){return this.isRoot()?this:super.root()}}ct({Container:{nested:zt(function(){return this.put(new Zn)})}}),Pt(Zn,"Svg",!0);class Jn extends Oe{constructor(t,e=t){super(Lt("symbol",t),e)}}function Kn(t){return!1===this._build&&this.clear(),this.node.appendChild(Mt.document.createTextNode(t)),this}function tr(){return this.node.getComputedTextLength()}function er(t,e=this.bbox()){return null==t?e.x:this.attr("x",this.attr("x")+t-e.x)}function nr(t,e=this.bbox()){return null==t?e.y:this.attr("y",this.attr("y")+t-e.y)}function rr(t,e,n=this.bbox()){return this.x(t,n).y(e,n)}function ir(t,e=this.bbox()){return null==t?e.cx:this.attr("x",this.attr("x")+t-e.cx)}function sr(t,e=this.bbox()){return null==t?e.cy:this.attr("y",this.attr("y")+t-e.cy)}function or(t,e,n=this.bbox()){return this.cx(t,n).cy(e,n)}function ar(t){return this.attr("x",t)}function ur(t){return this.attr("y",t)}function hr(t,e){return this.ax(t).ay(e)}function lr(t){return this._build=!!t,this}ct({Container:{symbol:zt(function(){return this.put(new Jn)})}}),Pt(Jn,"Symbol");class cr extends je{constructor(t,e=t){super(Lt("text",t),e),this.dom.leading=this.dom.leading??new Se(1.3),this._rebuild=!0,this._build=!1}leading(t){return null==t?this.dom.leading:(this.dom.leading=new Se(t),this.rebuild())}rebuild(t){if("boolean"==typeof t&&(this._rebuild=t),this._rebuild){const t=this;let e=0;const n=this.dom.leading;this.each(function(r){if(xt(this.node))return;const i=Mt.window.getComputedStyle(this.node).getPropertyValue("font-size"),s=n*new Se(i);this.dom.newLined&&(this.attr("x",t.attr("x")),"\n"===this.text()?e+=s:(this.attr("dy",r?s+e:0),e=0))}),this.fire("rebuild")}return this}setData(t){return this.dom=t,this.dom.leading=new Se(t.leading||1.3),this}writeDataToDom(){return _t(this,this.dom,{leading:1.3}),this}text(t){if(void 0===t){const e=this.node.childNodes;let n=0;t="";for(let r=0,i=e.length;r<i;++r)"textPath"===e[r].nodeName||xt(e[r])?0===r&&(n=r+1):(r!==n&&3!==e[r].nodeType&&!0===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()}}Rt(cr,o),ct({Container:{text:zt(function(t=""){return this.put(new cr).text(t)}),plain:zt(function(t=""){return this.put(new cr).plain(t)})}}),Pt(cr,"Text");class fr extends je{constructor(t,e=t){super(Lt("tspan",t),e),this._build=!1}dx(t){return this.attr("dx",t)}dy(t){return this.attr("dy",t)}newLine(){this.dom.newLined=!0;const t=this.parent();if(!(t instanceof cr))return this;const e=t.index(this),n=Mt.window.getComputedStyle(this.node).getPropertyValue("font-size"),r=t.dom.leading*new Se(n);return this.dy(e?r:0).attr("x",t.x())}text(t){return null==t?this.node.textContent+(this.dom.newLined?"\n":""):("function"==typeof t?(this.clear().build(!0),t.call(this,this),this.build(!1)):this.plain(t),this)}}Rt(fr,o),ct({Tspan:{tspan:zt(function(t=""){const e=new fr;return this._build||this.clear(),this.put(e).text(t)})},Text:{newLine:function(t=""){return this.tspan(t).newLine()}}}),Pt(fr,"Tspan");class dr extends je{constructor(t,e=t){super(Lt("circle",t),e)}radius(t){return this.attr("r",t)}rx(t){return this.attr("r",t)}ry(t){return this.rx(t)}size(t){return this.radius(new Se(t).divide(2))}}Rt(dr,{x:De,y:Be,cx:Ie,cy:Re,width:ze,height:Fe}),ct({Container:{circle:zt(function(t=0){return this.put(new dr).size(t).move(0,0)})}}),Pt(dr,"Circle");class pr extends Oe{constructor(t,e=t){super(Lt("clipPath",t),e)}remove(){return this.targets().forEach(function(t){t.unclip()}),super.remove()}targets(){return pe("svg [clip-path*="+this.id()+"]")}}ct({Container:{clip:zt(function(){return this.defs().put(new pr)})},Element:{clipper(){return this.reference("clip-path")},clipWith(t){const e=t instanceof pr?t:this.parent().clip().add(t);return this.attr("clip-path","url(#"+e.id()+")")},unclip(){return this.attr("clip-path",null)}}}),Pt(pr,"ClipPath");class mr extends Ee{constructor(t,e=t){super(Lt("foreignObject",t),e)}}function gr(t,e){return this.children().forEach(n=>{let r;try{r=n.node instanceof Mt.window.SVGSVGElement?new he(n.attr(["x","y","width","height"])):n.bbox()}catch(t){return}const i=new oe(n),s=i.translate(t,e).transform(i.inverse()),o=new ie(r.x,r.y).transform(s);n.move(o.x,o.y)}),this}function yr(t){return this.dmove(t,0)}function vr(t){return this.dmove(0,t)}function wr(t,e=this.bbox()){return null==t?e.height:this.size(e.width,t,e)}function br(t=0,e=0,n=this.bbox()){const r=t-n.x,i=e-n.y;return this.dmove(r,i)}function xr(t,e,n=this.bbox()){const r=vt(this,t,e,n),i=r.width/n.width,s=r.height/n.height;return this.children().forEach(t=>{const e=new ie(n).transform(new oe(t).inverse());t.scale(i,s,e.x,e.y)}),this}function _r(t,e=this.bbox()){return null==t?e.width:this.size(t,e.height,e)}function Nr(t,e=this.bbox()){return null==t?e.x:this.move(t,e.y,e)}function kr(t,e=this.bbox()){return null==t?e.y:this.move(e.x,t,e)}ct({Container:{foreignObject:zt(function(t,e){return this.put(new mr).size(t,e)})}}),Pt(mr,"ForeignObject");class Sr extends Oe{constructor(t,e=t){super(Lt("g",t),e)}}Rt(Sr,a),ct({Container:{group:zt(function(){return this.put(new Sr)})}}),Pt(Sr,"G");class Mr extends Oe{constructor(t,e=t){super(Lt("a",t),e)}target(t){return this.attr("target",t)}to(t){return this.attr("href",t,St)}}Rt(Mr,a),ct({Container:{link:zt(function(t){return this.put(new Mr).to(t)})},Element:{unlink(){const t=this.linker();if(!t)return this;const e=t.parent();if(!e)return this.remove();const n=e.index(t);return e.add(this,n),t.remove(),this},linkTo(t){let e=this.linker();return e||(e=new Mr,this.wrap(e)),"function"==typeof t?t.call(e,e):e.to(t),this},linker(){const t=this.parent();return t&&"a"===t.node.nodeName.toLowerCase()?t:null}}}),Pt(Mr,"A");class Cr extends Oe{constructor(t,e=t){super(Lt("mask",t),e)}remove(){return this.targets().forEach(function(t){t.unmask()}),super.remove()}targets(){return pe("svg [mask*="+this.id()+"]")}}ct({Container:{mask:zt(function(){return this.defs().put(new Cr)})},Element:{masker(){return this.reference("mask")},maskWith(t){const e=t instanceof Cr?t:this.parent().mask().add(t);return this.attr("mask","url(#"+e.id()+")")},unmask(){return this.attr("mask",null)}}}),Pt(Cr,"Mask");class Ar extends Ee{constructor(t,e=t){super(Lt("stop",t),e)}update(t){return("number"==typeof t||t instanceof Se)&&(t={offset:arguments[0],color:arguments[1],opacity:arguments[2]}),null!=t.opacity&&this.attr("stop-opacity",t.opacity),null!=t.color&&this.attr("stop-color",t.color),null!=t.offset&&this.attr("offset",new Se(t.offset)),this}}ct({Gradient:{stop:function(t,e,n){return this.put(new Ar).update(t,e,n)}}}),Pt(Ar,"Stop");class Er extends Ee{constructor(t,e=t){super(Lt("style",t),e)}addText(t=""){return this.node.textContent+=t,this}font(t,e,n={}){return this.rule("@font-face",{fontFamily:t,src:e,...n})}rule(t,e){return this.addText(function(t,e){if(!t)return"";if(!e)return t;let n=t+"{";for(const t in e)n+=gt(t)+":"+e[t]+";";return n+="}",n}(t,e))}}ct("Dom",{style(t,e){return this.put(new Er).rule(t,e)},fontface(t,e,n){return this.put(new Er).font(t,e,n)}}),Pt(Er,"Style");class Tr extends cr{constructor(t,e=t){super(Lt("textPath",t),e)}array(){const t=this.track();return t?t.array():null}plot(t){const e=this.track();let n=null;return e&&(n=e.plot(t)),null==t?n:this}track(){return this.reference("href")}}ct({Container:{textPath:zt(function(t,e){return t instanceof cr||(t=this.text(t)),t.path(e)})},Text:{path:zt(function(t,e=!0){const n=new Tr;let r;if(t instanceof Tn||(t=this.defs().path(t)),n.attr("href","#"+t,St),e)for(;r=this.node.firstChild;)n.node.appendChild(r);return this.put(n)}),textPath(){return this.findOne("textPath")}},Path:{text:zt(function(t){return t instanceof cr||(t=(new cr).addTo(this.parent()).text(t)),t.path(this)}),targets(){return pe("svg textPath").filter(t=>(t.attr("href")||"").includes(this.id()))}}}),Tr.prototype.MorphArray=_n,Pt(Tr,"TextPath");class Or extends je{constructor(t,e=t){super(Lt("use",t),e)}use(t,e){return this.attr("href",(e||"")+"#"+t,St)}}ct({Container:{use:zt(function(t,e){return this.put(new Or).use(t,e)})}}),Pt(Or,"Use"),Rt([Zn,Jn,$e,Ye,sn],ft("viewbox")),Rt([rn,Bn,Dn,Tn],ft("marker")),Rt(cr,ft("Text")),Rt(Tn,ft("Path")),Rt(Le,ft("Defs")),Rt([cr,fr],ft("Tspan")),Rt([In,qe,Xe,Gn],ft("radius")),Rt(xe,ft("EventTarget")),Rt(Ae,ft("Dom")),Rt(Ee,ft("Element")),Rt(je,ft("Shape")),Rt([Oe,Ve],ft("Container")),Rt(Xe,ft("Gradient")),Rt(Gn,ft("Runner")),fe.extend([...new Set(lt)]),function(t=[]){En.push(...[].concat(t))}([Se,re,he,oe,ke,Ze,_n,ie]),Rt(En,{to(t){return(new kn).type(this.constructor).from(this.toArray()).to(t)},fromArray(t){return this.init(t),this},toConsumable(){return this.toArray()},morph(t,e,n,r,i){return this.fromArray(t.map(function(t,s){return r.step(t,e[s],n,i[s],i)}))}});var Lr,jr,Wr,Pr,Dr,Br,Ir,Rr,zr,Fr,qr,Ur,Vr,Gr,Hr,Xr,Yr,$r,Qr,Zr,Jr,Kr,ti,ei,ni,ri,ii,si,oi,ai,ui,hi,li,ci,fi,di,pi,mi,gi,yi,vi,wi,bi,xi,_i,Ni,ki,Si,Mi,Ci,Ai,Ei,Ti,Oi,Li,ji,Wi,Pi,Di,Bi,Ii,Ri,zi,Fi,qi,Ui,Vi,Gi,Hi,Xi,Yi,$i,Qi,Zi,Ji,Ki,ts,es,ns,rs,is,ss,os,as,us,hs,ls,cs,fs,ds,ps,ms,gs,ys,vs,ws,bs,xs=n(169),_s=n(726),Ns=n(692),ks=function(t,e,n,r,i){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?i.call(t,n):i?i.value=n:e.set(t,n),n},Ss=function(t,e,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!r:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(t):r?r.value:e.get(t)};class Ms{constructor(t){Lr.add(this),jr.set(this,void 0),this.domNode=document.createElement("div"),Wr.set(this,new Cs),Pr.set(this,document.createElement("div")),Dr.set(this,void 0),Br.set(this,void 0),Ir.set(this,document.createElement("div")),Rr.set(this,void 0),zr.set(this,void 0),Fr.set(this,void 0),qr.set(this,void 0),Ur.set(this,void 0),Vr.set(this,void 0),Gr.set(this,void 0),Hr.set(this,void 0),Xr.set(this,void 0),Yr.set(this,void 0),$r.set(this,void 0),Qr.set(this,void 0),ks(this,jr,t,"f"),this.domNode.classList.add(_.lf),Ss(this,Wr,"f").domNode.addEventListener("click",()=>this.domNode.classList.toggle(_.ho)),this.domNode.append(Ss(this,Wr,"f").domNode),Ss(this,Pr,"f").classList.add(_.Qs),this.domNode.append(Ss(this,Pr,"f")),ks(this,Dr,new As(t),"f"),Ss(this,Pr,"f").append(Ss(this,Dr,"f").domNode),ks(this,Br,new Es(t),"f"),Ss(this,Pr,"f").append(Ss(this,Br,"f").domNode),Ss(this,Ir,"f").classList.add(_.eB),Ss(this,Pr,"f").append(Ss(this,Ir,"f")),t.selectedBases.addEventListener("change",()=>{document.body.contains(this.domNode)&&([...t.selectedBases].length>0?Ss(this,Lr,"m",Jr).call(this):Ss(this,Lr,"m",Kr).call(this))}),ks(this,Rr,new Ts(t),"f"),Ss(this,Ir,"f").append(Ss(this,Rr,"f").domNode),ks(this,zr,new Os(t),"f"),Ss(this,Ir,"f").append(Ss(this,zr,"f").domNode),ks(this,Fr,new Ls(t),"f"),Ss(this,Ir,"f").append(Ss(this,Fr,"f").domNode),ks(this,qr,new js(t),"f"),Ss(this,Ir,"f").append(Ss(this,qr,"f").domNode),ks(this,Ur,new Ws(t),"f"),Ss(this,Ir,"f").append(Ss(this,Ur,"f").domNode),ks(this,Vr,new Ps(t),"f"),Ss(this,Ir,"f").append(Ss(this,Vr,"f").domNode),ks(this,Gr,new Ds(t),"f"),Ss(this,Ir,"f").append(Ss(this,Gr,"f").domNode),ks(this,Hr,new Bs(t),"f"),Ss(this,Ir,"f").append(Ss(this,Hr,"f").domNode),ks(this,Xr,new Is(t),"f"),Ss(this,Ir,"f").append(Ss(this,Xr,"f").domNode),ks(this,Yr,new Fs(t),"f"),Ss(this,Ir,"f").append(Ss(this,Yr,"f").domNode),ks(this,$r,new qs(t),"f"),Ss(this,Ir,"f").append(Ss(this,$r,"f").domNode),ks(this,Qr,new Us(t),"f"),Ss(this,Ir,"f").append(Ss(this,Qr,"f").domNode)}refresh(){Ss(this,Lr,"a",Zr).forEach(t=>t.refresh()),[...Ss(this,jr,"f").selectedBases].length>0?Ss(this,Lr,"m",Jr).call(this):Ss(this,Lr,"m",Kr).call(this)}}jr=new WeakMap,Wr=new WeakMap,Pr=new WeakMap,Dr=new WeakMap,Br=new WeakMap,Ir=new WeakMap,Rr=new WeakMap,zr=new WeakMap,Fr=new WeakMap,qr=new WeakMap,Ur=new WeakMap,Vr=new WeakMap,Gr=new WeakMap,Hr=new WeakMap,Xr=new WeakMap,Yr=new WeakMap,$r=new WeakMap,Qr=new WeakMap,Lr=new WeakSet,Zr=function(){return[Ss(this,Dr,"f"),Ss(this,Br,"f"),Ss(this,Rr,"f"),Ss(this,zr,"f"),Ss(this,Fr,"f"),Ss(this,qr,"f"),Ss(this,Ur,"f"),Ss(this,Vr,"f"),Ss(this,Gr,"f"),Ss(this,Hr,"f"),Ss(this,Xr,"f"),Ss(this,Yr,"f"),Ss(this,$r,"f"),Ss(this,Qr,"f")]},Jr=function(){Ss(this,Ir,"f").style.display="block"},Kr=function(){Ss(this,Ir,"f").style.display="none"};class Cs{constructor(){this.domNode=document.createElement("div"),ti.set(this,document.createElementNS("http://www.w3.org/2000/svg","svg")),ei.set(this,document.createElement("p")),this.domNode.classList.add(_.wx),Ss(this,ti,"f").classList.add(_.m9),Ss(this,ti,"f").setAttribute("viewBox","0 0 6 10"),Ss(this,ti,"f").setAttribute("width","6"),Ss(this,ti,"f").setAttribute("height","10"),Ss(this,ti,"f").innerHTML='\n <path\n d="M 1 1 L 5 5 L 1 9"\n stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"\n fill="none"\n ></path>\n ',this.domNode.append(Ss(this,ti,"f")),Ss(this,ei,"f").classList.add(_.aW),Ss(this,ei,"f").textContent="Bases",this.domNode.append(Ss(this,ei,"f"))}}ti=new WeakMap,ei=new WeakMap;class As{constructor(t){ni.set(this,void 0),this.domNode=document.createElement("p"),ri.set(this,document.createElement("span")),ii.set(this,document.createElement("span")),ks(this,ni,t,"f"),this.domNode.classList.add(_.IU),Ss(this,ri,"f").style.fontWeight="700",this.domNode.append(Ss(this,ri,"f"),Ss(this,ii,"f")),Ss(this,ni,"f").selectedBases.addEventListener("change",()=>document.body.contains(this.domNode)?this.refresh():{}),this.refresh()}refresh(){let t=[...Ss(this,ni,"f").selectedBases].length;Ss(this,ri,"f").textContent=`${t}`,Ss(this,ii,"f").textContent=1==t?" base is selected.":" bases are selected."}}ni=new WeakMap,ri=new WeakMap,ii=new WeakMap;class Es{constructor(t){si.add(this),oi.set(this,void 0),this.domNode=document.createElement("div"),ai.set(this,new A),ui.set(this,document.createElement("div")),hi.set(this,{All:new P("All",()=>Ss(this,si,"m",fi).call(this)),None:new P("None",()=>Ss(this,si,"m",di).call(this)),A:new P("A",()=>Ss(this,si,"m",pi).call(this,"A")),U:new P("U",()=>Ss(this,si,"m",pi).call(this,"U")),G:new P("G",()=>Ss(this,si,"m",pi).call(this,"G")),C:new P("C",()=>Ss(this,si,"m",pi).call(this,"C")),T:new P("T",()=>Ss(this,si,"m",pi).call(this,"T")),a:new P("a",()=>Ss(this,si,"m",pi).call(this,"a")),u:new P("u",()=>Ss(this,si,"m",pi).call(this,"u")),g:new P("g",()=>Ss(this,si,"m",pi).call(this,"g")),c:new P("c",()=>Ss(this,si,"m",pi).call(this,"c")),t:new P("t",()=>Ss(this,si,"m",pi).call(this,"t")),Outlined:new P("Outlined",()=>Ss(this,si,"m",mi).call(this)),Paired:new P("Paired",()=>Ss(this,si,"m",gi).call(this)),Unpaired:new P("Unpaired",()=>Ss(this,si,"m",yi).call(this))}),li.set(this,void 0),ks(this,oi,t,"f"),this.domNode.classList.add(_.vw),Ss(this,ai,"f").textContent="Select:",Ss(this,ai,"f").domNode.addEventListener("click",()=>Ss(this,si,"m",ci).call(this)),this.domNode.append(Ss(this,ai,"f").domNode);let e=document.createElement("div");Ns(e).css({marginTop:"1.5px",display:"flex",flexDirection:"column",gap:"6px"}),this.domNode.append(e);let n=document.createElement("div");Ns(n).css({display:"flex",flexDirection:"row",gap:"23px"}),n.append(...["All","None"].map(t=>Ss(this,hi,"f")[t].domNode)),e.append(n),Ns(Ss(this,ui,"f")).css({display:"flex",flexDirection:"column",gap:"6px"}),e.append(Ss(this,ui,"f")),Ss(this,ui,"f").style.display="none",Ss(this,ai,"f").caret.pointRight();let r=document.createElement("div");Ns(r).css({display:"flex",flexDirection:"row",gap:"17px"}),r.append(...["A","U","G","C","T"].map(t=>Ss(this,hi,"f")[t].domNode)),Ss(this,ui,"f").append(r);let i=document.createElement("div");Ns(i).css({display:"flex",flexDirection:"row",gap:"18px"}),i.append(...["a","u","g","c","t"].map(t=>Ss(this,hi,"f")[t].domNode)),Ss(this,ui,"f").append(i),Ss(this,ui,"f").append(Ss(this,hi,"f").Outlined.domNode);let s=document.createElement("div");Ns(s).css({display:"flex",flexDirection:"row",gap:"18px"}),s.append(...["Paired","Unpaired"].map(t=>Ss(this,hi,"f")[t].domNode)),Ss(this,ui,"f").append(s),t.selectedBases.addEventListener("change",()=>document.body.contains(this.domNode)?this.refresh():{}),t.selectedOutlines.addEventListener("change",()=>document.body.contains(this.domNode)?this.refresh():{}),ks(this,li,new MutationObserver(()=>document.body.contains(this.domNode)?this.refresh():{}),"f"),Ss(this,li,"f").observe(t.drawing.domNode,{childList:!0,subtree:!0}),this.refresh()}refresh(){let t=[...Ss(this,oi,"f").drawing.bases],e=new Set([...Ss(this,oi,"f").drawing.secondaryBonds].flatMap(t=>[t.base1,t.base2])),n=t.filter(t=>!e.has(t)),r=new Set(Ss(this,oi,"f").selectedBases),i=[...Ss(this,oi,"f").selectedOutlines];0==t.length?(Ss(this,hi,"f").All.disable(),Ss(this,hi,"f").All.tooltip.textContent="There are no bases in the drawing."):r.size==t.length?(Ss(this,hi,"f").All.disable(),Ss(this,hi,"f").All.tooltip.textContent="All bases are already selected."):(Ss(this,hi,"f").All.enable(),Ss(this,hi,"f").All.tooltip.textContent="Select all bases."),0==r.size?(Ss(this,hi,"f").None.disable(),Ss(this,hi,"f").None.tooltip.textContent="No bases are selected."):(Ss(this,hi,"f").None.enable(),Ss(this,hi,"f").None.tooltip.textContent="Deselect all bases."),["A","U","G","C","T","a","u","g","c","t"].forEach(e=>{let n=t.filter(t=>t.textContent==e),i=Ss(this,hi,"f")[e];0==n.length?(i.disable(),i.tooltip.textContent=`No bases have the letter "${e}".`):n.every(t=>r.has(t))?(i.disable(),i.tooltip.textContent=`All bases with the letter "${e}" are already selected.`):(i.enable(),i.tooltip.textContent=`Select all bases with the letter "${e}".`)}),0==i.length?(Ss(this,hi,"f").Outlined.disable(),Ss(this,hi,"f").Outlined.tooltip.textContent="No outlines are selected."):i.map(t=>t.owner).every(t=>r.has(t))?(Ss(this,hi,"f").Outlined.disable(),Ss(this,hi,"f").Outlined.tooltip.textContent="All bases outlined by the selected outlines are already selected."):(Ss(this,hi,"f").Outlined.enable(),Ss(this,hi,"f").Outlined.tooltip.textContent="Select bases outlined by the selected outlines."),0==e.size?(Ss(this,hi,"f").Paired.disable(),Ss(this,hi,"f").Paired.tooltip.textContent="There are no paired bases in the drawing."):[...e].every(t=>r.has(t))?(Ss(this,hi,"f").Paired.disable(),Ss(this,hi,"f").Paired.tooltip.textContent="All paired bases are already selected."):(Ss(this,hi,"f").Paired.enable(),Ss(this,hi,"f").Paired.tooltip.textContent="Select all paired bases."),0==n.length?(Ss(this,hi,"f").Unpaired.disable(),Ss(this,hi,"f").Unpaired.tooltip.textContent="There are no unpaired bases in the drawing."):n.every(t=>r.has(t))?(Ss(this,hi,"f").Unpaired.disable(),Ss(this,hi,"f").Unpaired.tooltip.textContent="All unpaired bases are already selected."):(Ss(this,hi,"f").Unpaired.enable(),Ss(this,hi,"f").Unpaired.tooltip.textContent="Select all unpaired bases.")}}oi=new WeakMap,ai=new WeakMap,ui=new WeakMap,hi=new WeakMap,li=new WeakMap,si=new WeakSet,ci=function(){let t="none"!=Ss(this,ui,"f").style.display;Ss(this,ui,"f").style.display=t?"none":"flex",t?Ss(this,ai,"f").caret.pointRight():Ss(this,ai,"f").caret.pointDown()},fi=function(){Ss(this,oi,"f").addToSelected([...Ss(this,oi,"f").drawing.bases])},di=function(){Ss(this,oi,"f").removeFromSelected([...Ss(this,oi,"f").drawing.bases])},pi=function(t){Ss(this,oi,"f").addToSelected([...Ss(this,oi,"f").drawing.bases].filter(e=>e.domNode.textContent==t))},mi=function(){Ss(this,oi,"f").addToSelected([...Ss(this,oi,"f").selectedOutlines].map(t=>t.owner))},gi=function(){Ss(this,oi,"f").addToSelected([...Ss(this,oi,"f").drawing.secondaryBonds].flatMap(t=>[t.base1,t.base2]))},yi=function(){let t=new Set([...Ss(this,oi,"f").drawing.secondaryBonds].flatMap(t=>[t.base1,t.base2]));Ss(this,oi,"f").addToSelected([...Ss(this,oi,"f").drawing.bases].filter(e=>!t.has(e)))};class Ts{constructor(t){vi.add(this),wi.set(this,void 0),this.domNode=document.createElement("div"),bi.set(this,document.createElement("p")),xi.set(this,new P),_i.set(this,new P),ks(this,wi,t,"f"),this.domNode.classList.add(_.Te),Ss(this,bi,"f").classList.add(_.QB),Ss(this,bi,"f").textContent="Send to:",this.domNode.append(Ss(this,bi,"f")),Ss(this,xi,"f").domNode.addEventListener("click",()=>Ss(this,vi,"m",Ni).call(this)),Ss(this,xi,"f").textContent="Front",Ss(this,xi,"f").domNode.style.marginLeft="26px",this.domNode.append(Ss(this,xi,"f").domNode),Ss(this,_i,"f").domNode.addEventListener("click",()=>Ss(this,vi,"m",ki).call(this)),Ss(this,_i,"f").textContent="Back",Ss(this,_i,"f").domNode.style.marginLeft="28px",this.domNode.append(Ss(this,_i,"f").domNode),t.selectedBases.addEventListener("change",()=>document.body.contains(this.domNode)?this.refresh():{}),this.refresh()}refresh(){Ss(this,vi,"m",Si).call(this),Ss(this,vi,"m",Mi).call(this)}}wi=new WeakMap,bi=new WeakMap,xi=new WeakMap,_i=new WeakMap,vi=new WeakSet,Ni=function(){let t=[...Ss(this,wi,"f").selectedBases];0!=t.length?(Ss(this,wi,"f").pushUndoStack(),t.forEach(t=>(0,_s.bringToFront)(t.domNode))):this.refresh()},ki=function(){let t=[...Ss(this,wi,"f").selectedBases];0!=t.length?(Ss(this,wi,"f").pushUndoStack(),t.forEach(t=>(0,_s.sendToBack)(t.domNode))):this.refresh()},Si=function(){0==[...Ss(this,wi,"f").selectedBases].length?(Ss(this,xi,"f").disable(),Ss(this,xi,"f").tooltip.textContent="No bases are selected."):(Ss(this,xi,"f").enable(),Ss(this,xi,"f").tooltip.textContent="Bring the selected bases to the front.")},Mi=function(){0==[...Ss(this,wi,"f").selectedBases].length?(Ss(this,_i,"f").disable(),Ss(this,_i,"f").tooltip.textContent="No bases are selected."):(Ss(this,_i,"f").enable(),Ss(this,_i,"f").tooltip.textContent="Send the selected bases to the back.")};class Os{constructor(t){Ci.add(this),Ai.set(this,void 0),Ei.set(this,new z({onSubmit:()=>Ss(this,Ci,"m",Oi).call(this)})),Ti.set(this,void 0),ks(this,Ai,t,"f"),ks(this,Ti,new Q("Text Content",Ss(this,Ei,"f").domNode),"f"),Ss(this,Ti,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/API/Node/textContent",this.domNode.style.marginTop="23px",this.domNode.style.alignSelf="start",Ss(this,Ai,"f").selectedBases.addEventListener("change",()=>document.body.contains(this.domNode)?this.refresh():{}),new MutationObserver(()=>document.body.contains(this.domNode)?this.refresh():{}).observe(Ss(this,Ai,"f").drawing.domNode,{characterData:!0,subtree:!0}),this.refresh()}get domNode(){return Ss(this,Ti,"f").domNode}refresh(){let t=[...Ss(this,Ai,"f").selectedBases];try{Ss(this,Ei,"f").domNode.value=(0,xs.consensusValue)(t.map(t=>{var e;return null!==(e=t.textContent)&&void 0!==e?e:""}))}catch(t){Ss(this,Ei,"f").domNode.value=""}}}Ai=new WeakMap,Ei=new WeakMap,Ti=new WeakMap,Ci=new WeakSet,Oi=function(){var t;let e=null!==(t=Ss(this,Ei,"f").domNode.value)&&void 0!==t?t:"";if(e=e.trim(),!e)return void this.refresh();let n=[...Ss(this,Ai,"f").selectedBases];0==n.length||n.every(t=>t.textContent===e)||(Ss(this,Ai,"f").pushUndoStack(),n.forEach(t=>t.maintainingCenterPoint(()=>t.textContent=e))),this.refresh()};class Ls{constructor(t){Li.set(this,void 0),ji.set(this,void 0),Wi.set(this,void 0),ks(this,Li,t,"f"),ks(this,ji,new Hs(t,"fill"),"f"),ks(this,Wi,new Q("Fill",Ss(this,ji,"f").domNode),"f"),Ss(this,Wi,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/fill",Ns(this.domNode).css({marginTop:"10px",alignSelf:"start"}),this.refresh()}get domNode(){return Ss(this,Wi,"f").domNode}refresh(){Ss(this,ji,"f").refresh()}}Li=new WeakMap,ji=new WeakMap,Wi=new WeakMap;class js{constructor(t){Pi.add(this),Di.set(this,void 0),Bi.set(this,new st),Ii.set(this,void 0),Ri.set(this,void 0),zi.set(this,void 0),ks(this,Di,t,"f"),Ss(this,Bi,"f").domNode.addEventListener("input",()=>Ss(this,Pi,"m",Fi).call(this)),ks(this,Ii,new ut("Fill Color",Ss(this,Bi,"f").domNode),"f"),Ns(this.domNode).css({marginTop:"12px",alignSelf:"start"}),Ss(this,Di,"f").selectedBases.addEventListener("change",()=>ks(this,Ri,void 0,"f")),Ss(this,Bi,"f").domNode.addEventListener("focus",()=>ks(this,zi,Ss(this,Bi,"f").domNode.value,"f")),Ss(this,Di,"f").selectedBases.addEventListener("change",()=>document.body.contains(this.domNode)?this.refresh():{}),new MutationObserver(()=>document.body.contains(this.domNode)?this.refresh():{}).observe(Ss(this,Di,"f").drawing.domNode,{attributes:!0,attributeFilter:["fill"],subtree:!0}),this.refresh()}get domNode(){return Ss(this,Ii,"f").domNode}refresh(){let t=[...Ss(this,Di,"f").selectedBases];if(0!=t.length)try{let e=t.map(t=>window.getComputedStyle(t.domNode).fill).map(t=>new re(t));Ss(this,Bi,"f").domNode.value=(0,xs.consensusValue)(e.map(t=>t.toHex().toLowerCase()))}catch(t){Ss(this,Bi,"f").domNode.value="#000000"}else Ss(this,Bi,"f").domNode.value="#000000"}}Di=new WeakMap,Bi=new WeakMap,Ii=new WeakMap,Ri=new WeakMap,zi=new WeakMap,Pi=new WeakSet,Fi=function(){if(Ss(this,Bi,"f").domNode.value===Ss(this,zi,"f"))return;let t=[...Ss(this,Di,"f").selectedBases];0!=t.length?(t.every(t=>{var e;return(null===(e=t.getAttribute("fill"))||void 0===e?void 0:e.toLowerCase())===Ss(this,Bi,"f").domNode.value.toLowerCase()})||((Ss(this,Di,"f").undoStack.isEmpty()||Ss(this,Di,"f").undoStack.peek()!==Ss(this,Ri,"f"))&&(Ss(this,Di,"f").pushUndoStack(),ks(this,Ri,Ss(this,Di,"f").undoStack.peek(),"f")),t.forEach(t=>t.setAttribute("fill",Ss(this,Bi,"f").domNode.value.toLowerCase()))),this.refresh()):this.refresh()};class Ws{constructor(t){qi.set(this,void 0),Ui.set(this,void 0),Vi.set(this,void 0),ks(this,qi,t,"f"),ks(this,Ui,new Hs(t,"fill-opacity"),"f"),ks(this,Vi,new Q("Fill Opacity",Ss(this,Ui,"f").domNode),"f"),Ss(this,Vi,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/fill-opacity",Ns(this.domNode).css({marginTop:"12px",alignSelf:"start"}),this.refresh()}get domNode(){return Ss(this,Vi,"f").domNode}refresh(){Ss(this,Ui,"f").refresh()}}qi=new WeakMap,Ui=new WeakMap,Vi=new WeakMap;class Ps{constructor(t){Gi.set(this,void 0),Hi.set(this,void 0),Xi.set(this,void 0),ks(this,Gi,t,"f"),ks(this,Hi,new Hs(t,"font-family"),"f"),ks(this,Xi,new Q("Font Family",Ss(this,Hi,"f").domNode),"f"),Ss(this,Xi,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/font-family",Ns(this.domNode).css({marginTop:"10px",alignSelf:"start"}),this.refresh()}get domNode(){return Ss(this,Xi,"f").domNode}refresh(){Ss(this,Hi,"f").refresh()}}Gi=new WeakMap,Hi=new WeakMap,Xi=new WeakMap;class Ds{constructor(t){Yi.set(this,void 0),$i.set(this,void 0),Qi.set(this,void 0),ks(this,Yi,t,"f"),ks(this,$i,new Hs(t,"font-size"),"f"),ks(this,Qi,new Q("Font Size",Ss(this,$i,"f").domNode),"f"),Ss(this,Qi,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/font-size",Ns(this.domNode).css({marginTop:"10px",alignSelf:"start"}),this.refresh()}get domNode(){return Ss(this,Qi,"f").domNode}refresh(){Ss(this,$i,"f").refresh()}}Yi=new WeakMap,$i=new WeakMap,Qi=new WeakMap;class Bs{constructor(t){Zi.set(this,void 0),Ji.set(this,void 0),Ki.set(this,void 0),ks(this,Zi,t,"f"),ks(this,Ji,new Hs(t,"font-weight"),"f"),ks(this,Ki,new Q("Font Weight",Ss(this,Ji,"f").domNode),"f"),Ss(this,Ki,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/font-weight",Ns(this.domNode).css({marginTop:"10px",alignSelf:"start"}),this.refresh()}get domNode(){return Ss(this,Ki,"f").domNode}refresh(){Ss(this,Ji,"f").refresh()}}Zi=new WeakMap,Ji=new WeakMap,Ki=new WeakMap;class Is{constructor(t){ts.add(this),es.set(this,void 0),ns.set(this,new K),rs.set(this,void 0),ks(this,es,t,"f"),Ss(this,ns,"f").domNode.addEventListener("change",()=>Ss(this,ts,"m",is).call(this)),ks(this,rs,new nt("Bold",Ss(this,ns,"f").domNode),"f"),Ns(this.domNode).css({marginTop:"12px",alignSelf:"start"}),Ss(this,es,"f").selectedBases.addEventListener("change",()=>document.body.contains(this.domNode)?this.refresh():{}),new MutationObserver(()=>document.body.contains(this.domNode)?this.refresh():{}).observe(Ss(this,es,"f").drawing.domNode,{attributes:!0,attributeFilter:["font-weight"],subtree:!0}),this.refresh()}get domNode(){return Ss(this,rs,"f").domNode}refresh(){let t=[...Ss(this,es,"f").selectedBases];0==t.length?Ss(this,ns,"f").domNode.checked=!1:Ss(this,ns,"f").domNode.checked=t.every(Rs)}}function Rs(t){let e=t.getAttribute("font-weight");if(null===e)return!1;let n=Number.parseFloat(e);return Number.isNaN(n)?"bold"===e.toLowerCase():n>=700}function zs(t){return!Rs(t)}es=new WeakMap,ns=new WeakMap,rs=new WeakMap,ts=new WeakSet,is=function(){let t=[...Ss(this,es,"f").selectedBases];0!=t.length?Ss(this,ns,"f").domNode.checked&&t.every(Rs)?this.refresh():Ss(this,ns,"f").domNode.checked||!t.every(zs)?(Ss(this,es,"f").pushUndoStack(),t.forEach(t=>{t.maintainingCenterPoint(()=>{Ss(this,ns,"f").domNode.checked&&zs(t)?t.setAttribute("font-weight","700"):!Ss(this,ns,"f").domNode.checked&&Rs(t)&&t.setAttribute("font-weight","400")})}),this.refresh(),Ss(this,ns,"f").domNode.blur()):this.refresh():this.refresh()};class Fs{constructor(t){ss.set(this,void 0),os.set(this,void 0),as.set(this,void 0),ks(this,ss,t,"f"),ks(this,os,new Hs(t,"font-style"),"f"),ks(this,as,new Q("Font Style",Ss(this,os,"f").domNode),"f"),Ss(this,as,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/font-style",Ns(this.domNode).css({marginTop:"12px",alignSelf:"start"}),this.refresh()}get domNode(){return Ss(this,as,"f").domNode}refresh(){Ss(this,os,"f").refresh()}}ss=new WeakMap,os=new WeakMap,as=new WeakMap;class qs{constructor(t){us.set(this,void 0),hs.set(this,void 0),ls.set(this,void 0),ks(this,us,t,"f"),ks(this,hs,new Hs(t,"text-decoration"),"f"),ks(this,ls,new Q("Text Decoration",Ss(this,hs,"f").domNode),"f"),Ss(this,ls,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/text-decoration",Ns(this.domNode).css({marginTop:"10px",alignSelf:"start"}),this.refresh()}get domNode(){return Ss(this,ls,"f").domNode}refresh(){Ss(this,hs,"f").refresh()}}us=new WeakMap,hs=new WeakMap,ls=new WeakMap;class Us{constructor(t){cs.add(this),fs.set(this,void 0),ds.set(this,new K),ps.set(this,void 0),ks(this,fs,t,"f"),Ss(this,ds,"f").domNode.addEventListener("change",()=>Ss(this,cs,"m",ms).call(this)),ks(this,ps,new nt("Underlined",Ss(this,ds,"f").domNode),"f"),Ns(this.domNode).css({marginTop:"12px",alignSelf:"start"}),Ss(this,fs,"f").selectedBases.addEventListener("change",()=>document.body.contains(this.domNode)?this.refresh():{}),new MutationObserver(()=>document.body.contains(this.domNode)?this.refresh():{}).observe(Ss(this,fs,"f").drawing.domNode,{attributes:!0,attributeFilter:["text-decoration"],subtree:!0}),this.refresh()}get domNode(){return Ss(this,ps,"f").domNode}refresh(){let t=[...Ss(this,fs,"f").selectedBases];0==t.length?Ss(this,ds,"f").domNode.checked=!1:Ss(this,ds,"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)}fs=new WeakMap,ds=new WeakMap,ps=new WeakMap,cs=new WeakSet,ms=function(){let t=[...Ss(this,fs,"f").selectedBases];0!=t.length?Ss(this,ds,"f").domNode.checked&&t.every(Vs)?this.refresh():Ss(this,ds,"f").domNode.checked||!t.every(Gs)?(Ss(this,fs,"f").pushUndoStack(),t.forEach(t=>{t.maintainingCenterPoint(()=>{Ss(this,ds,"f").domNode.checked&&Gs(t)?t.setAttribute("text-decoration","underline"):!Ss(this,ds,"f").domNode.checked&&Vs(t)&&t.setAttribute("text-decoration","")})}),this.refresh(),Ss(this,ds,"f").domNode.blur()):this.refresh():this.refresh()};class Hs{constructor(t,e){gs.add(this),ys.set(this,void 0),vs.set(this,void 0),ws.set(this,new z({onSubmit:()=>Ss(this,gs,"m",bs).call(this)})),ks(this,ys,t,"f"),ks(this,vs,e,"f"),Ss(this,ys,"f").selectedBases.addEventListener("change",()=>document.body.contains(this.domNode)?this.refresh():{}),new MutationObserver(()=>document.body.contains(this.domNode)?this.refresh():{}).observe(Ss(this,ys,"f").drawing.domNode,{attributes:!0,subtree:!0}),this.refresh()}get domNode(){return Ss(this,ws,"f").domNode}refresh(){let t=[...Ss(this,ys,"f").selectedBases];try{Ss(this,ws,"f").domNode.value=(0,xs.consensusValue)(t.map(t=>{var e;return null!==(e=t.getAttribute(Ss(this,vs,"f")))&&void 0!==e?e:""}))}catch(t){Ss(this,ws,"f").domNode.value=""}}}ys=new WeakMap,vs=new WeakMap,ws=new WeakMap,gs=new WeakSet,bs=function(){let t=Ss(this,ws,"f").domNode.value,e=[...Ss(this,ys,"f").selectedBases];0==e.length||e.every(e=>e.getAttribute(Ss(this,vs,"f"))===t)||(Ss(this,ys,"f").pushUndoStack(),e.forEach(e=>e.maintainingCenterPoint(()=>e.setAttribute(Ss(this,vs,"f"),t)))),this.refresh()};var Xs=n(924),Ys={};Ys.styleTagTransform=w(),Ys.setAttributes=m(),Ys.insert=d().bind(null,"head"),Ys.domAPI=c(),Ys.insertStyleElement=y(),h()(Xs.Ay,Ys),Xs.Ay&&Xs.Ay.locals&&Xs.Ay.locals;var $s=n(723),Qs={};Qs.styleTagTransform=w(),Qs.setAttributes=m(),Qs.insert=d().bind(null,"head"),Qs.domAPI=c(),Qs.insertStyleElement=y(),h()($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 j.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,uo,ho,lo,co,fo,po,mo,go,yo,vo,wo,bo,xo,_o,No,ko,So,Mo,Co,Ao,Eo,To,Oo,Lo,jo,Wo,Po,Do,Bo,Io,Ro,zo,Fo,qo,Uo,Vo,Go,Ho,Xo,Yo,$o,Qo,Zo,Jo,Ko,ta,ea,na,ra,ia,sa,oa,aa,ua,ha,la,ca,fa,da,pa,ma,ga,ya,va,wa,ba,xa,_a,Na,ka,Sa,Ma,Ca,Aa,Ea,Ta,Oa,La,ja,Wa,Pa,Da,Ba,Ia,Ra,za,Fa,qa,Ua,Va=function(t,e,n,r,i){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?i.call(t,n):i?i.value=n:e.set(t,n),n},Ga=function(t,e,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!r:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(t):r?r.value:e.get(t)};class Ha{constructor(t){to.add(this),eo.set(this,void 0),this.domNode=document.createElement("div"),no.set(this,new A),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),uo.set(this,void 0),ho.set(this,void 0),lo.set(this,void 0),co.set(this,void 0),fo.set(this,void 0),po.set(this,void 0),mo.set(this,void 0),go.set(this,void 0),yo.set(this,void 0),vo.set(this,void 0),wo.set(this,void 0),Va(this,eo,t,"f"),this.domNode.classList.add(Xs.qM),Ga(this,no,"f").textContent="Outlines",Ga(this,no,"f").domNode.addEventListener("click",()=>this.toggle()),this.domNode.append(Ga(this,no,"f").domNode),Ga(this,ro,"f").classList.add(Xs.Qs),this.domNode.append(Ga(this,ro,"f")),Va(this,io,new Xa(t),"f"),Ga(this,ro,"f").append(Ga(this,io,"f").domNode),Va(this,oo,new Ya(t),"f"),Ga(this,ro,"f").append(Ga(this,oo,"f").domNode),Va(this,ao,new $a(t),"f"),Ga(this,ro,"f").append(Ga(this,ao,"f").domNode),Va(this,uo,new Qa(t),"f"),Ga(this,ro,"f").append(Ga(this,uo,"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,ho,new Za(t),"f"),Ga(this,so,"f").append(Ga(this,ho,"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 tu(t),"f"),Ga(this,so,"f").append(Ga(this,fo,"f").domNode),Va(this,po,new eu(t),"f"),Ga(this,so,"f").append(Ga(this,po,"f").domNode),Va(this,mo,new nu(t),"f"),Ga(this,so,"f").append(Ga(this,mo,"f").domNode),Va(this,go,new ru(t),"f"),Ga(this,so,"f").append(Ga(this,go,"f").domNode),Va(this,yo,new iu(t),"f"),Ga(this,so,"f").append(Ga(this,yo,"f").domNode),Va(this,vo,new su(t),"f"),Ga(this,so,"f").append(Ga(this,vo,"f").domNode),Va(this,wo,new ou(t),"f"),Ga(this,so,"f").append(Ga(this,wo,"f").domNode)}isOpen(){return this.domNode.classList.contains(Xs.ho)}toggle(){this.isOpen()?(this.domNode.classList.remove(Xs.ho),Ga(this,no,"f").caret.pointRight()):(this.domNode.classList.add(Xs.ho),Ga(this,no,"f").caret.pointDown())}refresh(){Ga(this,to,"a",bo).forEach(t=>t.refresh()),[...Ga(this,eo,"f").selectedOutlines].length>0?Ga(this,to,"m",xo).call(this):Ga(this,to,"m",_o).call(this)}}eo=new WeakMap,no=new WeakMap,ro=new WeakMap,io=new WeakMap,so=new WeakMap,oo=new WeakMap,ao=new WeakMap,uo=new WeakMap,ho=new WeakMap,lo=new WeakMap,co=new WeakMap,fo=new WeakMap,po=new WeakMap,mo=new WeakMap,go=new WeakMap,yo=new WeakMap,vo=new WeakMap,wo=new WeakMap,to=new WeakSet,bo=function(){return[Ga(this,io,"f"),Ga(this,oo,"f"),Ga(this,ao,"f"),Ga(this,uo,"f"),Ga(this,ho,"f"),Ga(this,lo,"f"),Ga(this,co,"f"),Ga(this,fo,"f"),Ga(this,po,"f"),Ga(this,mo,"f"),Ga(this,go,"f"),Ga(this,yo,"f"),Ga(this,vo,"f"),Ga(this,wo,"f")]},xo=function(){Ga(this,so,"f").style.display="flex"},_o=function(){Ga(this,so,"f").style.display="none"};class Xa{constructor(t){No.set(this,void 0),this.domNode=document.createElement("p"),ko.set(this,document.createElement("span")),So.set(this,document.createElement("span")),Va(this,No,t,"f"),this.domNode.classList.add(Xs.vM),Ga(this,ko,"f").style.fontWeight="700",this.domNode.append(Ga(this,ko,"f"),Ga(this,So,"f")),Ga(this,No,"f").selectedOutlines.addEventListener("change",()=>document.body.contains(this.domNode)?this.refresh():{}),this.refresh()}refresh(){let t=[...Ga(this,No,"f").selectedOutlines].length;Ga(this,ko,"f").textContent=`${t}`,Ga(this,So,"f").textContent=1==t?" outline is selected.":" outlines are selected."}}No=new WeakMap,ko=new WeakMap,So=new WeakMap;class Ya{constructor(t){Mo.add(this),Co.set(this,void 0),this.domNode=document.createElement("div"),Ao.set(this,document.createElement("p")),Eo.set(this,new P),To.set(this,new P),Oo.set(this,new P),Lo.set(this,void 0),Va(this,Co,t,"f"),this.domNode.classList.add(Xs.VX),Ga(this,Ao,"f").classList.add(Xs.iE),Ga(this,Ao,"f").textContent="Select:",this.domNode.append(Ga(this,Ao,"f")),Ga(this,Eo,"f").domNode.addEventListener("click",()=>Ga(this,Mo,"m",jo).call(this)),Ga(this,Eo,"f").textContent="All",Ga(this,Eo,"f").domNode.style.marginLeft="20px",this.domNode.append(Ga(this,Eo,"f").domNode),Ga(this,To,"f").domNode.addEventListener("click",()=>Ga(this,Mo,"m",Wo).call(this)),Ga(this,To,"f").textContent="Outlining",Ga(this,To,"f").domNode.style.marginLeft="17px",this.domNode.append(Ga(this,To,"f").domNode),Ga(this,Oo,"f").domNode.addEventListener("click",()=>Ga(this,Mo,"m",Po).call(this)),Ga(this,Oo,"f").textContent="None",Ga(this,Oo,"f").domNode.style.marginLeft="17px",this.domNode.append(Ga(this,Oo,"f").domNode),t.selectedOutlines.addEventListener("change",()=>document.body.contains(this.domNode)?this.refresh():{}),Va(this,Lo,new MutationObserver(()=>document.body.contains(this.domNode)?this.refresh():{}),"f"),Ga(this,Lo,"f").observe(t.drawing.domNode,{childList:!0,subtree:!0}),this.refresh()}refresh(){Ga(this,Mo,"m",Do).call(this),Ga(this,Mo,"m",Bo).call(this),Ga(this,Mo,"m",Io).call(this)}}Co=new WeakMap,Ao=new WeakMap,Eo=new WeakMap,To=new WeakMap,Oo=new WeakMap,Lo=new WeakMap,Mo=new WeakSet,jo=function(){let t=[...Ga(this,Co,"f").drawing.outlines];Ga(this,Co,"f").addToSelected(t)},Wo=function(){let t=new Set(Ga(this,Co,"f").selectedBases),e=[...Ga(this,Co,"f").drawing.outlines];Ga(this,Co,"f").addToSelected(e.filter(e=>t.has(e.owner)))},Po=function(){let t=[...Ga(this,Co,"f").drawing.outlines];Ga(this,Co,"f").removeFromSelected(t)},Do=function(){let t=[...Ga(this,Co,"f").drawing.outlines],e=[...Ga(this,Co,"f").selectedOutlines];0==t.length?(Ga(this,Eo,"f").disable(),Ga(this,Eo,"f").tooltip.textContent="There are no outlines in the drawing."):e.length==t.length?(Ga(this,Eo,"f").disable(),Ga(this,Eo,"f").tooltip.textContent="All outlines are already selected."):(Ga(this,Eo,"f").enable(),Ga(this,Eo,"f").tooltip.textContent="Select all outlines.")},Bo=function(){let t=[...Ga(this,Co,"f").drawing.outlines],e=new Set(Ga(this,Co,"f").selectedBases),n=t.filter(t=>e.has(t.owner)),r=new Set(Ga(this,Co,"f").selectedOutlines);0==e.size?(Ga(this,To,"f").disable(),Ga(this,To,"f").tooltip.textContent="No bases are selected."):0==n.length?(Ga(this,To,"f").disable(),Ga(this,To,"f").tooltip.textContent="No selected bases are outlined."):n.every(t=>r.has(t))?(Ga(this,To,"f").disable(),Ga(this,To,"f").tooltip.textContent="All outlines outlining the selected bases are already selected."):(Ga(this,To,"f").enable(),Ga(this,To,"f").tooltip.textContent="Select outlines outlining the selected bases.")},Io=function(){0==[...Ga(this,Co,"f").selectedOutlines].length?(Ga(this,Oo,"f").disable(),Ga(this,Oo,"f").tooltip.textContent="No outlines are selected."):(Ga(this,Oo,"f").enable(),Ga(this,Oo,"f").tooltip.textContent="Deselect all outlines.")};class $a{constructor(t){Ro.add(this),zo.set(this,void 0),this.domNode=document.createElement("div"),Fo.set(this,new Ks("Add",()=>Ga(this,Ro,"m",Ho).call(this))),qo.set(this,new K),Uo.set(this,new nt("Only add missing outlines",Ga(this,qo,"f").domNode)),Vo.set(this,void 0),Va(this,zo,t,"f"),this.domNode.style.marginTop="29px",this.domNode.style.display="flex",this.domNode.style.flexDirection="column",this.domNode.append(Ga(this,Fo,"f").domNode),Ga(this,qo,"f").domNode.checked=!0,Ga(this,Uo,"f").domNode.style.margin="10px 0px 0px 10px",Ga(this,Uo,"f").domNode.style.alignSelf="start",this.domNode.append(Ga(this,Uo,"f").domNode),t.selectedBases.addEventListener("change",()=>document.body.contains(this.domNode)?this.refresh():{}),Va(this,Vo,new MutationObserver(()=>document.body.contains(this.domNode)?this.refresh():{}),"f"),Ga(this,Vo,"f").observe(t.drawing.domNode,{childList:!0,subtree:!0}),Ga(this,qo,"f").domNode.addEventListener("change",()=>this.refresh()),this.refresh()}refresh(){let t=[...Ga(this,zo,"f").selectedBases],e=[...Ga(this,zo,"f").drawing.outlines],n=new Set(e.map(t=>t.owner)),r=t.filter(t=>!n.has(t));0==t.length?(Ga(this,Fo,"f").disable(),Ga(this,Fo,"f").tooltip.textContent="No bases are selected."):Ga(this,Ro,"a",Go)&&0==r.length?(Ga(this,Fo,"f").disable(),Ga(this,Fo,"f").tooltip.textContent="The selected bases are already outlined."):(Ga(this,Fo,"f").enable(),Ga(this,Fo,"f").tooltip.textContent="Outline the selected bases.")}}zo=new WeakMap,Fo=new WeakMap,qo=new WeakMap,Uo=new WeakMap,Vo=new WeakMap,Ro=new WeakSet,Go=function(){return Ga(this,qo,"f").domNode.checked},Ho=function(){let t=[...Ga(this,zo,"f").selectedBases];if(0==t.length)return;let e=[...Ga(this,zo,"f").drawing.outlines],n=new Set(e.map(t=>t.owner)),r=t.filter(t=>!n.has(t)),i=Ga(this,Ro,"a",Go)?r:t;if(0==i.length)return;Ga(this,zo,"f").pushUndoStack();let s=i.map(t=>Ga(this,zo,"f").drawing.outline(t));Ga(this,zo,"f").addToSelected(s),this.refresh()};class Qa{constructor(t){Xo.set(this,void 0),Yo.set(this,new Ks("Remove",()=>this.press())),Va(this,Xo,t,"f"),this.domNode.style.marginTop="18px",Ga(this,Xo,"f").selectedOutlines.addEventListener("change",()=>document.body.contains(this.domNode)?this.refresh():{}),this.refresh()}get domNode(){return Ga(this,Yo,"f").domNode}press(){let t=[...Ga(this,Xo,"f").selectedOutlines];0!=t.length?(Ga(this,Xo,"f").pushUndoStack(),t.forEach(t=>t.domNode.remove()),this.refresh()):this.refresh()}refresh(){0==[...Ga(this,Xo,"f").selectedOutlines].length?(Ga(this,Yo,"f").disable(),Ga(this,Yo,"f").tooltip.textContent="No outlines are selected."):(Ga(this,Yo,"f").enable(),Ga(this,Yo,"f").tooltip.textContent="Remove the selected outlines from the drawing.")}}Xo=new WeakMap,Yo=new WeakMap;class Za{constructor(t){$o.add(this),Qo.set(this,void 0),this.domNode=document.createElement("div"),Zo.set(this,document.createElement("p")),Jo.set(this,new P),Ko.set(this,new P),Va(this,Qo,t,"f"),this.domNode.classList.add(Xs.Te),Ga(this,Zo,"f").classList.add(Xs.QB),Ga(this,Zo,"f").textContent="Send to:",this.domNode.append(Ga(this,Zo,"f")),Ga(this,Jo,"f").domNode.addEventListener("click",()=>Ga(this,$o,"m",ta).call(this)),Ga(this,Jo,"f").textContent="Front",Ga(this,Jo,"f").domNode.style.marginLeft="24px",this.domNode.append(Ga(this,Jo,"f").domNode),Ga(this,Ko,"f").domNode.addEventListener("click",()=>Ga(this,$o,"m",ea).call(this)),Ga(this,Ko,"f").textContent="Back",Ga(this,Ko,"f").domNode.style.marginLeft="28px",this.domNode.append(Ga(this,Ko,"f").domNode),t.selectedOutlines.addEventListener("change",()=>document.body.contains(this.domNode)?this.refresh():{}),this.refresh()}refresh(){Ga(this,$o,"m",na).call(this),Ga(this,$o,"m",ra).call(this)}}Qo=new WeakMap,Zo=new WeakMap,Jo=new WeakMap,Ko=new WeakMap,$o=new WeakSet,ta=function(){let t=[...Ga(this,Qo,"f").selectedOutlines];0!=t.length?(Ga(this,Qo,"f").pushUndoStack(),t.forEach(t=>(0,_s.bringToFront)(t.domNode)),this.refresh()):this.refresh()},ea=function(){let t=[...Ga(this,Qo,"f").selectedOutlines];0!=t.length?(Ga(this,Qo,"f").pushUndoStack(),t.forEach(t=>(0,_s.sendToBack)(t.domNode)),this.refresh()):this.refresh()},na=function(){0==[...Ga(this,Qo,"f").selectedOutlines].length?(Ga(this,Jo,"f").disable(),Ga(this,Jo,"f").tooltip.textContent="No outlines are selected."):(Ga(this,Jo,"f").enable(),Ga(this,Jo,"f").tooltip.textContent="Bring the selected outlines to the front.")},ra=function(){0==[...Ga(this,Qo,"f").selectedOutlines].length?(Ga(this,Ko,"f").disable(),Ga(this,Ko,"f").tooltip.textContent="No outlines are selected."):(Ga(this,Ko,"f").enable(),Ga(this,Ko,"f").tooltip.textContent="Send selected outlines to the back.")};class Ja{constructor(t){ia.set(this,void 0),sa.set(this,void 0),oa.set(this,void 0),Va(this,ia,t,"f"),Va(this,sa,new au(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),ua.set(this,void 0),ha.set(this,void 0),Va(this,aa,t,"f"),Va(this,ua,new au(t,"fill"),"f"),Va(this,ha,new Q("Fill",Ga(this,ua,"f").domNode),"f"),Ga(this,ha,"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,ha,"f").domNode}refresh(){Ga(this,ua,"f").refresh()}}aa=new WeakMap,ua=new WeakMap,ha=new WeakMap;class tu{constructor(t){la.add(this),ca.set(this,void 0),fa.set(this,new st),da.set(this,void 0),pa.set(this,void 0),ma.set(this,void 0),Va(this,ca,t,"f"),Ga(this,fa,"f").domNode.addEventListener("input",()=>Ga(this,la,"m",ga).call(this)),Va(this,da,new ut("Fill Color",Ga(this,fa,"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,fa,"f").domNode.addEventListener("focus",()=>Va(this,ma,Ga(this,fa,"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,da,"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,fa,"f").domNode.value=(0,xs.consensusValue)(e.map(t=>t.toHex().toLowerCase()))}catch(t){Ga(this,fa,"f").domNode.value="#000000"}else Ga(this,fa,"f").domNode.value="#000000"}}ca=new WeakMap,fa=new WeakMap,da=new WeakMap,pa=new WeakMap,ma=new WeakMap,la=new WeakSet,ga=function(){if(Ga(this,fa,"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,fa,"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,fa,"f").domNode.value.toLowerCase()))),this.refresh()):this.refresh()};class eu{constructor(t){ya.set(this,void 0),va.set(this,void 0),wa.set(this,void 0),Va(this,ya,t,"f"),Va(this,va,new au(t,"fill-opacity"),"f"),Va(this,wa,new Q("Fill Opacity",Ga(this,va,"f").domNode),"f"),Ga(this,wa,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Attribute/fill-opacity",Ns(this.domNode).css({marginTop:"12px",alignSelf:"start"}),this.refresh()}get domNode(){return Ga(this,wa,"f").domNode}refresh(){Ga(this,va,"f").refresh()}}ya=new WeakMap,va=new WeakMap,wa=new WeakMap;class nu{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 au(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 ru{constructor(t){Na.add(this),ka.set(this,void 0),Sa.set(this,new st),Ma.set(this,void 0),Ca.set(this,void 0),Aa.set(this,void 0),Va(this,ka,t,"f"),Ga(this,Sa,"f").domNode.addEventListener("input",()=>Ga(this,Na,"m",Ea).call(this)),Va(this,Ma,new ut("Stroke Color",Ga(this,Sa,"f").domNode),"f"),Ns(this.domNode).css({marginTop:"12px",alignSelf:"start"}),Ga(this,ka,"f").selectedOutlines.addEventListener("change",()=>Va(this,Ca,void 0,"f")),Ga(this,Sa,"f").domNode.addEventListener("focus",()=>Va(this,Aa,Ga(this,Sa,"f").domNode.value,"f")),Ga(this,ka,"f").selectedOutlines.addEventListener("change",()=>document.body.contains(this.domNode)?this.refresh():{}),new MutationObserver(()=>document.body.contains(this.domNode)?this.refresh():{}).observe(Ga(this,ka,"f").drawing.domNode,{attributes:!0,attributeFilter:["stroke"],subtree:!0}),this.refresh()}get domNode(){return Ga(this,Ma,"f").domNode}refresh(){let t=[...Ga(this,ka,"f").selectedOutlines];if(0!=t.length)try{let e=t.map(t=>window.getComputedStyle(t.domNode).stroke).map(t=>new re(t));Ga(this,Sa,"f").domNode.value=(0,xs.consensusValue)(e.map(t=>t.toHex().toLowerCase()))}catch(t){Ga(this,Sa,"f").domNode.value="#000000"}else Ga(this,Sa,"f").domNode.value="#000000"}}ka=new WeakMap,Sa=new WeakMap,Ma=new WeakMap,Ca=new WeakMap,Aa=new WeakMap,Na=new WeakSet,Ea=function(){if(Ga(this,Sa,"f").domNode.value===Ga(this,Aa,"f"))return;let t=[...Ga(this,ka,"f").selectedOutlines];0!=t.length?(t.every(t=>{var e;return(null===(e=t.domNode.getAttribute("stroke"))||void 0===e?void 0:e.toLowerCase())===Ga(this,Sa,"f").domNode.value.toLowerCase()})||((Ga(this,ka,"f").undoStack.isEmpty()||Ga(this,ka,"f").undoStack.peek()!==Ga(this,Ca,"f"))&&(Ga(this,ka,"f").pushUndoStack(),Va(this,Ca,Ga(this,ka,"f").undoStack.peek(),"f")),t.forEach(t=>t.domNode.setAttribute("stroke",Ga(this,Sa,"f").domNode.value.toLowerCase()))),this.refresh()):this.refresh()};class iu{constructor(t){Ta.set(this,void 0),Oa.set(this,void 0),La.set(this,void 0),Va(this,Ta,t,"f"),Va(this,Oa,new au(t,"stroke-opacity"),"f"),Va(this,La,new Q("Stroke Opacity",Ga(this,Oa,"f").domNode),"f"),Ga(this,La,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Attribute/stroke-opacity",Ns(this.domNode).css({marginTop:"12px",alignSelf:"start"}),this.refresh()}get domNode(){return Ga(this,La,"f").domNode}refresh(){Ga(this,Oa,"f").refresh()}}Ta=new WeakMap,Oa=new WeakMap,La=new WeakMap;class su{constructor(t){ja.set(this,void 0),Wa.set(this,void 0),Pa.set(this,void 0),Va(this,ja,t,"f"),Va(this,Wa,new au(t,"stroke-width"),"f"),Va(this,Pa,new Q("Stroke Width",Ga(this,Wa,"f").domNode),"f"),Ga(this,Pa,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Attribute/stroke-width",Ns(this.domNode).css({marginTop:"10px",alignSelf:"start"}),this.refresh()}get domNode(){return Ga(this,Pa,"f").domNode}refresh(){Ga(this,Wa,"f").refresh()}}ja=new WeakMap,Wa=new WeakMap,Pa=new WeakMap;class ou{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 au(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 au{constructor(t,e){Ra.add(this),za.set(this,void 0),Fa.set(this,void 0),qa.set(this,new z({onSubmit:()=>Ga(this,Ra,"m",Ua).call(this)})),Va(this,za,t,"f"),Va(this,Fa,e,"f"),Ga(this,za,"f").selectedOutlines.addEventListener("change",()=>document.body.contains(this.domNode)?this.refresh():{}),new MutationObserver(()=>document.body.contains(this.domNode)?this.refresh():{}).observe(Ga(this,za,"f").drawing.domNode,{attributes:!0,subtree:!0}),this.refresh()}get domNode(){return Ga(this,qa,"f").domNode}refresh(){let t=[...Ga(this,za,"f").selectedOutlines];try{Ga(this,qa,"f").domNode.value=(0,xs.consensusValue)(t.map(t=>{var e;return null!==(e=t.domNode.getAttribute(Ga(this,Fa,"f")))&&void 0!==e?e:""}))}catch(t){Ga(this,qa,"f").domNode.value=""}}}za=new WeakMap,Fa=new WeakMap,qa=new WeakMap,Ra=new WeakSet,Ua=function(){let t=Ga(this,qa,"f").domNode.value,e=[...Ga(this,za,"f").selectedOutlines];0==e.length||e.every(e=>e.domNode.getAttribute(Ga(this,Fa,"f"))===t)||(Ga(this,za,"f").pushUndoStack(),e.forEach(e=>e.domNode.setAttribute(Ga(this,Fa,"f"),t))),this.refresh()};var uu=n(401),hu={};hu.styleTagTransform=w(),hu.setAttributes=m(),hu.insert=d().bind(null,"head"),hu.domAPI=c(),hu.insertStyleElement=y(),h()(uu.Ay,hu),uu.Ay&&uu.Ay.locals&&uu.Ay.locals;var lu=n(933),cu={};cu.styleTagTransform=w(),cu.setAttributes=m(),cu.insert=d().bind(null,"head"),cu.domAPI=c(),cu.insertStyleElement=y(),h()(lu.Ay,cu),lu.Ay&&lu.Ay.locals&&lu.Ay.locals;var fu,du,pu,mu,gu,yu,vu,wu,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){fu.add(this),du.set(this,void 0),pu.set(this,void 0),this.domNode=document.createElement("div"),mu.set(this,document.createElement("p")),this.buttons={Front:new P("Front",()=>xu(this,fu,"m",gu).call(this)),Back:new P("Back",()=>xu(this,fu,"m",yu).call(this))},vu.set(this,{refresh:[]}),bu(this,du,t,"f"),bu(this,pu,e,"f"),this.domNode.classList.add(lu.Te),xu(this,mu,"f").classList.add(lu.Pf),xu(this,mu,"f").textContent="Send to:",this.domNode.append(xu(this,mu,"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=[...xu(this,du,"f")];0==t.length?this.buttons.Front.disable():this.buttons.Front.enable(),0==t.length?this.buttons.Back.disable():this.buttons.Back.enable(),xu(this,fu,"m",wu).call(this,"refresh")}addEventListener(t,e){xu(this,vu,"f")[t].push(e)}removeEventListener(t,e){xu(this,vu,"f")[t]=xu(this,vu,"f")[t].filter(t=>t!==e)}}du=new WeakMap,pu=new WeakMap,mu=new WeakMap,vu=new WeakMap,fu=new WeakSet,gu=function(){let t=[...xu(this,du,"f")];0!=t.length?(xu(this,pu,"f").pushUndoStack(),t.forEach(t=>(0,_s.bringToFront)(t.domNode)),this.refresh()):this.refresh()},yu=function(){let t=[...xu(this,du,"f")];0!=t.length?(xu(this,pu,"f").pushUndoStack(),t.forEach(t=>(0,_s.sendToBack)(t.domNode)),this.refresh()):this.refresh()},wu=function(t){xu(this,vu,"f")[t].forEach(t=>t())};var Nu,ku,Su,Mu,Cu,Au,Eu,Tu,Ou=function(t,e,n,r,i){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?i.call(t,n):i?i.value=n:e.set(t,n),n},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 ju{constructor(t,e,n){Nu.add(this),ku.set(this,void 0),Su.set(this,void 0),Mu.set(this,void 0),Cu.set(this,new z({onSubmit:()=>Lu(this,Nu,"m",Eu).call(this)})),Au.set(this,{edit:[]}),Ou(this,ku,t,"f"),Ou(this,Su,e,"f"),Ou(this,Mu,n,"f"),e.addEventListener("change",()=>{!document.body.contains(this.domNode)||this.refresh()}),new MutationObserver(()=>{!document.body.contains(this.domNode)||this.refresh()}).observe(n.drawing.domNode,{attributes:!0,attributeFilter:[t],subtree:!0}),this.refresh()}get domNode(){return Lu(this,Cu,"f").domNode}refresh(){try{Lu(this,Cu,"f").domNode.value=(0,xs.consensusValue)([...Lu(this,Su,"f")].map(t=>{var e;return null!==(e=t.domNode.getAttribute(Lu(this,ku,"f")))&&void 0!==e?e:""}))}catch(t){Lu(this,Cu,"f").domNode.value=""}}addEventListener(t,e){Lu(this,Au,"f")[t].push(e)}}ku=new WeakMap,Su=new WeakMap,Mu=new WeakMap,Cu=new WeakMap,Au=new WeakMap,Nu=new WeakSet,Eu=function(){let t=Lu(this,Cu,"f").domNode.value,e=[...Lu(this,Su,"f")];0==e.length||e.every(e=>e.domNode.getAttribute(Lu(this,ku,"f"))===t)?this.refresh():(Lu(this,Mu,"f").pushUndoStack(),e.forEach(e=>e.domNode.setAttribute(Lu(this,ku,"f"),t)),Lu(this,Nu,"m",Tu).call(this,"edit"))},Tu=function(t){Lu(this,Au,"f")[t].forEach(t=>t())};var Wu,Pu,Du,Bu,Iu,Ru,zu,Fu,qu=n(543),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},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 Gu{constructor(t,e,n){Wu.add(this),Pu.set(this,void 0),Du.set(this,void 0),Bu.set(this,void 0),Iu.set(this,new st),Ru.set(this,void 0),zu.set(this,void 0),Uu(this,Pu,t,"f"),Uu(this,Du,e,"f"),Uu(this,Bu,n,"f"),Vu(this,Iu,"f").domNode.addEventListener("input",()=>Vu(this,Wu,"m",Fu).call(this)),e.addEventListener("change",()=>Uu(this,Ru,void 0,"f")),Vu(this,Iu,"f").domNode.addEventListener("focus",()=>Uu(this,zu,Vu(this,Iu,"f").domNode.value,"f")),e.addEventListener("change",()=>{!document.body.contains(this.domNode)||this.refresh()}),new MutationObserver(()=>{!document.body.contains(this.domNode)||this.refresh()}).observe(n.drawing.domNode,{attributes:!0,attributeFilter:[t],subtree:!0}),this.refresh()}get domNode(){return Vu(this,Iu,"f").domNode}refresh(){let t=[...Vu(this,Du,"f")];if(0!=t.length)try{let e=qu.camelCase(Vu(this,Pu,"f")),n=t.map(t=>window.getComputedStyle(t.domNode)[e]).map(t=>new re(t));Vu(this,Iu,"f").domNode.value=(0,xs.consensusValue)(n.map(t=>t.toHex().toLowerCase()))}catch(t){Vu(this,Iu,"f").domNode.value="#000000"}else Vu(this,Iu,"f").domNode.value="#000000"}}Pu=new WeakMap,Du=new WeakMap,Bu=new WeakMap,Iu=new WeakMap,Ru=new WeakMap,zu=new WeakMap,Wu=new WeakSet,Fu=function(){if(Vu(this,Iu,"f").domNode.value===Vu(this,zu,"f"))return;let t=[...Vu(this,Du,"f")];0!=t.length?t.every(t=>{var e;return(null===(e=t.domNode.getAttribute(Vu(this,Pu,"f")))||void 0===e?void 0:e.toLowerCase())===Vu(this,Iu,"f").domNode.value.toLowerCase()})?this.refresh():((Vu(this,Bu,"f").undoStack.isEmpty()||Vu(this,Bu,"f").undoStack.peek()!==Vu(this,Ru,"f"))&&(Vu(this,Bu,"f").pushUndoStack(),Uu(this,Ru,Vu(this,Bu,"f").undoStack.peek(),"f")),t.forEach(t=>t.domNode.setAttribute(Vu(this,Pu,"f"),Vu(this,Iu,"f").domNode.value.toLowerCase()))):this.refresh()};var Hu,Xu,Yu,$u,Qu,Zu,Ju,Ku,th,eh,nh,rh,ih,sh,oh,ah,uh,hh,lh,ch,fh,dh,ph,mh,gh,yh,vh,wh,bh,xh,_h,Nh,kh,Sh,Mh,Ch,Ah,Eh,Th,Oh,Lh,jh,Wh,Ph,Dh,Bh,Ih,Rh,zh,Fh,qh,Uh,Vh,Gh,Hh,Xh,Yh,$h,Qh,Zh,Jh,Kh,tl,el,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},rl=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 il{constructor(t){Hu.add(this),Xu.set(this,void 0),this.domNode=document.createElement("div"),Yu.set(this,new A("Primary Bonds",()=>this.toggle())),$u.set(this,document.createElement("div")),Qu.set(this,void 0),Zu.set(this,void 0),Ju.set(this,document.createElement("div")),Ku.set(this,void 0),th.set(this,void 0),eh.set(this,void 0),nh.set(this,void 0),rh.set(this,void 0),ih.set(this,void 0),sh.set(this,void 0),oh.set(this,void 0),ah.set(this,void 0),nl(this,Xu,t,"f"),this.domNode.classList.add(uu.gP),this.domNode.append(rl(this,Yu,"f").domNode),rl(this,$u,"f").classList.add(uu.Qs),this.domNode.append(rl(this,$u,"f")),nl(this,Qu,new sl(t),"f"),rl(this,$u,"f").append(rl(this,Qu,"f").domNode),nl(this,Zu,new ol(t),"f"),rl(this,$u,"f").append(rl(this,Zu,"f").domNode),rl(this,Ju,"f").classList.add(uu.eB),rl(this,$u,"f").append(rl(this,Ju,"f")),t.selectedPrimaryBonds.addEventListener("change",()=>{document.body.contains(this.domNode)&&(0==[...t.selectedPrimaryBonds].length?rl(this,Hu,"m",hh).call(this):rl(this,Hu,"m",lh).call(this))}),nl(this,Ku,new al(t),"f"),rl(this,Ju,"f").append(rl(this,Ku,"f").domNode),nl(this,th,new ul(t),"f"),rl(this,Ju,"f").append(rl(this,th,"f").domNode),nl(this,eh,new hl(t),"f"),rl(this,Ju,"f").append(rl(this,eh,"f").domNode),nl(this,nh,new ll(t),"f"),rl(this,Ju,"f").append(rl(this,nh,"f").domNode),nl(this,rh,new cl(t),"f"),rl(this,Ju,"f").append(rl(this,rh,"f").domNode),nl(this,ih,new fl(t),"f"),rl(this,Ju,"f").append(rl(this,ih,"f").domNode),nl(this,sh,new dl(t),"f"),rl(this,Ju,"f").append(rl(this,sh,"f").domNode),nl(this,oh,new pl(t),"f"),rl(this,Ju,"f").append(rl(this,oh,"f").domNode),nl(this,ah,new ml(t),"f"),rl(this,Ju,"f").append(rl(this,ah,"f").domNode),this.collapse(),this.refresh()}isCollapsed(){return this.domNode.classList.contains(uu.yZ)}collapse(){this.domNode.classList.add(uu.yZ),rl(this,Yu,"f").caret.pointRight()}expand(){this.domNode.classList.remove(uu.yZ),rl(this,Yu,"f").caret.pointDown()}toggle(){this.isCollapsed()?this.expand():this.collapse()}refresh(){rl(this,Hu,"a",uh).forEach(t=>t.refresh()),0==[...rl(this,Xu,"f").selectedPrimaryBonds].length?rl(this,Hu,"m",hh).call(this):rl(this,Hu,"m",lh).call(this)}}Xu=new WeakMap,Yu=new WeakMap,$u=new WeakMap,Qu=new WeakMap,Zu=new WeakMap,Ju=new WeakMap,Ku=new WeakMap,th=new WeakMap,eh=new WeakMap,nh=new WeakMap,rh=new WeakMap,ih=new WeakMap,sh=new WeakMap,oh=new WeakMap,ah=new WeakMap,Hu=new WeakSet,uh=function(){return[rl(this,Qu,"f"),rl(this,Zu,"f"),rl(this,Ku,"f"),rl(this,th,"f"),rl(this,eh,"f"),rl(this,nh,"f"),rl(this,rh,"f"),rl(this,ih,"f"),rl(this,sh,"f"),rl(this,oh,"f"),rl(this,ah,"f")]},hh=function(){rl(this,Ju,"f").style.display="none"},lh=function(){rl(this,Ju,"f").style.display="flex"};class sl{constructor(t){ch.set(this,void 0),this.domNode=document.createElement("p"),fh.set(this,document.createElement("span")),dh.set(this,document.createElement("span")),nl(this,ch,t,"f"),this.domNode.classList.add(uu.vM),rl(this,fh,"f").style.fontWeight="700",this.domNode.append(rl(this,fh,"f"),rl(this,dh,"f")),rl(this,ch,"f").selectedPrimaryBonds.addEventListener("change",()=>{!document.body.contains(this.domNode)||this.refresh()}),this.refresh()}refresh(){let t=[...rl(this,ch,"f").selectedPrimaryBonds].length;rl(this,fh,"f").textContent=`${t}`,rl(this,dh,"f").textContent=1==t?" primary bond is selected.":" primary bonds are selected."}}ch=new WeakMap,fh=new WeakMap,dh=new WeakMap;class ol{constructor(t){ph.add(this),mh.set(this,void 0),this.domNode=document.createElement("div"),gh.set(this,new A("Select:",()=>this.toggle())),yh.set(this,{All:new P("All",()=>rl(this,ph,"m",_h).call(this)),None:new P("None",()=>rl(this,ph,"m",Nh).call(this)),Between:new P("Between",()=>rl(this,ph,"m",kh).call(this)),Connecting:new P("Connecting",()=>rl(this,ph,"m",Mh).call(this))}),vh.set(this,document.createElement("div")),wh.set(this,document.createElement("div")),bh.set(this,document.createElement("div")),xh.set(this,void 0),nl(this,mh,t,"f"),this.domNode.classList.add(uu.vw),this.domNode.append(rl(this,gh,"f").domNode),Ns(rl(this,vh,"f")).css({marginTop:"1.5px",display:"flex",flexDirection:"column",gap:"10px"}),this.domNode.append(rl(this,vh,"f")),Ns(rl(this,wh,"f")).css({display:"flex",flexDirection:"row",gap:"27px"}),rl(this,wh,"f").append(...["All","None"].map(t=>rl(this,yh,"f")[t].domNode)),rl(this,vh,"f").append(rl(this,wh,"f")),Ns(rl(this,bh,"f")).css({display:"flex",flexDirection:"row",gap:"20px"}),rl(this,bh,"f").append(...["Between","Connecting"].map(t=>rl(this,yh,"f")[t].domNode)),rl(this,vh,"f").append(rl(this,bh,"f")),rl(this,bh,"f").style.display="none",rl(this,gh,"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():{}),nl(this,xh,new MutationObserver(()=>document.body.contains(this.domNode)?this.refresh():{}),"f"),rl(this,xh,"f").observe(t.drawing.domNode,{childList:!0,subtree:!0}),this.refresh()}toggle(){this.isCollapsed()?this.expand():this.collapse()}isCollapsed(){return"none"==rl(this,bh,"f").style.display}collapse(){rl(this,bh,"f").style.display="none",rl(this,gh,"f").caret.pointRight()}expand(){rl(this,bh,"f").style.display="flex",rl(this,gh,"f").caret.pointDown()}refresh(){let t=[...rl(this,mh,"f").drawing.primaryBonds],e=new Set(rl(this,mh,"f").selectedPrimaryBonds);0==t.length?(rl(this,yh,"f").All.disable(),rl(this,yh,"f").All.tooltip.textContent="There are no primary bonds in the drawing."):t.every(t=>e.has(t))?(rl(this,yh,"f").All.disable(),rl(this,yh,"f").All.tooltip.textContent="All primary bonds are already selected."):(rl(this,yh,"f").All.enable(),rl(this,yh,"f").All.tooltip.textContent="Select all primary bonds."),0==e.size?(rl(this,yh,"f").None.disable(),rl(this,yh,"f").None.tooltip.textContent="No primary bonds are selected."):(rl(this,yh,"f").None.enable(),rl(this,yh,"f").None.tooltip.textContent="Deselect all primary bonds.");let n=[...rl(this,mh,"f").selectedBases],r=rl(this,ph,"a",Sh);0==n.length?(rl(this,yh,"f").Between.disable(),rl(this,yh,"f").Between.tooltip.textContent="No bases are selected."):r.every(t=>e.has(t))?(rl(this,yh,"f").Between.disable(),rl(this,yh,"f").Between.tooltip.textContent="All primary bonds between the selected bases are already selected."):(rl(this,yh,"f").Between.enable(),rl(this,yh,"f").Between.tooltip.textContent="Select primary bonds between the selected bases.");let i=rl(this,ph,"a",Ch);0==n.length?(rl(this,yh,"f").Connecting.disable(),rl(this,yh,"f").Connecting.tooltip.textContent="No bases are selected."):i.every(t=>e.has(t))?(rl(this,yh,"f").Connecting.disable(),rl(this,yh,"f").Connecting.tooltip.textContent="All primary bonds connecting the selected bases are already selected."):(rl(this,yh,"f").Connecting.enable(),rl(this,yh,"f").Connecting.tooltip.textContent="Select primary bonds connecting the selected bases.")}}mh=new WeakMap,gh=new WeakMap,yh=new WeakMap,vh=new WeakMap,wh=new WeakMap,bh=new WeakMap,xh=new WeakMap,ph=new WeakSet,_h=function(){rl(this,mh,"f").addToSelected([...rl(this,mh,"f").drawing.primaryBonds])},Nh=function(){rl(this,mh,"f").removeFromSelected([...rl(this,mh,"f").drawing.primaryBonds])},kh=function(){rl(this,mh,"f").addToSelected(rl(this,ph,"a",Sh))},Sh=function(){let t=new Set(rl(this,mh,"f").selectedBases);return[...rl(this,mh,"f").drawing.primaryBonds].filter(e=>t.has(e.base1)&&t.has(e.base2))},Mh=function(){rl(this,mh,"f").addToSelected(rl(this,ph,"a",Ch))},Ch=function(){let t=new Set(rl(this,mh,"f").selectedBases);return[...rl(this,mh,"f").drawing.primaryBonds].filter(e=>t.has(e.base1)||t.has(e.base2))};class al{constructor(t){Ah.add(this),Eh.set(this,void 0),Th.set(this,void 0),nl(this,Eh,t,"f");let e=t.selectedPrimaryBonds;nl(this,Th,new _u(e,t),"f"),this.domNode.style.marginTop="26px",rl(this,Th,"f").addEventListener("refresh",()=>rl(this,Ah,"m",Oh).call(this)),this.refresh()}get domNode(){return rl(this,Th,"f").domNode}refresh(){rl(this,Th,"f").refresh()}}Eh=new WeakMap,Th=new WeakMap,Ah=new WeakSet,Oh=function(){let t=[...rl(this,Eh,"f").selectedPrimaryBonds];rl(this,Th,"f").buttons.Front.tooltip.textContent=0==t.length?"No primary bonds are selected.":"Bring the selected primary bonds to the front.",rl(this,Th,"f").buttons.Back.tooltip.textContent=0==t.length?"No primary bonds are selected.":"Send the selected primary bonds to the back."};class ul{constructor(t){Lh.set(this,void 0),jh.set(this,void 0),Wh.set(this,void 0),nl(this,Lh,t,"f");let e=t.selectedPrimaryBonds;nl(this,jh,new ju("stroke",e,t),"f"),nl(this,Wh,new Q("Stroke",rl(this,jh,"f").domNode),"f"),rl(this,Wh,"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 rl(this,Wh,"f").domNode}refresh(){rl(this,jh,"f").refresh()}}Lh=new WeakMap,jh=new WeakMap,Wh=new WeakMap;class hl{constructor(t){Ph.set(this,void 0),Dh.set(this,void 0),Bh.set(this,void 0),nl(this,Ph,t,"f");let e=t.selectedPrimaryBonds;nl(this,Dh,new Gu("stroke",e,t),"f"),nl(this,Bh,new ut("Stroke Color",rl(this,Dh,"f").domNode),"f"),rl(this,Bh,"f").domNode.style.marginTop="12px",rl(this,Bh,"f").domNode.style.alignSelf="start",this.refresh()}get domNode(){return rl(this,Bh,"f").domNode}refresh(){rl(this,Dh,"f").refresh()}}Ph=new WeakMap,Dh=new WeakMap,Bh=new WeakMap;class ll{constructor(t){Ih.set(this,void 0),Rh.set(this,void 0),zh.set(this,void 0),nl(this,Ih,t,"f");let e=t.selectedPrimaryBonds;nl(this,Rh,new ju("stroke-opacity",e,t),"f"),nl(this,zh,new Q("Stroke Opacity",rl(this,Rh,"f").domNode),"f"),rl(this,zh,"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 rl(this,zh,"f").domNode}refresh(){rl(this,Rh,"f").refresh()}}Ih=new WeakMap,Rh=new WeakMap,zh=new WeakMap;class cl{constructor(t){Fh.set(this,void 0),qh.set(this,void 0),Uh.set(this,void 0),nl(this,Fh,t,"f");let e=t.selectedPrimaryBonds;nl(this,qh,new ju("stroke-width",e,t),"f"),nl(this,Uh,new Q("Stroke Width",rl(this,qh,"f").domNode),"f"),rl(this,Uh,"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 rl(this,Uh,"f").domNode}refresh(){rl(this,qh,"f").refresh()}}Fh=new WeakMap,qh=new WeakMap,Uh=new WeakMap;class fl{constructor(t){Vh.set(this,void 0),Gh.set(this,void 0),Hh.set(this,void 0),nl(this,Vh,t,"f");let e=t.selectedPrimaryBonds;nl(this,Gh,new ju("stroke-linecap",e,t),"f"),nl(this,Hh,new Q("Stroke Line-Cap",rl(this,Gh,"f").domNode),"f"),rl(this,Hh,"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 rl(this,Hh,"f").domNode}refresh(){rl(this,Gh,"f").refresh()}}Vh=new WeakMap,Gh=new WeakMap,Hh=new WeakMap;class dl{constructor(t){Xh.set(this,void 0),Yh.set(this,void 0),$h.set(this,void 0),nl(this,Xh,t,"f");let e=t.selectedPrimaryBonds;nl(this,Yh,new ju("stroke-dasharray",e,t),"f"),nl(this,$h,new Q("Stroke Dash-Array",rl(this,Yh,"f").domNode),"f"),rl(this,$h,"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 rl(this,$h,"f").domNode}refresh(){rl(this,Yh,"f").refresh()}}Xh=new WeakMap,Yh=new WeakMap,$h=new WeakMap;class pl{constructor(t){Qh.set(this,void 0),Zh.set(this,void 0),Jh.set(this,void 0),nl(this,Qh,t,"f");let e=t.selectedPrimaryBonds;nl(this,Zh,new ju("data-base-padding1",e,t),"f"),rl(this,Zh,"f").addEventListener("edit",()=>{[...e].forEach(t=>{let e=t.basePadding1;t.basePadding1+=1,t.basePadding1=e})}),nl(this,Jh,new Q("Base Padding 1",rl(this,Zh,"f").domNode),"f"),this.domNode.style.marginTop="10px",this.domNode.style.alignSelf="start",this.refresh()}get domNode(){return rl(this,Jh,"f").domNode}refresh(){rl(this,Zh,"f").refresh()}}Qh=new WeakMap,Zh=new WeakMap,Jh=new WeakMap;class ml{constructor(t){Kh.set(this,void 0),tl.set(this,void 0),el.set(this,void 0),nl(this,Kh,t,"f");let e=t.selectedPrimaryBonds;nl(this,tl,new ju("data-base-padding2",e,t),"f"),rl(this,tl,"f").addEventListener("edit",()=>{[...e].forEach(t=>{let e=t.basePadding2;t.basePadding2+=1,t.basePadding2=e})}),nl(this,el,new Q("Base Padding 2",rl(this,tl,"f").domNode),"f"),this.domNode.style.marginTop="10px",this.domNode.style.alignSelf="start",this.refresh()}get domNode(){return rl(this,el,"f").domNode}refresh(){rl(this,tl,"f").refresh()}}Kh=new WeakMap,tl=new WeakMap,el=new WeakMap;var gl=n(358),yl=n(705),vl={};vl.styleTagTransform=w(),vl.setAttributes=m(),vl.insert=d().bind(null,"head"),vl.domAPI=c(),vl.insertStyleElement=y(),h()(yl.Ay,vl),yl.Ay&&yl.Ay.locals&&yl.Ay.locals;var wl,bl,xl,_l,Nl,kl,Sl,Ml,Cl,Al,El,Tl,Ol,Ll,jl,Wl,Pl,Dl,Bl,Il,Rl,zl,Fl,ql,Ul,Vl,Gl,Hl,Xl,Yl,$l,Ql,Zl,Jl,Kl,tc,ec,nc,rc,ic,sc,oc,ac,uc,hc,lc,cc,fc,dc,pc,mc,gc,yc,vc,wc,bc,xc,_c,Nc,kc,Sc,Mc,Cc,Ac,Ec,Tc,Oc,Lc,jc,Wc,Pc,Dc,Bc,Ic,Rc,zc,Fc,qc,Uc,Vc,Gc,Hc,Xc,Yc=n(127),$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){wl.add(this),bl.set(this,void 0),this.domNode=document.createElement("div"),xl.set(this,new A("Secondary Bonds",()=>this.toggle())),_l.set(this,document.createElement("div")),Nl.set(this,void 0),kl.set(this,void 0),Sl.set(this,void 0),Ml.set(this,void 0),Cl.set(this,document.createElement("div")),Al.set(this,void 0),El.set(this,void 0),Tl.set(this,void 0),Ol.set(this,void 0),Ll.set(this,void 0),jl.set(this,void 0),Wl.set(this,void 0),Pl.set(this,void 0),Dl.set(this,void 0),$c(this,bl,t,"f"),this.domNode.classList.add(yl.Se),this.domNode.append(Qc(this,xl,"f").domNode),Qc(this,_l,"f").classList.add(yl.Qs),this.domNode.append(Qc(this,_l,"f")),$c(this,Nl,new Jc(t),"f"),Qc(this,_l,"f").append(Qc(this,Nl,"f").domNode),$c(this,kl,new Kc(t),"f"),Qc(this,_l,"f").append(Qc(this,kl,"f").domNode),$c(this,Sl,new tf(t),"f"),Qc(this,_l,"f").append(Qc(this,Sl,"f").domNode),$c(this,Ml,new ef(t),"f"),Qc(this,_l,"f").append(Qc(this,Ml,"f").domNode),Qc(this,Cl,"f").classList.add(yl.eB),Qc(this,_l,"f").append(Qc(this,Cl,"f")),t.selectedSecondaryBonds.addEventListener("change",()=>{document.body.contains(this.domNode)&&(0==[...t.selectedSecondaryBonds].length?Qc(this,wl,"m",Rl).call(this):Qc(this,wl,"m",Il).call(this))}),$c(this,Al,new nf(t),"f"),Qc(this,Cl,"f").append(Qc(this,Al,"f").domNode),$c(this,El,new rf(t),"f"),Qc(this,Cl,"f").append(Qc(this,El,"f").domNode),$c(this,Tl,new sf(t),"f"),Qc(this,Cl,"f").append(Qc(this,Tl,"f").domNode),$c(this,Ol,new of(t),"f"),Qc(this,Cl,"f").append(Qc(this,Ol,"f").domNode),$c(this,Ll,new af(t),"f"),Qc(this,Cl,"f").append(Qc(this,Ll,"f").domNode),$c(this,jl,new uf(t),"f"),Qc(this,Cl,"f").append(Qc(this,jl,"f").domNode),$c(this,Wl,new hf(t),"f"),Qc(this,Cl,"f").append(Qc(this,Wl,"f").domNode),$c(this,Pl,new lf(t),"f"),Qc(this,Cl,"f").append(Qc(this,Pl,"f").domNode),$c(this,Dl,new cf(t),"f"),Qc(this,Cl,"f").append(Qc(this,Dl,"f").domNode),this.collapse(),this.refresh()}isCollapsed(){return this.domNode.classList.contains(yl.yZ)}collapse(){this.domNode.classList.add(yl.yZ),Qc(this,xl,"f").caret.pointRight()}expand(){this.domNode.classList.remove(yl.yZ),Qc(this,xl,"f").caret.pointDown()}toggle(){this.isCollapsed()?this.expand():this.collapse()}refresh(){Qc(this,wl,"a",Bl).forEach(t=>t.refresh()),0==[...Qc(this,bl,"f").selectedSecondaryBonds].length?Qc(this,wl,"m",Rl).call(this):Qc(this,wl,"m",Il).call(this)}}bl=new WeakMap,xl=new WeakMap,_l=new WeakMap,Nl=new WeakMap,kl=new WeakMap,Sl=new WeakMap,Ml=new WeakMap,Cl=new WeakMap,Al=new WeakMap,El=new WeakMap,Tl=new WeakMap,Ol=new WeakMap,Ll=new WeakMap,jl=new WeakMap,Wl=new WeakMap,Pl=new WeakMap,Dl=new WeakMap,wl=new WeakSet,Bl=function(){return[Qc(this,Nl,"f"),Qc(this,kl,"f"),Qc(this,Sl,"f"),Qc(this,Ml,"f"),Qc(this,Al,"f"),Qc(this,El,"f"),Qc(this,Tl,"f"),Qc(this,Ol,"f"),Qc(this,Ll,"f"),Qc(this,jl,"f"),Qc(this,Wl,"f"),Qc(this,Pl,"f"),Qc(this,Dl,"f")]},Il=function(){Qc(this,Cl,"f").style.display="flex"},Rl=function(){Qc(this,Cl,"f").style.display="none"};class Jc{constructor(t){zl.set(this,void 0),this.domNode=document.createElement("p"),Fl.set(this,document.createElement("span")),ql.set(this,document.createElement("span")),$c(this,zl,t,"f"),this.domNode.classList.add(yl.vM),Qc(this,Fl,"f").style.fontWeight="700",this.domNode.append(Qc(this,Fl,"f"),Qc(this,ql,"f")),Qc(this,zl,"f").selectedSecondaryBonds.addEventListener("change",()=>{!document.body.contains(this.domNode)||this.refresh()}),this.refresh()}refresh(){let t=[...Qc(this,zl,"f").selectedSecondaryBonds].length;Qc(this,Fl,"f").textContent=`${t}`,Qc(this,ql,"f").textContent=1==t?" secondary bond is selected.":" secondary bonds are selected."}}zl=new WeakMap,Fl=new WeakMap,ql=new WeakMap;class Kc{constructor(t){Ul.add(this),Vl.set(this,void 0),this.domNode=document.createElement("div"),Gl.set(this,new A("Select:",()=>this.toggle())),Hl.set(this,{All:new P("All",()=>Qc(this,Ul,"m",Zl).call(this)),None:new P("None",()=>Qc(this,Ul,"m",Jl).call(this)),Between:new P("Between",()=>Qc(this,Ul,"m",Kl).call(this)),Connecting:new P("Connecting",()=>Qc(this,Ul,"m",ec).call(this)),"A:U":new P("A:U",()=>Qc(this,Ul,"m",rc).call(this)),"A:T":new P("A:T",()=>Qc(this,Ul,"m",sc).call(this)),"G:C":new P("G:C",()=>Qc(this,Ul,"m",ac).call(this)),"G:U":new P("G:U",()=>Qc(this,Ul,"m",hc).call(this)),"G:T":new P("G:T",()=>Qc(this,Ul,"m",cc).call(this))}),Xl.set(this,document.createElement("div")),Yl.set(this,document.createElement("div")),$l.set(this,document.createElement("div")),Ql.set(this,void 0),$c(this,Vl,t,"f"),this.domNode.classList.add(yl.vw),this.domNode.append(Qc(this,Gl,"f").domNode),Ns(Qc(this,Xl,"f")).css({marginTop:"1.5px",display:"flex",flexDirection:"column",gap:"12px"}),this.domNode.append(Qc(this,Xl,"f")),Ns(Qc(this,Yl,"f")).css({display:"flex",flexDirection:"row",gap:"27px"}),Qc(this,Yl,"f").append(...["All","None"].map(t=>Qc(this,Hl,"f")[t].domNode)),Qc(this,Xl,"f").append(Qc(this,Yl,"f")),Ns(Qc(this,$l,"f")).css({display:"flex",flexDirection:"column",gap:"12px"}),Qc(this,Xl,"f").append(Qc(this,$l,"f")),Qc(this,$l,"f").style.display="none",Qc(this,Gl,"f").caret.pointRight();let e=document.createElement("div");Ns(e).css({display:"flex",flexDirection:"row",gap:"20px"}),e.append(...["Between","Connecting"].map(t=>Qc(this,Hl,"f")[t].domNode)),Qc(this,$l,"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=>Qc(this,Hl,"f")[t].domNode)),Qc(this,$l,"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():{}),$c(this,Ql,new MutationObserver(()=>document.body.contains(this.domNode)?this.refresh():{}),"f"),Qc(this,Ql,"f").observe(t.drawing.domNode,{childList:!0,characterData:!0,subtree:!0}),this.refresh()}toggle(){this.isCollapsed()?this.expand():this.collapse()}isCollapsed(){return"none"==Qc(this,$l,"f").style.display}collapse(){Qc(this,$l,"f").style.display="none",Qc(this,Gl,"f").caret.pointRight()}expand(){Qc(this,$l,"f").style.display="flex",Qc(this,Gl,"f").caret.pointDown()}refresh(){let t=[...Qc(this,Vl,"f").drawing.secondaryBonds],e=new Set(Qc(this,Vl,"f").selectedSecondaryBonds);0==t.length?(Qc(this,Hl,"f").All.disable(),Qc(this,Hl,"f").All.tooltip.textContent="There are no secondary bonds in the drawing."):t.every(t=>e.has(t))?(Qc(this,Hl,"f").All.disable(),Qc(this,Hl,"f").All.tooltip.textContent="All secondary bonds are already selected."):(Qc(this,Hl,"f").All.enable(),Qc(this,Hl,"f").All.tooltip.textContent="Select all secondary bonds."),0==e.size?(Qc(this,Hl,"f").None.disable(),Qc(this,Hl,"f").None.tooltip.textContent="No secondary bonds are selected."):(Qc(this,Hl,"f").None.enable(),Qc(this,Hl,"f").None.tooltip.textContent="Deselect all secondary bonds.");let n=[...Qc(this,Vl,"f").selectedBases],r=Qc(this,Ul,"a",tc);0==n.length?(Qc(this,Hl,"f").Between.disable(),Qc(this,Hl,"f").Between.tooltip.textContent="No bases are selected."):r.every(t=>e.has(t))?(Qc(this,Hl,"f").Between.disable(),Qc(this,Hl,"f").Between.tooltip.textContent="All secondary bonds between the selected bases are already selected."):(Qc(this,Hl,"f").Between.enable(),Qc(this,Hl,"f").Between.tooltip.textContent="Select secondary bonds between the selected bases.");let i=Qc(this,Ul,"a",nc);0==n.length?(Qc(this,Hl,"f").Connecting.disable(),Qc(this,Hl,"f").Connecting.tooltip.textContent="No bases are selected."):i.every(t=>e.has(t))?(Qc(this,Hl,"f").Connecting.disable(),Qc(this,Hl,"f").Connecting.tooltip.textContent="All secondary bonds connecting the selected bases are already selected."):(Qc(this,Hl,"f").Connecting.enable(),Qc(this,Hl,"f").Connecting.tooltip.textContent="Select secondary bonds connecting the selected bases."),[["A:U",Qc(this,Ul,"a",ic)],["A:T",Qc(this,Ul,"a",oc)],["G:C",Qc(this,Ul,"a",uc)],["G:U",Qc(this,Ul,"a",lc)],["G:T",Qc(this,Ul,"a",fc)]].forEach(([t,n])=>{0==n.length?(Qc(this,Hl,"f")[t].disable(),Qc(this,Hl,"f")[t].tooltip.textContent=`There are no ${t} base-pairs in the drawing.`):n.every(t=>e.has(t))?(Qc(this,Hl,"f")[t].disable(),Qc(this,Hl,"f")[t].tooltip.textContent=`All secondary bonds between ${t} base-pairs are already selected.`):(Qc(this,Hl,"f")[t].enable(),Qc(this,Hl,"f")[t].tooltip.textContent=`Select secondary bonds between ${t} base-pairs.`)})}}Vl=new WeakMap,Gl=new WeakMap,Hl=new WeakMap,Xl=new WeakMap,Yl=new WeakMap,$l=new WeakMap,Ql=new WeakMap,Ul=new WeakSet,Zl=function(){Qc(this,Vl,"f").addToSelected([...Qc(this,Vl,"f").drawing.secondaryBonds])},Jl=function(){Qc(this,Vl,"f").removeFromSelected([...Qc(this,Vl,"f").drawing.secondaryBonds])},Kl=function(){Qc(this,Vl,"f").addToSelected(Qc(this,Ul,"a",tc))},tc=function(){let t=new Set(Qc(this,Vl,"f").selectedBases);return[...Qc(this,Vl,"f").drawing.secondaryBonds].filter(e=>t.has(e.base1)&&t.has(e.base2))},ec=function(){Qc(this,Vl,"f").addToSelected(Qc(this,Ul,"a",nc))},nc=function(){let t=new Set(Qc(this,Vl,"f").selectedBases);return[...Qc(this,Vl,"f").drawing.secondaryBonds].filter(e=>t.has(e.base1)||t.has(e.base2))},rc=function(){Qc(this,Vl,"f").addToSelected(Qc(this,Ul,"a",ic))},ic=function(){return[...Qc(this,Vl,"f").drawing.secondaryBonds].filter(ff)},sc=function(){Qc(this,Vl,"f").addToSelected(Qc(this,Ul,"a",oc))},oc=function(){return[...Qc(this,Vl,"f").drawing.secondaryBonds].filter(df)},ac=function(){Qc(this,Vl,"f").addToSelected(Qc(this,Ul,"a",uc))},uc=function(){return[...Qc(this,Vl,"f").drawing.secondaryBonds].filter(pf)},hc=function(){Qc(this,Vl,"f").addToSelected(Qc(this,Ul,"a",lc))},lc=function(){return[...Qc(this,Vl,"f").drawing.secondaryBonds].filter(mf)},cc=function(){Qc(this,Vl,"f").addToSelected(Qc(this,Ul,"a",fc))},fc=function(){return[...Qc(this,Vl,"f").drawing.secondaryBonds].filter(gf)};class tf{constructor(t){dc.set(this,void 0),this.domNode=document.createElement("div"),pc.set(this,new Ks("Add",()=>this.press())),mc.set(this,new K),gc.set(this,new nt("Only add missing secondary bonds",Qc(this,mc,"f").domNode)),yc.set(this,void 0),$c(this,dc,t,"f"),this.domNode.classList.add(yl.Ol),this.domNode.append(Qc(this,pc,"f").domNode,Qc(this,gc,"f").domNode),Qc(this,mc,"f").domNode.checked=!0,Qc(this,gc,"f").domNode.style.marginLeft="10px",Qc(this,dc,"f").selectedBases.addEventListener("change",()=>{!document.body.contains(this.domNode)||this.refresh()}),$c(this,yc,new MutationObserver(()=>document.body.contains(this.domNode)?this.refresh():{}),"f"),Qc(this,yc,"f").observe(t.drawing.domNode,{childList:!0,subtree:!0}),Qc(this,mc,"f").domNode.addEventListener("change",()=>this.refresh())}press(){let t=[...Qc(this,dc,"f").drawing.bases],e=[...Qc(this,dc,"f").selectedBases];e=(0,gl.seqSorted)(e,t);let n=(0,Yc.antiParallelPairs)(e),r=[...Qc(this,dc,"f").drawing.secondaryBonds],i=(0,Yc.missing)(vf(r),n);0!=n.length&&(Qc(this,mc,"f").domNode.checked&&0==i.length||(Qc(this,dc,"f").pushUndoStack(),Qc(this,mc,"f").domNode.checked?i.forEach(t=>Qc(this,dc,"f").drawing.addSecondaryBond(...t)):n.forEach(t=>Qc(this,dc,"f").drawing.addSecondaryBond(...t))))}refresh(){let t=[...Qc(this,dc,"f").drawing.bases],e=[...Qc(this,dc,"f").selectedBases];e=(0,gl.seqSorted)(e,t);let n=(0,Yc.antiParallelPairs)(e),r=[...Qc(this,dc,"f").drawing.secondaryBonds],i=(0,Yc.missing)(vf(r),n);0==e.length?(Qc(this,pc,"f").disable(),Qc(this,pc,"f").tooltip.textContent="No bases are selected."):1==e.length?(Qc(this,pc,"f").disable(),Qc(this,pc,"f").tooltip.textContent="At least two bases must be selected."):Qc(this,mc,"f").domNode.checked&&0==i.length?(Qc(this,pc,"f").disable(),Qc(this,pc,"f").tooltip.textContent="There are no missing pairs between the selected bases."):(Qc(this,pc,"f").enable(),Qc(this,pc,"f").tooltip.textContent="Add secondary bonds between the selected bases.")}}dc=new WeakMap,pc=new WeakMap,mc=new WeakMap,gc=new WeakMap,yc=new WeakMap;class ef{constructor(t){vc.set(this,void 0),wc.set(this,new Ks("Remove",()=>this.press())),$c(this,vc,t,"f"),Qc(this,vc,"f").selectedSecondaryBonds.addEventListener("change",()=>{!document.body.contains(this.domNode)||this.refresh()}),this.domNode.style.marginTop="15px"}get domNode(){return Qc(this,wc,"f").domNode}press(){let t=[...Qc(this,vc,"f").selectedSecondaryBonds];0!=t.length&&(Qc(this,vc,"f").pushUndoStack(),t.forEach(t=>t.domNode.remove()))}refresh(){0==[...Qc(this,vc,"f").selectedSecondaryBonds].length?(Qc(this,wc,"f").disable(),Qc(this,wc,"f").tooltip.textContent="No secondary bonds are selected."):(Qc(this,wc,"f").enable(),Qc(this,wc,"f").tooltip.textContent="Remove the selected secondary bonds from the drawing.")}}vc=new WeakMap,wc=new WeakMap;class nf{constructor(t){bc.add(this),xc.set(this,void 0),_c.set(this,void 0),$c(this,xc,t,"f");let e=t.selectedSecondaryBonds;$c(this,_c,new _u(e,t),"f"),this.domNode.style.marginTop="27px",Qc(this,_c,"f").addEventListener("refresh",()=>Qc(this,bc,"m",Nc).call(this)),this.refresh()}get domNode(){return Qc(this,_c,"f").domNode}refresh(){Qc(this,_c,"f").refresh()}}xc=new WeakMap,_c=new WeakMap,bc=new WeakSet,Nc=function(){let t=[...Qc(this,xc,"f").selectedSecondaryBonds];Qc(this,_c,"f").buttons.Front.tooltip.textContent=0==t.length?"No secondary bonds are selected.":"Bring the selected secondary bonds to the front.",Qc(this,_c,"f").buttons.Back.tooltip.textContent=0==t.length?"No secondary bonds are selected.":"Send the selected secondary bonds to the back."};class rf{constructor(t){kc.set(this,void 0),Sc.set(this,void 0),Mc.set(this,void 0),$c(this,kc,t,"f");let e=t.selectedSecondaryBonds;$c(this,Sc,new ju("stroke",e,t),"f"),$c(this,Mc,new Q("Stroke",Qc(this,Sc,"f").domNode),"f"),Qc(this,Mc,"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 Qc(this,Mc,"f").domNode}refresh(){Qc(this,Sc,"f").refresh()}}kc=new WeakMap,Sc=new WeakMap,Mc=new WeakMap;class sf{constructor(t){Cc.set(this,void 0),Ac.set(this,void 0),Ec.set(this,void 0),$c(this,Cc,t,"f");let e=t.selectedSecondaryBonds;$c(this,Ac,new Gu("stroke",e,t),"f"),$c(this,Ec,new ut("Stroke Color",Qc(this,Ac,"f").domNode),"f"),Qc(this,Ec,"f").domNode.style.marginTop="12px",Qc(this,Ec,"f").domNode.style.alignSelf="start",this.refresh()}get domNode(){return Qc(this,Ec,"f").domNode}refresh(){Qc(this,Ac,"f").refresh()}}Cc=new WeakMap,Ac=new WeakMap,Ec=new WeakMap;class of{constructor(t){Tc.set(this,void 0),Oc.set(this,void 0),Lc.set(this,void 0),$c(this,Tc,t,"f");let e=t.selectedSecondaryBonds;$c(this,Oc,new ju("stroke-opacity",e,t),"f"),$c(this,Lc,new Q("Stroke Opacity",Qc(this,Oc,"f").domNode),"f"),Qc(this,Lc,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Attribute/stroke-opacity",this.domNode.style.marginTop="12px",this.domNode.style.alignSelf="start",this.refresh()}get domNode(){return Qc(this,Lc,"f").domNode}refresh(){Qc(this,Oc,"f").refresh()}}Tc=new WeakMap,Oc=new WeakMap,Lc=new WeakMap;class af{constructor(t){jc.set(this,void 0),Wc.set(this,void 0),Pc.set(this,void 0),$c(this,jc,t,"f");let e=t.selectedSecondaryBonds;$c(this,Wc,new ju("stroke-width",e,t),"f"),$c(this,Pc,new Q("Stroke Width",Qc(this,Wc,"f").domNode),"f"),Qc(this,Pc,"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 Qc(this,Pc,"f").domNode}refresh(){Qc(this,Wc,"f").refresh()}}jc=new WeakMap,Wc=new WeakMap,Pc=new WeakMap;class uf{constructor(t){Dc.set(this,void 0),Bc.set(this,void 0),Ic.set(this,void 0),$c(this,Dc,t,"f");let e=t.selectedSecondaryBonds;$c(this,Bc,new ju("stroke-linecap",e,t),"f"),$c(this,Ic,new Q("Stroke Line-Cap",Qc(this,Bc,"f").domNode),"f"),Qc(this,Ic,"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 Qc(this,Ic,"f").domNode}refresh(){Qc(this,Bc,"f").refresh()}}Dc=new WeakMap,Bc=new WeakMap,Ic=new WeakMap;class hf{constructor(t){Rc.set(this,void 0),zc.set(this,void 0),Fc.set(this,void 0),$c(this,Rc,t,"f");let e=t.selectedSecondaryBonds;$c(this,zc,new ju("stroke-dasharray",e,t),"f"),$c(this,Fc,new Q("Stroke Dash-Array",Qc(this,zc,"f").domNode),"f"),Qc(this,Fc,"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 Qc(this,Fc,"f").domNode}refresh(){Qc(this,zc,"f").refresh()}}Rc=new WeakMap,zc=new WeakMap,Fc=new WeakMap;class lf{constructor(t){qc.set(this,void 0),Uc.set(this,void 0),Vc.set(this,void 0),$c(this,qc,t,"f");let e=t.selectedSecondaryBonds;$c(this,Uc,new ju("data-base-padding1",e,t),"f"),Qc(this,Uc,"f").addEventListener("edit",()=>{[...e].forEach(t=>{let e=t.basePadding1;t.basePadding1+=1,t.basePadding1=e})}),$c(this,Vc,new Q("Base Padding 1",Qc(this,Uc,"f").domNode),"f"),this.domNode.style.marginTop="10px",this.domNode.style.alignSelf="start",this.refresh()}get domNode(){return Qc(this,Vc,"f").domNode}refresh(){Qc(this,Uc,"f").refresh()}}qc=new WeakMap,Uc=new WeakMap,Vc=new WeakMap;class cf{constructor(t){Gc.set(this,void 0),Hc.set(this,void 0),Xc.set(this,void 0),$c(this,Gc,t,"f");let e=t.selectedSecondaryBonds;$c(this,Hc,new ju("data-base-padding2",e,t),"f"),Qc(this,Hc,"f").addEventListener("edit",()=>{[...e].forEach(t=>{let e=t.basePadding2;t.basePadding2+=1,t.basePadding2=e})}),$c(this,Xc,new Q("Base Padding 2",Qc(this,Hc,"f").domNode),"f"),this.domNode.style.marginTop="10px",this.domNode.style.alignSelf="start",this.refresh()}get domNode(){return Qc(this,Xc,"f").domNode}refresh(){Qc(this,Hc,"f").refresh()}}function ff(t){return new gl.BasePair(t.base1,t.base2).isAU()}function df(t){return new gl.BasePair(t.base1,t.base2).isAT()}function pf(t){return new gl.BasePair(t.base1,t.base2).isGC()}function mf(t){return new gl.BasePair(t.base1,t.base2).isGU()}function gf(t){return new gl.BasePair(t.base1,t.base2).isGT()}function yf(t){return[t.base1,t.base2]}function vf(t){return t.map(yf)}Gc=new WeakMap,Hc=new WeakMap,Xc=new WeakMap;var wf=n(965),bf={};bf.styleTagTransform=w(),bf.setAttributes=m(),bf.insert=d().bind(null,"head"),bf.domAPI=c(),bf.insertStyleElement=y(),h()(wf.Ay,bf),wf.Ay&&wf.Ay.locals&&wf.Ay.locals;var xf,_f,Nf,kf,Sf,Mf,Cf,Af,Ef,Tf,Of=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},Lf=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){xf.add(this),_f.set(this,void 0),this.domNode=document.createElement("div"),Nf.set(this,new A("Drawing",()=>this.toggle())),kf.set(this,document.createElement("div")),Sf.set(this,void 0),Of(this,_f,t,"f"),this.domNode.classList.add(wf.fS),this.domNode.append(Lf(this,Nf,"f").domNode),Lf(this,kf,"f").classList.add(wf.Qs),this.domNode.append(Lf(this,kf,"f")),Of(this,Sf,new Wf(t),"f"),Lf(this,kf,"f").append(Lf(this,Sf,"f").domNode),this.collapse(),this.refresh()}isCollapsed(){return this.domNode.classList.contains(wf.yZ)}collapse(){this.domNode.classList.add(wf.yZ),Lf(this,Nf,"f").caret.pointRight()}expand(){this.domNode.classList.remove(wf.yZ),Lf(this,Nf,"f").caret.pointDown()}toggle(){this.isCollapsed()?this.expand():this.collapse()}refresh(){Lf(this,xf,"a",Mf).forEach(t=>t.refresh())}}_f=new WeakMap,Nf=new WeakMap,kf=new WeakMap,Sf=new WeakMap,xf=new WeakSet,Mf=function(){return[Lf(this,Sf,"f")]};class Wf{constructor(t){Cf.set(this,void 0),Af.set(this,void 0),Ef.set(this,void 0),Of(this,Cf,t,"f"),Of(this,Af,new ju("data-name",new Pf([t.drawing]),t),"f"),Of(this,Ef,new Q("Name",Lf(this,Af,"f").domNode),"f"),this.domNode.style.alignSelf="start",Lf(this,Af,"f").domNode.style.width="132px",this.refresh()}get domNode(){return Lf(this,Ef,"f").domNode}refresh(){Lf(this,Af,"f").refresh()}}Cf=new WeakMap,Af=new WeakMap,Ef=new WeakMap;class Pf{constructor(t){Tf.set(this,void 0),Of(this,Tf,[...t],"f")}[(Tf=new WeakMap,Symbol.iterator)](){return Lf(this,Tf,"f").values()}addEventListener(t,e){}}var Df=n(290),Bf={};Bf.styleTagTransform=w(),Bf.setAttributes=m(),Bf.insert=d().bind(null,"head"),Bf.domAPI=c(),Bf.insertStyleElement=y(),h()(Df.A,Bf),Df.A&&Df.A.locals&&Df.A.locals;var If,Rf,zf,Ff,qf,Uf,Vf,Gf,Hf,Xf=n(139),Yf=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},$f=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.add(this),Rf.set(this,void 0),this.domNode=document.createElement("div"),zf.set(this,void 0),Ff.set(this,void 0),qf.set(this,void 0),Uf.set(this,void 0),Vf.set(this,void 0),Gf.set(this,void 0),Yf(this,Rf,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),Yf(this,zf,new Ms(t),"f"),n.append($f(this,zf,"f").domNode),Yf(this,Ff,new Ha(t),"f"),n.append($f(this,Ff,"f").domNode),Yf(this,qf,new il(t),"f"),n.append($f(this,qf,"f").domNode),Yf(this,Uf,new Zc(t),"f"),n.append($f(this,Uf,"f").domNode),Yf(this,Vf,new jf(t),"f"),n.append($f(this,Vf,"f").domNode);let r=function(){let t=document.createElement("p");return t.classList.add(Df._),t.textContent="Close",t}();r.addEventListener("click",()=>this.close()),this.domNode.append(r),Yf(this,Gf,new Xf.DragTranslater(this.domNode),"f")}appendTo(t){this.refresh(),this.reposition(),t.appendChild(this.domNode)}close(){this.domNode.remove()}refresh(){$f(this,If,"a",Hf).forEach(t=>t.refresh())}reposition(){$f(this,Gf,"f").untranslate()}}Rf=new WeakMap,zf=new WeakMap,Ff=new WeakMap,qf=new WeakMap,Uf=new WeakMap,Vf=new WeakMap,Gf=new WeakMap,If=new WeakSet,Hf=function(){return[$f(this,zf,"f"),$f(this,Ff,"f"),$f(this,qf,"f"),$f(this,Uf,"f"),$f(this,Vf,"f")]}})(),r})());
|
|
2
|
+
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports["forms.edit"]=e():t["forms.edit"]=e()}(this,()=>(()=>{var t={56:(t,e,n)=>{"use strict";t.exports=function(t){var e=n.nc;e&&t.setAttribute("nonce",e)}},72:t=>{"use strict";var e=[];function n(t){for(var n=-1,r=0;r<e.length;r++)if(e[r].identifier===t){n=r;break}return n}function r(t,r){for(var s={},o=[],a=0;a<t.length;a++){var u=t[a],h=r.base?u[0]+r.base:u[0],l=s[h]||0,c="".concat(h," ").concat(l);s[h]=l+1;var f=n(c),d={css:u[1],media:u[2],sourceMap:u[3],supports:u[4],layer:u[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 u=r(t,i),h=0;h<s.length;h++){var l=n(s[h]);0===e[l].references&&(e[l].updater(),e.splice(l,1))}s=u}}},113:t=>{"use strict";t.exports=function(t,e){if(e.styleSheet)e.styleSheet.cssText=t;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(t))}}},127:function(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 u(t){return null==t}function h(t){return"object"==typeof t&&null!==t}function l(t){return Array.isArray(t)}function c(t){return l(t)&&0==t.length}function f(t){return l(t)&&t.length>0}function d(t){return l(t)&&t.every(n)}function p(t){return d(t)&&t.length>0}function m(t){return l(t)&&t.every(r)}function g(t){return l(t)&&t.every(i)}function y(t){return l(t)&&t.every(a)}function v(t){return y(t)&&t.length>0}return t.r(e),t.d(e,{isArray:()=>l,isEmptyArray:()=>c,isFiniteNumber:()=>r,isFiniteNumbersArray:()=>m,isNonEmptyArray:()=>f,isNonEmptyNumbersArray:()=>p,isNonEmptyStringsArray:()=>v,isNonFiniteNumber:()=>i,isNonFiniteNumbersArray:()=>g,isNonNegativeFiniteNumber:()=>o,isNonNullObject:()=>h,isNullish:()=>u,isNumber:()=>n,isNumbersArray:()=>d,isPositiveFiniteNumber:()=>s,isString:()=>a,isStringsArray:()=>y}),e})()},986:function(t){t.exports=(()=>{"use strict";var t={d:(e,n)=>{for(var r in n)t.o(n,r)&&!t.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:n[r]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r:t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}},e={};function n(t){var e=0;return t.forEach(function(t){return e+=t}),e}function r(t){return n(t)/t.length}function i(t){t.sort(function(t,e){return t-e})}t.r(e),t.d(e,{areWithin:()=>d,average:()=>r,clamp:()=>f,degrees:()=>g,flipAway:()=>w,isBetween:()=>l,isBetweenExclusive:()=>c,isBetweenInclusive:()=>l,max:()=>h,mean:()=>r,median:()=>a,min:()=>u,normalizeAngle:()=>v,radians:()=>y,sortNumbers:()=>i,sortNumbersAscending:()=>i,sortNumbersDescending:()=>p,sortedNumbers:()=>o,sortedNumbersAscending:()=>o,sortedNumbersDescending:()=>m,sum:()=>n});var s=function(t,e,n){if(n||2===arguments.length)for(var r,i=0,s=e.length;i<s;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))};function o(t){var e=s([],t,!0);return i(e),e}function a(t){if(0==t.length)return NaN;var e=o(t);if(e.length%2!=0)return e[Math.floor(e.length/2)];var n=e.length/2,i=n-1;return r([e[n],e[i]])}function u(t){if(0==t.length)return 1/0;var e=t[0];return t.slice(1).forEach(function(t){e=Math.min(e,t)}),e}function h(t){if(0==t.length)return-1/0;var e=t[0];return t.slice(1).forEach(function(t){e=Math.max(e,t)}),e}function l(t,e,n){return t>=e&&t<=n}function c(t,e,n){return t>e&&t<n}function f(t,e,n){return t<e?e:t>n?n:t}function d(t,e,n){return Math.abs(t-e)<=n}function p(t){i(t),t.reverse()}function m(t){var e=o(t);return e.reverse(),e}function g(t){return t*(180/Math.PI)}function y(t){return t*(Math.PI/180)}function v(t,e){void 0===e&&(e=-Math.PI);var n=t-e;return e+((n%=2*Math.PI)>=0?n:n+2*Math.PI)}function w(t,e){var n=(e=v(e,t))-t;return(n<Math.PI/2||n>3*Math.PI/2)&&(t+=Math.PI),t}return e})()}},e={};function n(r){var i=e[r];if(void 0!==i)return i.exports;var s=e[r]={exports:{}};return t[r].call(s.exports,s,s.exports,n),s.exports}n.d=(t,e)=>{for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var r={};return(()=>{"use strict";n.r(r),n.d(r,{Linkers:()=>g,Stems:()=>m,areConflicting:()=>h,areCrossing:()=>f,areEqual:()=>a,areKnotless:()=>c,areStacked:()=>u,basePairs:()=>w,deepCopy:()=>i,knotless:()=>d,mountainPlotTraversal:()=>y,parseDotBracket:()=>v,radializable:()=>p,sorted:()=>o});var t=n(854),e=function(t,e,n){if(n||2===arguments.length)for(var r,i=0,s=e.length;i<s;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))};function i(n){return(0,t.isNumbersArray)(n)?e([],n,!0):n.map(function(t){return e([],t,!0)})}var s=n(986);function o(t){var e=i(t);return e.forEach(s.sortNumbers),e.sort(function(t,e){return t[0]-e[0]}),e}function a(t,e){var n=i(t),r=i(e);return(0,s.sortNumbers)(n),(0,s.sortNumbers)(r),[0,1].every(function(t){return n[t]==r[t]})}function u(t,e){var n=o([t,e]);return n[0][0]==n[1][0]-1&&n[0][1]==n[1][1]+1}function h(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||u(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),u=o;u<=a;u++)i.push(u);e.push(i),n=r,r=t.shift()}return e},t}();function y(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=t[0],r=t[1],i=l(r);if(!c(r))throw new Error("Pseudoknot(s) encountered.");var s=[],o=0;return n.forEach(function(t,e){var n=e+1,r=i[e];null==r?s.push(o):n<r?(s.push(o),o++):(n==r||o--,s.push(o))}),s}function v(t){var e=t.split(""),n=[".","(",")"];e.forEach(function(t){if(!n.includes(t))throw new Error('Unrecognized character in dot-bracket notation: "'.concat(t,'".'))});var r=[],i=[];if(e.forEach(function(t,e){var n=e+1;if("("==t)i.push(n);else if(")"==t){var s=i.pop();if("number"!=typeof s)throw new Error("Unmatched downstream partner(s) in dot-bracket notation.");r.push([s,n])}}),i.length>0)throw new Error("Unmatched upstream partner(s) in dot-bracket notation.");return o(r)}function w(t,e){return e.forEach(function(e){e.forEach(function(e){if(e<1)throw new Error("Sequence positions must be positive.");if(e>t.length)throw new Error("Position out of sequence range.")})}),e.map(function(e){return[t[e[0]-1],t[e[1]-1]]})}})(),r})(),t.exports=e()},986:function(t){t.exports=(()=>{"use strict";var t={d:(e,n)=>{for(var r in n)t.o(n,r)&&!t.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:n[r]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r:t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}},e={};function n(t){var e=0;return t.forEach(function(t){return e+=t}),e}function r(t){return n(t)/t.length}function i(t){t.sort(function(t,e){return t-e})}t.r(e),t.d(e,{areWithin:()=>d,average:()=>r,clamp:()=>f,degrees:()=>y,flipAway:()=>b,isBetween:()=>l,isBetweenExclusive:()=>c,isBetweenInclusive:()=>l,max:()=>h,mean:()=>r,median:()=>a,min:()=>u,normalizeAngle:()=>w,radians:()=>v,round:()=>g,sortNumbers:()=>i,sortNumbersAscending:()=>i,sortNumbersDescending:()=>p,sortedNumbers:()=>o,sortedNumbersAscending:()=>o,sortedNumbersDescending:()=>m,sum:()=>n});var s=function(t,e,n){if(n||2===arguments.length)for(var r,i=0,s=e.length;i<s;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))};function o(t){var e=s([],t,!0);return i(e),e}function a(t){if(0==t.length)return NaN;var e=o(t);if(e.length%2!=0)return e[Math.floor(e.length/2)];var n=e.length/2,i=n-1;return r([e[n],e[i]])}function u(t){if(0==t.length)return 1/0;var e=t[0];return t.slice(1).forEach(function(t){e=Math.min(e,t)}),e}function h(t){if(0==t.length)return-1/0;var e=t[0];return t.slice(1).forEach(function(t){e=Math.max(e,t)}),e}function l(t,e,n){return t>=e&&t<=n}function c(t,e,n){return t>e&&t<n}function f(t,e,n){return t<e?e:t>n?n:t}function d(t,e,n){return Math.abs(t-e)<=n}function p(t){i(t),t.reverse()}function m(t){var e=o(t);return e.reverse(),e}function g(t,e){return Number.parseFloat(t.toFixed(null!=e?e:0))}function y(t){return t*(180/Math.PI)}function v(t){return t*(Math.PI/180)}function w(t,e){void 0===e&&(e=-Math.PI);var n=t-e;return e+((n%=2*Math.PI)>=0?n:n+2*Math.PI)}function b(t,e){var n=(e=w(e,t))-t;return(n<Math.PI/2||n>3*Math.PI/2)&&(t+=Math.PI),t}return e})()}},e={};function n(r){var i=e[r];if(void 0!==i)return i.exports;var s=e[r]={exports:{}};return t[r].call(s.exports,s,s.exports,n),s.exports}n.d=(t,e)=>{for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var r={};return(()=>{"use strict";function t(t,e){return t[0]===e[0]&&t[1]===e[1]||t[0]===e[1]&&t[1]===e[0]}function e(t,e){if(!e.includes(t))throw new Error("The given base is not present in the provided base-pair.");return t===e[0]?e[1]:e[0]}n.r(r),n.d(r,{FirstPairedBase:()=>s,LastPairedBase:()=>a,LeadingDanglingBases:()=>u,Linkers:()=>f,PositionPairs:()=>i,Stems:()=>c,TrailingDanglingBases:()=>h,antiParallelPairs:()=>w,areEqual:()=>t,consecutivePairs:()=>y,knotless:()=>d,missing:()=>b,mountainPlotTraversal:()=>m,other:()=>e,parallelPairs:()=>v,parseDotBracket:()=>g,radializable:()=>p});class i{constructor(...t){this.targetStructure=t}get(){let t=this.targetStructure[0];return this.targetStructure[1].map(e=>[t.indexOf(e[0])+1,t.indexOf(e[1])+1])}}class s{constructor(...t){this.targetStructure=t}get(){let t=this.targetStructure[0],e=this.targetStructure[1];if(0==e.length)throw new Error("There are no paired bases.");let n=e.flat(),r=t.findIndex(t=>n.includes(t));if(r<0)throw new Error("No paired bases present in sequence.");return t[r]}}var o=n(986);class a{constructor(...t){this.targetStructure=t}get(){let t=this.targetStructure[0],e=this.targetStructure[1];if(0==e.length)throw new Error("There are no paired bases.");let n=e.flat().map(e=>t.indexOf(e));if((0,o.max)(n)<0)throw new Error("No paired bases present in sequence.");return t[(0,o.max)(n)]}}class 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 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 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 a(...this.targetStructure).get(),n=t.indexOf(e);if(n<0)throw new Error("No paired bases present in sequence.");return t.slice(n+1)}}var l=n(369);class c{constructor(...t){this.targetStructure=t}get(){let t=this.targetStructure[0],e=new i(...this.targetStructure).get();return new l.Stems(t,e).get().map(e=>e.map(e=>[t[e[0]-1],t[e[1]-1]]))}}class f{constructor(...t){this.targetStructure=t}get(){let t=this.targetStructure[0],e=new i(...this.targetStructure).get();return new l.Linkers(t,e).get().map(e=>e.map(e=>t[e-1]))}}function d(...t){let[e,n]=t,r=new i(...t).get();(0,l.areKnotless)(r)||(r=(0,l.knotless)(r));let s=r.map(t=>[e[t[0]-1],e[t[1]-1]]);return[[...e],s]}function p(...t){let[e,n]=t,r=new i(...t).get();return[[...e],(0,l.radializable)(r).map(([t,n])=>[e[t-1],e[n-1]])]}function m(...t){let[e,n]=t,r=new i(...t).get();return(0,l.mountainPlotTraversal)(e,r)}function g(t,e){if(e.length>t.length)throw new Error("Dot-bracket notation is longer than the sequence.");return[...(0,l.parseDotBracket)(e)].map(e=>{let n=e[0],r=e[1];return[t[n-1],t[r-1]]})}function y(t){return t.length<2?[]:t.slice(0,-1).map((e,n)=>[t[n],t[n+1]])}function v(t){let e=[],n=Math.floor(t.length/2)-1,r=Math.ceil(t.length/2);for(let i=0;i<=n;i++){let n=t[i],s=t[r+i];e.push([n,s])}return e}function w(t){let e=[];for(let n=0;n<Math.floor(t.length/2);n++){let r=t[n],i=t[t.length-n-1];e.push([r,i])}return e}function b(e,n){return n.filter(n=>!e.find(e=>t(n,e))).map(t=>[...t])}})(),r})(),t.exports=e()},139:function(t){var e;e=()=>(()=>{"use strict";var t={826:(t,e,n)=>{n.d(e,{A:()=>u,y:()=>a});var r=n(601),i=n.n(r),s=n(314),o=n.n(s)()(i());o.push([t.id,"._xow9qroX8E0n35EgMyS {\n cursor: grab;\n}\n\n._xow9qroX8E0n35EgMyS:active {\n cursor: grabbing;\n}\n",""]);var a="_xow9qroX8E0n35EgMyS";const u=o},314:t=>{t.exports=function(t){var e=[];return e.toString=function(){return this.map(function(e){var n="",r=void 0!==e[5];return e[4]&&(n+="@supports (".concat(e[4],") {")),e[2]&&(n+="@media ".concat(e[2]," {")),r&&(n+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),n+=t(e),r&&(n+="}"),e[2]&&(n+="}"),e[4]&&(n+="}"),n}).join("")},e.i=function(t,n,r,i,s){"string"==typeof t&&(t=[[null,t,void 0]]);var o={};if(r)for(var a=0;a<this.length;a++){var u=this[a][0];null!=u&&(o[u]=!0)}for(var h=0;h<t.length;h++){var l=[].concat(t[h]);r&&o[l[0]]||(void 0!==s&&(void 0===l[5]||(l[1]="@layer".concat(l[5].length>0?" ".concat(l[5]):""," {").concat(l[1],"}")),l[5]=s),n&&(l[2]?(l[1]="@media ".concat(l[2]," {").concat(l[1],"}"),l[2]=n):l[2]=n),i&&(l[4]?(l[1]="@supports (".concat(l[4],") {").concat(l[1],"}"),l[4]=i):l[4]="".concat(i)),e.push(l))}},e}},601:t=>{t.exports=function(t){return t[1]}},72:t=>{var e=[];function n(t){for(var n=-1,r=0;r<e.length;r++)if(e[r].identifier===t){n=r;break}return n}function r(t,r){for(var s={},o=[],a=0;a<t.length;a++){var u=t[a],h=r.base?u[0]+r.base:u[0],l=s[h]||0,c="".concat(h," ").concat(l);s[h]=l+1;var f=n(c),d={css:u[1],media:u[2],sourceMap:u[3],supports:u[4],layer:u[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 u=r(t,i),h=0;h<s.length;h++){var l=n(s[h]);0===e[l].references&&(e[l].updater(),e.splice(l,1))}s=u}}},659:t=>{var e={};t.exports=function(t,n){var r=function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(t){n=null}e[t]=n}return e[t]}(t);if(!r)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");r.appendChild(n)}},540:t=>{t.exports=function(t){var e=document.createElement("style");return t.setAttributes(e,t.attributes),t.insert(e,t.options),e}},56:(t,e,n)=>{t.exports=function(t){var e=n.nc;e&&t.setAttribute("nonce",e)}},825:t=>{t.exports=function(t){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var e=t.insertStyleElement(t);return{update:function(n){!function(t,e,n){var r="";n.supports&&(r+="@supports (".concat(n.supports,") {")),n.media&&(r+="@media ".concat(n.media," {"));var i=void 0!==n.layer;i&&(r+="@layer".concat(n.layer.length>0?" ".concat(n.layer):""," {")),r+=n.css,i&&(r+="}"),n.media&&(r+="}"),n.supports&&(r+="}");var s=n.sourceMap;s&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(s))))," */")),e.styleTagTransform(r,t,e.options)}(e,t,n)},remove:function(){!function(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t)}(e)}}}},113:t=>{t.exports=function(t,e){if(e.styleSheet)e.styleSheet.cssText=t;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(t))}}}},e={};function n(r){var i=e[r];if(void 0!==i)return i.exports;var s=e[r]={id:r,exports:{}};return t[r](s,s.exports,n),s.exports}n.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.d=(t,e)=>{for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.nc=void 0;var r={};n.r(r),n.d(r,{DragTranslater:()=>v});var i=n(72),s=n.n(i),o=n(825),a=n.n(o),u=n(659),h=n.n(u),l=n(56),c=n.n(l),f=n(540),d=n.n(f),p=n(113),m=n.n(p),g=n(826),y={};y.styleTagTransform=m(),y.setAttributes=c(),y.insert=h().bind(null,"head"),y.domAPI=a(),y.insertStyleElement=d(),s()(g.A,y),g.A&&g.A.locals&&g.A.locals;class v{constructor(t){this.targetForm=t,this.mouseIsDown=!1,this.interactionDepth="shallow",window.addEventListener("mousedown",t=>this.handleMouseDown(t)),window.addEventListener("mousemove",t=>this.handleMouseMove(t)),window.addEventListener("mouseup",t=>this.handleMouseUp(t)),t.addEventListener("mouseover",e=>{e.target!==t||t.classList.add(g.y)}),t.addEventListener("mouseout",e=>{e.target!==t||t.classList.remove(g.y)})}get currentTranslation(){let t=this.targetForm.getBoundingClientRect(),e=t.x,n=t.y,r=this.targetForm.style.translate;this.targetForm.style.translate="0px 0px";let i=this.targetForm.getBoundingClientRect(),s=i.x,o=i.y;return this.targetForm.style.translate=r,{x:e-s,y:n-o}}set currentTranslation(t){this.targetForm.style.translate=`${t.x}px ${t.y}px`}untranslate(){this.targetForm.style.translate="0px 0px"}handleMouseDown(t){this.lastMouseDown=t,this.mouseIsDown=!0}handleMouseMove(t){if(!this.mouseIsDown)return;if(!this.lastMouseDown)return;if(!(this.lastMouseDown.target instanceof Node))return;if("shallow"==this.interactionDepth){if(this.lastMouseDown.target!==this.targetForm)return}else if(!this.targetForm.contains(this.lastMouseDown.target))return;let e=this.currentTranslation;this.currentTranslation={x:e.x+t.movementX,y:e.y+t.movementY}}handleMouseUp(t){this.mouseIsDown=!1}}return r})(),t.exports=e()},169:function(t){t.exports=(()=>{var t={986:function(t){t.exports=(()=>{"use strict";var t={d:(e,n)=>{for(var r in n)t.o(n,r)&&!t.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:n[r]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r:t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}},e={};function n(t){var e=0;return t.forEach(function(t){return e+=t}),e}function r(t){return n(t)/t.length}function i(t){t.sort(function(t,e){return t-e})}t.r(e),t.d(e,{areWithin:()=>d,average:()=>r,clamp:()=>f,degrees:()=>y,flipAway:()=>b,isBetween:()=>l,isBetweenExclusive:()=>c,isBetweenInclusive:()=>l,max:()=>h,mean:()=>r,median:()=>a,min:()=>u,normalizeAngle:()=>w,radians:()=>v,round:()=>g,sortNumbers:()=>i,sortNumbersAscending:()=>i,sortNumbersDescending:()=>p,sortedNumbers:()=>o,sortedNumbersAscending:()=>o,sortedNumbersDescending:()=>m,sum:()=>n});var s=function(t,e,n){if(n||2===arguments.length)for(var r,i=0,s=e.length;i<s;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))};function o(t){var e=s([],t,!0);return i(e),e}function a(t){if(0==t.length)return NaN;var e=o(t);if(e.length%2!=0)return e[Math.floor(e.length/2)];var n=e.length/2,i=n-1;return r([e[n],e[i]])}function u(t){if(0==t.length)return 1/0;var e=t[0];return t.slice(1).forEach(function(t){e=Math.min(e,t)}),e}function h(t){if(0==t.length)return-1/0;var e=t[0];return t.slice(1).forEach(function(t){e=Math.max(e,t)}),e}function l(t,e,n){return t>=e&&t<=n}function c(t,e,n){return t>e&&t<n}function f(t,e,n){return t<e?e:t>n?n:t}function d(t,e,n){return Math.abs(t-e)<=n}function p(t){i(t),t.reverse()}function m(t){var e=o(t);return e.reverse(),e}function g(t,e){return Number.parseFloat(t.toFixed(null!=e?e:0))}function y(t){return t*(180/Math.PI)}function v(t){return t*(Math.PI/180)}function w(t,e){void 0===e&&(e=-Math.PI);var n=t-e;return e+((n%=2*Math.PI)>=0?n:n+2*Math.PI)}function b(t,e){var n=(e=w(e,t))-t;return(n<Math.PI/2||n>3*Math.PI/2)&&(t+=Math.PI),t}return e})()}},e={};function n(r){var i=e[r];if(void 0!==i)return i.exports;var s=e[r]={exports:{}};return t[r].call(s.exports,s,s.exports,n),s.exports}n.d=(t,e)=>{for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var r={};return(()=>{"use strict";function t(t){if(0==t.length)throw new Error("The array of values is empty.");if(1==new Set(t).size)return t[0];throw new Error("Not all values are the same.")}n.r(r),n.d(r,{consensusNumber:()=>i,consensusValue:()=>t,mostCommonValue:()=>o});var e=n(986);function i(n,r){return t(void 0===r?n:n.map(t=>(0,e.round)(t,r)))}class s{static of(t){return{in:e=>{let n=new Set([t]);return e.filter(t=>n.has(t))}}}}function o(t){if(0==t.length)throw new Error("The array of values is empty.");let n=[...new Set(t)],r=n.map(e=>s.of(e).in(t).length),i=(0,e.max)(r),o=n.findIndex(e=>s.of(e).in(t).length==i);if(o<0)throw new Error("Unable to find the most common value.");return n[o]}})(),r})()},290:(t,e,n)=>{"use strict";n.d(e,{A:()=>u,_:()=>a});var r=n(601),i=n.n(r),s=n(314),o=n.n(s)()(i());o.push([t.id,'.kcto2iumhdvv3MluNmLw {\n position: absolute;\n top: 13px;\n right: 17px;\n\n margin: 0px;\n\n border: none;\n outline: none;\n\n padding: 3px 12px;\n border-radius: 3px;\n\n font-family: "Open Sans", sans-serif;\n font-size: 16px;\n font-weight: 600;\n font-style: normal;\n color: #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 u=o},314:t=>{"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map(function(e){var n="",r=void 0!==e[5];return e[4]&&(n+="@supports (".concat(e[4],") {")),e[2]&&(n+="@media ".concat(e[2]," {")),r&&(n+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),n+=t(e),r&&(n+="}"),e[2]&&(n+="}"),e[4]&&(n+="}"),n}).join("")},e.i=function(t,n,r,i,s){"string"==typeof t&&(t=[[null,t,void 0]]);var o={};if(r)for(var a=0;a<this.length;a++){var u=this[a][0];null!=u&&(o[u]=!0)}for(var h=0;h<t.length;h++){var l=[].concat(t[h]);r&&o[l[0]]||(void 0!==s&&(void 0===l[5]||(l[1]="@layer".concat(l[5].length>0?" ".concat(l[5]):""," {").concat(l[1],"}")),l[5]=s),n&&(l[2]?(l[1]="@media ".concat(l[2]," {").concat(l[1],"}"),l[2]=n):l[2]=n),i&&(l[4]?(l[1]="@supports (".concat(l[4],") {").concat(l[1],"}"),l[4]=i):l[4]="".concat(i)),e.push(l))}},e}},358:function(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 u(t){return null==t}function h(t){return"object"==typeof t&&null!==t}function l(t){return Array.isArray(t)}function c(t){return l(t)&&0==t.length}function f(t){return l(t)&&t.length>0}function d(t){return l(t)&&t.every(n)}function p(t){return d(t)&&t.length>0}function m(t){return l(t)&&t.every(r)}function g(t){return l(t)&&t.every(i)}function y(t){return l(t)&&t.every(a)}function v(t){return y(t)&&t.length>0}return t.r(e),t.d(e,{isArray:()=>l,isEmptyArray:()=>c,isFiniteNumber:()=>r,isFiniteNumbersArray:()=>m,isNonEmptyArray:()=>f,isNonEmptyNumbersArray:()=>p,isNonEmptyStringsArray:()=>v,isNonFiniteNumber:()=>i,isNonFiniteNumbersArray:()=>g,isNonNegativeFiniteNumber:()=>o,isNonNullObject:()=>h,isNullish:()=>u,isNumber:()=>n,isNumbersArray:()=>d,isPositiveFiniteNumber:()=>s,isString:()=>a,isStringsArray:()=>y}),e})()}},e={};function n(r){var i=e[r];if(void 0!==i)return i.exports;var s=e[r]={exports:{}};return t[r].call(s.exports,s,s.exports,n),s.exports}n.d=(t,e)=>{for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var r={};return(()=>{"use strict";function t(t,e){for(let[n,r]of Object.entries(e))t.setAttribute(n,r)}n.r(r),n.d(r,{CoordinateSystem:()=>c,HorizontalClientScaling:()=>d,InnerXML:()=>w,OuterXML:()=>_,Scaling:()=>f,VerticalClientScaling:()=>p,assignUUID:()=>l,bringToFront:()=>m,isSVGGraphicsElement:()=>N,isSVGGraphicsElementsArray:()=>S,sendToBack:()=>g,setAttributes:()=>t});const e={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};var i,s=new Uint8Array(16);function o(){if(!i&&!(i="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return i(s)}for(var a=[],u=0;u<256;++u)a.push((u+256).toString(16).slice(1));const h=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-"+h()}class c{constructor(t){this.targetSVGDoc=t}get width(){return this.targetSVGDoc.viewBox.baseVal.width}get height(){return this.targetSVGDoc.viewBox.baseVal.height}get minX(){return this.targetSVGDoc.viewBox.baseVal.x}get maxX(){return this.minX+this.width}get minY(){return this.targetSVGDoc.viewBox.baseVal.y}get maxY(){return this.minY+this.height}get horizontalScaling(){return this.targetSVGDoc.width.baseVal.value/this.width}get verticalScaling(){return this.targetSVGDoc.height.baseVal.value/this.height}setScaling(t){this.targetSVGDoc.setAttribute("width",""+t*this.width),this.targetSVGDoc.setAttribute("height",""+t*this.height)}get clientWidth(){return this.targetSVGDoc.getBoundingClientRect().width}get clientHeight(){return this.targetSVGDoc.getBoundingClientRect().height}get horizontalClientScaling(){return this.clientWidth/this.width}get verticalClientScaling(){return this.clientHeight/this.height}get minClientX(){return this.targetSVGDoc.getBoundingClientRect().x}get minClientY(){return this.targetSVGDoc.getBoundingClientRect().y}fromClientX(t){return this.minX+(t-this.minClientX)/this.horizontalClientScaling}fromClientY(t){return this.minY+(t-this.minClientY)/this.verticalClientScaling}fromClientCoordinates(t,e){return[this.fromClientX(t),this.fromClientY(e)]}fromClientPoint(t){return{x:this.fromClientX(t.x),y:this.fromClientY(t.y)}}toClientX(t){return this.minClientX+this.horizontalClientScaling*(t-this.minX)}toClientY(t){return this.minClientY+this.verticalClientScaling*(t-this.minY)}toClientCoordinates(t,e){return[this.toClientX(t),this.toClientY(e)]}toClientPoint(t){return{x:this.toClientX(t.x),y:this.toClientY(t.y)}}}class f{constructor(t){this.targetSVGDoc=t}set(t){let e=this.targetSVGDoc.viewBox.baseVal;this.targetSVGDoc.setAttribute("width",t*e.width+"px"),this.targetSVGDoc.setAttribute("height",t*e.height+"px")}}class d{constructor(t){this.targetSVGDoc=t}get(){let t=this.targetSVGDoc.getBoundingClientRect(),e=this.targetSVGDoc.viewBox.baseVal;return t.width/e.width}}class p{constructor(t){this.targetSVGDoc=t}get(){let t=this.targetSVGDoc.getBoundingClientRect(),e=this.targetSVGDoc.viewBox.baseVal;return t.height/e.height}}function m(t){let e=t.parentNode;e&&e.appendChild(t)}function g(t){let e=t.parentNode;e&&e.prepend(t)}var y,v=function(t,e,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!r:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(t):r?r.value:e.get(t)};class w{constructor(t){y.set(this,void 0),function(t,e,n){if("function"==typeof e||!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");e.set(t,n)}(this,y,t)}toString(){return v(this,y,"f").innerHTML}set(t){v(this,y,"f").innerHTML=t}}y=new WeakMap;var b,x=function(t,e,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!r:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(t):r?r.value:e.get(t)};class _{constructor(t){b.set(this,void 0),function(t,e,n){if("function"==typeof e||!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");e.set(t,n)}(this,b,t)}toString(){return x(this,b,"f").outerHTML}set(t){let e=document.createElementNS("http://www.w3.org/2000/svg","svg");if(e.style.height="0px",document.body.append(e),e.innerHTML=t,!e.firstElementChild)throw new Error("Outer XML must encode an SVG element.");if(e.childNodes.length>1)throw new Error("Outer XML cannot encode multiple DOM nodes.");if(e.firstElementChild.tagName.toLowerCase()!=x(this,b,"f").tagName.toLowerCase())throw new Error("Outer XML must specify an SVG element with the same tag name as the target SVG element.");[...x(this,b,"f").attributes].forEach(t=>x(this,b,"f").removeAttribute(t.name)),[...e.firstElementChild.attributes].forEach(t=>x(this,b,"f").setAttribute(t.name,t.value)),x(this,b,"f").innerHTML=e.firstElementChild.innerHTML,e.remove()}}function N(t){return t instanceof SVGGraphicsElement}b=new WeakMap;var k=n(854);function S(t){return(0,k.isArray)(t)&&t.every(N)}})(),r})(),t.exports=e()},731:function(t){var e;e=()=>(()=>{"use strict";var t={d:(e,n)=>{for(var r in n)t.o(n,r)&&!t.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:n[r]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r:t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}},e={};t.r(e),t.d(e,{CenterPoint:()=>h});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},u=function(t,e,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!r:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(t):r?r.value:e.get(t)};class h{constructor(t){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(()=>u(this,n,"m",o).call(this,"move")),"f"),u(this,s,"f").observe(t,{attributes:!0,childList:!0,characterData:!0,subtree:!0})}get x(){let t=u(this,r,"f").getBBox();return t.x+t.width/2}set x(t){let e=this.x,n=[...u(this,r,"f").x.baseVal].map(t=>t.value);0!=n.length||n.push(0),n=n.map(n=>n+(t-e)),u(this,r,"f").setAttribute("x",n.join(", "))}get y(){let t=u(this,r,"f").getBBox();return t.y+t.height/2}set y(t){let e=this.y,n=[...u(this,r,"f").y.baseVal].map(t=>t.value);0!=n.length||n.push(0),n=n.map(n=>n+(t-e)),u(this,r,"f").setAttribute("y",n.join(", "))}addEventListener(t,e){u(this,i,"f")[t].push(e)}removeEventListener(t,e){u(this,i,"f")[t]=u(this,i,"f")[t].filter(t=>t!==e)}}return r=new WeakMap,i=new WeakMap,s=new WeakMap,n=new WeakSet,o=function(t){u(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 u(t){return null==t}function h(t){return"object"==typeof t&&null!==t}function l(t){return Array.isArray(t)}function c(t){return l(t)&&0==t.length}function f(t){return l(t)&&t.length>0}function d(t){return l(t)&&t.every(n)}function p(t){return d(t)&&t.length>0}function m(t){return l(t)&&t.every(r)}function g(t){return l(t)&&t.every(i)}function y(t){return l(t)&&t.every(a)}function v(t){return y(t)&&t.length>0}return t.r(e),t.d(e,{isArray:()=>l,isEmptyArray:()=>c,isFiniteNumber:()=>r,isFiniteNumbersArray:()=>m,isNonEmptyArray:()=>f,isNonEmptyNumbersArray:()=>p,isNonEmptyStringsArray:()=>v,isNonFiniteNumber:()=>i,isNonFiniteNumbersArray:()=>g,isNonNegativeFiniteNumber:()=>o,isNonNullObject:()=>h,isNullish:()=>u,isNumber:()=>n,isNumbersArray:()=>d,isPositiveFiniteNumber:()=>s,isString:()=>a,isStringsArray:()=>y}),e})()},986:function(t){t.exports=(()=>{"use strict";var t={d:(e,n)=>{for(var r in n)t.o(n,r)&&!t.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:n[r]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r:t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}},e={};function n(t){var e=0;return t.forEach(function(t){return e+=t}),e}function r(t){return n(t)/t.length}function i(t){t.sort(function(t,e){return t-e})}t.r(e),t.d(e,{areWithin:()=>d,average:()=>r,clamp:()=>f,degrees:()=>g,flipAway:()=>w,isBetween:()=>l,isBetweenExclusive:()=>c,isBetweenInclusive:()=>l,max:()=>h,mean:()=>r,median:()=>a,min:()=>u,normalizeAngle:()=>v,radians:()=>y,sortNumbers:()=>i,sortNumbersAscending:()=>i,sortNumbersDescending:()=>p,sortedNumbers:()=>o,sortedNumbersAscending:()=>o,sortedNumbersDescending:()=>m,sum:()=>n});var s=function(t,e,n){if(n||2===arguments.length)for(var r,i=0,s=e.length;i<s;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))};function o(t){var e=s([],t,!0);return i(e),e}function a(t){if(0==t.length)return NaN;var e=o(t);if(e.length%2!=0)return e[Math.floor(e.length/2)];var n=e.length/2,i=n-1;return r([e[n],e[i]])}function u(t){if(0==t.length)return 1/0;var e=t[0];return t.slice(1).forEach(function(t){e=Math.min(e,t)}),e}function h(t){if(0==t.length)return-1/0;var e=t[0];return t.slice(1).forEach(function(t){e=Math.max(e,t)}),e}function l(t,e,n){return t>=e&&t<=n}function c(t,e,n){return t>e&&t<n}function f(t,e,n){return t<e?e:t>n?n:t}function d(t,e,n){return Math.abs(t-e)<=n}function p(t){i(t),t.reverse()}function m(t){var e=o(t);return e.reverse(),e}function g(t){return t*(180/Math.PI)}function y(t){return t*(Math.PI/180)}function v(t,e){void 0===e&&(e=-Math.PI);var n=t-e;return e+((n%=2*Math.PI)>=0?n:n+2*Math.PI)}function w(t,e){var n=(e=v(e,t))-t;return(n<Math.PI/2||n>3*Math.PI/2)&&(t+=Math.PI),t}return e})()}},e={};function n(r){var i=e[r];if(void 0!==i)return i.exports;var s=e[r]={exports:{}};return t[r].call(s.exports,s,s.exports,n),s.exports}n.d=(t,e)=>{for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var r={};return(()=>{"use strict";n.r(r),n.d(r,{BasePair:()=>Pn,Nucleobase:()=>Wn,seqSorted:()=>Dn});var t={};n.r(t),n.d(t,{cx:()=>Dt,cy:()=>Bt,height:()=>Rt,rx:()=>Lt,ry:()=>jt,width:()=>It,x:()=>Wt,y:()=>Pt});var e={};n.r(e),n.d(e,{from:()=>Ut,to:()=>Vt});var i={};n.r(i),n.d(i,{MorphArray:()=>Qt,height:()=>te,width:()=>Kt,x:()=>Zt,y:()=>Jt});var s={};n.r(s),n.d(s,{array:()=>Ae,clear:()=>Ee,move:()=>Te,plot:()=>Oe,size:()=>Le});var o={};n.r(o),n.d(o,{amove:()=>an,ax:()=>sn,ay:()=>on,build:()=>un,center:()=>rn,cx:()=>en,cy:()=>nn,length:()=>Ze,move:()=>tn,plain:()=>Qe,x:()=>Je,y:()=>Ke});var a={};n.r(a),n.d(a,{dmove:()=>pn,dx:()=>mn,dy:()=>gn,height:()=>yn,move:()=>vn,size:()=>wn,width:()=>bn,x:()=>xn,y:()=>_n});const u={},h=[];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)),u[t]=Object.assign(u[t]||{},e);else for(const e in t)l(e,t[e])}function c(t){return u[t]||{}}function f(t){h.push(...t)}function d(t,e){let n;const r=t.length,i=[];for(n=0;n<r;n++)i.push(e(t[n]));return i}function p(t){return t%360*Math.PI/180}function m(t){return t.charAt(0).toUpperCase()+t.slice(1)}function g(t,e,n,r){return null!=e&&null!=n||(r=r||t.bbox(),null==e?e=r.width/r.height*n:null==n&&(n=r.height/r.width*e)),{width:e,height:n}}function y(t,e){const n=t.origin;let r=null!=t.ox?t.ox:null!=t.originX?t.originX:"center",i=null!=t.oy?t.oy:null!=t.originY?t.originY:"center";null!=n&&([r,i]=Array.isArray(n)?n:"object"==typeof n?[n.x,n.y]:[n,n]);const s="string"==typeof r,o="string"==typeof i;if(s||o){const{height:t,width:n,x:a,y:u}=e.bbox();s&&(r=r.includes("left")?a:r.includes("right")?a+n:a+n/2),o&&(i=i.includes("top")?u:i.includes("bottom")?u+t:u+t/2)}return[r,i]}const v=new Set(["desc","metadata","title"]),w=t=>v.has(t.nodeName),b=(t,e,n={})=>{const r={...e};for(const t in r)r[t].valueOf()===n[t]&&delete r[t];Object.keys(r).length?t.node.setAttribute("data-svgjs",JSON.stringify(r)):(t.node.removeAttribute("data-svgjs"),t.node.removeAttribute("svgjs:data"))},x="http://www.w3.org/2000/svg",_="http://www.w3.org/2000/xmlns/",N="http://www.w3.org/1999/xlink",k={window:"undefined"==typeof window?null:window,document:"undefined"==typeof document?null:document};class S{}const M={},C="___SYMBOL___ROOT___";function A(t,e=x){return k.document.createElementNS(e,t)}function E(t,e=!1){if(t instanceof S)return t;if("object"==typeof t)return L(t);if(null==t)return new M[C];if("string"==typeof t&&"<"!==t.charAt(0))return L(k.document.querySelector(t));const n=e?k.document.createElement("div"):A("svg");return n.innerHTML=t,t=L(n.firstChild),n.removeChild(n.firstChild),t}function T(t,e){return e&&(e instanceof k.window.Node||e.ownerDocument&&e instanceof e.ownerDocument.defaultView.Node)?e:A(t)}function O(t){if(!t)return null;if(t.instance instanceof S)return t.instance;if("#document-fragment"===t.nodeName)return new M.Fragment(t);let e=m(t.nodeName||"Dom");return"LinearGradient"===e||"RadialGradient"===e?e="Gradient":M[e]||(e="Dom"),new M[e](t)}let L=O;function j(t,e=t.name,n=!1){return M[e]=t,n&&(M[C]=t),f(Object.getOwnPropertyNames(t.prototype)),t}let W=1e3;function P(t){return"Svgjs"+m(t)+W++}function D(t){for(let e=t.children.length-1;e>=0;e--)D(t.children[e]);return t.id?(t.id=P(t.nodeName),t):t}function B(t,e){let n,r;for(r=(t=Array.isArray(t)?t:[t]).length-1;r>=0;r--)for(n in e)t[r].prototype[n]=e[n]}function I(t){return function(...e){const n=e[e.length-1];return!n||n.constructor!==Object||n instanceof Array?t.apply(this,e):t.apply(this,e.slice(0,-1)).attr(n)}}l("Dom",{siblings:function(){return this.parent().children()},position:function(){return this.parent().index(this)},next:function(){return this.siblings()[this.position()+1]},prev:function(){return this.siblings()[this.position()-1]},forward:function(){const t=this.position();return this.parent().add(this.remove(),t+1),this},backward:function(){const t=this.position();return this.parent().add(this.remove(),t?t-1:0),this},front:function(){return this.parent().add(this.remove()),this},back:function(){return this.parent().add(this.remove(),0),this},before:function(t){(t=E(t)).remove();const e=this.position();return this.parent().add(t,e),this},after:function(t){(t=E(t)).remove();const e=this.position();return this.parent().add(t,e+1),this},insertBefore:function(t){return(t=E(t)).before(this),this},insertAfter:function(t){return(t=E(t)).after(this),this}});const R=/^([+-]?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?)([a-z%]*)$/i,z=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i,F=/rgb\((\d+),(\d+),(\d+)\)/,q=/(#[a-z_][a-z0-9\-_]*)/i,U=/\)\s*,?\s*/,V=/\s/g,G=/^#[a-f0-9]{3}$|^#[a-f0-9]{6}$/i,H=/^rgb\(/,X=/^(\s+)?$/,Y=/^[+-]?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,$=/\.(jpg|jpeg|png|gif|svg)(\?[^=]+.*)?/i,Q=/[\s,]+/,Z=/[MLHVCSQTAZ]/i;function J(t){const e=Math.round(t),n=Math.max(0,Math.min(255,e)).toString(16);return 1===n.length?"0"+n:n}function K(t,e){for(let n=e.length;n--;)if(null==t[e[n]])return!1;return!0}function tt(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+6*(e-t)*n:n<.5?e:n<2/3?t+(e-t)*(2/3-n)*6:t}l("Dom",{classes:function(){const t=this.attr("class");return null==t?[]:t.trim().split(Q)},hasClass:function(t){return-1!==this.classes().indexOf(t)},addClass:function(t){if(!this.hasClass(t)){const e=this.classes();e.push(t),this.attr("class",e.join(" "))}return this},removeClass:function(t){return this.hasClass(t)&&this.attr("class",this.classes().filter(function(e){return e!==t}).join(" ")),this},toggleClass:function(t){return this.hasClass(t)?this.removeClass(t):this.addClass(t)}}),l("Dom",{css:function(t,e){const n={};if(0===arguments.length)return this.node.style.cssText.split(/\s*;\s*/).filter(function(t){return!!t.length}).forEach(function(t){const e=t.split(/\s*:\s*/);n[e[0]]=e[1]}),n;if(arguments.length<2){if(Array.isArray(t)){for(const e of t){const t=e;n[e]=this.node.style.getPropertyValue(t)}return n}if("string"==typeof t)return this.node.style.getPropertyValue(t);if("object"==typeof t)for(const e in t)this.node.style.setProperty(e,null==t[e]||X.test(t[e])?"":t[e])}return 2===arguments.length&&this.node.style.setProperty(t,null==e||X.test(e)?"":e),this},show:function(){return this.css("display","")},hide:function(){return this.css("display","none")},visible:function(){return"none"!==this.css("display")}}),l("Dom",{data:function(t,e,n){if(null==t)return this.data(d(function(t){let e;const n=t.length,r=[];for(e=0;e<n;e++)0===t[e].nodeName.indexOf("data-")&&r.push(t[e]);return r}(this.node.attributes),t=>t.nodeName.slice(5)));if(t instanceof Array){const e={};for(const n of t)e[n]=this.data(n);return e}if("object"==typeof t)for(e in t)this.data(e,t[e]);else if(arguments.length<2)try{return JSON.parse(this.attr("data-"+t))}catch(e){return this.attr("data-"+t)}else this.attr("data-"+t,null===e?null:!0===n||"string"==typeof e||"number"==typeof e?e:JSON.stringify(e));return this}}),l("Dom",{remember:function(t,e){if("object"==typeof arguments[0])for(const e in t)this.remember(e,t[e]);else{if(1===arguments.length)return this.memory()[t];this.memory()[t]=e}return this},forget:function(){if(0===arguments.length)this._memory={};else for(let t=arguments.length-1;t>=0;t--)delete this.memory()[arguments[t]];return this},memory:function(){return this._memory=this._memory||{}}});class et{constructor(...t){this.init(...t)}static isColor(t){return t&&(t instanceof et||this.isRgb(t)||this.test(t))}static isRgb(t){return t&&"number"==typeof t.r&&"number"==typeof t.g&&"number"==typeof t.b}static random(t="vibrant",e){const{random:n,round:r,sin:i,PI:s}=Math;if("vibrant"===t){const t=24*n()+57,e=38*n()+45,r=360*n();return new et(t,e,r,"lch")}if("sine"===t){const t=r(80*i(2*s*(e=null==e?n():e)/.5+.01)+150),o=r(50*i(2*s*e/.5+4.6)+200),a=r(100*i(2*s*e/.5+2.3)+150);return new et(t,o,a)}if("pastel"===t){const t=8*n()+86,e=17*n()+9,r=360*n();return new et(t,e,r,"lch")}if("dark"===t){const t=10+10*n(),e=50*n()+86,r=360*n();return new et(t,e,r,"lch")}if("rgb"===t){const t=255*n(),e=255*n(),r=255*n();return new et(t,e,r)}if("lab"===t){const t=100*n(),e=256*n()-128,r=256*n()-128;return new et(t,e,r,"lab")}if("grey"===t){const t=255*n();return new et(t,t,t)}throw new Error("Unsupported random color mode")}static test(t){return"string"==typeof t&&(G.test(t)||H.test(t))}cmyk(){const{_a:t,_b:e,_c:n}=this.rgb(),[r,i,s]=[t,e,n].map(t=>t/255),o=Math.min(1-r,1-i,1-s);return 1===o?new et(0,0,0,1,"cmyk"):new et((1-r-o)/(1-o),(1-i-o)/(1-o),(1-s-o)/(1-o),o,"cmyk")}hsl(){const{_a:t,_b:e,_c:n}=this.rgb(),[r,i,s]=[t,e,n].map(t=>t/255),o=Math.max(r,i,s),a=Math.min(r,i,s),u=(o+a)/2,h=o===a,l=o-a;return new et(360*(h?0:o===r?((i-s)/l+(i<s?6:0))/6:o===i?((s-r)/l+2)/6:o===s?((r-i)/l+4)/6:0),100*(h?0:u>.5?l/(2-o-a):l/(o+a)),100*u,"hsl")}init(t=0,e=0,n=0,r=0,i="rgb"){if(t=t||0,this.space)for(const t in this.space)delete this[this.space[t]];if("number"==typeof t)i="string"==typeof r?r:i,r="string"==typeof r?0:r,Object.assign(this,{_a:t,_b:e,_c:n,_d:r,space:i});else if(t instanceof Array)this.space=e||("string"==typeof t[3]?t[3]:t[4])||"rgb",Object.assign(this,{_a:t[0],_b:t[1],_c:t[2],_d:t[3]||0});else if(t instanceof Object){const n=function(t,e){const n=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:u}=this,h="rgb"===this.space?{r:s,g:o,b:a}:"xyz"===this.space?{x:s,y:o,z:a}:"hsl"===this.space?{h:s,s:o,l:a}:"lab"===this.space?{l:s,a:o,b:a}:"lch"===this.space?{l:s,c:o,h:a}:"cmyk"===this.space?{c:s,m:o,y:a,k:u}:{};Object.assign(this,h)}lab(){const{x:t,y:e,z:n}=this.xyz();return new 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,u=o-s/200,h=16/116,l=.008856,c=7.787;t=.95047*(a**3>l?a**3:(a-h)/c),e=1*(o**3>l?o**3:(o-h)/c),n=1.08883*(u**3>l?u**3:(u-h)/c)}const r=3.2406*t+-1.5372*e+-.4986*n,i=-.9689*t+1.8758*e+.0415*n,s=.0557*t+-.204*e+1.057*n,o=Math.pow,a=.0031308,u=r>a?1.055*o(r,1/2.4)-.055:12.92*r,h=i>a?1.055*o(i,1/2.4)-.055:12.92*i,l=s>a?1.055*o(s,1/2.4)-.055:12.92*s;return new et(255*u,255*h,255*l)}if("hsl"===this.space){let{h:t,s:e,l:n}=this;if(t/=360,e/=100,n/=100,0===e)return n*=255,new 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,u=s>.04045?Math.pow((s+.055)/1.055,2.4):s/12.92,h=(.4124*o+.3576*a+.1805*u)/.95047,l=(.2126*o+.7152*a+.0722*u)/1,c=(.0193*o+.1192*a+.9505*u)/1.08883,f=h>.008856?Math.pow(h,1/3):7.787*h+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,u=t.shear||0,h=t.rotate||t.theta||0,l=new nt(t.origin||t.around||t.ox||t.originX,t.oy||t.originY),c=l.x,f=l.y,d=new nt(t.position||t.px||t.positionX||NaN,t.py||t.positionY||NaN),p=d.x,m=d.y,g=new nt(t.translate||t.tx||t.translateX,t.ty||t.translateY),y=g.x,v=g.y,w=new nt(t.relative||t.rx||t.relativeX,t.ry||t.relativeY);return{scaleX:o,scaleY:a,skewX:i,skewY:s,shear:u,theta:h,rx:w.x,ry:w.y,tx:y,ty:v,ox:c,oy:f,px:p,py:m}}static fromArray(t){return{a:t[0],b:t[1],c:t[2],d:t[3],e:t[4],f:t[5]}}static isMatrixLike(t){return null!=t.a||null!=t.b||null!=t.c||null!=t.d||null!=t.e||null!=t.f}static matrixMultiply(t,e,n){const r=t.a*e.a+t.c*e.b,i=t.b*e.a+t.d*e.b,s=t.a*e.c+t.c*e.d,o=t.b*e.c+t.d*e.d,a=t.e+t.a*e.e+t.c*e.f,u=t.f+t.b*e.e+t.d*e.f;return n.a=r,n.b=i,n.c=s,n.d=o,n.e=a,n.f=u,n}around(t,e,n){return this.clone().aroundO(t,e,n)}aroundO(t,e,n){const r=t||0,i=e||0;return this.translateO(-r,-i).lmultiplyO(n).translateO(r,i)}clone(){return new 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,u=n*s-r*i,h=u>0?1:-1,l=h*Math.sqrt(n*n+r*r),c=Math.atan2(h*r,h*n),f=180/Math.PI*c,d=Math.cos(c),p=Math.sin(c),m=(n*i+r*s)/u,g=i*l/(m*n-r)||s*l/(m*r+n);return{scaleX:l,scaleY:g,shear:m,rotate: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 Ct?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,u=-e/o,h=-n/o,l=t/o,c=-(a*i+h*s),f=-(u*i+l*s);return this.a=a,this.b=u,this.c=h,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:u,e:h,f:l}=this;return this.a=s*r-o*i,this.b=o*r+s*i,this.c=a*r-u*i,this.d=u*r+a*i,this.e=h*r-l*i+n*i-e*r+e,this.f=l*r+h*i-e*i-n*r+n,this}scale(){return this.clone().scaleO(...arguments)}scaleO(t,e=t,n=0,r=0){3===arguments.length&&(r=n,n=e,e=t);const{a:i,b:s,c:o,d:a,e:u,f:h}=this;return this.a=i*t,this.b=s*e,this.c=o*t,this.d=a*e,this.e=u*t-n*t+n,this.f=h*e-r*e+r,this}shear(t,e,n){return this.clone().shearO(t,e,n)}shearO(t,e=0,n=0){const{a:r,b:i,c:s,d:o,e:a,f:u}=this;return this.a=r+i*t,this.c=s+o*t,this.e=a+u*t-n*t,this}skew(){return this.clone().skewO(...arguments)}skewO(t,e=t,n=0,r=0){3===arguments.length&&(r=n,n=e,e=t),t=p(t),e=p(e);const i=Math.tan(t),s=Math.tan(e),{a:o,b:a,c:u,d:h,e:l,f:c}=this;return this.a=o+a*i,this.b=a+o*s,this.c=u+h*i,this.d=h+u*s,this.e=l+c*i-r*i,this.f=c+l*s-n*s,this}skewX(t,e,n){return this.skew(t,0,e,n)}skewY(t,e,n){return this.skew(0,t,e,n)}toArray(){return[this.a,this.b,this.c,this.d,this.e,this.f]}toString(){return"matrix("+this.a+","+this.b+","+this.c+","+this.d+","+this.e+","+this.f+")"}transform(t){if(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=E().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)}j(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 ut(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 u=a/t;u===1/0&&(u=Number.MAX_SAFE_INTEGER/100),e=e||new nt(n/2/s+i.x,r/2/o+i.y);const h=new at(i).transform(new it({scale:u,origin:e}));return this.viewbox(h)}}}),j(at,"Box");class ht extends Array{constructor(t=[],...e){if(super(t,...e),"number"==typeof t)return this;this.length=0,this.push(...t)}}const lt=ht;B([ht],{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)}))}ht.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([ht],t)};let dt=0;const pt={};function mt(t){let e=t.getEventHolder();return e===k.window&&(e=pt),e.events||(e.events={}),e.events}function gt(t){return t.getEventTarget()}function yt(t,e,n,r,i){const s=n.bind(r||t),o=E(t),a=mt(o),u=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,u.addEventListener(e,s,i||!1)})}function vt(t,e,n,r){const i=E(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 u,h;if(n)s[e]&&s[e][a||"*"]&&(o.removeEventListener(e,s[e][a||"*"][n],r||!1),delete s[e][a||"*"][n]);else if(e&&a){if(s[e]&&s[e][a]){for(h in s[e][a])vt(o,[e,a].join("."),h);delete s[e][a]}}else if(a)for(t in s)for(u in s[t])a===u&&vt(o,[t,a].join("."));else if(e){if(s[e]){for(u in s[e])vt(o,[e,u].join("."));delete s[e]}}else{for(t in s)vt(o,t);!function(t){let e=t.getEventHolder();e===k.window&&(e=pt),e.events&&(e.events={})}(i)}})}class wt extends S{addEventListener(){}dispatch(t,e,n){return function(t,e,n,r){const i=gt(t);return e instanceof k.window.Event||(e=new k.window.CustomEvent(e,{detail:n,cancelable:!0,...r})),i.dispatchEvent(e),e}(this,t,e,n)}dispatchEvent(t){const e=this.getEventHolder().events;if(!e)return!0;const n=e[t.type];for(const e in n)for(const r in n[e])n[e][r](t);return!t.defaultPrevented}fire(t,e,n){return this.dispatch(t,e,n),this}getEventHolder(){return this}getEventTarget(){return this}off(t,e,n){return vt(this,t,e,n),this}on(t,e,n,r){return yt(this,t,e,n,r),this}removeEventListener(){}}function bt(){}j(wt,"EventTarget");const xt={"fill-opacity":1,"stroke-opacity":1,"stroke-width":0,"stroke-linejoin":"miter","stroke-linecap":"butt",fill:"#000000",stroke:"#000000",opacity:1,x:0,y:0,cx:0,cy:0,width:0,height:0,r:0,rx:0,ry:0,offset:0,"stop-opacity":1,"stop-color":"#000000","text-anchor":"start"};class _t extends Array{constructor(...t){super(...t),this.init(...t)}clone(){return new this.constructor(this)}init(t){return"number"==typeof t||(this.length=0,this.push(...this.parse(t))),this}parse(t=[]){return t instanceof Array?t:t.trim().split(Q).map(parseFloat)}toArray(){return Array.prototype.concat.apply([],this)}toSet(){return new Set(this)}toString(){return this.join(" ")}valueOf(){const t=[];return t.push(...this),t}}class Nt{constructor(...t){this.init(...t)}convert(t){return new Nt(this.value,t)}divide(t){return t=new Nt(t),new Nt(this/t,this.unit||t.unit)}init(t,e){return e=Array.isArray(t)?t[1]:e,t=Array.isArray(t)?t[0]:t,this.value=0,this.unit=e||"","number"==typeof t?this.value=isNaN(t)?0:isFinite(t)?t:t<0?-34e37:34e37:"string"==typeof t?(e=t.match(R))&&(this.value=parseFloat(e[1]),"%"===e[5]?this.value/=100:"s"===e[5]&&(this.value*=1e3),this.unit=e[5]):t instanceof Nt&&(this.value=t.valueOf(),this.unit=t.unit),this}minus(t){return t=new Nt(t),new Nt(this-t,this.unit||t.unit)}plus(t){return t=new Nt(t),new Nt(this+t,this.unit||t.unit)}times(t){return t=new Nt(t),new Nt(this*t,this.unit||t.unit)}toArray(){return[this.value,this.unit]}toJSON(){return this.toString()}toString(){return("%"===this.unit?~~(1e8*this.value)/1e6:"s"===this.unit?this.value/1e3:this.value)+this.unit}valueOf(){return this.value}}const kt=new Set(["fill","stroke","color","bgcolor","stop-color","flood-color","lighting-color"]),St=[];class Mt extends wt{constructor(t,e){super(),this.node=t,this.type=t.nodeName,e&&t!==e&&this.attr(e)}add(t,e){return(t=E(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 E(t).put(this,e)}children(){return new lt(d(this.node.children,function(t){return O(t)}))}clear(){for(;this.node.hasChildNodes();)this.node.removeChild(this.node.lastChild);return this}clone(t=!0,e=!0){this.writeDataToDom();let n=this.node.cloneNode(t);return e&&(n=D(n)),new this.constructor(n)}each(t,e){const n=this.children();let r,i;for(r=0,i=n.length;r<i;r++)t.apply(n[r],[r,n]),e&&n[r].each(t,e);return this}element(t,e){return this.put(new Mt(A(t),e))}first(){return O(this.node.firstChild)}get(t){return O(this.node.childNodes[t])}getEventHolder(){return this.node}getEventTarget(){return this.node}has(t){return this.index(t)>=0}html(t,e){return this.xml(t,e,"http://www.w3.org/1999/xhtml")}id(t){return void 0!==t||this.node.id||(this.node.id=P(this.type)),this.attr("id",t)}index(t){return[].slice.call(this.node.childNodes).indexOf(t.node)}last(){return O(this.node.lastChild)}matches(t){const e=this.node,n=e.matches||e.matchesSelector||e.msMatchesSelector||e.mozMatchesSelector||e.webkitMatchesSelector||e.oMatchesSelector||null;return n&&n.call(e,t)}parent(t){let e=this;if(!e.node.parentNode)return null;if(e=O(e.node.parentNode),!t)return e;do{if("string"==typeof t?e.matches(t):e instanceof t)return e}while(e=O(e.node.parentNode));return e}put(t,e){return t=E(t),this.add(t,e),t}putIn(t,e){return E(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=E(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=A("wrapper",n),i=k.document.createDocumentFragment();r.innerHTML=t;for(let t=r.children.length;t--;)i.appendChild(r.firstElementChild);const s=this.parent();return e?this.replace(i)&&s:this.add(i)}}B(Mt,{attr:function(t,e,n){if(null==t){t={},e=this.node.attributes;for(const n of e)t[n.nodeName]=Y.test(n.nodeValue)?parseFloat(n.nodeValue):n.nodeValue;return t}if(t instanceof Array)return t.reduce((t,e)=>(t[e]=this.attr(e),t),{});if("object"==typeof t&&t.constructor===Object)for(e in t)this.attr(e,t[e]);else if(null===e)this.node.removeAttribute(t);else{if(null==e)return null==(e=this.node.getAttribute(t))?xt[t]:Y.test(e)?parseFloat(e):e;"number"==typeof(e=St.reduce((e,n)=>n(t,e,this),e))?e=new Nt(e):kt.has(t)&&et.isColor(e)?e=new et(e):e.constructor===Array&&(e=new _t(e)),"leading"===t?this.leading&&this.leading(e):"string"==typeof n?this.node.setAttributeNS(n,t,e.toString()):this.node.setAttribute(t,e.toString()),!this.rebuild||"font-size"!==t&&"x"!==t||this.rebuild()}return this},find:function(t){return ft(t,this.node)},findOne:function(t){return O(this.node.querySelector(t))}}),j(Mt,"Dom");class Ct extends Mt{constructor(t,e){super(t,e),this.dom={},this.node.instance=this,(t.hasAttribute("data-svgjs")||t.hasAttribute("svgjs:data"))&&this.setData(JSON.parse(t.getAttribute("data-svgjs"))??JSON.parse(t.getAttribute("svgjs:data"))??{})}center(t,e){return this.cx(t).cy(e)}cx(t){return null==t?this.x()+this.width()/2:this.x(t-this.width()/2)}cy(t){return null==t?this.y()+this.height()/2:this.y(t-this.height()/2)}defs(){const t=this.root();return t&&t.defs()}dmove(t,e){return this.dx(t).dy(e)}dx(t=0){return this.x(new Nt(t).plus(this.x()))}dy(t=0){return this.y(new Nt(t).plus(this.y()))}getEventHolder(){return this}height(t){return this.attr("height",t)}move(t,e){return this.x(t).y(e)}parents(t=this.root()){const e="string"==typeof t;e||(t=E(t));const n=new lt;let r=this;for(;(r=r.parent())&&r.node!==k.document&&"#document-fragment"!==r.nodeName&&(n.push(r),e||r.node!==t.node)&&(!e||!r.matches(t));)if(r.node===this.root().node)return null;return n}reference(t){if(!(t=this.attr(t)))return null;const e=(t+"").match(q);return e?E(e[1]):null}root(){const t=this.parent(M[C]);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(Ct,{bbox:function(){const t=ut(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=ut(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}}}),j(Ct,"Element");const At={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 Ct)this.attr(t,e);else for(n=At[t].length-1;n>=0;n--)null!=e[At[t][n]]&&this.attr(At.prefix(t,At[t][n]),e[At[t][n]]);return this},l(["Element","Runner"],e)}),l(["Element","Runner"],{matrix:function(t,e,n,r,i,s){return null==t?new it(this):this.attr("transform",new it(t,e,n,r,i,s))},rotate:function(t,e,n){return this.transform({rotate:t,ox:e,oy:n},!0)},skew:function(t,e,n,r){return 1===arguments.length||3===arguments.length?this.transform({skew:t,ox:e,oy:n},!0):this.transform({skew:[t,e],ox:n,oy:r},!0)},shear:function(t,e,n){return this.transform({shear:t,ox:e,oy:n},!0)},scale:function(t,e,n,r){return 1===arguments.length||3===arguments.length?this.transform({scale:t,ox:e,oy:n},!0):this.transform({scale:[t,e],ox:n,oy:r},!0)},translate:function(t,e){return this.transform({translate:[t,e]},!0)},relative:function(t,e){return this.transform({relative:[t,e]},!0)},flip:function(t="both",e="center"){return-1==="xybothtrue".indexOf(t)&&(e=t,t="both"),this.transform({flip:t,origin:e},!0)},opacity:function(t){return this.attr("opacity",t)}}),l("radius",{radius:function(t,e=t){return"radialGradient"===(this._element||this).type?this.attr("r",new Nt(t)):this.rx(t).ry(e)}}),l("Path",{length:function(){return this.node.getTotalLength()},pointAt:function(t){return new nt(this.node.getPointAtLength(t))}}),l(["Element","Runner"],{font:function(t,e){if("object"==typeof t){for(e in t)this.font(e,t[e]);return this}return"leading"===t?this.leading(e):"anchor"===t?this.attr("text-anchor",e):"size"===t||"family"===t||"weight"===t||"stretch"===t||"variant"===t||"style"===t?this.attr("font-"+t,e):this.attr(t,e)}}),l("Element",["click","dblclick","mousedown","mouseup","mouseover","mouseout","mousemove","mouseenter","mouseleave","touchstart","touchmove","touchleave","touchend","touchcancel","contextmenu","wheel","pointerdown","pointermove","pointerup","pointerleave","pointercancel"].reduce(function(t,e){return t[e]=function(t){return null===t?this.off(e):this.on(e,t),this},t},{})),l("Element",{untransform:function(){return this.attr("transform",null)},matrixify:function(){return(this.attr("transform")||"").split(U).slice(0,-1).map(function(t){const e=t.trim().split("(");return[e[0],e[1].split(Q).map(function(t){return parseFloat(t)})]}).reverse().reduce(function(t,e){return"matrix"===e[0]?t.lmultiply(it.fromArray(e[1])):t[e[0]].apply(t,e[1])},new it)},toParent:function(t,e){if(this===t)return this;if(w(this.node))return this.addTo(t,e);const n=this.screenCTM(),r=t.screenCTM().inverse();return this.addTo(t,e).untransform().transform(r.multiply(n)),this},toRoot:function(t){return this.toParent(this.root(),t)},transform:function(t,e){if(null==t||"string"==typeof t){const e=new it(this).decompose();return null==t?e:e[t]}it.isMatrixLike(t)||(t={...t,origin:y(t,this)});const n=new it(!0===e?this:e||!1).transform(t);return this.attr("transform",n)}});class Et extends Ct{flatten(){return this.each(function(){if(this instanceof Et)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()}}j(Et,"Container");class Tt extends Et{constructor(t,e=t){super(T("defs",t),e)}flatten(){return this}ungroup(){return this}}j(Tt,"Defs");class Ot extends Ct{}function Lt(t){return this.attr("rx",t)}function jt(t){return this.attr("ry",t)}function Wt(t){return null==t?this.cx()-this.rx():this.cx(t+this.rx())}function Pt(t){return null==t?this.cy()-this.ry():this.cy(t+this.ry())}function Dt(t){return this.attr("cx",t)}function Bt(t){return this.attr("cy",t)}function It(t){return null==t?2*this.rx():this.rx(new Nt(t).divide(2))}function Rt(t){return null==t?2*this.ry():this.ry(new Nt(t).divide(2))}j(Ot,"Shape");class zt extends Ot{constructor(t,e=t){super(T("ellipse",t),e)}size(t,e){const n=g(this,t,e);return this.rx(new Nt(n.width).divide(2)).ry(new Nt(n.height).divide(2))}}B(zt,t),l("Container",{ellipse:I(function(t=0,e=t){return this.put(new zt).size(t,e).move(0,0)})}),j(zt,"Ellipse");class Ft extends Mt{constructor(t=k.document.createDocumentFragment()){super(t)}xml(t,e,n){if("boolean"==typeof t&&(n=e,e=t,t=null),null==t||"function"==typeof t){const t=new Mt(A("wrapper",n));return t.add(this.node.cloneNode(!0)),t.xml(!1,n)}return super.xml(t,!1,n)}}j(Ft,"Fragment");const qt=Ft;function Ut(t,e){return"radialGradient"===(this._element||this).type?this.attr({fx:new Nt(t),fy:new Nt(e)}):this.attr({x1:new Nt(t),y1:new Nt(e)})}function Vt(t,e){return"radialGradient"===(this._element||this).type?this.attr({cx:new Nt(t),cy:new Nt(e)}):this.attr({x2:new Nt(t),y2:new Nt(e)})}class Gt extends Et{constructor(t,e){super(T(t+"Gradient","string"==typeof t?null:t),e)}attr(t,e,n){return"transform"===t&&(t="gradientTransform"),super.attr(t,e,n)}bbox(){return new at}targets(){return ft("svg [fill*="+this.id()+"]")}toString(){return this.url()}update(t){return this.clear(),"function"==typeof t&&t.call(this,this),this}url(){return"url(#"+this.id()+")"}}B(Gt,e),l({Container:{gradient(...t){return this.defs().gradient(...t)}},Defs:{gradient:I(function(t,e){return this.put(new Gt(t)).update(e)})}}),j(Gt,"Gradient");class Ht extends Et{constructor(t,e=t){super(T("pattern",t),e)}attr(t,e,n){return"transform"===t&&(t="patternTransform"),super.attr(t,e,n)}bbox(){return new at}targets(){return ft("svg [fill*="+this.id()+"]")}toString(){return this.url()}update(t){return this.clear(),"function"==typeof t&&t.call(this,this),this}url(){return"url(#"+this.id()+")"}}l({Container:{pattern(...t){return this.defs().pattern(...t)}},Defs:{pattern:I(function(t,e,n){return this.put(new Ht).update(n).attr({x:0,y:0,width:t,height:e,patternUnits:"userSpaceOnUse"})})}}),j(Ht,"Pattern");class Xt extends Ot{constructor(t,e=t){super(T("image",t),e)}load(t,e){if(!t)return this;const n=new k.window.Image;return yt(n,"load",function(t){const r=this.parent(Ht);0===this.width()&&0===this.height()&&this.size(n.width,n.height),r instanceof Ht&&0===r.width()&&0===r.height()&&r.size(this.width(),this.height()),"function"==typeof e&&e.call(this,t)},this),yt(n,"load error",function(){vt(n)}),this.attr("href",n.src=t,N)}}var Yt;Yt=function(t,e,n){return"fill"!==t&&"stroke"!==t||$.test(e)&&(e=n.root().defs().image(e)),e instanceof Xt&&(e=n.root().defs().pattern(0,0,t=>{t.add(e)})),e},St.push(Yt),l({Container:{image:I(function(t,e){return this.put(new Xt).size(0,0).load(t,e)})}}),j(Xt,"Image");class $t extends _t{bbox(){let t=-1/0,e=-1/0,n=1/0,r=1/0;return this.forEach(function(i){t=Math.max(i[0],t),e=Math.max(i[1],e),n=Math.min(i[0],n),r=Math.min(i[1],r)}),new at(n,r,t-n,e-r)}move(t,e){const n=this.bbox();if(t-=n.x,e-=n.y,!isNaN(t)&&!isNaN(e))for(let n=this.length-1;n>=0;n--)this[n]=[this[n][0]+t,this[n][1]+e];return this}parse(t=[0,0]){const e=[];(t=t instanceof Array?Array.prototype.concat.apply([],t):t.trim().split(Q).map(parseFloat)).length%2!=0&&t.pop();for(let n=0,r=t.length;n<r;n+=2)e.push([t[n],t[n+1]]);return e}size(t,e){let n;const r=this.bbox();for(n=this.length-1;n>=0;n--)r.width&&(this[n][0]=(this[n][0]-r.x)*t/r.width+r.x),r.height&&(this[n][1]=(this[n][1]-r.y)*e/r.height+r.y);return this}toLine(){return{x1:this[0][0],y1:this[0][1],x2:this[1][0],y2:this[1][1]}}toString(){const t=[];for(let e=0,n=this.length;e<n;e++)t.push(this[e].join(","));return t.join(" ")}transform(t){return this.clone().transformO(t)}transformO(t){it.isMatrixLike(t)||(t=new it(t));for(let e=this.length;e--;){const[n,r]=this[e];this[e][0]=t.a*n+t.c*r+t.e,this[e][1]=t.b*n+t.d*r+t.f}return this}}const Qt=$t;function Zt(t){return null==t?this.bbox().x:this.move(t,this.bbox().y)}function Jt(t){return null==t?this.bbox().y:this.move(this.bbox().x,t)}function Kt(t){const e=this.bbox();return null==t?e.width:this.size(t,e.height)}function te(t){const e=this.bbox();return null==t?e.height:this.size(e.width,t)}class ee extends Ot{constructor(t,e=t){super(T("line",t),e)}array(){return new $t([[this.attr("x1"),this.attr("y1")],[this.attr("x2"),this.attr("y2")]])}move(t,e){return this.attr(this.array().move(t,e).toLine())}plot(t,e,n,r){return null==t?this.array():(t=void 0!==e?{x1:t,y1:e,x2:n,y2:r}:new $t(t).toLine(),this.attr(t))}size(t,e){const n=g(this,t,e);return this.attr(this.array().size(n.width,n.height).toLine())}}B(ee,i),l({Container:{line:I(function(...t){return ee.prototype.plot.apply(this.put(new ee),null!=t[0]?t:[0,0,0,0])})}}),j(ee,"Line");class ne extends Et{constructor(t,e=t){super(T("marker",t),e)}height(t){return this.attr("markerHeight",t)}orient(t){return this.attr("orient",t)}ref(t,e){return this.attr("refX",t).attr("refY",e)}toString(){return"url(#"+this.id()+")"}update(t){return this.clear(),"function"==typeof t&&t.call(this,this),this}width(t){return this.attr("markerWidth",t)}}function re(t,e){return function(n){return null==n?this[t]:(this[t]=n,e&&e.call(this),this)}}l({Container:{marker(...t){return this.defs().marker(...t)}},Defs:{marker:I(function(t,e,n){return this.put(new ne).size(t,e).ref(t/2,e/2).viewbox(0,0,t,e).attr("orient","auto").update(n)})},marker:{marker(t,e,n,r){let i=["marker"];return"all"!==t&&i.push(t),i=i.join("-"),t=arguments[1]instanceof ne?arguments[1]:this.defs().marker(e,n,r),this.attr(i,t)}}}),j(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 ue(){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",ue),overshoot:re("_overshoot",ue)}),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 he={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===he[t.segment[0].toUpperCase()]}function de(t,e){t.inNumber&&pe(t,!1);const n=Z.test(e);if(n)t.segment=[e];else{const e=t.lastCommand,n=e.toLowerCase(),r=e===n;t.segment=["m"===n?r?"l":"L":e]}return t.inSegment=!0,t.lastCommand=t.segment[0],n}function pe(t,e){if(!t.inNumber)throw new Error("Parser Error");t.number&&t.segment.push(parseFloat(t.number)),t.inNumber=e,t.number="",t.pointSeen=!1,t.hasExponent=!1,fe(t)&&me(t)}function me(t){t.inSegment=!1,t.absolute&&(t.segment=function(t){const e=t.segment[0];return le[e](t.segment.slice(1),t.p,t.p0)}(t)),t.segments.push(t.segment)}function ge(t){if(!t.segment.length)return!1;const e="A"===t.segment[0].toUpperCase(),n=t.segment.length;return e&&(4===n||5===n)}function ye(t){return"E"===t.lastToken.toUpperCase()}const ve=new Set([" ",",","\t","\n","\r","\f"]);class we extends _t{bbox(){return st().path.setAttribute("d",this.toString()),new at(st.nodes.path.getBBox())}move(t,e){const n=this.bbox();if(t-=n.x,e-=n.y,!isNaN(t)&&!isNaN(e))for(let n,r=this.length-1;r>=0;r--)n=this[r][0],"M"===n||"L"===n||"T"===n?(this[r][1]+=t,this[r][2]+=e):"H"===n?this[r][1]+=t:"V"===n?this[r][1]+=e:"C"===n||"S"===n||"Q"===n?(this[r][1]+=t,this[r][2]+=e,this[r][3]+=t,this[r][4]+=e,"C"===n&&(this[r][5]+=t,this[r][6]+=e)):"A"===n&&(this[r][6]+=t,this[r][7]+=e);return this}parse(t="M0 0"){return Array.isArray(t)&&(t=Array.prototype.concat.apply([],t).toString()),function(t,e=!0){let n=0,r="";const i={segment:[],inNumber:!1,number:"",lastToken:"",inSegment:!1,segments:[],pointSeen:!1,hasExponent:!1,absolute:e,p0:new nt,p:new nt};for(;i.lastToken=r,r=t.charAt(n++);)if(i.inSegment||!de(i,r))if("."!==r)if(isNaN(parseInt(r)))if(ve.has(r))i.inNumber&&pe(i,!1);else if("-"!==r&&"+"!==r)if("E"!==r.toUpperCase()){if(Z.test(r)){if(i.inNumber)pe(i,!1);else{if(!fe(i))throw new Error("parser Error");me(i)}--n}}else i.number+=r,i.hasExponent=!0;else{if(i.inNumber&&!ye(i)){pe(i,!1),--n;continue}i.number+=r,i.inNumber=!0}else{if("0"===i.number||ge(i)){i.inNumber=!0,i.number=r,pe(i,!0);continue}i.inNumber=!0,i.number+=r}else{if(i.pointSeen||i.hasExponent){pe(i,!1),--n;continue}i.inNumber=!0,i.pointSeen=!0,i.number+=r}return i.inNumber&&pe(i,!1),i.inSegment&&fe(i)&&me(i),i.segments}(t)}size(t,e){const n=this.bbox();let r,i;for(n.width=0===n.width?1:n.width,n.height=0===n.height?1:n.height,r=this.length-1;r>=0;r--)i=this[r][0],"M"===i||"L"===i||"T"===i?(this[r][1]=(this[r][1]-n.x)*t/n.width+n.x,this[r][2]=(this[r][2]-n.y)*e/n.height+n.y):"H"===i?this[r][1]=(this[r][1]-n.x)*t/n.width+n.x:"V"===i?this[r][1]=(this[r][1]-n.y)*e/n.height+n.y:"C"===i||"S"===i||"Q"===i?(this[r][1]=(this[r][1]-n.x)*t/n.width+n.x,this[r][2]=(this[r][2]-n.y)*e/n.height+n.y,this[r][3]=(this[r][3]-n.x)*t/n.width+n.x,this[r][4]=(this[r][4]-n.y)*e/n.height+n.y,"C"===i&&(this[r][5]=(this[r][5]-n.x)*t/n.width+n.x,this[r][6]=(this[r][6]-n.y)*e/n.height+n.y)):"A"===i&&(this[r][1]=this[r][1]*t/n.width,this[r][2]=this[r][2]*e/n.height,this[r][6]=(this[r][6]-n.x)*t/n.width+n.x,this[r][7]=(this[r][7]-n.y)*e/n.height+n.y);return this}toString(){return function(t){let e="";for(let n=0,r=t.length;n<r;n++)e+=t[n][0],null!=t[n][1]&&(e+=t[n][1],null!=t[n][2]&&(e+=" ",e+=t[n][2],null!=t[n][3]&&(e+=" ",e+=t[n][3],e+=" ",e+=t[n][4],null!=t[n][5]&&(e+=" ",e+=t[n][5],e+=" ",e+=t[n][6],null!=t[n][7]&&(e+=" ",e+=t[n][7])))));return e+" "}(this)}}const be=t=>{const e=typeof t;return"number"===e?Nt:"string"===e?et.isColor(t)?et:Q.test(t)?Z.test(t)?we:_t:R.test(t)?Nt:_e:Me.indexOf(t.constructor)>-1?t.constructor:Array.isArray(t)?_t:"object"===e?Se:_e};class xe{constructor(t){this._stepper=t||new oe("-"),this._from=null,this._to=null,this._type=null,this._context=null,this._morphObj=null}at(t){return this._morphObj.morph(this._from,this._to,t,this._stepper,this._context)}done(){return this._context.map(this._stepper.done).reduce(function(t,e){return t&&e},!0)}from(t){return null==t?this._from:(this._from=this._set(t),this)}stepper(t){return null==t?this._stepper:(this._stepper=t,this)}to(t){return null==t?this._to:(this._to=this._set(t),this)}type(t){return null==t?this._type:(this._type=t,this)}_set(t){this._type||this.type(be(t));let e=new this._type(t);return this._type===et&&(e=this._to?e[this._to[4]]():this._from?e[this._from[4]]():e),this._type===Se&&(e=this._to?e.align(this._to):this._from?e.align(this._from):e),e=e.toConsumable(),this._morphObj=this._morphObj||new this._type,this._context=this._context||Array.apply(null,Array(e.length)).map(Object).map(function(t){return t.done=!0,t}),e}}class _e{constructor(...t){this.init(...t)}init(t){return t=Array.isArray(t)?t[0]:t,this.value=t,this}toArray(){return[this.value]}valueOf(){return this.value}}class Ne{constructor(...t){this.init(...t)}init(t){return Array.isArray(t)&&(t={scaleX:t[0],scaleY:t[1],shear:t[2],rotate:t[3],translateX:t[4],translateY:t[5],originX:t[6],originY:t[7]}),Object.assign(this,Ne.defaults,t),this}toArray(){const t=this;return[t.scaleX,t.scaleY,t.shear,t.rotate,t.translateX,t.translateY,t.originX,t.originY]}}Ne.defaults={scaleX:1,scaleY:1,shear:0,rotate:0,translateX:0,translateY:0,originX:0,originY:0};const ke=(t,e)=>t[0]<e[0]?-1:t[0]>e[0]?1:0;class Se{constructor(...t){this.init(...t)}align(t){const e=this.values;for(let n=0,r=e.length;n<r;++n){if(e[n+1]===t[n+1]){if(e[n+1]===et&&t[n+7]!==e[n+7]){const e=t[n+7],r=new et(this.values.splice(n+3,5))[e]().toArray();this.values.splice(n+3,0,...r)}n+=e[n+2]+2;continue}if(!t[n+1])return this;const r=(new t[n+1]).toArray(),i=e[n+2]+3;e.splice(n,i,t[n],t[n+1],t[n+2],...r),n+=e[n+2]+2}return this}init(t){if(this.values=[],Array.isArray(t))return void(this.values=t.slice());t=t||{};const e=[];for(const n in t){const r=be(t[n]),i=new r(t[n]).toArray();e.push([n,r,i.length,...i])}return e.sort(ke),this.values=e.reduce((t,e)=>t.concat(e),[]),this}toArray(){return this.values}valueOf(){const t={},e=this.values;for(;e.length;){const n=e.shift(),r=e.shift(),i=e.shift(),s=e.splice(0,i);t[n]=new r(s)}return t}}const Me=[_e,Ne,Se];class Ce extends Ot{constructor(t,e=t){super(T("path",t),e)}array(){return this._array||(this._array=new we(this.attr("d")))}clear(){return delete this._array,this}height(t){return null==t?this.bbox().height:this.size(this.bbox().width,t)}move(t,e){return this.attr("d",this.array().move(t,e))}plot(t){return null==t?this.array():this.clear().attr("d","string"==typeof t?t:this._array=new we(t))}size(t,e){const n=g(this,t,e);return this.attr("d",this.array().size(n.width,n.height))}width(t){return null==t?this.bbox().width:this.size(t,this.bbox().height)}x(t){return null==t?this.bbox().x:this.move(t,this.bbox().y)}y(t){return null==t?this.bbox().y:this.move(this.bbox().x,t)}}function Ae(){return this._array||(this._array=new $t(this.attr("points")))}function Ee(){return delete this._array,this}function Te(t,e){return this.attr("points",this.array().move(t,e))}function Oe(t){return null==t?this.array():this.clear().attr("points","string"==typeof t?t:this._array=new $t(t))}function Le(t,e){const n=g(this,t,e);return this.attr("points",this.array().size(n.width,n.height))}Ce.prototype.MorphArray=we,l({Container:{path:I(function(t){return this.put(new Ce).plot(t||new we)})}}),j(Ce,"Path");class je extends Ot{constructor(t,e=t){super(T("polygon",t),e)}}l({Container:{polygon:I(function(t){return this.put(new je).plot(t||new $t)})}}),B(je,i),B(je,s),j(je,"Polygon");class We extends Ot{constructor(t,e=t){super(T("polyline",t),e)}}l({Container:{polyline:I(function(t){return this.put(new We).plot(t||new $t)})}}),B(We,i),B(We,s),j(We,"Polyline");class Pe extends Ot{constructor(t,e=t){super(T("rect",t),e)}}B(Pe,{rx:Lt,ry:jt}),l({Container:{rect:I(function(t,e){return this.put(new Pe).size(t,e)})}}),j(Pe,"Rect");class De{constructor(){this._first=null,this._last=null}first(){return this._first&&this._first.value}last(){return this._last&&this._last.value}push(t){const e=void 0!==t.next?t:{value:t,next:null,prev:null};return this._last?(e.prev=this._last,this._last.next=e,this._last=e):(this._last=e,this._first=e),e}remove(t){t.prev&&(t.prev.next=t.next),t.next&&(t.next.prev=t.prev),t===this._last&&(this._last=t.prev),t===this._first&&(this._first=t.next),t.prev=null,t.next=null}shift(){const t=this._first;return t?(this._first=t.next,this._first&&(this._first.prev=null),this._last=this._first?this._last:null,t.value):null}}const Be={nextDraw:null,frames:new De,timeouts:new De,immediates:new De,timer:()=>k.window.performance||k.window.Date,transforms:[],frame(t){const e=Be.frames.push({run:t});return null===Be.nextDraw&&(Be.nextDraw=k.window.requestAnimationFrame(Be._draw)),e},timeout(t,e){e=e||0;const n=Be.timer().now()+e,r=Be.timeouts.push({run:t,time:n});return null===Be.nextDraw&&(Be.nextDraw=k.window.requestAnimationFrame(Be._draw)),r},immediate(t){const e=Be.immediates.push(t);return null===Be.nextDraw&&(Be.nextDraw=k.window.requestAnimationFrame(Be._draw)),e},cancelFrame(t){null!=t&&Be.frames.remove(t)},clearTimeout(t){null!=t&&Be.timeouts.remove(t)},cancelImmediate(t){null!=t&&Be.immediates.remove(t)},_draw(t){let e=null;const n=Be.timeouts.last();for(;(e=Be.timeouts.shift())&&(t>=e.time?e.run():Be.timeouts.push(e),e!==n););let r=null;const i=Be.frames.last();for(;r!==i&&(r=Be.frames.shift());)r.run(t);let s=null;for(;s=Be.immediates.shift();)s();Be.nextDraw=Be.timeouts.first()||Be.frames.first()?k.window.requestAnimationFrame(Be._draw):null}},Ie=Be,Re=function(t){const e=t.start,n=t.runner.duration();return{start:e,duration:n,end:e+n,runner:t.runner}},ze=function(){const t=k.window;return(t.performance||t.Date).now()};class Fe extends wt{constructor(t=ze){super(),this._timeSource=t,this.terminate()}active(){return!!this._nextFrame}finish(){return this.time(this.getEndTimeOfTimeline()+1),this.pause()}getEndTime(){const t=this.getLastRunnerInfo(),e=t?t.runner.duration():0;return(t?t.start:this._time)+e}getEndTimeOfTimeline(){const t=this._runners.map(t=>t.start+t.runner.duration());return Math.max(0,...t)}getLastRunnerInfo(){return this.getRunnerInfoById(this._lastRunnerId)}getRunnerInfoById(t){return this._runners[this._runnerIds.indexOf(t)]||null}pause(){return this._paused=!0,this._continue()}persist(t){return null==t?this._persist:(this._persist=t,this)}play(){return this._paused=!1,this.updateTime()._continue()}reverse(t){const e=this.speed();if(null==t)return this.speed(-e);const n=Math.abs(e);return this.speed(t?-n:n)}schedule(t,e,n){if(null==t)return this._runners.map(Re);let r=0;const i=this.getEndTime();if(e=e||0,null==n||"last"===n||"after"===n)r=i;else if("absolute"===n||"start"===n)r=e,e=0;else if("now"===n)r=this._time;else if("relative"===n){const n=this.getRunnerInfoById(t.id);n&&(r=n.start+e,e=0)}else{if("with-last"!==n)throw new Error('Invalid value for the "when" parameter');{const t=this.getLastRunnerInfo();r=t?t.start:this._time}}t.unschedule(),t.timeline(this);const s=t.persist(),o={persist:null===s?this._persist:s,start:r+e,runner:t};return this._lastRunnerId=t.id,this._runners.push(o),this._runners.sort((t,e)=>t.start-e.start),this._runnerIds=this._runners.map(t=>t.runner.id),this.updateTime()._continue(),this}seek(t){return this.time(this._time+t)}source(t){return null==t?this._timeSource:(this._timeSource=t,this)}speed(t){return null==t?this._speed:(this._speed=t,this)}stop(){return this.time(0),this.pause()}time(t){return null==t?this._time:(this._time=t,this._continue(!0))}unschedule(t){const e=this._runnerIds.indexOf(t.id);return e<0||(this._runners.splice(e,1),this._runnerIds.splice(e,1),t.timeline(null)),this}updateTime(){return this.active()||(this._lastSourceTime=this._timeSource()),this}_continue(t=!1){return Ie.cancelFrame(this._nextFrame),this._nextFrame=null,t?this._stepImmediate():(this._paused||(this._nextFrame=Ie.frame(this._step)),this)}_stepFn(t=!1){const e=this._timeSource();let n=e-this._lastSourceTime;t&&(n=0);const r=this._speed*n+(this._time-this._lastStepTime);this._lastSourceTime=e,t||(this._time+=r,this._time=this._time<0?0:this._time),this._lastStepTime=this._time,this.fire("time",this._time);for(let t=this._runners.length;t--;){const e=this._runners[t],n=e.runner;this._time-e.start<=0&&n.reset()}let i=!1;for(let t=0,e=this._runners.length;t<e;t++){const n=this._runners[t],s=n.runner;let o=r;const a=this._time-n.start;a<=0?i=!0:(a<o&&(o=a),s.active()&&(s.step(o).done?!0!==n.persist&&s.duration()-s.time()+this._time+n.persist<this._time&&(s.unschedule(),--t,--e):i=!0))}return i&&!(this._speed<0&&0===this._time)||this._runnerIds.length&&this._speed<0&&this._time>0?this._continue():(this.pause(),this.fire("finished")),this}terminate(){this._startTime=0,this._speed=1,this._persist=0,this._nextFrame=null,this._paused=!0,this._runners=[],this._runnerIds=[],this._lastRunnerId=-1,this._time=0,this._lastSourceTime=0,this._lastStepTime=0,this._step=this._stepFn.bind(this,!1),this._stepImmediate=this._stepFn.bind(this,!0)}}l({Element:{timeline:function(t){return null==t?(this._timeline=this._timeline||new Fe,this._timeline):(this._timeline=t,this)}}});class qe extends wt{constructor(t){super(),this.id=qe.id++,t="function"==typeof(t=null==t?400:t)?new ae(t):t,this._element=null,this._timeline=null,this.done=!1,this._queue=[],this._duration="number"==typeof t&&t,this._isDeclarative=t instanceof ae,this._stepper=this._isDeclarative?t:new oe,this._history={},this.enabled=!0,this._time=0,this._lastTime=0,this._reseted=!0,this.transforms=new it,this.transformId=1,this._haveReversed=!1,this._reverse=!1,this._loopsDone=0,this._swing=!1,this._wait=0,this._times=1,this._frameId=null,this._persist=!!this._isDeclarative||null}static sanitise(t,e,n){let r=1,i=!1,s=0;return e=e??0,n=n||"last","object"!=typeof(t=t??400)||t instanceof se||(e=t.delay??e,n=t.when??n,i=t.swing||i,r=t.times??r,s=t.wait??s,t=t.duration??400),{duration:t,delay:e,swing:i,times:r,wait:s,when:n}}active(t){return null==t?this.enabled:(this.enabled=t,this)}addTransform(t){return this.transforms.lmultiplyO(t),this}after(t){return this.on("finished",t)}animate(t,e,n){const r=qe.sanitise(t,e,n),i=new qe(r.duration);return this._timeline&&i.timeline(this._timeline),this._element&&i.element(this._element),i.loop(r).schedule(r.delay,r.when)}clearTransform(){return this.transforms=new it,this}clearTransformsFromQueue(){this.done&&this._timeline&&this._timeline._runnerIds.includes(this.id)||(this._queue=this._queue.filter(t=>!t.isTransform))}delay(t){return this.animate(0,t)}duration(){return this._times*(this._wait+this._duration)-this._wait}during(t){return this.queue(null,t)}ease(t){return this._stepper=new oe(t),this}element(t){return null==t?this._element:(this._element=t,t._prepareRunner(),this)}finish(){return this.step(1/0)}loop(t,e,n){return"object"==typeof t&&(e=t.swing,n=t.wait,t=t.times),this._times=t||1/0,this._swing=e||!1,this._wait=n||0,!0===this._times&&(this._times=1/0),this}loops(t){const e=this._duration+this._wait;if(null==t){const t=Math.floor(this._time/e),n=(this._time-t*e)/this._duration;return Math.min(t+n,this._times)}const n=t%1,r=e*Math.floor(t)+this._duration*n;return this.time(r)}persist(t){return null==t?this._persist:(this._persist=t,this)}position(t){const e=this._time,n=this._duration,r=this._wait,i=this._times,s=this._swing,o=this._reverse;let a;if(null==t){const t=function(t){const e=s*Math.floor(t%(2*(r+n))/(r+n)),i=e&&!o||!e&&o,a=Math.pow(-1,i)*(t%(r+n))/n+i;return Math.max(Math.min(a,1),0)},u=i*(r+n)-r;return a=e<=0?Math.round(t(1e-5)):e<u?t(e):Math.round(t(u-1e-5)),a}const u=Math.floor(this.loops()),h=s&&u%2==0;return a=u+(h&&!o||o&&h?t:1-t),this.loops(a)}progress(t){return null==t?Math.min(1,this._time/this.duration()):this.time(t*this.duration())}queue(t,e,n,r){return this._queue.push({initialiser:t||bt,runner:e||bt,retarget:n,isTransform:r,initialised:!1,finished:!1}),this.timeline()&&this.timeline()._continue(),this}reset(){return this._reseted||(this.time(0),this._reseted=!0),this}reverse(t){return this._reverse=null==t?!this._reverse:t,this}schedule(t,e,n){if(t instanceof Fe||(n=e,e=t,t=this.timeline()),!t)throw Error("Runner cannot be scheduled without timeline");return t.schedule(this,e,n),this}step(t){if(!this.enabled)return this;t=null==t?16:t,this._time+=t;const e=this.position(),n=this._lastPosition!==e&&this._time>=0;this._lastPosition=e;const r=this.duration(),i=this._lastTime<=0&&this._time>0,s=this._lastTime<r&&this._time>=r;this._lastTime=this._time,i&&this.fire("start",this);const o=this._isDeclarative;this.done=!o&&!s&&this._time>=r,this._reseted=!1;let a=!1;return(n||o)&&(this._initialise(n),this.transforms=new it,a=this._run(o?t:e),this.fire("step",this)),this.done=this.done||a&&o,s&&this.fire("finished",this),this}time(t){if(null==t)return this._time;const e=t-this._time;return this.step(e),this}timeline(t){return void 0===t?this._timeline:(this._timeline=t,this)}unschedule(){const t=this.timeline();return t&&t.unschedule(this),this}_initialise(t){if(t||this._isDeclarative)for(let e=0,n=this._queue.length;e<n;++e){const n=this._queue[e],r=this._isDeclarative||!n.initialised&&t;t=!n.finished,r&&t&&(n.initialiser.call(this),n.initialised=!0)}}_rememberMorpher(t,e){if(this._history[t]={morpher:e,caller:this._queue[this._queue.length-1]},this._isDeclarative){const t=this.timeline();t&&t.play()}}_run(t){let e=!0;for(let n=0,r=this._queue.length;n<r;++n){const r=this._queue[n],i=r.runner.call(this,t);r.finished=r.finished||!0===i,e=e&&r.finished}return e}_tryRetarget(t,e,n){if(this._history[t]){if(!this._history[t].caller.initialised){const e=this._queue.indexOf(this._history[t].caller);return this._queue.splice(e,1),!1}this._history[t].caller.retarget?this._history[t].caller.retarget.call(this,e,n):this._history[t].morpher.to(e),this._history[t].caller.finished=!1;const r=this.timeline();return r&&r.play(),!0}return!1}}qe.id=0;class Ue{constructor(t=new it,e=-1,n=!0){this.transforms=t,this.id=e,this.done=n}clearTransformsFromQueue(){}}B([qe,Ue],{mergeWith(t){return new Ue(t.transforms.lmultiply(this.transforms),t.id)}});const Ve=(t,e)=>t.lmultiplyO(e),Ge=t=>t.transforms;function He(){const t=this._transformationRunners.runners.map(Ge).reduce(Ve,new it);this.transform(t),this._transformationRunners.merge(),1===this._transformationRunners.length()&&(this._frameId=null)}class Xe{constructor(){this.runners=[],this.ids=[]}add(t){if(this.runners.includes(t))return;const e=t.id+1;return this.runners.push(t),this.ids.push(e),this}clearBefore(t){const e=this.ids.indexOf(t+1)||1;return this.ids.splice(0,e,0),this.runners.splice(0,e,new Ue).forEach(t=>t.clearTransformsFromQueue()),this}edit(t,e){const n=this.ids.indexOf(t+1);return this.ids.splice(n,1,t+1),this.runners.splice(n,1,e),this}getByID(t){return this.runners[this.ids.indexOf(t+1)]}length(){return this.ids.length}merge(){let t=null;for(let e=0;e<this.runners.length;++e){const n=this.runners[e];if(!(t&&n.done&&t.done)||n._timeline&&n._timeline._runnerIds.includes(n.id)||t._timeline&&t._timeline._runnerIds.includes(t.id))t=n;else{this.remove(n.id);const r=n.mergeWith(t);this.edit(t.id,r),t=r,--e}}return this}remove(t){const e=this.ids.indexOf(t+1);return this.ids.splice(e,1),this.runners.splice(e,1),this}}l({Element:{animate(t,e,n){const r=qe.sanitise(t,e,n),i=this.timeline();return new qe(r.duration).loop(r).element(this).timeline(i.play()).schedule(r.delay,r.when)},delay(t,e){return this.animate(0,t,e)},_clearTransformRunnersBefore(t){this._transformationRunners.clearBefore(t.id)},_currentTransform(t){return this._transformationRunners.runners.filter(e=>e.id<=t.id).map(Ge).reduce(Ve,new it)},_addRunner(t){this._transformationRunners.add(t),Ie.cancelImmediate(this._frameId),this._frameId=Ie.immediate(He.bind(this))},_prepareRunner(){null==this._frameId&&(this._transformationRunners=(new Xe).add(new Ue(new it(this))))}}}),B(qe,{attr(t,e){return this.styleAttr("attr",t,e)},css(t,e){return this.styleAttr("css",t,e)},styleAttr(t,e,n){if("string"==typeof e)return this.styleAttr(t,{[e]:n});let r=e;if(this._tryRetarget(t,r))return this;let i=new xe(this._stepper).to(r),s=Object.keys(r);return this.queue(function(){i=i.from(this.element()[t](s))},function(e){return this.element()[t](i.at(e).valueOf()),i.done()},function(e){const n=Object.keys(e),o=(a=s,n.filter(t=>!a.includes(t)));var a;if(o.length){const e=this.element()[t](o),n=new Se(i.from()).valueOf();Object.assign(n,e),i.from(n)}const u=new Se(i.to()).valueOf();Object.assign(u,e),i.to(u),s=n,r=e}),this._rememberMorpher(t,i),this},zoom(t,e){if(this._tryRetarget("zoom",t,e))return this;let n=new 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,u,h;return this.queue(function(){o=o||this.element(),s=s||y(t,o),h=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:h;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&&u&&(p.rotate=u)),i.from(p),i.to(d);const m=i.at(l);return u=m.rotate,a=new it(m),this.addTransform(a),o._addRunner(this),i.done()},function(e){(e.origin||"center").toString()!==(t.origin||"center").toString()&&(s=y(e,o)),t={...e,origin:s}},!0),this._isDeclarative&&this._rememberMorpher("transform",i),this},x(t){return this._queueNumber("x",t)},y(t){return this._queueNumber("y",t)},ax(t){return this._queueNumber("ax",t)},ay(t){return this._queueNumber("ay",t)},dx(t=0){return this._queueNumberDelta("x",t)},dy(t=0){return this._queueNumberDelta("y",t)},dmove(t,e){return this.dx(t).dy(e)},_queueNumberDelta(t,e){if(e=new Nt(e),this._tryRetarget(t,e))return this;const n=new xe(this._stepper).to(e);let r=null;return this.queue(function(){r=this.element()[t](),n.from(r),n.to(r+e)},function(e){return this.element()[t](n.at(e)),n.done()},function(t){n.to(r+new Nt(t))}),this._rememberMorpher(t,n),this},_queueObject(t,e){if(this._tryRetarget(t,e))return this;const n=new xe(this._stepper).to(e);return this.queue(function(){n.from(this.element()[t]())},function(e){return this.element()[t](n.at(e)),n.done()}),this._rememberMorpher(t,n),this},_queueNumber(t,e){return this._queueObject(t,new Nt(e))},cx(t){return this._queueNumber("cx",t)},cy(t){return this._queueNumber("cy",t)},move(t,e){return this.x(t).y(e)},amove(t,e){return this.ax(t).ay(e)},center(t,e){return this.cx(t).cy(e)},size(t,e){let n;return t&&e||(n=this._element.bbox()),t||(t=n.width/n.height*e),e||(e=n.height/n.width*t),this.width(t).height(e)},width(t){return this._queueNumber("width",t)},height(t){return this._queueNumber("height",t)},plot(t,e,n,r){if(4===arguments.length)return this.plot([t,e,n,r]);if(this._tryRetarget("plot",t))return this;const i=new xe(this._stepper).type(this._element.MorphArray).to(t);return this.queue(function(){i.from(this._element.array())},function(t){return this._element.plot(i.at(t)),i.done()}),this._rememberMorpher("plot",i),this},leading(t){return this._queueNumber("leading",t)},viewbox(t,e,n,r){return this._queueObject("viewbox",new at(t,e,n,r))},update(t){return"object"!=typeof t?this.update({offset:arguments[0],color:arguments[1],opacity:arguments[2]}):(null!=t.opacity&&this.attr("stop-opacity",t.opacity),null!=t.color&&this.attr("stop-color",t.color),null!=t.offset&&this.attr("offset",t.offset),this)}}),B(qe,{rx:Lt,ry:jt,from:Ut,to:Vt}),j(qe,"Runner");class Ye extends Et{constructor(t,e=t){super(T("svg",t),e),this.namespace()}defs(){return this.isRoot()?O(this.node.querySelector("defs"))||this.put(new Tt):this.root().defs()}isRoot(){return!this.node.parentNode||!(this.node.parentNode instanceof k.window.SVGElement)&&"#document-fragment"!==this.node.parentNode.nodeName}namespace(){return this.isRoot()?this.attr({xmlns:x,version:"1.1"}).attr("xmlns:xlink",N,_):this.root().namespace()}removeNamespace(){return this.attr({xmlns:null,version:null}).attr("xmlns:xlink",null,_).attr("xmlns:svgjs",null,_)}root(){return this.isRoot()?this:super.root()}}l({Container:{nested:I(function(){return this.put(new Ye)})}}),j(Ye,"Svg",!0);class $e extends Et{constructor(t,e=t){super(T("symbol",t),e)}}function Qe(t){return!1===this._build&&this.clear(),this.node.appendChild(k.document.createTextNode(t)),this}function Ze(){return this.node.getComputedTextLength()}function Je(t,e=this.bbox()){return null==t?e.x:this.attr("x",this.attr("x")+t-e.x)}function Ke(t,e=this.bbox()){return null==t?e.y:this.attr("y",this.attr("y")+t-e.y)}function tn(t,e,n=this.bbox()){return this.x(t,n).y(e,n)}function en(t,e=this.bbox()){return null==t?e.cx:this.attr("x",this.attr("x")+t-e.cx)}function nn(t,e=this.bbox()){return null==t?e.cy:this.attr("y",this.attr("y")+t-e.cy)}function rn(t,e,n=this.bbox()){return this.cx(t,n).cy(e,n)}function sn(t){return this.attr("x",t)}function on(t){return this.attr("y",t)}function an(t,e){return this.ax(t).ay(e)}function un(t){return this._build=!!t,this}l({Container:{symbol:I(function(){return this.put(new $e)})}}),j($e,"Symbol");class hn extends Ot{constructor(t,e=t){super(T("text",t),e),this.dom.leading=this.dom.leading??new Nt(1.3),this._rebuild=!0,this._build=!1}leading(t){return null==t?this.dom.leading:(this.dom.leading=new Nt(t),this.rebuild())}rebuild(t){if("boolean"==typeof t&&(this._rebuild=t),this._rebuild){const t=this;let e=0;const n=this.dom.leading;this.each(function(r){if(w(this.node))return;const i=k.window.getComputedStyle(this.node).getPropertyValue("font-size"),s=n*new Nt(i);this.dom.newLined&&(this.attr("x",t.attr("x")),"\n"===this.text()?e+=s:(this.attr("dy",r?s+e:0),e=0))}),this.fire("rebuild")}return this}setData(t){return this.dom=t,this.dom.leading=new Nt(t.leading||1.3),this}writeDataToDom(){return b(this,this.dom,{leading:1.3}),this}text(t){if(void 0===t){const e=this.node.childNodes;let n=0;t="";for(let r=0,i=e.length;r<i;++r)"textPath"===e[r].nodeName||w(e[r])?0===r&&(n=r+1):(r!==n&&3!==e[r].nodeType&&!0===O(e[r]).dom.newLined&&(t+="\n"),t+=e[r].textContent);return t}if(this.clear().build(!0),"function"==typeof t)t.call(this,this);else for(let e=0,n=(t=(t+"").split("\n")).length;e<n;e++)this.newLine(t[e]);return this.build(!1).rebuild()}}B(hn,o),l({Container:{text:I(function(t=""){return this.put(new hn).text(t)}),plain:I(function(t=""){return this.put(new hn).plain(t)})}}),j(hn,"Text");class ln extends Ot{constructor(t,e=t){super(T("tspan",t),e),this._build=!1}dx(t){return this.attr("dx",t)}dy(t){return this.attr("dy",t)}newLine(){this.dom.newLined=!0;const t=this.parent();if(!(t instanceof hn))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()}}}),j(ln,"Tspan");class cn extends Ot{constructor(t,e=t){super(T("circle",t),e)}radius(t){return this.attr("r",t)}rx(t){return this.attr("r",t)}ry(t){return this.rx(t)}size(t){return this.radius(new Nt(t).divide(2))}}B(cn,{x:Wt,y:Pt,cx:Dt,cy:Bt,width:It,height:Rt}),l({Container:{circle:I(function(t=0){return this.put(new cn).size(t).move(0,0)})}}),j(cn,"Circle");class fn extends Et{constructor(t,e=t){super(T("clipPath",t),e)}remove(){return this.targets().forEach(function(t){t.unclip()}),super.remove()}targets(){return ft("svg [clip-path*="+this.id()+"]")}}l({Container:{clip:I(function(){return this.defs().put(new fn)})},Element:{clipper(){return this.reference("clip-path")},clipWith(t){const e=t instanceof fn?t:this.parent().clip().add(t);return this.attr("clip-path","url(#"+e.id()+")")},unclip(){return this.attr("clip-path",null)}}}),j(fn,"ClipPath");class dn extends Ct{constructor(t,e=t){super(T("foreignObject",t),e)}}function pn(t,e){return this.children().forEach(n=>{let r;try{r=n.node instanceof k.window.SVGSVGElement?new at(n.attr(["x","y","width","height"])):n.bbox()}catch(t){return}const i=new it(n),s=i.translate(t,e).transform(i.inverse()),o=new nt(r.x,r.y).transform(s);n.move(o.x,o.y)}),this}function mn(t){return this.dmove(t,0)}function gn(t){return this.dmove(0,t)}function yn(t,e=this.bbox()){return null==t?e.height:this.size(e.width,t,e)}function vn(t=0,e=0,n=this.bbox()){const r=t-n.x,i=e-n.y;return this.dmove(r,i)}function wn(t,e,n=this.bbox()){const r=g(this,t,e,n),i=r.width/n.width,s=r.height/n.height;return this.children().forEach(t=>{const e=new nt(n).transform(new it(t).inverse());t.scale(i,s,e.x,e.y)}),this}function bn(t,e=this.bbox()){return null==t?e.width:this.size(t,e.height,e)}function xn(t,e=this.bbox()){return null==t?e.x:this.move(t,e.y,e)}function _n(t,e=this.bbox()){return null==t?e.y:this.move(e.x,t,e)}l({Container:{foreignObject:I(function(t,e){return this.put(new dn).size(t,e)})}}),j(dn,"ForeignObject");class Nn extends Et{constructor(t,e=t){super(T("g",t),e)}}B(Nn,a),l({Container:{group:I(function(){return this.put(new Nn)})}}),j(Nn,"G");class kn extends Et{constructor(t,e=t){super(T("a",t),e)}target(t){return this.attr("target",t)}to(t){return this.attr("href",t,N)}}B(kn,a),l({Container:{link:I(function(t){return this.put(new kn).to(t)})},Element:{unlink(){const t=this.linker();if(!t)return this;const e=t.parent();if(!e)return this.remove();const n=e.index(t);return e.add(this,n),t.remove(),this},linkTo(t){let e=this.linker();return e||(e=new kn,this.wrap(e)),"function"==typeof t?t.call(e,e):e.to(t),this},linker(){const t=this.parent();return t&&"a"===t.node.nodeName.toLowerCase()?t:null}}}),j(kn,"A");class Sn extends Et{constructor(t,e=t){super(T("mask",t),e)}remove(){return this.targets().forEach(function(t){t.unmask()}),super.remove()}targets(){return ft("svg [mask*="+this.id()+"]")}}l({Container:{mask:I(function(){return this.defs().put(new Sn)})},Element:{masker(){return this.reference("mask")},maskWith(t){const e=t instanceof Sn?t:this.parent().mask().add(t);return this.attr("mask","url(#"+e.id()+")")},unmask(){return this.attr("mask",null)}}}),j(Sn,"Mask");class Mn extends Ct{constructor(t,e=t){super(T("stop",t),e)}update(t){return("number"==typeof t||t instanceof Nt)&&(t={offset:arguments[0],color:arguments[1],opacity:arguments[2]}),null!=t.opacity&&this.attr("stop-opacity",t.opacity),null!=t.color&&this.attr("stop-color",t.color),null!=t.offset&&this.attr("offset",new Nt(t.offset)),this}}l({Gradient:{stop:function(t,e,n){return this.put(new Mn).update(t,e,n)}}}),j(Mn,"Stop");class Cn extends Ct{constructor(t,e=t){super(T("style",t),e)}addText(t=""){return this.node.textContent+=t,this}font(t,e,n={}){return this.rule("@font-face",{fontFamily:t,src:e,...n})}rule(t,e){return this.addText(function(t,e){if(!t)return"";if(!e)return t;let n=t+"{";for(const t in e)n+=t.replace(/([A-Z])/g,function(t,e){return"-"+e.toLowerCase()})+":"+e[t]+";";return n+="}",n}(t,e))}}l("Dom",{style(t,e){return this.put(new Cn).rule(t,e)},fontface(t,e,n){return this.put(new Cn).font(t,e,n)}}),j(Cn,"Style");class An extends hn{constructor(t,e=t){super(T("textPath",t),e)}array(){const t=this.track();return t?t.array():null}plot(t){const e=this.track();let n=null;return e&&(n=e.plot(t)),null==t?n:this}track(){return this.reference("href")}}l({Container:{textPath:I(function(t,e){return t instanceof hn||(t=this.text(t)),t.path(e)})},Text:{path:I(function(t,e=!0){const n=new An;let r;if(t instanceof Ce||(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 hn||(t=(new hn).addTo(this.parent()).text(t)),t.path(this)}),targets(){return ft("svg textPath").filter(t=>(t.attr("href")||"").includes(this.id()))}}}),An.prototype.MorphArray=we,j(An,"TextPath");class En extends Ot{constructor(t,e=t){super(T("use",t),e)}use(t,e){return this.attr("href",(e||"")+"#"+t,N)}}l({Container:{use:I(function(t,e){return this.put(new En).use(t,e)})}}),j(En,"Use"),B([Ye,$e,Xt,Ht,ne],c("viewbox")),B([ee,We,je,Ce],c("marker")),B(hn,c("Text")),B(Ce,c("Path")),B(Tt,c("Defs")),B([hn,ln],c("Tspan")),B([Pe,zt,Gt,qe],c("radius")),B(wt,c("EventTarget")),B(Mt,c("Dom")),B(Ct,c("Element")),B(Ot,c("Shape")),B([Et,qt],c("Container")),B(Gt,c("Gradient")),B(qe,c("Runner")),lt.extend([...new Set(h)]),function(t=[]){Me.push(...[].concat(t))}([Nt,et,at,it,_t,$t,we,nt]),B(Me,{to(t){return(new xe).type(this.constructor).from(this.toArray()).to(t)},fromArray(t){return this.init(t),this},toConsumable(){return this.toArray()},morph(t,e,n,r,i){return this.fromArray(t.map(function(t,s){return r.step(t,e[s],n,i[s],i)}))}});var Tn=n(726),On=n(854),Ln=n(731),jn=n(986);class Wn{static create(t){let e=document.createElementNS("http://www.w3.org/2000/svg","text");e.textContent=t;let n=new Wn(e);return n.assignUUID(),n.setAttributes(Wn.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 Wn(i)}constructor(t){this.domNode=t,this.centerPoint=new Ln.CenterPoint(t)}serialized(){if(!this.id)throw new Error("Nucleobase ID is falsy.");return{id:this.id}}appendTo(t){t.appendChild(this.domNode)}remove(){this.domNode.remove()}isIn(t){return t.contains(this.domNode)&&t!==this.domNode}hasParent(){return!!this.domNode.parentNode}bringToFront(){(0,Tn.bringToFront)(this.domNode)}sendToBack(){(0,Tn.sendToBack)(this.domNode)}getAttribute(t){return this.domNode.getAttribute(t)}setAttribute(t,e){this.domNode.setAttribute(t,e)}setAttributes(t){try{new hn(this.domNode).attr(t)}catch(t){}}get id(){return this.domNode.id}assignUUID(){(0,Tn.assignUUID)(this.domNode)}get textContent(){return this.domNode.textContent}set textContent(t){this.domNode.textContent=t}isA(){var t;return"A"===(null===(t=this.textContent)||void 0===t?void 0:t.toUpperCase())}isU(){var t;return"U"===(null===(t=this.textContent)||void 0===t?void 0:t.toUpperCase())}isT(){var t;return"T"===(null===(t=this.textContent)||void 0===t?void 0:t.toUpperCase())}isG(){var t;return"G"===(null===(t=this.textContent)||void 0===t?void 0:t.toUpperCase())}isC(){var t;return"C"===(null===(t=this.textContent)||void 0===t?void 0:t.toUpperCase())}get bbox(){return this.domNode.getBBox()}getCenterPoint(){return this.centerPoint}setCenterPoint(t){this.centerPoint.x=t.x,this.centerPoint.y=t.y}maintainingCenterPoint(t){let{x:e,y:n}=this.centerPoint;t(),this.centerPoint.x=e,this.centerPoint.y=n}get boundingClientRect(){return this.domNode.getBoundingClientRect()}get clientCenterPoint(){let t=this.domNode.getBoundingClientRect();return{x:(0,jn.mean)([t.left,t.right]),y:(0,jn.mean)([t.top,t.bottom])}}getClientCenterPoint(){return this.clientCenterPoint}}Wn.defaultAttributes={"font-family":"Arial","font-size":"9","font-weight":"700"},Wn.defaultAttributeNames=["font-family","font-size","font-weight"];class Pn{constructor(t,e){this.base1=t,this.base2=e}[Symbol.iterator](){return[this.base1,this.base2].values()}isAU(){return this.base1.isA()&&this.base2.isU()||this.base1.isU()&&this.base2.isA()}isAT(){return this.base1.isA()&&this.base2.isT()||this.base1.isT()&&this.base2.isA()}isGC(){return this.base1.isG()&&this.base2.isC()||this.base1.isC()&&this.base2.isG()}isGU(){return this.base1.isG()&&this.base2.isU()||this.base1.isU()&&this.base2.isG()}isGT(){return this.base1.isG()&&this.base2.isT()||this.base1.isT()&&this.base2.isG()}}function Dn(t,e){let n=new Map;e.forEach((t,e)=>n.set(t,e));let r=[...t];return r.sort((t,e)=>{var r,i;return(null!==(r=n.get(t))&&void 0!==r?r:-1)-(null!==(i=n.get(e))&&void 0!==i?i:-1)}),r}})(),r})(),t.exports=e()},401:(t,e,n)=>{"use strict";n.d(e,{Ay:()=>d,Qs:()=>u,eB:()=>f,gP:()=>a,vM:()=>l,vw:()=>c,yZ:()=>h});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",u="RAWN5K2ehadscPWlBK_9",h="RDvmUBCYTtjR2wzHlmxc",l="R1YlURzvulrm8_Yykjll",c="JuLTZXer4cr4ufASV85l",f="nJxPkvauzUEG66FC0ZAb";const d=o},417:t=>{"use strict";t.exports=function(t,e){return e||(e={}),t?(t=String(t.__esModule?t.default:t),/^['"].*['"]$/.test(t)&&(t=t.slice(1,-1)),e.hash&&(t+=e.hash),/["'() \t\n]|(%20)/.test(t)||e.needQuotes?'"'.concat(t.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):t):t}},419:(t,e,n)=>{"use strict";n.d(e,{A:()=>u,P:()=>a});var r=n(601),i=n.n(r),s=n(314),o=n.n(s)()(i());o.push([t.id,'.cstoj4QoATbKp66WQrBA {\n border-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 u=o},420:(t,e,n)=>{"use strict";n.d(e,{Ay:()=>l,KQ:()=>a,UJ:()=>h,wx:()=>u});var r=n(601),i=n.n(r),s=n(314),o=n.n(s)()(i());o.push([t.id,'.wkp2L4HpJzRg7XSLEG0O {\n width: 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",u="Y7tezdMOsnQfs2CQtMUR",h="blLx0TnwxHwlX8qvUigb";const l=o},540:t=>{"use strict";t.exports=function(t){var e=document.createElement("style");return t.setAttributes(e,t.attributes),t.insert(e,t.options),e}},543:function(t,e,n){var r;t=n.nmd(t),function(){var i,s="Expected a function",o="__lodash_hash_undefined__",a="__lodash_placeholder__",u=32,h=128,l=1/0,c=9007199254740991,f=NaN,d=4294967295,p=[["ary",h],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",u],["partialRight",64],["rearg",256]],m="[object Arguments]",g="[object Array]",y="[object Boolean]",v="[object Date]",w="[object Error]",b="[object Function]",x="[object GeneratorFunction]",_="[object Map]",N="[object Number]",k="[object Object]",S="[object Promise]",M="[object RegExp]",C="[object Set]",A="[object String]",E="[object Symbol]",T="[object WeakMap]",O="[object ArrayBuffer]",L="[object DataView]",j="[object Float32Array]",W="[object Float64Array]",P="[object Int8Array]",D="[object Int16Array]",B="[object Int32Array]",I="[object Uint8Array]",R="[object Uint8ClampedArray]",z="[object Uint16Array]",F="[object Uint32Array]",q=/\b__p \+= '';/g,U=/\b(__p \+=) '' \+/g,V=/(__e\(.*?\)|\b__t\)) \+\n'';/g,G=/&(?:amp|lt|gt|quot|#39);/g,H=/[&<>"']/g,X=RegExp(G.source),Y=RegExp(H.source),$=/<%-([\s\S]+?)%>/g,Q=/<%([\s\S]+?)%>/g,Z=/<%=([\s\S]+?)%>/g,J=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,K=/^\w*$/,tt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,et=/[\\^$.*+?()[\]{}|]/g,nt=RegExp(et.source),rt=/^\s+/,it=/\s/,st=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ot=/\{\n\/\* \[wrapped with (.+)\] \*/,at=/,? & /,ut=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ht=/[()=,{}\[\]\/\s]/,lt=/\\(\\)?/g,ct=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,ft=/\w*$/,dt=/^[-+]0x[0-9a-f]+$/i,pt=/^0b[01]+$/i,mt=/^\[object .+?Constructor\]$/,gt=/^0o[0-7]+$/i,yt=/^(?:0|[1-9]\d*)$/,vt=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,wt=/($^)/,bt=/['\n\r\u2028\u2029\\]/g,xt="\\ud800-\\udfff",_t="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Nt="\\u2700-\\u27bf",kt="a-z\\xdf-\\xf6\\xf8-\\xff",St="A-Z\\xc0-\\xd6\\xd8-\\xde",Mt="\\ufe0e\\ufe0f",Ct="\\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",At="["+xt+"]",Et="["+Ct+"]",Tt="["+_t+"]",Ot="\\d+",Lt="["+Nt+"]",jt="["+kt+"]",Wt="[^"+xt+Ct+Ot+Nt+kt+St+"]",Pt="\\ud83c[\\udffb-\\udfff]",Dt="[^"+xt+"]",Bt="(?:\\ud83c[\\udde6-\\uddff]){2}",It="[\\ud800-\\udbff][\\udc00-\\udfff]",Rt="["+St+"]",zt="\\u200d",Ft="(?:"+jt+"|"+Wt+")",qt="(?:"+Rt+"|"+Wt+")",Ut="(?:['’](?:d|ll|m|re|s|t|ve))?",Vt="(?:['’](?:D|LL|M|RE|S|T|VE))?",Gt="(?:"+Tt+"|"+Pt+")?",Ht="["+Mt+"]?",Xt=Ht+Gt+"(?:"+zt+"(?:"+[Dt,Bt,It].join("|")+")"+Ht+Gt+")*",Yt="(?:"+[Lt,Bt,It].join("|")+")"+Xt,$t="(?:"+[Dt+Tt+"?",Tt,Bt,It,At].join("|")+")",Qt=RegExp("['’]","g"),Zt=RegExp(Tt,"g"),Jt=RegExp(Pt+"(?="+Pt+")|"+$t+Xt,"g"),Kt=RegExp([Rt+"?"+jt+"+"+Ut+"(?="+[Et,Rt,"$"].join("|")+")",qt+"+"+Vt+"(?="+[Et,Rt+Ft,"$"].join("|")+")",Rt+"?"+Ft+"+"+Ut,Rt+"+"+Vt,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Ot,Yt].join("|"),"g"),te=RegExp("["+zt+xt+_t+Mt+"]"),ee=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,ne=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],re=-1,ie={};ie[j]=ie[W]=ie[P]=ie[D]=ie[B]=ie[I]=ie[R]=ie[z]=ie[F]=!0,ie[m]=ie[g]=ie[O]=ie[y]=ie[L]=ie[v]=ie[w]=ie[b]=ie[_]=ie[N]=ie[k]=ie[M]=ie[C]=ie[A]=ie[T]=!1;var se={};se[m]=se[g]=se[O]=se[L]=se[y]=se[v]=se[j]=se[W]=se[P]=se[D]=se[B]=se[_]=se[N]=se[k]=se[M]=se[C]=se[A]=se[E]=se[I]=se[R]=se[z]=se[F]=!0,se[w]=se[b]=se[T]=!1;var oe={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},ae=parseFloat,ue=parseInt,he="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,le="object"==typeof self&&self&&self.Object===Object&&self,ce=he||le||Function("return this")(),fe=e&&!e.nodeType&&e,de=fe&&t&&!t.nodeType&&t,pe=de&&de.exports===fe,me=pe&&he.process,ge=function(){try{return de&&de.require&&de.require("util").types||me&&me.binding&&me.binding("util")}catch(t){}}(),ye=ge&&ge.isArrayBuffer,ve=ge&&ge.isDate,we=ge&&ge.isMap,be=ge&&ge.isRegExp,xe=ge&&ge.isSet,_e=ge&&ge.isTypedArray;function Ne(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}function ke(t,e,n,r){for(var i=-1,s=null==t?0:t.length;++i<s;){var o=t[i];e(r,o,n(o),t)}return r}function Se(t,e){for(var n=-1,r=null==t?0:t.length;++n<r&&!1!==e(t[n],n,t););return t}function Me(t,e){for(var n=null==t?0:t.length;n--&&!1!==e(t[n],n,t););return t}function Ce(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 Ae(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 Ee(t,e){return!(null==t||!t.length)&&Re(t,e,0)>-1}function Te(t,e,n){for(var r=-1,i=null==t?0:t.length;++r<i;)if(n(e,t[r]))return!0;return!1}function Oe(t,e){for(var n=-1,r=null==t?0:t.length,i=Array(r);++n<r;)i[n]=e(t[n],n,t);return i}function Le(t,e){for(var n=-1,r=e.length,i=t.length;++n<r;)t[i+n]=e[n];return t}function je(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 We(t,e,n,r){var i=null==t?0:t.length;for(r&&i&&(n=t[--i]);i--;)n=e(n,t[i],i,t);return n}function Pe(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1}var De=Ue("length");function Be(t,e,n){var r;return n(t,function(t,n,i){if(e(t,n,i))return r=n,!1}),r}function Ie(t,e,n,r){for(var i=t.length,s=n+(r?1:-1);r?s--:++s<i;)if(e(t[s],s,t))return s;return-1}function Re(t,e,n){return e==e?function(t,e,n){for(var r=n-1,i=t.length;++r<i;)if(t[r]===e)return r;return-1}(t,e,n):Ie(t,Fe,n)}function ze(t,e,n,r){for(var i=n-1,s=t.length;++i<s;)if(r(t[i],e))return i;return-1}function Fe(t){return t!=t}function qe(t,e){var n=null==t?0:t.length;return n?He(t,e)/n:f}function Ue(t){return function(e){return null==e?i:e[t]}}function Ve(t){return function(e){return null==t?i:t[e]}}function Ge(t,e,n,r,i){return i(t,function(t,i,s){n=r?(r=!1,t):e(n,t,i,s)}),n}function He(t,e){for(var n,r=-1,s=t.length;++r<s;){var o=e(t[r]);o!==i&&(n=n===i?o:n+o)}return n}function Xe(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}function Ye(t){return t?t.slice(0,fn(t)+1).replace(rt,""):t}function $e(t){return function(e){return t(e)}}function Qe(t,e){return Oe(e,function(e){return t[e]})}function Ze(t,e){return t.has(e)}function Je(t,e){for(var n=-1,r=t.length;++n<r&&Re(e,t[n],0)>-1;);return n}function Ke(t,e){for(var n=t.length;n--&&Re(e,t[n],0)>-1;);return n}var tn=Ve({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"}),en=Ve({"&":"&","<":"<",">":">",'"':""","'":"'"});function nn(t){return"\\"+oe[t]}function rn(t){return te.test(t)}function sn(t){var e=-1,n=Array(t.size);return t.forEach(function(t,r){n[++e]=[r,t]}),n}function on(t,e){return function(n){return t(e(n))}}function an(t,e){for(var n=-1,r=t.length,i=0,s=[];++n<r;){var o=t[n];o!==e&&o!==a||(t[n]=a,s[i++]=n)}return s}function un(t){var e=-1,n=Array(t.size);return t.forEach(function(t){n[++e]=t}),n}function hn(t){var e=-1,n=Array(t.size);return t.forEach(function(t){n[++e]=[t,t]}),n}function ln(t){return rn(t)?function(t){for(var e=Jt.lastIndex=0;Jt.test(t);)++e;return e}(t):De(t)}function cn(t){return rn(t)?function(t){return t.match(Jt)||[]}(t):function(t){return t.split("")}(t)}function fn(t){for(var e=t.length;e--&&it.test(t.charAt(e)););return e}var dn=Ve({"&":"&","<":"<",">":">",""":'"',"'":"'"}),pn=function t(e){var n,r=(e=null==e?ce:pn.defaults(ce.Object(),e,pn.pick(ce,ne))).Array,it=e.Date,xt=e.Error,_t=e.Function,Nt=e.Math,kt=e.Object,St=e.RegExp,Mt=e.String,Ct=e.TypeError,At=r.prototype,Et=_t.prototype,Tt=kt.prototype,Ot=e["__core-js_shared__"],Lt=Et.toString,jt=Tt.hasOwnProperty,Wt=0,Pt=(n=/[^.]+$/.exec(Ot&&Ot.keys&&Ot.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",Dt=Tt.toString,Bt=Lt.call(kt),It=ce._,Rt=St("^"+Lt.call(jt).replace(et,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),zt=pe?e.Buffer:i,Ft=e.Symbol,qt=e.Uint8Array,Ut=zt?zt.allocUnsafe:i,Vt=on(kt.getPrototypeOf,kt),Gt=kt.create,Ht=Tt.propertyIsEnumerable,Xt=At.splice,Yt=Ft?Ft.isConcatSpreadable:i,$t=Ft?Ft.iterator:i,Jt=Ft?Ft.toStringTag:i,te=function(){try{var t=us(kt,"defineProperty");return t({},"",{}),t}catch(t){}}(),oe=e.clearTimeout!==ce.clearTimeout&&e.clearTimeout,he=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=At.join,mn=on(kt.keys,kt),gn=Nt.max,yn=Nt.min,vn=it.now,wn=e.parseInt,bn=Nt.random,xn=At.reverse,_n=us(e,"DataView"),Nn=us(e,"Map"),kn=us(e,"Promise"),Sn=us(e,"Set"),Mn=us(e,"WeakMap"),Cn=us(kt,"create"),An=Mn&&new Mn,En={},Tn=Ds(_n),On=Ds(Nn),Ln=Ds(kn),jn=Ds(Sn),Wn=Ds(Mn),Pn=Ft?Ft.prototype:i,Dn=Pn?Pn.valueOf:i,Bn=Pn?Pn.toString:i;function In(t){if(ta(t)&&!Uo(t)&&!(t instanceof qn)){if(t instanceof Fn)return t;if(jt.call(t,"__wrapped__"))return Bs(t)}return new Fn(t)}var Rn=function(){function t(){}return function(e){if(!Ko(e))return{};if(Gt)return Gt(e);t.prototype=e;var n=new t;return t.prototype=i,n}}();function zn(){}function Fn(t,e){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!e,this.__index__=0,this.__values__=i}function qn(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=d,this.__views__=[]}function Un(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function Vn(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function Gn(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function Hn(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new Gn;++e<n;)this.add(t[e])}function Xn(t){var e=this.__data__=new Vn(t);this.size=e.size}function Yn(t,e){var n=Uo(t),r=!n&&qo(t),i=!n&&!r&&Xo(t),s=!n&&!r&&!i&&ua(t),o=n||r||i||s,a=o?Xe(t.length,Mt):[],u=a.length;for(var h in t)!e&&!jt.call(t,h)||o&&("length"==h||i&&("offset"==h||"parent"==h)||s&&("buffer"==h||"byteLength"==h||"byteOffset"==h)||ms(h,u))||a.push(h);return a}function $n(t){var e=t.length;return e?t[Gr(0,e-1)]:i}function Qn(t,e){return Os(Mi(t),sr(e,0,t.length))}function Zn(t){return Os(Mi(t))}function Jn(t,e,n){(n!==i&&!Ro(t[e],n)||n===i&&!(e in t))&&rr(t,e,n)}function Kn(t,e,n){var r=t[e];jt.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&&Ci(e,Ta(e),t)}function rr(t,e,n){"__proto__"==e&&te?te(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}function ir(t,e){for(var n=-1,s=e.length,o=r(s),a=null==t;++n<s;)o[n]=a?i:Sa(t,e[n]);return o}function sr(t,e,n){return t==t&&(n!==i&&(t=t<=n?t:n),e!==i&&(t=t>=e?t:e)),t}function or(t,e,n,r,s,o){var a,u=1&e,h=2&e,l=4&e;if(n&&(a=s?n(t,r,s,o):n(t)),a!==i)return a;if(!Ko(t))return t;var c=Uo(t);if(c){if(a=function(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&jt.call(t,"index")&&(n.index=t.index,n.input=t.input),n}(t),!u)return Mi(t,a)}else{var f=cs(t),d=f==b||f==x;if(Xo(t))return bi(t,u);if(f==k||f==m||d&&!s){if(a=h||d?{}:ds(t),!u)return h?function(t,e){return Ci(t,ls(t),e)}(t,function(t,e){return t&&Ci(e,Oa(e),t)}(a,t)):function(t,e){return Ci(t,hs(t),e)}(t,nr(a,t))}else{if(!se[f])return s?t:{};a=function(t,e,n){var r,i=t.constructor;switch(e){case O:return xi(t);case y:case v:return new i(+t);case L:return function(t,e){var n=e?xi(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}(t,n);case j:case W:case P:case D:case B:case I:case R:case z:case F:return _i(t,n);case _:return new i;case N:case A:return new i(t);case M:return function(t){var e=new t.constructor(t.source,ft.exec(t));return e.lastIndex=t.lastIndex,e}(t);case C:return new i;case E:return r=t,Dn?kt(Dn.call(r)):{}}}(t,f,u)}}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?h?es:ts:h?Oa:Ta)(t);return Se(g||t,function(r,i){g&&(r=t[i=r]),Kn(a,i,or(r,e,n,i,t,o))}),a}function ar(t,e,n){var r=n.length;if(null==t)return!r;for(t=kt(t);r--;){var s=n[r],o=e[s],a=t[s];if(a===i&&!(s in t)||!o(a))return!1}return!0}function ur(t,e,n){if("function"!=typeof t)throw new Ct(s);return Cs(function(){t.apply(i,n)},e)}function hr(t,e,n,r){var i=-1,s=Ee,o=!0,a=t.length,u=[],h=e.length;if(!a)return u;n&&(e=Oe(e,$e(n))),r?(s=Te,o=!1):e.length>=200&&(s=Ze,o=!1,e=new Hn(e));t:for(;++i<a;){var l=t[i],c=null==n?l:n(l);if(l=r||0!==l?l:0,o&&c==c){for(var f=h;f--;)if(e[f]===c)continue t;u.push(l)}else s(e,c,r)||u.push(l)}return u}In.templateSettings={escape:$,evaluate:Q,interpolate:Z,variable:"",imports:{_:In}},In.prototype=zn.prototype,In.prototype.constructor=In,Fn.prototype=Rn(zn.prototype),Fn.prototype.constructor=Fn,qn.prototype=Rn(zn.prototype),qn.prototype.constructor=qn,Un.prototype.clear=function(){this.__data__=Cn?Cn(null):{},this.size=0},Un.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},Un.prototype.get=function(t){var e=this.__data__;if(Cn){var n=e[t];return n===o?i:n}return jt.call(e,t)?e[t]:i},Un.prototype.has=function(t){var e=this.__data__;return Cn?e[t]!==i:jt.call(e,t)},Un.prototype.set=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=Cn&&e===i?o:e,this},Vn.prototype.clear=function(){this.__data__=[],this.size=0},Vn.prototype.delete=function(t){var e=this.__data__,n=tr(e,t);return!(n<0||(n==e.length-1?e.pop():Xt.call(e,n,1),--this.size,0))},Vn.prototype.get=function(t){var e=this.__data__,n=tr(e,t);return n<0?i:e[n][1]},Vn.prototype.has=function(t){return tr(this.__data__,t)>-1},Vn.prototype.set=function(t,e){var n=this.__data__,r=tr(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this},Gn.prototype.clear=function(){this.size=0,this.__data__={hash:new Un,map:new(Nn||Vn),string:new Un}},Gn.prototype.delete=function(t){var e=os(this,t).delete(t);return this.size-=e?1:0,e},Gn.prototype.get=function(t){return os(this,t).get(t)},Gn.prototype.has=function(t){return os(this,t).has(t)},Gn.prototype.set=function(t,e){var n=os(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this},Hn.prototype.add=Hn.prototype.push=function(t){return this.__data__.set(t,o),this},Hn.prototype.has=function(t){return this.__data__.has(t)},Xn.prototype.clear=function(){this.__data__=new Vn,this.size=0},Xn.prototype.delete=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n},Xn.prototype.get=function(t){return this.__data__.get(t)},Xn.prototype.has=function(t){return this.__data__.has(t)},Xn.prototype.set=function(t,e){var n=this.__data__;if(n instanceof Vn){var r=n.__data__;if(!Nn||r.length<199)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new Gn(r)}return n.set(t,e),this.size=n.size,this};var lr=Ti(vr),cr=Ti(wr,!0);function fr(t,e){var n=!0;return lr(t,function(t,r,i){return n=!!e(t,r,i)}),n}function dr(t,e,n){for(var r=-1,s=t.length;++r<s;){var o=t[r],a=e(o);if(null!=a&&(u===i?a==a&&!aa(a):n(a,u)))var u=a,h=o}return h}function pr(t,e){var n=[];return lr(t,function(t,r,i){e(t,r,i)&&n.push(t)}),n}function mr(t,e,n,r,i){var s=-1,o=t.length;for(n||(n=ps),i||(i=[]);++s<o;){var a=t[s];e>0&&n(a)?e>1?mr(a,e-1,n,r,i):Le(i,a):r||(i[i.length]=a)}return i}var gr=Oi(),yr=Oi(!0);function vr(t,e){return t&&gr(t,e,Ta)}function wr(t,e){return t&&yr(t,e,Ta)}function br(t,e){return Ae(e,function(e){return Qo(t[e])})}function xr(t,e){for(var n=0,r=(e=gi(e,t)).length;null!=t&&n<r;)t=t[Ps(e[n++])];return n&&n==r?t:i}function _r(t,e,n){var r=e(t);return Uo(t)?r:Le(r,n(t))}function Nr(t){return null==t?t===i?"[object Undefined]":"[object Null]":Jt&&Jt in kt(t)?function(t){var e=jt.call(t,Jt),n=t[Jt];try{t[Jt]=i;var r=!0}catch(t){}var s=Dt.call(t);return r&&(e?t[Jt]=n:delete t[Jt]),s}(t):function(t){return Dt.call(t)}(t)}function kr(t,e){return t>e}function Sr(t,e){return null!=t&&jt.call(t,e)}function Mr(t,e){return null!=t&&e in kt(t)}function Cr(t,e,n){for(var s=n?Te:Ee,o=t[0].length,a=t.length,u=a,h=r(a),l=1/0,c=[];u--;){var f=t[u];u&&e&&(f=Oe(f,$e(e))),l=yn(f.length,l),h[u]=!n&&(e||o>=120&&f.length>=120)?new Hn(u&&f):i}f=t[0];var d=-1,p=h[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(u=a;--u;){var y=h[u];if(!(y?Ze(y,g):s(t[u],g,n)))continue t}p&&p.push(g),c.push(m)}}return c}function Ar(t,e,n){var r=null==(t=ks(t,e=gi(e,t)))?t:t[Ps(Ys(e))];return null==r?i:Ne(r,t,n)}function Er(t){return ta(t)&&Nr(t)==m}function Tr(t,e,n,r,s){return t===e||(null==t||null==e||!ta(t)&&!ta(e)?t!=t&&e!=e:function(t,e,n,r,s,o){var a=Uo(t),u=Uo(e),h=a?g:cs(t),l=u?g:cs(e),c=(h=h==m?k:h)==k,f=(l=l==m?k:l)==k,d=h==l;if(d&&Xo(t)){if(!Xo(e))return!1;a=!0,c=!1}if(d&&!c)return o||(o=new Xn),a||ua(t)?Ji(t,e,n,r,s,o):function(t,e,n,r,i,s,o){switch(n){case L:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case O:return!(t.byteLength!=e.byteLength||!s(new qt(t),new qt(e)));case y:case v:case N:return Ro(+t,+e);case w:return t.name==e.name&&t.message==e.message;case M:case A:return t==e+"";case _:var a=sn;case C:var u=1&r;if(a||(a=un),t.size!=e.size&&!u)return!1;var h=o.get(t);if(h)return h==e;r|=2,o.set(t,e);var l=Ji(a(t),a(e),r,i,s,o);return o.delete(t),l;case E:if(Dn)return Dn.call(t)==Dn.call(e)}return!1}(t,e,h,n,r,s,o);if(!(1&n)){var p=c&&jt.call(t,"__wrapped__"),b=f&&jt.call(e,"__wrapped__");if(p||b){var x=p?t.value():t,S=b?e.value():e;return o||(o=new Xn),s(x,S,n,r,o)}}return!!d&&(o||(o=new Xn),function(t,e,n,r,s,o){var a=1&n,u=ts(t),h=u.length;if(h!=ts(e).length&&!a)return!1;for(var l=h;l--;){var c=u[l];if(!(a?c in e:jt.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<h;){var g=t[c=u[l]],y=e[c];if(r)var v=a?r(y,g,c,e,t,o):r(g,y,c,t,e,o);if(!(v===i?g===y||s(g,y,n,r,o):v)){p=!1;break}m||(m="constructor"==c)}if(p&&!m){var w=t.constructor,b=e.constructor;w==b||!("constructor"in t)||!("constructor"in e)||"function"==typeof w&&w instanceof w&&"function"==typeof b&&b instanceof b||(p=!1)}return o.delete(t),o.delete(e),p}(t,e,n,r,s,o))}(t,e,n,r,Tr,s))}function Or(t,e,n,r){var s=n.length,o=s,a=!r;if(null==t)return!o;for(t=kt(t);s--;){var u=n[s];if(a&&u[2]?u[1]!==t[u[0]]:!(u[0]in t))return!1}for(;++s<o;){var h=(u=n[s])[0],l=t[h],c=u[1];if(a&&u[2]){if(l===i&&!(h in t))return!1}else{var f=new Xn;if(r)var d=r(l,c,h,t,e,f);if(!(d===i?Tr(c,l,3,r,f):d))return!1}}return!0}function Lr(t){return!(!Ko(t)||(e=t,Pt&&Pt in e))&&(Qo(t)?Rt:mt).test(Ds(t));var e}function jr(t){return"function"==typeof t?t:null==t?nu:"object"==typeof t?Uo(t)?Ir(t[0],t[1]):Br(t):cu(t)}function Wr(t){if(!bs(t))return mn(t);var e=[];for(var n in kt(t))jt.call(t,n)&&"constructor"!=n&&e.push(n);return e}function Pr(t,e){return t<e}function Dr(t,e){var n=-1,i=Go(t)?r(t.length):[];return lr(t,function(t,r,s){i[++n]=e(t,r,s)}),i}function Br(t){var e=as(t);return 1==e.length&&e[0][2]?_s(e[0][0],e[0][1]):function(n){return n===t||Or(n,t,e)}}function Ir(t,e){return ys(t)&&xs(e)?_s(Ps(t),e):function(n){var r=Sa(n,t);return r===i&&r===e?Ma(n,t):Tr(e,r,3)}}function Rr(t,e,n,r,s){t!==e&&gr(e,function(o,a){if(s||(s=new Xn),Ko(o))!function(t,e,n,r,s,o,a){var u=Ss(t,n),h=Ss(e,n),l=a.get(h);if(l)Jn(t,n,l);else{var c=o?o(u,h,n+"",t,e,a):i,f=c===i;if(f){var d=Uo(h),p=!d&&Xo(h),m=!d&&!p&&ua(h);c=h,d||p||m?Uo(u)?c=u:Ho(u)?c=Mi(u):p?(f=!1,c=bi(h,!0)):m?(f=!1,c=_i(h,!0)):c=[]:ra(h)||qo(h)?(c=u,qo(u)?c=ga(u):Ko(u)&&!Qo(u)||(c=ds(h))):f=!1}f&&(a.set(h,c),s(c,h,r,o,a),a.delete(h)),Jn(t,n,c)}}(t,e,a,n,Rr,r,s);else{var u=r?r(Ss(t,a),o,a+"",t,e,s):i;u===i&&(u=o),Jn(t,a,u)}},Oa)}function zr(t,e){var n=t.length;if(n)return ms(e+=e<0?n:0,n)?t[e]:i}function Fr(t,e,n){e=e.length?Oe(e,function(t){return Uo(t)?function(e){return xr(e,1===t.length?t[0]:t)}:t}):[nu];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 u=Ni(i[r],s[r]);if(u)return r>=a?u:u*("desc"==n[r]?-1:1)}return t.index-e.index}(t,e,n)});e--;)t[e]=t[e].value;return t}(i)}function qr(t,e,n){for(var r=-1,i=e.length,s={};++r<i;){var o=e[r],a=xr(t,o);n(a,o)&&Qr(s,gi(o,t),a)}return s}function Ur(t,e,n,r){var i=r?ze:Re,s=-1,o=e.length,a=t;for(t===e&&(e=Mi(e)),n&&(a=Oe(t,$e(n)));++s<o;)for(var u=0,h=e[s],l=n?n(h):h;(u=i(a,l,u,r))>-1;)a!==t&&Xt.call(a,u,1),Xt.call(t,u,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):ui(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 As(Ns(t,e,nu),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,u=t;null!=u&&++s<o;){var h=Ps(e[s]),l=n;if("__proto__"===h||"constructor"===h||"prototype"===h)return t;if(s!=a){var c=u[h];(l=r?r(c,h,u):i)===i&&(l=Ko(c)?c:ms(e[s+1])?[]:{})}Kn(u,h,l),u=u[h]}return t}var Zr=An?function(t,e){return An.set(t,e),t}:nu,Jr=te?function(t,e){return te(t,"toString",{configurable:!0,enumerable:!1,value:Ka(e),writable:!0})}:nu;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,nu,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,u=null===e,h=aa(e),l=e===i;s<o;){var c=de((s+o)/2),f=n(t[c]),d=f!==i,p=null===f,m=f==f,g=aa(f);if(a)var y=r||m;else y=l?m&&(r||d):u?m&&d&&(r||!p):h?m&&d&&!p&&(r||!g):!p&&!g&&(r?f<=e:f<e);y?s=c+1:o=c}return yn(o,4294967294)}function ii(t,e){for(var n=-1,r=t.length,i=0,s=[];++n<r;){var o=t[n],a=e?e(o):o;if(!n||!Ro(a,u)){var u=a;s[i++]=0===o?0:o}}return s}function si(t){return"number"==typeof t?t:aa(t)?f:+t}function oi(t){if("string"==typeof t)return t;if(Uo(t))return Oe(t,oi)+"";if(aa(t))return Bn?Bn.call(t):"";var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}function ai(t,e,n){var r=-1,i=Ee,s=t.length,o=!0,a=[],u=a;if(n)o=!1,i=Te;else if(s>=200){var h=e?null:Hi(t);if(h)return un(h);o=!1,i=Ze,u=new Hn}else u=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=u.length;f--;)if(u[f]===c)continue t;e&&u.push(c),a.push(l)}else i(u,c,n)||(u!==a&&u.push(c),a.push(l))}return a}function ui(t,e){return null==(t=ks(t,e=gi(e,t)))||delete t[Ps(Ys(e))]}function hi(t,e,n,r){return Qr(t,e,n(xr(t,e)),r)}function li(t,e,n,r){for(var i=t.length,s=r?i:-1;(r?s--:++s<i)&&e(t[s],s,t););return n?ti(t,r?0:s,r?s+1:i):ti(t,r?s+1:0,r?i:s)}function ci(t,e){var n=t;return n instanceof qn&&(n=n.value()),je(e,function(t,e){return e.func.apply(e.thisArg,Le([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],u=-1;++u<i;)u!=s&&(o[s]=hr(o[s]||a,t[u],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 u=r<o?e[r]:i;n(a,t[r],u)}return a}function pi(t){return Ho(t)?t:[]}function mi(t){return"function"==typeof t?t:nu}function gi(t,e){return Uo(t)?t:ys(t,e)?[t]:Ws(ya(t))}var yi=Xr;function vi(t,e,n){var r=t.length;return n=n===i?r:n,!e&&n>=r?t:ti(t,e,n)}var wi=oe||function(t){return ce.clearTimeout(t)};function bi(t,e){if(e)return t.slice();var n=t.length,r=Ut?Ut(n):new t.constructor(n);return t.copy(r),r}function xi(t){var e=new t.constructor(t.byteLength);return new qt(e).set(new qt(t)),e}function _i(t,e){var n=e?xi(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}function Ni(t,e){if(t!==e){var n=t!==i,r=null===t,s=t==t,o=aa(t),a=e!==i,u=null===e,h=e==e,l=aa(e);if(!u&&!l&&!o&&t>e||o&&a&&h&&!u&&!l||r&&a&&h||!n&&h||!s)return 1;if(!r&&!o&&!l&&t<e||l&&n&&s&&!r&&!o||u&&n&&s||!a&&s||!h)return-1}return 0}function ki(t,e,n,i){for(var s=-1,o=t.length,a=n.length,u=-1,h=e.length,l=gn(o-a,0),c=r(h+l),f=!i;++u<h;)c[u]=e[u];for(;++s<a;)(f||s<o)&&(c[n[s]]=t[s]);for(;l--;)c[u++]=t[s++];return c}function Si(t,e,n,i){for(var s=-1,o=t.length,a=-1,u=n.length,h=-1,l=e.length,c=gn(o-u,0),f=r(c+l),d=!i;++s<c;)f[s]=t[s];for(var p=s;++h<l;)f[p+h]=e[h];for(;++a<u;)(d||s<o)&&(f[p+n[a]]=t[s++]);return f}function Mi(t,e){var n=-1,i=t.length;for(e||(e=r(i));++n<i;)e[n]=t[n];return e}function Ci(t,e,n,r){var s=!n;n||(n={});for(var o=-1,a=e.length;++o<a;){var u=e[o],h=r?r(n[u],t[u],u,n,t):i;h===i&&(h=t[u]),s?rr(n,u,h):Kn(n,u,h)}return n}function Ai(t,e){return function(n,r){var i=Uo(n)?ke:er,s=e?e():{};return i(n,t,ss(r,2),s)}}function Ei(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 u=n[r];u&&t(e,u,r,o)}return e})}function Ti(t,e){return function(n,r){if(null==n)return n;if(!Go(n))return t(n,r);for(var i=n.length,s=e?i:-1,o=kt(n);(e?s--:++s<i)&&!1!==r(o[s],s,o););return n}}function Oi(t){return function(e,n,r){for(var i=-1,s=kt(e),o=r(e),a=o.length;a--;){var u=o[t?a:++i];if(!1===n(s[u],u,s))break}return e}}function Li(t){return function(e){var n=rn(e=ya(e))?cn(e):i,r=n?n[0]:e.charAt(0),s=n?vi(n,1).join(""):e.slice(1);return r[t]()+s}}function ji(t){return function(e){return je(Qa(qa(e).replace(Qt,"")),t,"")}}function Wi(t){return function(){var e=arguments;switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3]);case 5:return new t(e[0],e[1],e[2],e[3],e[4]);case 6:return new t(e[0],e[1],e[2],e[3],e[4],e[5]);case 7:return new t(e[0],e[1],e[2],e[3],e[4],e[5],e[6])}var n=Rn(t.prototype),r=t.apply(n,e);return Ko(r)?r:n}}function Pi(t){return function(e,n,r){var s=kt(e);if(!Go(e)){var o=ss(n,3);e=Ta(e),n=function(t){return o(s[t],t,s)}}var a=t(e,n,r);return a>-1?s[o?e[a]:a]:i}}function Di(t){return Ki(function(e){var n=e.length,r=n,o=Fn.prototype.thru;for(t&&e.reverse();r--;){var a=e[r];if("function"!=typeof a)throw new Ct(s);if(o&&!u&&"wrapper"==rs(a))var u=new Fn([],!0)}for(r=u?r:n;++r<n;){var h=rs(a=e[r]),l="wrapper"==h?ns(a):i;u=l&&vs(l[0])&&424==l[1]&&!l[4].length&&1==l[9]?u[rs(l[0])].apply(u,l[3]):1==a.length&&vs(a)?u[h]():u.thru(a)}return function(){var t=arguments,r=t[0];if(u&&1==t.length&&Uo(r))return u.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,u,l,c,f){var d=e&h,p=1&e,m=2&e,g=24&e,y=512&e,v=m?i:Wi(t);return function h(){for(var w=arguments.length,b=r(w),x=w;x--;)b[x]=arguments[x];if(g)var _=is(h),N=function(t,e){for(var n=t.length,r=0;n--;)t[n]===e&&++r;return r}(b,_);if(s&&(b=ki(b,s,o,g)),a&&(b=Si(b,a,u,g)),w-=N,g&&w<f){var k=an(b,_);return Vi(t,e,Bi,h.placeholder,n,b,k,l,c,f-w)}var S=p?n:this,M=m?S[t]:t;return w=b.length,l?b=function(t,e){for(var n=t.length,r=yn(e.length,n),s=Mi(t);r--;){var o=e[r];t[r]=ms(o,n)?s[o]:i}return t}(b,l):y&&w>1&&b.reverse(),d&&c<w&&(b.length=c),this&&this!==ce&&this instanceof h&&(M=v||Wi(M)),M.apply(S,b)}}function Ii(t,e){return function(n,r){return function(t,e,n,r){return vr(t,function(t,i,s){e(r,n(t),i,s)}),r}(n,t,e(r),{})}}function Ri(t,e){return function(n,r){var s;if(n===i&&r===i)return e;if(n!==i&&(s=n),r!==i){if(s===i)return r;"string"==typeof n||"string"==typeof r?(n=oi(n),r=oi(r)):(n=si(n),r=si(r)),s=t(n,r)}return s}}function zi(t){return Ki(function(e){return e=Oe(e,$e(ss())),Xr(function(n){var r=this;return t(e,function(t){return Ne(t,r,n)})})})}function Fi(t,e){var n=(e=e===i?" ":oi(e)).length;if(n<2)return n?Hr(e,t):e;var r=Hr(e,fe(t/ln(e)));return rn(e)?vi(cn(r),0,t).join(""):r.slice(0,t)}function qi(t){return function(e,n,s){return s&&"number"!=typeof s&&gs(e,n,s)&&(n=s=i),e=fa(e),n===i?(n=e,e=0):n=fa(n),function(t,e,n,i){for(var s=-1,o=gn(fe((e-t)/(n||1)),0),a=r(o);o--;)a[i?o:++s]=t,t+=n;return a}(e,n,s=s===i?e<n?1:-1:fa(s),t)}}function Ui(t){return function(e,n){return"string"==typeof e&&"string"==typeof n||(e=ma(e),n=ma(n)),t(e,n)}}function Vi(t,e,n,r,s,o,a,h,l,c){var f=8&e;e|=f?u:64,4&(e&=~(f?64:u))||(e&=-4);var d=[t,e,s,f?o:i,f?a:i,f?i:o,f?i:a,h,l,c],p=n.apply(i,d);return vs(t)&&Ms(p,d),p.placeholder=r,Es(p,t,e)}function Gi(t){var e=Nt[t];return function(t,n){if(t=ma(t),(n=null==n?0:yn(da(n),292))&&De(t)){var r=(ya(t)+"e").split("e");return+((r=(ya(e(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return e(t)}}var Hi=Sn&&1/un(new Sn([,-0]))[1]==l?function(t){return new Sn(t)}:au;function Xi(t){return function(e){var n=cs(e);return n==_?sn(e):n==C?hn(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 Ct(s);var m=o?o.length:0;if(m||(e&=-97,o=l=i),f=f===i?f:gn(da(f),0),d=d===i?d:da(d),m-=l?l.length:0,64&e){var g=o,y=l;o=l=i}var v=p?i:ns(t),w=[t,e,n,o,l,g,y,c,f,d];if(v&&function(t,e){var n=t[1],r=e[1],i=n|r,s=i<131,o=r==h&&8==n||r==h&&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 u=e[3];if(u){var l=t[3];t[3]=l?ki(l,u,e[4]):u,t[4]=l?an(t[3],a):e[4]}(u=e[5])&&(l=t[5],t[5]=l?Si(l,u,e[6]):u,t[6]=l?an(t[5],a):e[6]),(u=e[7])&&(t[7]=u),r&h&&(t[8]=null==t[8]?e[8]:yn(t[8],e[8])),null==t[9]&&(t[9]=e[9]),t[0]=e[0],t[1]=i}(w,v),t=w[0],e=w[1],n=w[2],o=w[3],l=w[4],!(d=w[9]=w[9]===i?p?0:t.length:gn(w[9]-m,0))&&24&e&&(e&=-25),e&&1!=e)b=8==e||16==e?function(t,e,n){var s=Wi(t);return function o(){for(var a=arguments.length,u=r(a),h=a,l=is(o);h--;)u[h]=arguments[h];var c=a<3&&u[0]!==l&&u[a-1]!==l?[]:an(u,l);return(a-=c.length)<n?Vi(t,e,Bi,o.placeholder,i,u,c,i,i,n-a):Ne(this&&this!==ce&&this instanceof o?s:t,this,u)}}(t,e,d):e!=u&&33!=e||l.length?Bi.apply(i,w):function(t,e,n,i){var s=1&e,o=Wi(t);return function e(){for(var a=-1,u=arguments.length,h=-1,l=i.length,c=r(l+u),f=this&&this!==ce&&this instanceof e?o:t;++h<l;)c[h]=i[h];for(;u--;)c[h++]=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=Wi(t);return function e(){return(this&&this!==ce&&this instanceof e?i:t).apply(r?n:this,arguments)}}(t,e,n);return Es((v?Zr:Ms)(b,w),t,e)}function $i(t,e,n,r){return t===i||Ro(t,Tt[n])&&!jt.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,u=t.length,h=e.length;if(u!=h&&!(a&&h>u))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<u;){var m=t[f],g=e[f];if(r)var y=a?r(g,m,f,e,t,o):r(m,g,f,t,e,o);if(y!==i){if(y)continue;d=!1;break}if(p){if(!Pe(e,function(t,e){if(!Ze(p,e)&&(m===t||s(m,t,n,r,o)))return p.push(e)})){d=!1;break}}else if(m!==g&&!s(m,g,n,r,o)){d=!1;break}}return o.delete(t),o.delete(e),d}function Ki(t){return As(Ns(t,i,Us),t+"")}function ts(t){return _r(t,Ta,hs)}function es(t){return _r(t,Oa,ls)}var ns=An?function(t){return An.get(t)}:au;function rs(t){for(var e=t.name+"",n=En[e],r=jt.call(En,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(jt.call(In,"placeholder")?In:t).placeholder}function ss(){var t=In.iteratee||ru;return t=t===ru?jr:t,arguments.length?t(arguments[0],arguments[1]):t}function os(t,e){var n,r,i=t.__data__;return("string"==(r=typeof(n=e))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?i["string"==typeof e?"string":"hash"]:i.map}function as(t){for(var e=Ta(t),n=e.length;n--;){var r=e[n],i=t[r];e[n]=[r,i,xs(i)]}return e}function us(t,e){var n=function(t,e){return null==t?i:t[e]}(t,e);return Lr(n)?n:i}var hs=me?function(t){return null==t?[]:(t=kt(t),Ae(me(t),function(e){return Ht.call(t,e)}))}:pu,ls=me?function(t){for(var e=[];t;)Le(e,hs(t)),t=Vt(t);return e}:pu,cs=Nr;function fs(t,e,n){for(var r=-1,i=(e=gi(e,t)).length,s=!1;++r<i;){var o=Ps(e[r]);if(!(s=null!=t&&n(t,o)))break;t=t[o]}return s||++r!=i?s:!!(i=null==t?0:t.length)&&Jo(i)&&ms(o,i)&&(Uo(t)||qo(t))}function ds(t){return"function"!=typeof t.constructor||bs(t)?{}:Rn(Vt(t))}function ps(t){return Uo(t)||qo(t)||!!(Yt&&t&&t[Yt])}function ms(t,e){var n=typeof t;return!!(e=null==e?c:e)&&("number"==n||"symbol"!=n&&yt.test(t))&&t>-1&&t%1==0&&t<e}function gs(t,e,n){if(!Ko(n))return!1;var r=typeof e;return!!("number"==r?Go(n)&&ms(e,n.length):"string"==r&&e in n)&&Ro(n[e],t)}function ys(t,e){if(Uo(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!aa(t))||K.test(t)||!J.test(t)||null!=e&&t in kt(e)}function vs(t){var e=rs(t),n=In[e];if("function"!=typeof n||!(e in qn.prototype))return!1;if(t===n)return!0;var r=ns(n);return!!r&&t===r[0]}(_n&&cs(new _n(new ArrayBuffer(1)))!=L||Nn&&cs(new Nn)!=_||kn&&cs(kn.resolve())!=S||Sn&&cs(new Sn)!=C||Mn&&cs(new Mn)!=T)&&(cs=function(t){var e=Nr(t),n=e==k?t.constructor:i,r=n?Ds(n):"";if(r)switch(r){case Tn:return L;case On:return _;case Ln:return S;case jn:return C;case Wn:return T}return e});var ws=Ot?Qo:mu;function bs(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||Tt)}function xs(t){return t==t&&!Ko(t)}function _s(t,e){return function(n){return null!=n&&n[t]===e&&(e!==i||t in kt(n))}}function Ns(t,e,n){return e=gn(e===i?t.length-1:e,0),function(){for(var i=arguments,s=-1,o=gn(i.length-e,0),a=r(o);++s<o;)a[s]=i[e+s];s=-1;for(var u=r(e+1);++s<e;)u[s]=i[s];return u[e]=n(a),Ne(t,this,u)}}function ks(t,e){return e.length<2?t:xr(t,ti(e,0,-1))}function Ss(t,e){if(("constructor"!==e||"function"!=typeof t[e])&&"__proto__"!=e)return t[e]}var Ms=Ts(Zr),Cs=le||function(t,e){return ce.setTimeout(t,e)},As=Ts(Jr);function Es(t,e,n){var r=e+"";return As(t,function(t,e){var n=e.length;if(!n)return t;var r=n-1;return e[r]=(n>1?"& ":"")+e[r],e=e.join(n>2?", ":" "),t.replace(st,"{\n/* [wrapped with "+e+"] */\n")}(r,function(t,e){return Se(p,function(n){var r="_."+n[0];e&n[1]&&!Ee(t,r)&&t.push(r)}),t.sort()}(function(t){var e=t.match(ot);return e?e[1].split(at):[]}(r),n)))}function Ts(t){var e=0,n=0;return function(){var r=vn(),s=16-(r-n);if(n=r,s>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(i,arguments)}}function Os(t,e){var n=-1,r=t.length,s=r-1;for(e=e===i?r:e;++n<e;){var o=Gr(n,s),a=t[o];t[o]=t[n],t[n]=a}return t.length=e,t}var Ls,js,Ws=(Ls=jo(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===js.size&&js.clear(),t}),js=Ls.cache,Ls);function Ps(t){if("string"==typeof t||aa(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}function Ds(t){if(null!=t){try{return Lt.call(t)}catch(t){}try{return t+""}catch(t){}}return""}function Bs(t){if(t instanceof qn)return t.clone();var e=new Fn(t.__wrapped__,t.__chain__);return e.__actions__=Mi(t.__actions__),e.__index__=t.__index__,e.__values__=t.__values__,e}var Is=Xr(function(t,e){return Ho(t)?hr(t,mr(e,1,Ho,!0)):[]}),Rs=Xr(function(t,e){var n=Ys(e);return Ho(n)&&(n=i),Ho(t)?hr(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)?hr(t,mr(e,1,Ho,!0),i,n):[]});function Fs(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var i=null==n?0:da(n);return i<0&&(i=gn(r+i,0)),Ie(t,ss(e,3),i)}function qs(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var s=r-1;return n!==i&&(s=da(n),s=n<0?gn(r+s,0):yn(s,r-1)),Ie(t,ss(e,3),s,!0)}function Us(t){return null!=t&&t.length?mr(t,1):[]}function Vs(t){return t&&t.length?t[0]:i}var Gs=Xr(function(t){var e=Oe(t,pi);return e.length&&e[0]===t[0]?Cr(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]?Cr(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]?Cr(n,i,e):[]});function Ys(t){var e=null==t?0:t.length;return e?t[e-1]:i}var $s=Xr(Qs);function Qs(t,e){return t&&t.length&&e&&e.length?Ur(t,e):t}var Zs=Ki(function(t,e){var n=null==t?0:t.length,r=ir(t,e);return Vr(t,Oe(e,function(t){return ms(t,n)?+t:t}).sort(Ni)),r});function Js(t){return null==t?t:xn.call(t)}var Ks=Xr(function(t){return ai(mr(t,1,Ho,!0))}),to=Xr(function(t){var e=Ys(t);return Ho(e)&&(e=i),ai(mr(t,1,Ho,!0),ss(e,2))}),eo=Xr(function(t){var e=Ys(t);return e="function"==typeof e?e:i,ai(mr(t,1,Ho,!0),i,e)});function no(t){if(!t||!t.length)return[];var e=0;return t=Ae(t,function(t){if(Ho(t))return e=gn(t.length,e),!0}),Xe(e,function(e){return Oe(t,Ue(e))})}function ro(t,e){if(!t||!t.length)return[];var n=no(t);return null==e?n:Oe(n,function(t){return Ne(e,i,t)})}var io=Xr(function(t,e){return Ho(t)?hr(t,e):[]}),so=Xr(function(t){return fi(Ae(t,Ho))}),oo=Xr(function(t){var e=Ys(t);return Ho(e)&&(e=i),fi(Ae(t,Ho),ss(e,2))}),ao=Xr(function(t){var e=Ys(t);return e="function"==typeof e?e:i,fi(Ae(t,Ho),i,e)}),uo=Xr(no),ho=Xr(function(t){var e=t.length,n=e>1?t[e-1]:i;return n="function"==typeof n?(t.pop(),n):i,ro(t,n)});function lo(t){var e=In(t);return e.__chain__=!0,e}function co(t,e){return e(t)}var fo=Ki(function(t){var e=t.length,n=e?t[0]:0,r=this.__wrapped__,s=function(e){return ir(e,t)};return!(e>1||this.__actions__.length)&&r instanceof qn&&ms(n)?((r=r.slice(n,+n+(e?1:0))).__actions__.push({func:co,args:[s],thisArg:i}),new Fn(r,this.__chain__).thru(function(t){return e&&!t.length&&t.push(i),t})):this.thru(s)}),po=Ai(function(t,e,n){jt.call(t,n)?++t[n]:rr(t,n,1)}),mo=Pi(Fs),go=Pi(qs);function yo(t,e){return(Uo(t)?Se:lr)(t,ss(e,3))}function vo(t,e){return(Uo(t)?Me:cr)(t,ss(e,3))}var wo=Ai(function(t,e,n){jt.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):Ar(t,e,n)}),o}),xo=Ai(function(t,e,n){rr(t,n,e)});function _o(t,e){return(Uo(t)?Oe:Dr)(t,ss(e,3))}var No=Ai(function(t,e,n){t[n?0:1].push(e)},function(){return[[],[]]}),ko=Xr(function(t,e){if(null==t)return[];var n=e.length;return n>1&&gs(t,e[0],e[1])?e=[]:n>2&&gs(e[0],e[1],e[2])&&(e=[e[0]]),Fr(t,mr(e,1),[])}),So=he||function(){return ce.Date.now()};function Mo(t,e,n){return e=n?i:e,e=t&&null==e?t.length:e,Yi(t,h,i,i,i,i,e)}function Co(t,e){var n;if("function"!=typeof e)throw new Ct(s);return t=da(t),function(){return--t>0&&(n=e.apply(this,arguments)),t<=1&&(e=i),n}}var Ao=Xr(function(t,e,n){var r=1;if(n.length){var i=an(n,is(Ao));r|=u}return Yi(t,r,e,n,i)}),Eo=Xr(function(t,e,n){var r=3;if(n.length){var i=an(n,is(Eo));r|=u}return Yi(e,r,t,n,i)});function To(t,e,n){var r,o,a,u,h,l,c=0,f=!1,d=!1,p=!0;if("function"!=typeof t)throw new Ct(s);function m(e){var n=r,s=o;return r=o=i,c=e,u=t.apply(s,n)}function g(t){var n=t-l;return l===i||n>=e||n<0||d&&t-c>=a}function y(){var t=So();if(g(t))return v(t);h=Cs(y,function(t){var n=e-(t-l);return d?yn(n,a-(t-c)):n}(t))}function v(t){return h=i,p&&r?m(t):(r=o=i,u)}function w(){var t=So(),n=g(t);if(r=arguments,o=this,l=t,n){if(h===i)return function(t){return c=t,h=Cs(y,e),f?m(t):u}(l);if(d)return wi(h),h=Cs(y,e),m(l)}return h===i&&(h=Cs(y,e)),u}return e=ma(e)||0,Ko(n)&&(f=!!n.leading,a=(d="maxWait"in n)?gn(ma(n.maxWait)||0,e):a,p="trailing"in n?!!n.trailing:p),w.cancel=function(){h!==i&&wi(h),c=0,r=l=o=h=i},w.flush=function(){return h===i?u:v(So())},w}var Oo=Xr(function(t,e){return ur(t,1,e)}),Lo=Xr(function(t,e,n){return ur(t,ma(e)||0,n)});function jo(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new Ct(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(jo.Cache||Gn),n}function Wo(t){if("function"!=typeof t)throw new Ct(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)}}jo.Cache=Gn;var Po=yi(function(t,e){var n=(e=1==e.length&&Uo(e[0])?Oe(e[0],$e(ss())):Oe(mr(e,1),$e(ss()))).length;return Xr(function(r){for(var i=-1,s=yn(r.length,n);++i<s;)r[i]=e[i].call(this,r[i]);return Ne(t,this,r)})}),Do=Xr(function(t,e){var n=an(e,is(Do));return Yi(t,u,i,e,n)}),Bo=Xr(function(t,e){var n=an(e,is(Bo));return Yi(t,64,i,e,n)}),Io=Ki(function(t,e){return Yi(t,256,i,i,i,e)});function Ro(t,e){return t===e||t!=t&&e!=e}var zo=Ui(kr),Fo=Ui(function(t,e){return t>=e}),qo=Er(function(){return arguments}())?Er:function(t){return ta(t)&&jt.call(t,"callee")&&!Ht.call(t,"callee")},Uo=r.isArray,Vo=ye?$e(ye):function(t){return ta(t)&&Nr(t)==O};function Go(t){return null!=t&&Jo(t.length)&&!Qo(t)}function Ho(t){return ta(t)&&Go(t)}var Xo=ge||mu,Yo=ve?$e(ve):function(t){return ta(t)&&Nr(t)==v};function $o(t){if(!ta(t))return!1;var e=Nr(t);return e==w||"[object DOMException]"==e||"string"==typeof t.message&&"string"==typeof t.name&&!ra(t)}function Qo(t){if(!Ko(t))return!1;var e=Nr(t);return e==b||e==x||"[object AsyncFunction]"==e||"[object Proxy]"==e}function Zo(t){return"number"==typeof t&&t==da(t)}function Jo(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=c}function Ko(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function ta(t){return null!=t&&"object"==typeof t}var ea=we?$e(we):function(t){return ta(t)&&cs(t)==_};function na(t){return"number"==typeof t||ta(t)&&Nr(t)==N}function ra(t){if(!ta(t)||Nr(t)!=k)return!1;var e=Vt(t);if(null===e)return!0;var n=jt.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&Lt.call(n)==Bt}var ia=be?$e(be):function(t){return ta(t)&&Nr(t)==M},sa=xe?$e(xe):function(t){return ta(t)&&cs(t)==C};function oa(t){return"string"==typeof t||!Uo(t)&&ta(t)&&Nr(t)==A}function aa(t){return"symbol"==typeof t||ta(t)&&Nr(t)==E}var ua=_e?$e(_e):function(t){return ta(t)&&Jo(t.length)&&!!ie[Nr(t)]},ha=Ui(Pr),la=Ui(function(t,e){return t<=e});function ca(t){if(!t)return[];if(Go(t))return oa(t)?cn(t):Mi(t);if($t&&t[$t])return function(t){for(var e,n=[];!(e=t.next()).done;)n.push(e.value);return n}(t[$t]());var e=cs(t);return(e==_?sn:e==C?un: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)?ue(t.slice(2),n?2:8):dt.test(t)?f:+t}function ga(t){return Ci(t,Oa(t))}function ya(t){return null==t?"":oi(t)}var va=Ei(function(t,e){if(bs(e)||Go(e))Ci(e,Ta(e),t);else for(var n in e)jt.call(e,n)&&Kn(t,n,e[n])}),wa=Ei(function(t,e){Ci(e,Oa(e),t)}),ba=Ei(function(t,e,n,r){Ci(e,Oa(e),t,r)}),xa=Ei(function(t,e,n,r){Ci(e,Ta(e),t,r)}),_a=Ki(ir),Na=Xr(function(t,e){t=kt(t);var n=-1,r=e.length,s=r>2?e[2]:i;for(s&&gs(e[0],e[1],s)&&(r=1);++n<r;)for(var o=e[n],a=Oa(o),u=-1,h=a.length;++u<h;){var l=a[u],c=t[l];(c===i||Ro(c,Tt[l])&&!jt.call(t,l))&&(t[l]=o[l])}return t}),ka=Xr(function(t){return t.push(i,Qi),Ne(ja,i,t)});function Sa(t,e,n){var r=null==t?i:xr(t,e);return r===i?n:r}function Ma(t,e){return null!=t&&fs(t,e,Mr)}var Ca=Ii(function(t,e,n){null!=e&&"function"!=typeof e.toString&&(e=Dt.call(e)),t[e]=n},Ka(nu)),Aa=Ii(function(t,e,n){null!=e&&"function"!=typeof e.toString&&(e=Dt.call(e)),jt.call(t,e)?t[e].push(n):t[e]=[n]},ss),Ea=Xr(Ar);function Ta(t){return Go(t)?Yn(t):Wr(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&&jt.call(t,r))&&n.push(r);return n}(t)}var La=Ei(function(t,e,n){Rr(t,e,n)}),ja=Ei(function(t,e,n,r){Rr(t,e,n,r)}),Wa=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}),Ci(t,es(t),n),r&&(n=or(n,7,Zi));for(var i=e.length;i--;)ui(n,e[i]);return n}),Pa=Ki(function(t,e){return null==t?{}:function(t,e){return qr(t,e,function(e,n){return Ma(t,n)})}(t,e)});function Da(t,e){if(null==t)return{};var n=Oe(es(t),function(t){return[t]});return e=ss(e),qr(t,n,function(t,n){return e(t,n[0])})}var Ba=Xi(Ta),Ia=Xi(Oa);function Ra(t){return null==t?[]:Qe(t,Ta(t))}var za=ji(function(t,e,n){return e=e.toLowerCase(),t+(n?Fa(e):e)});function Fa(t){return $a(ya(t).toLowerCase())}function qa(t){return(t=ya(t))&&t.replace(vt,tn).replace(Zt,"")}var Ua=ji(function(t,e,n){return t+(n?"-":"")+e.toLowerCase()}),Va=ji(function(t,e,n){return t+(n?" ":"")+e.toLowerCase()}),Ga=Li("toLowerCase"),Ha=ji(function(t,e,n){return t+(n?"_":"")+e.toLowerCase()}),Xa=ji(function(t,e,n){return t+(n?" ":"")+$a(e)}),Ya=ji(function(t,e,n){return t+(n?" ":"")+e.toUpperCase()}),$a=Li("toUpperCase");function Qa(t,e,n){return t=ya(t),(e=n?i:e)===i?function(t){return ee.test(t)}(t)?function(t){return t.match(Kt)||[]}(t):function(t){return t.match(ut)||[]}(t):t.match(e)||[]}var Za=Xr(function(t,e){try{return Ne(t,i,e)}catch(t){return $o(t)?t:new xt(t)}}),Ja=Ki(function(t,e){return Se(e,function(e){e=Ps(e),rr(t,e,Ao(t[e],t))}),t});function Ka(t){return function(){return t}}var tu=Di(),eu=Di(!0);function nu(t){return t}function ru(t){return jr("function"==typeof t?t:or(t,1))}var iu=Xr(function(t,e){return function(n){return Ar(n,t,e)}}),su=Xr(function(t,e){return function(n){return Ar(t,n,e)}});function ou(t,e,n){var r=Ta(e),i=br(e,r);null!=n||Ko(e)&&(i.length||!r.length)||(n=e,e=t,t=this,i=br(e,Ta(e)));var s=!(Ko(n)&&"chain"in n&&!n.chain),o=Qo(t);return Se(i,function(n){var r=e[n];t[n]=r,o&&(t.prototype[n]=function(){var e=this.__chain__;if(s||e){var n=t(this.__wrapped__);return(n.__actions__=Mi(this.__actions__)).push({func:r,args:arguments,thisArg:t}),n.__chain__=e,n}return r.apply(t,Le([this.value()],arguments))})}),t}function au(){}var uu=zi(Oe),hu=zi(Ce),lu=zi(Pe);function cu(t){return ys(t)?Ue(Ps(t)):function(t){return function(e){return xr(e,t)}}(t)}var fu=qi(),du=qi(!0);function pu(){return[]}function mu(){return!1}var gu,yu=Ri(function(t,e){return t+e},0),vu=Gi("ceil"),wu=Ri(function(t,e){return t/e},1),bu=Gi("floor"),xu=Ri(function(t,e){return t*e},1),_u=Gi("round"),Nu=Ri(function(t,e){return t-e},0);return In.after=function(t,e){if("function"!=typeof e)throw new Ct(s);return t=da(t),function(){if(--t<1)return e.apply(this,arguments)}},In.ary=Mo,In.assign=va,In.assignIn=wa,In.assignInWith=ba,In.assignWith=xa,In.at=_a,In.before=Co,In.bind=Ao,In.bindAll=Ja,In.bindKey=Eo,In.castArray=function(){if(!arguments.length)return[];var t=arguments[0];return Uo(t)?t:[t]},In.chain=lo,In.chunk=function(t,e,n){e=(n?gs(t,e,n):e===i)?1:gn(da(e),0);var s=null==t?0:t.length;if(!s||e<1)return[];for(var o=0,a=0,u=r(fe(s/e));o<s;)u[a++]=ti(t,o,o+=e);return u},In.compact=function(t){for(var e=-1,n=null==t?0:t.length,r=0,i=[];++e<n;){var s=t[e];s&&(i[r++]=s)}return i},In.concat=function(){var t=arguments.length;if(!t)return[];for(var e=r(t-1),n=arguments[0],i=t;i--;)e[i-1]=arguments[i];return Le(Uo(n)?Mi(n):[n],mr(e,1))},In.cond=function(t){var e=null==t?0:t.length,n=ss();return t=e?Oe(t,function(t){if("function"!=typeof t[1])throw new Ct(s);return[n(t[0]),t[1]]}):[],Xr(function(n){for(var r=-1;++r<e;){var i=t[r];if(Ne(i[0],this,n))return Ne(i[1],this,n)}})},In.conforms=function(t){return function(t){var e=Ta(t);return function(n){return ar(n,t,e)}}(or(t,1))},In.constant=Ka,In.countBy=po,In.create=function(t,e){var n=Rn(t);return null==e?n:nr(n,e)},In.curry=function t(e,n,r){var s=Yi(e,8,i,i,i,i,i,n=r?i:n);return s.placeholder=t.placeholder,s},In.curryRight=function t(e,n,r){var s=Yi(e,16,i,i,i,i,i,n=r?i:n);return s.placeholder=t.placeholder,s},In.debounce=To,In.defaults=Na,In.defaultsDeep=ka,In.defer=Oo,In.delay=Lo,In.difference=Is,In.differenceBy=Rs,In.differenceWith=zs,In.drop=function(t,e,n){var r=null==t?0:t.length;return r?ti(t,(e=n||e===i?1:da(e))<0?0:e,r):[]},In.dropRight=function(t,e,n){var r=null==t?0:t.length;return r?ti(t,0,(e=r-(e=n||e===i?1:da(e)))<0?0:e):[]},In.dropRightWhile=function(t,e){return t&&t.length?li(t,ss(e,3),!0,!0):[]},In.dropWhile=function(t,e){return t&&t.length?li(t,ss(e,3),!0):[]},In.fill=function(t,e,n,r){var s=null==t?0:t.length;return s?(n&&"number"!=typeof n&&gs(t,e,n)&&(n=0,r=s),function(t,e,n,r){var s=t.length;for((n=da(n))<0&&(n=-n>s?0:s+n),(r=r===i||r>s?s:da(r))<0&&(r+=s),r=n>r?0:pa(r);n<r;)t[n++]=e;return t}(t,e,n,r)):[]},In.filter=function(t,e){return(Uo(t)?Ae:pr)(t,ss(e,3))},In.flatMap=function(t,e){return mr(_o(t,e),1)},In.flatMapDeep=function(t,e){return mr(_o(t,e),l)},In.flatMapDepth=function(t,e,n){return n=n===i?1:da(n),mr(_o(t,e),n)},In.flatten=Us,In.flattenDeep=function(t){return null!=t&&t.length?mr(t,l):[]},In.flattenDepth=function(t,e){return null!=t&&t.length?mr(t,e=e===i?1:da(e)):[]},In.flip=function(t){return Yi(t,512)},In.flow=tu,In.flowRight=eu,In.fromPairs=function(t){for(var e=-1,n=null==t?0:t.length,r={};++e<n;){var i=t[e];r[i[0]]=i[1]}return r},In.functions=function(t){return null==t?[]:br(t,Ta(t))},In.functionsIn=function(t){return null==t?[]:br(t,Oa(t))},In.groupBy=wo,In.initial=function(t){return null!=t&&t.length?ti(t,0,-1):[]},In.intersection=Gs,In.intersectionBy=Hs,In.intersectionWith=Xs,In.invert=Ca,In.invertBy=Aa,In.invokeMap=bo,In.iteratee=ru,In.keyBy=xo,In.keys=Ta,In.keysIn=Oa,In.map=_o,In.mapKeys=function(t,e){var n={};return e=ss(e,3),vr(t,function(t,r,i){rr(n,e(t,r,i),t)}),n},In.mapValues=function(t,e){var n={};return e=ss(e,3),vr(t,function(t,r,i){rr(n,r,e(t,r,i))}),n},In.matches=function(t){return Br(or(t,1))},In.matchesProperty=function(t,e){return Ir(t,or(e,1))},In.memoize=jo,In.merge=La,In.mergeWith=ja,In.method=iu,In.methodOf=su,In.mixin=ou,In.negate=Wo,In.nthArg=function(t){return t=da(t),Xr(function(e){return zr(e,t)})},In.omit=Wa,In.omitBy=function(t,e){return Da(t,Wo(ss(e)))},In.once=function(t){return Co(2,t)},In.orderBy=function(t,e,n,r){return null==t?[]:(Uo(e)||(e=null==e?[]:[e]),Uo(n=r?i:n)||(n=null==n?[]:[n]),Fr(t,e,n))},In.over=uu,In.overArgs=Po,In.overEvery=hu,In.overSome=lu,In.partial=Do,In.partialRight=Bo,In.partition=No,In.pick=Pa,In.pickBy=Da,In.property=cu,In.propertyOf=function(t){return function(e){return null==t?i:xr(t,e)}},In.pull=$s,In.pullAll=Qs,In.pullAllBy=function(t,e,n){return t&&t.length&&e&&e.length?Ur(t,e,ss(n,2)):t},In.pullAllWith=function(t,e,n){return t&&t.length&&e&&e.length?Ur(t,e,i,n):t},In.pullAt=Zs,In.range=fu,In.rangeRight=du,In.rearg=Io,In.reject=function(t,e){return(Uo(t)?Ae:pr)(t,Wo(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 Ct(s);return Xr(t,e=e===i?e:da(e))},In.reverse=Js,In.sampleSize=function(t,e,n){return e=(n?gs(t,e,n):e===i)?1:da(e),(Uo(t)?Qn:$r)(t,e)},In.set=function(t,e,n){return null==t?t:Qr(t,e,n)},In.setWith=function(t,e,n,r){return r="function"==typeof r?r:i,null==t?t:Qr(t,e,n,r)},In.shuffle=function(t){return(Uo(t)?Zn:Kr)(t)},In.slice=function(t,e,n){var r=null==t?0:t.length;return r?(n&&"number"!=typeof n&&gs(t,e,n)?(e=0,n=r):(e=null==e?0:da(e),n=n===i?r:da(n)),ti(t,e,n)):[]},In.sortBy=ko,In.sortedUniq=function(t){return t&&t.length?ii(t):[]},In.sortedUniqBy=function(t,e){return t&&t.length?ii(t,ss(e,2)):[]},In.split=function(t,e,n){return n&&"number"!=typeof n&&gs(t,e,n)&&(e=n=i),(n=n===i?d:n>>>0)?(t=ya(t))&&("string"==typeof e||null!=e&&!ia(e))&&!(e=oi(e))&&rn(t)?vi(cn(t),0,n):t.split(e,n):[]},In.spread=function(t,e){if("function"!=typeof t)throw new Ct(s);return e=null==e?0:gn(da(e),0),Xr(function(n){var r=n[e],i=vi(n,0,e);return r&&Le(i,r),Ne(t,this,i)})},In.tail=function(t){var e=null==t?0:t.length;return e?ti(t,1,e):[]},In.take=function(t,e,n){return t&&t.length?ti(t,0,(e=n||e===i?1: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 Ct(s);return Ko(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),To(t,e,{leading:r,maxWait:e,trailing:i})},In.thru=co,In.toArray=ca,In.toPairs=Ba,In.toPairsIn=Ia,In.toPath=function(t){return Uo(t)?Oe(t,Ps):aa(t)?[t]:Mi(Ws(ya(t)))},In.toPlainObject=ga,In.transform=function(t,e,n){var r=Uo(t),i=r||Xo(t)||ua(t);if(e=ss(e,4),null==n){var s=t&&t.constructor;n=i?r?new s:[]:Ko(t)&&Qo(s)?Rn(Vt(t)):{}}return(i?Se:vr)(t,function(t,r,i){return e(n,t,r,i)}),n},In.unary=function(t){return Mo(t,1)},In.union=Ks,In.unionBy=to,In.unionWith=eo,In.uniq=function(t){return t&&t.length?ai(t):[]},In.uniqBy=function(t,e){return t&&t.length?ai(t,ss(e,2)):[]},In.uniqWith=function(t,e){return e="function"==typeof e?e:i,t&&t.length?ai(t,i,e):[]},In.unset=function(t,e){return null==t||ui(t,e)},In.unzip=no,In.unzipWith=ro,In.update=function(t,e,n){return null==t?t:hi(t,e,mi(n))},In.updateWith=function(t,e,n,r){return r="function"==typeof r?r:i,null==t?t:hi(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=uo,In.zipObject=function(t,e){return di(t||[],e||[],Kn)},In.zipObjectDeep=function(t,e){return di(t||[],e||[],Qr)},In.zipWith=ho,In.entries=Ba,In.entriesIn=Ia,In.extend=wa,In.extendWith=ba,ou(In,In),In.add=yu,In.attempt=Za,In.camelCase=za,In.capitalize=Fa,In.ceil=vu,In.clamp=function(t,e,n){return n===i&&(n=e,e=i),n!==i&&(n=(n=ma(n))==n?n:0),e!==i&&(e=(e=ma(e))==e?e:0),sr(ma(t),e,n)},In.clone=function(t){return or(t,4)},In.cloneDeep=function(t){return or(t,5)},In.cloneDeepWith=function(t,e){return or(t,5,e="function"==typeof e?e:i)},In.cloneWith=function(t,e){return or(t,4,e="function"==typeof e?e:i)},In.conformsTo=function(t,e){return null==e||ar(t,e,Ta(e))},In.deburr=qa,In.defaultTo=function(t,e){return null==t||t!=t?e:t},In.divide=wu,In.endsWith=function(t,e,n){t=ya(t),e=oi(e);var r=t.length,s=n=n===i?r:sr(da(n),0,r);return(n-=e.length)>=0&&t.slice(n,s)==e},In.eq=Ro,In.escape=function(t){return(t=ya(t))&&Y.test(t)?t.replace(H,en):t},In.escapeRegExp=function(t){return(t=ya(t))&&nt.test(t)?t.replace(et,"\\$&"):t},In.every=function(t,e,n){var r=Uo(t)?Ce:fr;return n&&gs(t,e,n)&&(e=i),r(t,ss(e,3))},In.find=mo,In.findIndex=Fs,In.findKey=function(t,e){return Be(t,ss(e,3),vr)},In.findLast=go,In.findLastIndex=qs,In.findLastKey=function(t,e){return Be(t,ss(e,3),wr)},In.floor=bu,In.forEach=yo,In.forEachRight=vo,In.forIn=function(t,e){return null==t?t:gr(t,ss(e,3),Oa)},In.forInRight=function(t,e){return null==t?t:yr(t,ss(e,3),Oa)},In.forOwn=function(t,e){return t&&vr(t,ss(e,3))},In.forOwnRight=function(t,e){return t&&wr(t,ss(e,3))},In.get=Sa,In.gt=zo,In.gte=Fo,In.has=function(t,e){return null!=t&&fs(t,e,Sr)},In.hasIn=Ma,In.head=Vs,In.identity=nu,In.includes=function(t,e,n,r){t=Go(t)?t:Ra(t),n=n&&!r?da(n):0;var i=t.length;return n<0&&(n=gn(i+n,0)),oa(t)?n<=i&&t.indexOf(e,n)>-1:!!i&&Re(t,e,n)>-1},In.indexOf=function(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var i=null==n?0:da(n);return i<0&&(i=gn(r+i,0)),Re(t,e,i)},In.inRange=function(t,e,n){return e=fa(e),n===i?(n=e,e=0):n=fa(n),function(t,e,n){return t>=yn(e,n)&&t<gn(e,n)}(t=ma(t),e,n)},In.invoke=Ea,In.isArguments=qo,In.isArray=Uo,In.isArrayBuffer=Vo,In.isArrayLike=Go,In.isArrayLikeObject=Ho,In.isBoolean=function(t){return!0===t||!1===t||ta(t)&&Nr(t)==y},In.isBuffer=Xo,In.isDate=Yo,In.isElement=function(t){return ta(t)&&1===t.nodeType&&!ra(t)},In.isEmpty=function(t){if(null==t)return!0;if(Go(t)&&(Uo(t)||"string"==typeof t||"function"==typeof t.splice||Xo(t)||ua(t)||qo(t)))return!t.length;var e=cs(t);if(e==_||e==C)return!t.size;if(bs(t))return!Wr(t).length;for(var n in t)if(jt.call(t,n))return!1;return!0},In.isEqual=function(t,e){return Tr(t,e)},In.isEqualWith=function(t,e,n){var r=(n="function"==typeof n?n:i)?n(t,e):i;return r===i?Tr(t,e,i,n):!!r},In.isError=$o,In.isFinite=function(t){return"number"==typeof t&&De(t)},In.isFunction=Qo,In.isInteger=Zo,In.isLength=Jo,In.isMap=ea,In.isMatch=function(t,e){return t===e||Or(t,e,as(e))},In.isMatchWith=function(t,e,n){return n="function"==typeof n?n:i,Or(t,e,as(e),n)},In.isNaN=function(t){return na(t)&&t!=+t},In.isNative=function(t){if(ws(t))throw new xt("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Lr(t)},In.isNil=function(t){return null==t},In.isNull=function(t){return null===t},In.isNumber=na,In.isObject=Ko,In.isObjectLike=ta,In.isPlainObject=ra,In.isRegExp=ia,In.isSafeInteger=function(t){return Zo(t)&&t>=-9007199254740991&&t<=c},In.isSet=sa,In.isString=oa,In.isSymbol=aa,In.isTypedArray=ua,In.isUndefined=function(t){return t===i},In.isWeakMap=function(t){return ta(t)&&cs(t)==T},In.isWeakSet=function(t){return ta(t)&&"[object WeakSet]"==Nr(t)},In.join=function(t,e){return null==t?"":Ve.call(t,e)},In.kebabCase=Ua,In.last=Ys,In.lastIndexOf=function(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var s=r;return n!==i&&(s=(s=da(n))<0?gn(r+s,0):yn(s,r-1)),e==e?function(t,e,n){for(var r=n+1;r--;)if(t[r]===e)return r;return r}(t,e,s):Ie(t,Fe,s,!0)},In.lowerCase=Va,In.lowerFirst=Ga,In.lt=ha,In.lte=la,In.max=function(t){return t&&t.length?dr(t,nu,kr):i},In.maxBy=function(t,e){return t&&t.length?dr(t,ss(e,2),kr):i},In.mean=function(t){return qe(t,nu)},In.meanBy=function(t,e){return qe(t,ss(e,2))},In.min=function(t){return t&&t.length?dr(t,nu,Pr):i},In.minBy=function(t,e){return t&&t.length?dr(t,ss(e,2),Pr):i},In.stubArray=pu,In.stubFalse=mu,In.stubObject=function(){return{}},In.stubString=function(){return""},In.stubTrue=function(){return!0},In.multiply=xu,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=au,In.now=So,In.pad=function(t,e,n){t=ya(t);var r=(e=da(e))?ln(t):0;if(!e||r>=e)return t;var i=(e-r)/2;return Fi(de(i),n)+t+Fi(fe(i),n)},In.padEnd=function(t,e,n){t=ya(t);var r=(e=da(e))?ln(t):0;return e&&r<e?t+Fi(e-r,n):t},In.padStart=function(t,e,n){t=ya(t);var r=(e=da(e))?ln(t):0;return e&&r<e?Fi(e-r,n)+t:t},In.parseInt=function(t,e,n){return n||null==e?e=0:e&&(e=+e),wn(ya(t).replace(rt,""),e||0)},In.random=function(t,e,n){if(n&&"boolean"!=typeof n&&gs(t,e,n)&&(e=n=i),n===i&&("boolean"==typeof e?(n=e,e=i):"boolean"==typeof t&&(n=t,t=i)),t===i&&e===i?(t=0,e=1):(t=fa(t),e===i?(e=t,t=0):e=fa(e)),t>e){var r=t;t=e,e=r}if(n||t%1||e%1){var s=bn();return yn(t+s*(e-t+ae("1e-"+((s+"").length-1))),e)}return Gr(t,e)},In.reduce=function(t,e,n){var r=Uo(t)?je:Ge,i=arguments.length<3;return r(t,ss(e,4),n,i,lr)},In.reduceRight=function(t,e,n){var r=Uo(t)?We:Ge,i=arguments.length<3;return r(t,ss(e,4),n,i,cr)},In.repeat=function(t,e,n){return e=(n?gs(t,e,n):e===i)?1:da(e),Hr(ya(t),e)},In.replace=function(){var t=arguments,e=ya(t[0]);return t.length<3?e:e.replace(t[1],t[2])},In.result=function(t,e,n){var r=-1,s=(e=gi(e,t)).length;for(s||(s=1,t=i);++r<s;){var o=null==t?i:t[Ps(e[r])];o===i&&(r=s,o=n),t=Qo(o)?o.call(t):o}return t},In.round=_u,In.runInContext=t,In.sample=function(t){return(Uo(t)?$n:Yr)(t)},In.size=function(t){if(null==t)return 0;if(Go(t))return oa(t)?ln(t):t.length;var e=cs(t);return e==_||e==C?t.size:Wr(t).length},In.snakeCase=Ha,In.some=function(t,e,n){var r=Uo(t)?Pe:ei;return n&&gs(t,e,n)&&(e=i),r(t,ss(e,3))},In.sortedIndex=function(t,e){return ni(t,e)},In.sortedIndexBy=function(t,e,n){return ri(t,e,ss(n,2))},In.sortedIndexOf=function(t,e){var n=null==t?0:t.length;if(n){var r=ni(t,e);if(r<n&&Ro(t[r],e))return r}return-1},In.sortedLastIndex=function(t,e){return ni(t,e,!0)},In.sortedLastIndexBy=function(t,e,n){return ri(t,e,ss(n,2),!0)},In.sortedLastIndexOf=function(t,e){if(null!=t&&t.length){var n=ni(t,e,!0)-1;if(Ro(t[n],e))return n}return-1},In.startCase=Xa,In.startsWith=function(t,e,n){return t=ya(t),n=null==n?0:sr(da(n),0,t.length),e=oi(e),t.slice(n,n+e.length)==e},In.subtract=Nu,In.sum=function(t){return t&&t.length?He(t,nu):0},In.sumBy=function(t,e){return t&&t.length?He(t,ss(e,2)):0},In.template=function(t,e,n){var r=In.templateSettings;n&&gs(t,e,n)&&(e=i),t=ya(t),e=ba({},e,r,$i);var s,o,a=ba({},e.imports,r.imports,$i),u=Ta(a),h=Qe(a,u),l=0,c=e.interpolate||wt,f="__p += '",d=St((e.escape||wt).source+"|"+c.source+"|"+(c===Z?ct:wt).source+"|"+(e.evaluate||wt).source+"|$","g"),p="//# sourceURL="+(jt.call(e,"sourceURL")?(e.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++re+"]")+"\n";t.replace(d,function(e,n,r,i,a,u){return r||(r=i),f+=t.slice(l,u).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=u+e.length,e}),f+="';\n";var m=jt.call(e,"variable")&&e.variable;if(m){if(ht.test(m))throw new xt("Invalid `variable` option passed into `_.template`")}else f="with (obj) {\n"+f+"\n}\n";f=(o?f.replace(q,""):f).replace(U,"$1").replace(V,"$1;"),f="function("+(m||"obj")+") {\n"+(m?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(s?", __e = _.escape":"")+(o?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+f+"return __p\n}";var g=Za(function(){return _t(u,p+"return "+f).apply(i,h)});if(g.source=f,$o(g))throw g;return g},In.times=function(t,e){if((t=da(t))<1||t>c)return[];var n=d,r=yn(t,d);e=ss(e),t-=d;for(var i=Xe(r,e);++n<t;)e(n);return i},In.toFinite=fa,In.toInteger=da,In.toLength=pa,In.toLower=function(t){return ya(t).toLowerCase()},In.toNumber=ma,In.toSafeInteger=function(t){return t?sr(da(t),-9007199254740991,c):0===t?t:0},In.toString=ya,In.toUpper=function(t){return ya(t).toUpperCase()},In.trim=function(t,e,n){if((t=ya(t))&&(n||e===i))return Ye(t);if(!t||!(e=oi(e)))return t;var r=cn(t),s=cn(e);return vi(r,Je(r,s),Ke(r,s)+1).join("")},In.trimEnd=function(t,e,n){if((t=ya(t))&&(n||e===i))return t.slice(0,fn(t)+1);if(!t||!(e=oi(e)))return t;var r=cn(t);return vi(r,0,Ke(r,cn(e))+1).join("")},In.trimStart=function(t,e,n){if((t=ya(t))&&(n||e===i))return t.replace(rt,"");if(!t||!(e=oi(e)))return t;var r=cn(t);return vi(r,Je(r,cn(e))).join("")},In.truncate=function(t,e){var n=30,r="...";if(Ko(e)){var s="separator"in e?e.separator:s;n="length"in e?da(e.length):n,r="omission"in e?oi(e.omission):r}var o=(t=ya(t)).length;if(rn(t)){var a=cn(t);o=a.length}if(n>=o)return t;var u=n-ln(r);if(u<1)return r;var h=a?vi(a,0,u).join(""):t.slice(0,u);if(s===i)return h+r;if(a&&(u+=h.length-u),ia(s)){if(t.slice(u).search(s)){var l,c=h;for(s.global||(s=St(s.source,ya(ft.exec(s))+"g")),s.lastIndex=0;l=s.exec(c);)var f=l.index;h=h.slice(0,f===i?u:f)}}else if(t.indexOf(oi(s),u)!=u){var d=h.lastIndexOf(s);d>-1&&(h=h.slice(0,d))}return h+r},In.unescape=function(t){return(t=ya(t))&&X.test(t)?t.replace(G,dn):t},In.uniqueId=function(t){var e=++Wt;return ya(t)+e},In.upperCase=Ya,In.upperFirst=$a,In.each=yo,In.eachRight=vo,In.first=Vs,ou(In,(gu={},vr(In,function(t,e){jt.call(In.prototype,e)||(gu[e]=t)}),gu),{chain:!1}),In.VERSION="4.17.21",Se(["bind","bindKey","curry","curryRight","partial","partialRight"],function(t){In[t].placeholder=In}),Se(["drop","take"],function(t,e){qn.prototype[t]=function(n){n=n===i?1:gn(da(n),0);var r=this.__filtered__&&!e?new qn(this):this.clone();return r.__filtered__?r.__takeCount__=yn(n,r.__takeCount__):r.__views__.push({size:yn(n,d),type:t+(r.__dir__<0?"Right":"")}),r},qn.prototype[t+"Right"]=function(e){return this.reverse()[t](e).reverse()}}),Se(["filter","map","takeWhile"],function(t,e){var n=e+1,r=1==n||3==n;qn.prototype[t]=function(t){var e=this.clone();return e.__iteratees__.push({iteratee:ss(t,3),type:n}),e.__filtered__=e.__filtered__||r,e}}),Se(["head","last"],function(t,e){var n="take"+(e?"Right":"");qn.prototype[t]=function(){return this[n](1).value()[0]}}),Se(["initial","tail"],function(t,e){var n="drop"+(e?"":"Right");qn.prototype[t]=function(){return this.__filtered__?new qn(this):this[n](1)}}),qn.prototype.compact=function(){return this.filter(nu)},qn.prototype.find=function(t){return this.filter(t).head()},qn.prototype.findLast=function(t){return this.reverse().find(t)},qn.prototype.invokeMap=Xr(function(t,e){return"function"==typeof t?new qn(this):this.map(function(n){return Ar(n,t,e)})}),qn.prototype.reject=function(t){return this.filter(Wo(ss(t)))},qn.prototype.slice=function(t,e){t=da(t);var n=this;return n.__filtered__&&(t>0||e<0)?new qn(n):(t<0?n=n.takeRight(-t):t&&(n=n.drop(t)),e!==i&&(n=(e=da(e))<0?n.dropRight(-e):n.take(e-t)),n)},qn.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},qn.prototype.toArray=function(){return this.take(d)},vr(qn.prototype,function(t,e){var n=/^(?:filter|find|map|reject)|While$/.test(e),r=/^(?:head|last)$/.test(e),s=In[r?"take"+("last"==e?"Right":""):e],o=r||/^find/.test(e);s&&(In.prototype[e]=function(){var e=this.__wrapped__,a=r?[1]:arguments,u=e instanceof qn,h=a[0],l=u||Uo(e),c=function(t){var e=s.apply(In,Le([t],a));return r&&f?e[0]:e};l&&n&&"function"==typeof h&&1!=h.length&&(u=l=!1);var f=this.__chain__,d=!!this.__actions__.length,p=o&&!f,m=u&&!d;if(!o&&l){e=m?e:new qn(this);var g=t.apply(e,a);return g.__actions__.push({func:co,args:[c],thisArg:i}),new Fn(g,f)}return p&&m?t.apply(this,a):(g=this.thru(c),p?r?g.value()[0]:g.value():g)})}),Se(["pop","push","shift","sort","splice","unshift"],function(t){var e=At[t],n=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",r=/^(?:pop|shift)$/.test(t);In.prototype[t]=function(){var t=arguments;if(r&&!this.__chain__){var i=this.value();return e.apply(Uo(i)?i:[],t)}return this[n](function(n){return e.apply(Uo(n)?n:[],t)})}}),vr(qn.prototype,function(t,e){var n=In[e];if(n){var r=n.name+"";jt.call(En,r)||(En[r]=[]),En[r].push({name:e,func:n})}}),En[Bi(i,2).name]=[{name:"wrapper",func:i}],qn.prototype.clone=function(){var t=new qn(this.__wrapped__);return t.__actions__=Mi(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=Mi(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=Mi(this.__views__),t},qn.prototype.reverse=function(){if(this.__filtered__){var t=new qn(this);t.__dir__=-1,t.__filtered__=!0}else(t=this.clone()).__dir__*=-1;return t},qn.prototype.value=function(){var t=this.__wrapped__.value(),e=this.__dir__,n=Uo(t),r=e<0,i=n?t.length:0,s=function(t,e,n){for(var r=-1,i=n.length;++r<i;){var s=n[r],o=s.size;switch(s.type){case"drop":t+=o;break;case"dropRight":e-=o;break;case"take":e=yn(e,t+o);break;case"takeRight":t=gn(t,e-o)}}return{start:t,end:e}}(0,i,this.__views__),o=s.start,a=s.end,u=a-o,h=r?a:o-1,l=this.__iteratees__,c=l.length,f=0,d=yn(u,this.__takeCount__);if(!n||!r&&i==u&&d==u)return ci(t,this.__actions__);var p=[];t:for(;u--&&f<d;){for(var m=-1,g=t[h+=e];++m<c;){var y=l[m],v=y.iteratee,w=y.type,b=v(g);if(2==w)g=b;else if(!b){if(1==w)continue t;break t}}p[f++]=g}return p},In.prototype.at=fo,In.prototype.chain=function(){return lo(this)},In.prototype.commit=function(){return new Fn(this.value(),this.__chain__)},In.prototype.next=function(){this.__values__===i&&(this.__values__=ca(this.value()));var t=this.__index__>=this.__values__.length;return{done:t,value:t?i:this.__values__[this.__index__++]}},In.prototype.plant=function(t){for(var e,n=this;n instanceof zn;){var r=Bs(n);r.__index__=0,r.__values__=i,e?s.__wrapped__=r:e=r;var s=r;n=n.__wrapped__}return s.__wrapped__=t,e},In.prototype.reverse=function(){var t=this.__wrapped__;if(t instanceof qn){var e=t;return this.__actions__.length&&(e=new qn(this)),(e=e.reverse()).__actions__.push({func:co,args:[Js],thisArg:i}),new Fn(e,this.__chain__)}return this.thru(Js)},In.prototype.toJSON=In.prototype.valueOf=In.prototype.value=function(){return ci(this.__wrapped__,this.__actions__)},In.prototype.first=In.prototype.head,$t&&(In.prototype[$t]=function(){return this}),In}();ce._=pn,(r=function(){return pn}.call(e,n,e,t))===i||(t.exports=r)}.call(this)},584:(t,e,n)=>{"use strict";n.d(e,{Ay:()=>c,OW:()=>h,Qq:()=>u,Z7:()=>l,kY:()=>a});var r=n(601),i=n.n(r),s=n(314),o=n.n(s)()(i());o.push([t.id,'.PxTHOvfPECESZe6OxVvg {\n display: flex;\n flex-direction: row;\n align-items: center;\n\n align-self: start;\n\n pointer-events: auto;\n\n cursor: pointer;\n}\n\n.hcTi6yK4eMJ8Mc61rqGY {\n margin: 0px;\n padding: 0px;\n\n font-family: "Open Sans", sans-serif;\n font-size: 12px;\n font-weight: 700;\n font-style: normal;\n color: 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",u="hcTi6yK4eMJ8Mc61rqGY",h="lVFnQ83G0WswDpb_v1xo",l="MwdzfSTS8dcFWG_qqlI9";const c=o},601:t=>{"use strict";t.exports=function(t){return t[1]}},633:(t,e,n)=>{"use strict";n.d(e,{Ay:()=>v,IU:()=>d,QB:()=>y,Qs:()=>f,Te:()=>g,aW:()=>c,eB:()=>m,ho:()=>l,lf:()=>a,m9:()=>h,vw:()=>p,wx:()=>u});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",u="sE2YASqaiPZdV9dz58A7",h="BYZcOJiOX5zLxIrbc3gR",l="mOH6VML7hViujtEoNaOA",c="u5w42CVwU4PQ7GiSuy4G",f="TCp4dzyF9qmbX3ejDOkL",d="WOjw8GKoS54KQAOlumMa",p="CEKK9ESfVFUX5lmGT49Q",m="REx8U43f426EyuXTroHH",g="vXdbsaENeFcx9uTlNetr",y="a5Wi7rcTlB2tWpGwD8zf";const v=o},659:t=>{"use strict";var e={};t.exports=function(t,n){var r=function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(t){n=null}e[t]=n}return e[t]}(t);if(!r)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");r.appendChild(n)}},678:(t,e,n)=>{"use strict";n.d(e,{Ay:()=>h,ZZ:()=>a,o3:()=>u});var r=n(601),i=n.n(r),s=n(314),o=n.n(s)()(i());o.push([t.id,'.rIHrsark1WbeRGC9M1ZY {\n display: flex;\n flex-direction: row;\n align-items: center;\n\n font-family: "Open Sans", sans-serif;\n font-size: 12px;\n font-weight: 700;\n font-style: normal;\n color: 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",u="P5PJGaHxnhsEaezm8Nhg";const h=o},692:function(t,e){var n;!function(e,n){"use strict";"object"==typeof t.exports?t.exports=e.document?n(e,!0):function(t){if(!t.document)throw new Error("jQuery requires a window with a document");return n(t)}:n(e)}("undefined"!=typeof window?window:this,function(r,i){"use strict";var s=[],o=Object.getPrototypeOf,a=s.slice,u=s.flat?function(t){return s.flat.call(t)}:function(t){return s.concat.apply([],t)},h=s.push,l=s.indexOf,c={},f=c.toString,d=c.hasOwnProperty,p=d.toString,m=p.call(Object),g={},y=function(t){return"function"==typeof t&&"number"!=typeof t.nodeType&&"function"!=typeof t.item},v=function(t){return null!=t&&t===t.window},w=r.document,b={type:!0,src:!0,nonce:!0,noModule:!0};function x(t,e,n){var r,i,s=(n=n||w).createElement("script");if(s.text=t,e)for(r in b)(i=e[r]||e.getAttribute&&e.getAttribute(r))&&s.setAttribute(r,i);n.head.appendChild(s).parentNode.removeChild(s)}function _(t){return null==t?t+"":"object"==typeof t||"function"==typeof t?c[f.call(t)]||"object":typeof t}var N="3.7.1",k=/HTML$/i,S=function(t,e){return new S.fn.init(t,e)};function M(t){var e=!!t&&"length"in t&&t.length,n=_(t);return!y(t)&&!v(t)&&("array"===n||0===e||"number"==typeof e&&e>0&&e-1 in t)}function C(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()}S.fn=S.prototype={jquery:N,constructor:S,length:0,toArray:function(){return a.call(this)},get:function(t){return null==t?a.call(this):t<0?this[t+this.length]:this[t]},pushStack:function(t){var e=S.merge(this.constructor(),t);return e.prevObject=this,e},each:function(t){return S.each(this,t)},map:function(t){return this.pushStack(S.map(this,function(e,n){return t.call(e,n,e)}))},slice:function(){return this.pushStack(a.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(S.grep(this,function(t,e){return(e+1)%2}))},odd:function(){return this.pushStack(S.grep(this,function(t,e){return e%2}))},eq:function(t){var e=this.length,n=+t+(t<0?e:0);return this.pushStack(n>=0&&n<e?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:h,sort:s.sort,splice:s.splice},S.extend=S.fn.extend=function(){var t,e,n,r,i,s,o=arguments[0]||{},a=1,u=arguments.length,h=!1;for("boolean"==typeof o&&(h=o,o=arguments[a]||{},a++),"object"==typeof o||y(o)||(o={}),a===u&&(o=this,a--);a<u;a++)if(null!=(t=arguments[a]))for(e in t)r=t[e],"__proto__"!==e&&o!==r&&(h&&r&&(S.isPlainObject(r)||(i=Array.isArray(r)))?(n=o[e],s=i&&!Array.isArray(n)?[]:i||S.isPlainObject(n)?n:{},i=!1,o[e]=S.extend(h,s,r)):void 0!==r&&(o[e]=r));return o},S.extend({expando:"jQuery"+(N+Math.random()).replace(/\D/g,""),isReady:!0,error:function(t){throw new Error(t)},noop:function(){},isPlainObject:function(t){var e,n;return!(!t||"[object Object]"!==f.call(t)||(e=o(t))&&("function"!=typeof(n=d.call(e,"constructor")&&e.constructor)||p.call(n)!==m))},isEmptyObject:function(t){var e;for(e in t)return!1;return!0},globalEval:function(t,e,n){x(t,{nonce:e&&e.nonce},n)},each:function(t,e){var n,r=0;if(M(t))for(n=t.length;r<n&&!1!==e.call(t[r],r,t[r]);r++);else for(r in t)if(!1===e.call(t[r],r,t[r]))break;return t},text:function(t){var e,n="",r=0,i=t.nodeType;if(!i)for(;e=t[r++];)n+=S.text(e);return 1===i||11===i?t.textContent:9===i?t.documentElement.textContent:3===i||4===i?t.nodeValue:n},makeArray:function(t,e){var n=e||[];return null!=t&&(M(Object(t))?S.merge(n,"string"==typeof t?[t]:t):h.call(n,t)),n},inArray:function(t,e,n){return null==e?-1:l.call(e,t,n)},isXMLDoc:function(t){var e=t&&t.namespaceURI,n=t&&(t.ownerDocument||t).documentElement;return!k.test(e||n&&n.nodeName||"HTML")},merge:function(t,e){for(var n=+e.length,r=0,i=t.length;r<n;r++)t[i++]=e[r];return t.length=i,t},grep:function(t,e,n){for(var r=[],i=0,s=t.length,o=!n;i<s;i++)!e(t[i],i)!==o&&r.push(t[i]);return r},map:function(t,e,n){var r,i,s=0,o=[];if(M(t))for(r=t.length;s<r;s++)null!=(i=e(t[s],s,n))&&o.push(i);else for(s in t)null!=(i=e(t[s],s,n))&&o.push(i);return u(o)},guid:1,support:g}),"function"==typeof Symbol&&(S.fn[Symbol.iterator]=s[Symbol.iterator]),S.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(t,e){c["[object "+e+"]"]=e.toLowerCase()});var A=s.pop,E=s.sort,T=s.splice,O="[\\x20\\t\\r\\n\\f]",L=new RegExp("^"+O+"+|((?:^|[^\\\\])(?:\\\\.)*)"+O+"+$","g");S.contains=function(t,e){var n=e&&e.parentNode;return t===n||!(!n||1!==n.nodeType||!(t.contains?t.contains(n):t.compareDocumentPosition&&16&t.compareDocumentPosition(n)))};var j=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g;function W(t,e){return e?"\0"===t?"�":t.slice(0,-1)+"\\"+t.charCodeAt(t.length-1).toString(16)+" ":"\\"+t}S.escapeSelector=function(t){return(t+"").replace(j,W)};var P=w,D=h;!function(){var t,e,n,i,o,u,h,c,f,p,m=D,y=S.expando,v=0,w=0,b=tt(),x=tt(),_=tt(),N=tt(),k=function(t,e){return t===e&&(o=!0),0},M="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",j="(?:\\\\[\\da-fA-F]{1,6}"+O+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",W="\\["+O+"*("+j+")(?:"+O+"*([*^$|!~]?=)"+O+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+j+"))|)"+O+"*\\]",B=":("+j+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+W+")*)|.*)\\)|)",I=new RegExp(O+"+","g"),R=new RegExp("^"+O+"*,"+O+"*"),z=new RegExp("^"+O+"*([>+~]|"+O+")"+O+"*"),F=new RegExp(O+"|>"),q=new RegExp(B),U=new RegExp("^"+j+"$"),V={ID:new RegExp("^#("+j+")"),CLASS:new RegExp("^\\.("+j+")"),TAG:new RegExp("^("+j+"|[*])"),ATTR:new RegExp("^"+W),PSEUDO:new RegExp("^"+B),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+O+"*(even|odd|(([+-]|)(\\d*)n|)"+O+"*(?:([+-]|)"+O+"*(\\d+)|))"+O+"*\\)|)","i"),bool:new RegExp("^(?:"+M+")$","i"),needsContext:new RegExp("^"+O+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+O+"*((?:-\\d)?\\d*)"+O+"*\\)|)(?=[^-]|$)","i")},G=/^(?:input|select|textarea|button)$/i,H=/^h\d$/i,X=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,Y=/[+~]/,$=new RegExp("\\\\[\\da-fA-F]{1,6}"+O+"?|\\\\([^\\r\\n\\f])","g"),Q=function(t,e){var n="0x"+t.slice(1)-65536;return e||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320))},Z=function(){ut()},J=ft(function(t){return!0===t.disabled&&C(t,"fieldset")},{dir:"parentNode",next:"legend"});try{m.apply(s=a.call(P.childNodes),P.childNodes),s[P.childNodes.length].nodeType}catch(t){m={apply:function(t,e){D.apply(t,a.call(e))},call:function(t){D.apply(t,a.call(arguments,1))}}}function K(t,e,n,r){var i,s,o,a,h,l,d,p=e&&e.ownerDocument,v=e?e.nodeType:9;if(n=n||[],"string"!=typeof t||!t||1!==v&&9!==v&&11!==v)return n;if(!r&&(ut(e),e=e||u,c)){if(11!==v&&(h=X.exec(t)))if(i=h[1]){if(9===v){if(!(o=e.getElementById(i)))return n;if(o.id===i)return m.call(n,o),n}else if(p&&(o=p.getElementById(i))&&K.contains(e,o)&&o.id===i)return m.call(n,o),n}else{if(h[2])return m.apply(n,e.getElementsByTagName(t)),n;if((i=h[3])&&e.getElementsByClassName)return m.apply(n,e.getElementsByClassName(i)),n}if(!(N[t+" "]||f&&f.test(t))){if(d=t,p=e,1===v&&(F.test(t)||z.test(t))){for((p=Y.test(t)&&at(e.parentNode)||e)==e&&g.scope||((a=e.getAttribute("id"))?a=S.escapeSelector(a):e.setAttribute("id",a=y)),s=(l=lt(t)).length;s--;)l[s]=(a?"#"+a:":scope")+" "+ct(l[s]);d=l.join(",")}try{return m.apply(n,p.querySelectorAll(d)),n}catch(e){N(t,!0)}finally{a===y&&e.removeAttribute("id")}}}return vt(t.replace(L,"$1"),e,n,r)}function tt(){var t=[];return function n(r,i){return t.push(r+" ")>e.cacheLength&&delete n[t.shift()],n[r+" "]=i}}function et(t){return t[y]=!0,t}function nt(t){var e=u.createElement("fieldset");try{return!!t(e)}catch(t){return!1}finally{e.parentNode&&e.parentNode.removeChild(e),e=null}}function rt(t){return function(e){return C(e,"input")&&e.type===t}}function it(t){return function(e){return(C(e,"input")||C(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 ut(t){var n,r=t?t.ownerDocument||t:P;return r!=u&&9===r.nodeType&&r.documentElement?(h=(u=r).documentElement,c=!S.isXMLDoc(u),p=h.matches||h.webkitMatchesSelector||h.msMatchesSelector,h.msMatchesSelector&&P!=u&&(n=u.defaultView)&&n.top!==n&&n.addEventListener("unload",Z),g.getById=nt(function(t){return h.appendChild(t).id=S.expando,!u.getElementsByName||!u.getElementsByName(S.expando).length}),g.disconnectedMatch=nt(function(t){return p.call(t,"*")}),g.scope=nt(function(){return u.querySelectorAll(":scope")}),g.cssHas=nt(function(){try{return u.querySelector(":has(*,:jqfake)"),!1}catch(t){return!0}}),g.getById?(e.filter.ID=function(t){var e=t.replace($,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)},f=[],nt(function(t){var e;h.appendChild(t).innerHTML="<a id='"+y+"' href='' disabled='disabled'></a><select id='"+y+"-\r\\' disabled='disabled'><option selected=''></option></select>",t.querySelectorAll("[selected]").length||f.push("\\["+O+"*(?:value|"+M+")"),t.querySelectorAll("[id~="+y+"-]").length||f.push("~="),t.querySelectorAll("a#"+y+"+*").length||f.push(".#.+[+~]"),t.querySelectorAll(":checked").length||f.push(":checked"),(e=u.createElement("input")).setAttribute("type","hidden"),t.appendChild(e).setAttribute("name","D"),h.appendChild(t).disabled=!0,2!==t.querySelectorAll(":disabled").length&&f.push(":enabled",":disabled"),(e=u.createElement("input")).setAttribute("name",""),t.appendChild(e),t.querySelectorAll("[name='']").length||f.push("\\["+O+"*name"+O+"*="+O+"*(?:''|\"\")")}),g.cssHas||f.push(":has"),f=f.length&&new RegExp(f.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===u||t.ownerDocument==P&&K.contains(P,t)?-1:e===u||e.ownerDocument==P&&K.contains(P,e)?1:i?l.call(i,t)-l.call(i,e):0:4&n?-1:1)},u):u}for(t in K.matches=function(t,e){return K(t,null,null,e)},K.matchesSelector=function(t,e){if(ut(t),c&&!N[e+" "]&&(!f||!f.test(e)))try{var n=p.call(t,e);if(n||g.disconnectedMatch||t.document&&11!==t.document.nodeType)return n}catch(t){N(e,!0)}return K(e,u,null,[t]).length>0},K.contains=function(t,e){return(t.ownerDocument||t)!=u&&ut(t),S.contains(t,e)},K.attr=function(t,n){(t.ownerDocument||t)!=u&&ut(t);var r=e.attrHandle[n.toLowerCase()],i=r&&d.call(e.attrHandle,n.toLowerCase())?r(t,n,!c):void 0;return void 0!==i?i:t.getAttribute(n)},K.error=function(t){throw new Error("Syntax error, unrecognized expression: "+t)},S.uniqueSort=function(t){var e,n=[],r=0,s=0;if(o=!g.sortStable,i=!g.sortStable&&a.call(t,0),E.call(t,k),o){for(;e=t[s++];)e===t[s]&&(r=n.push(s));for(;r--;)T.call(t,n[r],1)}return i=null,t},S.fn.uniqueSort=function(){return this.pushStack(S.uniqueSort(a.apply(this)))},e=S.expr={cacheLength:50,createPseudo:et,match:V,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(t){return t[1]=t[1].replace($,Q),t[3]=(t[3]||t[4]||t[5]||"").replace($,Q),"~="===t[2]&&(t[3]=" "+t[3]+" "),t.slice(0,4)},CHILD:function(t){return t[1]=t[1].toLowerCase(),"nth"===t[1].slice(0,3)?(t[3]||K.error(t[0]),t[4]=+(t[4]?t[5]+(t[6]||1):2*("even"===t[3]||"odd"===t[3])),t[5]=+(t[7]+t[8]||"odd"===t[3])):t[3]&&K.error(t[0]),t},PSEUDO:function(t){var e,n=!t[6]&&t[2];return V.CHILD.test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||"":n&&q.test(n)&&(e=lt(n,!0))&&(e=n.indexOf(")",n.length-e)-n.length)&&(t[0]=t[0].slice(0,e),t[2]=n.slice(0,e)),t.slice(0,3))}},filter:{TAG:function(t){var e=t.replace($,Q).toLowerCase();return"*"===t?function(){return!0}:function(t){return C(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,u){var h,l,c,f,d,p=s!==o?"nextSibling":"previousSibling",m=e.parentNode,g=a&&e.nodeName.toLowerCase(),w=!u&&!a,b=!1;if(m){if(s){for(;p;){for(c=e;c=c[p];)if(a?C(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(b=(f=(h=(l=m[y]||(m[y]={}))[t]||[])[0]===v&&h[1])&&h[2],c=f&&m.childNodes[f];c=++f&&c&&c[p]||(b=f=0)||d.pop();)if(1===c.nodeType&&++b&&c===e){l[t]=[v,f,b];break}}else if(w&&(b=f=(h=(l=e[y]||(e[y]={}))[t]||[])[0]===v&&h[1]),!1===b)for(;(c=++f&&c&&c[p]||(b=f=0)||d.pop())&&(!(a?C(c,g):1===c.nodeType)||!++b||(w&&((l=c[y]||(c[y]={}))[t]=[v,b]),c!==e)););return(b-=i)===r||b%r===0&&b/r>=0}}},PSEUDO:function(t,n){var r,i=e.pseudos[t]||e.setFilters[t.toLowerCase()]||K.error("unsupported pseudo: "+t);return i[y]?i(n):i.length>1?(r=[t,t,"",n],e.setFilters.hasOwnProperty(t.toLowerCase())?et(function(t,e){for(var r,s=i(t,n),o=s.length;o--;)t[r=l.call(t,s[o])]=!(e[r]=s[o])}):function(t){return i(t,0,r)}):i}},pseudos:{not:et(function(t){var e=[],n=[],r=yt(t.replace(L,"$1"));return r[y]?et(function(t,e,n,i){for(var s,o=r(t,null,i,[]),a=t.length;a--;)(s=o[a])&&(t[a]=!(e[a]=s))}):function(t,i,s){return e[0]=t,r(e,null,s,n),e[0]=null,!n.pop()}}),has:et(function(t){return function(e){return K(t,e).length>0}}),contains:et(function(t){return t=t.replace($,Q),function(e){return(e.textContent||S.text(e)).indexOf(t)>-1}}),lang:et(function(t){return U.test(t||"")||K.error("unsupported lang: "+t),t=t.replace($,Q).toLowerCase(),function(e){var n;do{if(n=c?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return(n=n.toLowerCase())===t||0===n.indexOf(t+"-")}while((e=e.parentNode)&&1===e.nodeType);return!1}}),target:function(t){var e=r.location&&r.location.hash;return e&&e.slice(1)===t.id},root:function(t){return t===h},focus:function(t){return t===function(){try{return u.activeElement}catch(t){}}()&&u.hasFocus()&&!!(t.type||t.href||~t.tabIndex)},enabled:st(!1),disabled:st(!0),checked:function(t){return C(t,"input")&&!!t.checked||C(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 C(t,"input")&&"button"===t.type||C(t,"button")},text:function(t){var e;return C(t,"input")&&"text"===t.type&&(null==(e=t.getAttribute("type"))||"text"===e.toLowerCase())},first:ot(function(){return[0]}),last:ot(function(t,e){return[e-1]}),eq:ot(function(t,e,n){return[n<0?n+e:n]}),even:ot(function(t,e){for(var n=0;n<e;n+=2)t.push(n);return t}),odd:ot(function(t,e){for(var n=1;n<e;n+=2)t.push(n);return t}),lt:ot(function(t,e,n){var r;for(r=n<0?n+e:n>e?e:n;--r>=0;)t.push(r);return t}),gt:ot(function(t,e,n){for(var r=n<0?n+e:n;++r<e;)t.push(r);return t})}},e.pseudos.nth=e.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})e.pseudos[t]=rt(t);for(t in{submit:!0,reset:!0})e.pseudos[t]=it(t);function ht(){}function lt(t,n){var r,i,s,o,a,u,h,l=x[t+" "];if(l)return n?0:l.slice(0);for(a=t,u=[],h=e.preFilter;a;){for(o in r&&!(i=R.exec(a))||(i&&(a=a.slice(i[0].length)||a),u.push(s=[])),r=!1,(i=z.exec(a))&&(r=i.shift(),s.push({value:r,type:i[0].replace(L," ")}),a=a.slice(r.length)),e.filter)!(i=V[o].exec(a))||h[o]&&!(i=h[o](i))||(r=i.shift(),s.push({value:r,type:o,matches:i}),a=a.slice(r.length));if(!r)break}return n?a.length:a?K.error(t):x(t,u).slice(0)}function ct(t){for(var e=0,n=t.length,r="";e<n;e++)r+=t[e].value;return r}function ft(t,e,n){var r=e.dir,i=e.next,s=i||r,o=n&&"parentNode"===s,a=w++;return e.first?function(e,n,i){for(;e=e[r];)if(1===e.nodeType||o)return t(e,n,i);return!1}:function(e,n,u){var h,l,c=[v,a];if(u){for(;e=e[r];)if((1===e.nodeType||o)&&t(e,n,u))return!0}else for(;e=e[r];)if(1===e.nodeType||o)if(l=e[y]||(e[y]={}),i&&C(e,i))e=e[r]||e;else{if((h=l[s])&&h[0]===v&&h[1]===a)return c[2]=h[2];if(l[s]=c,c[2]=t(e,n,u))return!0}return!1}}function dt(t){return t.length>1?function(e,n,r){for(var i=t.length;i--;)if(!t[i](e,n,r))return!1;return!0}:t[0]}function pt(t,e,n,r,i){for(var s,o=[],a=0,u=t.length,h=null!=e;a<u;a++)(s=t[a])&&(n&&!n(s,r,i)||(o.push(s),h&&e.push(a)));return o}function mt(t,e,n,r,i,s){return r&&!r[y]&&(r=mt(r)),i&&!i[y]&&(i=mt(i,s)),et(function(s,o,a,u){var h,c,f,d,p=[],g=[],y=o.length,v=s||function(t,e,n){for(var r=0,i=e.length;r<i;r++)K(t,e[r],n);return n}(e||"*",a.nodeType?[a]:a,[]),w=!t||!s&&e?v:pt(v,p,t,a,u);if(n?n(w,d=i||(s?t:y||r)?[]:o,a,u):d=w,r)for(h=pt(d,g),r(h,[],a,u),c=h.length;c--;)(f=h[c])&&(d[g[c]]=!(w[g[c]]=f));if(s){if(i||t){if(i){for(h=[],c=d.length;c--;)(f=d[c])&&h.push(w[c]=f);i(null,d=[],h,u)}for(c=d.length;c--;)(f=d[c])&&(h=i?l.call(s,f):p[c])>-1&&(s[h]=!(o[h]=f))}}else d=pt(d===o?d.splice(y,d.length):d),i?i(null,o,d,u):m.apply(o,d)})}function gt(t){for(var r,i,s,o=t.length,a=e.relative[t[0].type],u=a||e.relative[" "],h=a?1:0,c=ft(function(t){return t===r},u,!0),f=ft(function(t){return l.call(r,t)>-1},u,!0),d=[function(t,e,i){var s=!a&&(i||e!=n)||((r=e).nodeType?c(t,e,i):f(t,e,i));return r=null,s}];h<o;h++)if(i=e.relative[t[h].type])d=[ft(dt(d),i)];else{if((i=e.filter[t[h].type].apply(null,t[h].matches))[y]){for(s=++h;s<o&&!e.relative[t[s].type];s++);return mt(h>1&&dt(d),h>1&&ct(t.slice(0,h-1).concat({value:" "===t[h-2].type?"*":""})).replace(L,"$1"),i,h<s&>(t.slice(h,s)),s<o&>(t=t.slice(s)),s<o&&ct(t))}d.push(i)}return dt(d)}function yt(t,r){var i,s=[],o=[],a=_[t+" "];if(!a){for(r||(r=lt(t)),i=r.length;i--;)(a=gt(r[i]))[y]?s.push(a):o.push(a);a=_(t,function(t,r){var i=r.length>0,s=t.length>0,o=function(o,a,h,l,f){var d,p,g,y=0,w="0",b=o&&[],x=[],_=n,N=o||s&&e.find.TAG("*",f),k=v+=null==_?1:Math.random()||.1,M=N.length;for(f&&(n=a==u||a||f);w!==M&&null!=(d=N[w]);w++){if(s&&d){for(p=0,a||d.ownerDocument==u||(ut(d),h=!c);g=t[p++];)if(g(d,a||u,h)){m.call(l,d);break}f&&(v=k)}i&&((d=!g&&d)&&y--,o&&b.push(d))}if(y+=w,i&&w!==y){for(p=0;g=r[p++];)g(b,x,a,h);if(o){if(y>0)for(;w--;)b[w]||x[w]||(x[w]=A.call(l));x=pt(x)}m.apply(l,x),f&&!o&&x.length>0&&y+r.length>1&&S.uniqueSort(l)}return f&&(v=k,n=_),b};return i?et(o):o}(o,s)),a.selector=t}return a}function vt(t,n,r,i){var s,o,a,u,h,l="function"==typeof t&&t,f=!i&<(t=l.selector||t);if(r=r||[],1===f.length){if((o=f[0]=f[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[u=a.type]);)if((h=e.find[u])&&(i=h(a.matches[0].replace($,Q),Y.test(o[0].type)&&at(n.parentNode)||n))){if(o.splice(s,1),!(t=i.length&&ct(o)))return m.apply(r,i),r;break}}return(l||yt(t,f))(i,n,!c,r,!n||Y.test(t)&&at(n.parentNode)||n),r}ht.prototype=e.filters=e.pseudos,e.setFilters=new ht,g.sortStable=y.split("").sort(k).join("")===y,ut(),g.sortDetached=nt(function(t){return 1&t.compareDocumentPosition(u.createElement("fieldset"))}),S.find=K,S.expr[":"]=S.expr.pseudos,S.unique=S.uniqueSort,K.compile=yt,K.select=vt,K.setDocument=ut,K.tokenize=lt,K.escape=S.escapeSelector,K.getText=S.text,K.isXML=S.isXMLDoc,K.selectors=S.expr,K.support=S.support,K.uniqueSort=S.uniqueSort}();var B=function(t,e,n){for(var r=[],i=void 0!==n;(t=t[e])&&9!==t.nodeType;)if(1===t.nodeType){if(i&&S(t).is(n))break;r.push(t)}return r},I=function(t,e){for(var n=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&n.push(t);return n},R=S.expr.match.needsContext,z=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function F(t,e,n){return y(e)?S.grep(t,function(t,r){return!!e.call(t,r,t)!==n}):e.nodeType?S.grep(t,function(t){return t===e!==n}):"string"!=typeof e?S.grep(t,function(t){return l.call(e,t)>-1!==n}):S.filter(e,t,n)}S.filter=function(t,e,n){var r=e[0];return n&&(t=":not("+t+")"),1===e.length&&1===r.nodeType?S.find.matchesSelector(r,t)?[r]:[]:S.find.matches(t,S.grep(e,function(t){return 1===t.nodeType}))},S.fn.extend({find:function(t){var e,n,r=this.length,i=this;if("string"!=typeof t)return this.pushStack(S(t).filter(function(){for(e=0;e<r;e++)if(S.contains(i[e],this))return!0}));for(n=this.pushStack([]),e=0;e<r;e++)S.find(t,i[e],n);return r>1?S.uniqueSort(n):n},filter:function(t){return this.pushStack(F(this,t||[],!1))},not:function(t){return this.pushStack(F(this,t||[],!0))},is:function(t){return!!F(this,"string"==typeof t&&R.test(t)?S(t):t||[],!1).length}});var q,U=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(S.fn.init=function(t,e,n){var r,i;if(!t)return this;if(n=n||q,"string"==typeof t){if(!(r="<"===t[0]&&">"===t[t.length-1]&&t.length>=3?[null,t,null]:U.exec(t))||!r[1]&&e)return!e||e.jquery?(e||n).find(t):this.constructor(e).find(t);if(r[1]){if(e=e instanceof S?e[0]:e,S.merge(this,S.parseHTML(r[1],e&&e.nodeType?e.ownerDocument||e:w,!0)),z.test(r[1])&&S.isPlainObject(e))for(r in e)y(this[r])?this[r](e[r]):this.attr(r,e[r]);return this}return(i=w.getElementById(r[2]))&&(this[0]=i,this.length=1),this}return t.nodeType?(this[0]=t,this.length=1,this):y(t)?void 0!==n.ready?n.ready(t):t(S):S.makeArray(t,this)}).prototype=S.fn,q=S(w);var V=/^(?:parents|prev(?:Until|All))/,G={children:!0,contents:!0,next:!0,prev:!0};function H(t,e){for(;(t=t[e])&&1!==t.nodeType;);return t}S.fn.extend({has:function(t){var e=S(t,this),n=e.length;return this.filter(function(){for(var t=0;t<n;t++)if(S.contains(this,e[t]))return!0})},closest:function(t,e){var n,r=0,i=this.length,s=[],o="string"!=typeof t&&S(t);if(!R.test(t))for(;r<i;r++)for(n=this[r];n&&n!==e;n=n.parentNode)if(n.nodeType<11&&(o?o.index(n)>-1:1===n.nodeType&&S.find.matchesSelector(n,t))){s.push(n);break}return this.pushStack(s.length>1?S.uniqueSort(s):s)},index:function(t){return t?"string"==typeof t?l.call(S(t),this[0]):l.call(this,t.jquery?t[0]:t):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(t,e){return this.pushStack(S.uniqueSort(S.merge(this.get(),S(t,e))))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),S.each({parent:function(t){var e=t.parentNode;return e&&11!==e.nodeType?e:null},parents:function(t){return B(t,"parentNode")},parentsUntil:function(t,e,n){return B(t,"parentNode",n)},next:function(t){return H(t,"nextSibling")},prev:function(t){return H(t,"previousSibling")},nextAll:function(t){return B(t,"nextSibling")},prevAll:function(t){return B(t,"previousSibling")},nextUntil:function(t,e,n){return B(t,"nextSibling",n)},prevUntil:function(t,e,n){return B(t,"previousSibling",n)},siblings:function(t){return I((t.parentNode||{}).firstChild,t)},children:function(t){return I(t.firstChild)},contents:function(t){return null!=t.contentDocument&&o(t.contentDocument)?t.contentDocument:(C(t,"template")&&(t=t.content||t),S.merge([],t.childNodes))}},function(t,e){S.fn[t]=function(n,r){var i=S.map(this,e,n);return"Until"!==t.slice(-5)&&(r=n),r&&"string"==typeof r&&(i=S.filter(r,i)),this.length>1&&(G[t]||S.uniqueSort(i),V.test(t)&&i.reverse()),this.pushStack(i)}});var X=/[^\x20\t\r\n\f]+/g;function Y(t){return t}function $(t){throw t}function Q(t,e,n,r){var i;try{t&&y(i=t.promise)?i.call(t).done(e).fail(n):t&&y(i=t.then)?i.call(t,e,n):e.apply(void 0,[t].slice(r))}catch(t){n.apply(void 0,[t])}}S.Callbacks=function(t){t="string"==typeof t?function(t){var e={};return S.each(t.match(X)||[],function(t,n){e[n]=!0}),e}(t):S.extend({},t);var e,n,r,i,s=[],o=[],a=-1,u=function(){for(i=i||t.once,r=e=!0;o.length;a=-1)for(n=o.shift();++a<s.length;)!1===s[a].apply(n[0],n[1])&&t.stopOnFalse&&(a=s.length,n=!1);t.memory||(n=!1),e=!1,i&&(s=n?[]:"")},h={add:function(){return s&&(n&&!e&&(a=s.length-1,o.push(n)),function e(n){S.each(n,function(n,r){y(r)?t.unique&&h.has(r)||s.push(r):r&&r.length&&"string"!==_(r)&&e(r)})}(arguments),n&&!e&&u()),this},remove:function(){return S.each(arguments,function(t,e){for(var n;(n=S.inArray(e,s,n))>-1;)s.splice(n,1),n<=a&&a--}),this},has:function(t){return t?S.inArray(t,s)>-1:s.length>0},empty:function(){return s&&(s=[]),this},disable:function(){return i=o=[],s=n="",this},disabled:function(){return!s},lock:function(){return i=o=[],n||e||(s=n=""),this},locked:function(){return!!i},fireWith:function(t,n){return i||(n=[t,(n=n||[]).slice?n.slice():n],o.push(n),e||u()),this},fire:function(){return h.fireWith(this,arguments),this},fired:function(){return!!r}};return h},S.extend({Deferred:function(t){var e=[["notify","progress",S.Callbacks("memory"),S.Callbacks("memory"),2],["resolve","done",S.Callbacks("once memory"),S.Callbacks("once memory"),0,"resolved"],["reject","fail",S.Callbacks("once memory"),S.Callbacks("once memory"),1,"rejected"]],n="pending",i={state:function(){return n},always:function(){return s.done(arguments).fail(arguments),this},catch:function(t){return i.then(null,t)},pipe:function(){var t=arguments;return S.Deferred(function(n){S.each(e,function(e,r){var i=y(t[r[4]])&&t[r[4]];s[r[1]](function(){var t=i&&i.apply(this,arguments);t&&y(t.promise)?t.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[r[0]+"With"](this,i?[t]:arguments)})}),t=null}).promise()},then:function(t,n,i){var s=0;function o(t,e,n,i){return function(){var a=this,u=arguments,h=function(){var r,h;if(!(t<s)){if((r=n.apply(a,u))===e.promise())throw new TypeError("Thenable self-resolution");h=r&&("object"==typeof r||"function"==typeof r)&&r.then,y(h)?i?h.call(r,o(s,e,Y,i),o(s,e,$,i)):(s++,h.call(r,o(s,e,Y,i),o(s,e,$,i),o(s,e,Y,e.notifyWith))):(n!==Y&&(a=void 0,u=[r]),(i||e.resolveWith)(a,u))}},l=i?h:function(){try{h()}catch(r){S.Deferred.exceptionHook&&S.Deferred.exceptionHook(r,l.error),t+1>=s&&(n!==$&&(a=void 0,u=[r]),e.rejectWith(a,u))}};t?l():(S.Deferred.getErrorHook?l.error=S.Deferred.getErrorHook():S.Deferred.getStackHook&&(l.error=S.Deferred.getStackHook()),r.setTimeout(l))}}return S.Deferred(function(r){e[0][3].add(o(0,r,y(i)?i:Y,r.notifyWith)),e[1][3].add(o(0,r,y(t)?t:Y)),e[2][3].add(o(0,r,y(n)?n:$))}).promise()},promise:function(t){return null!=t?S.extend(t,i):i}},s={};return S.each(e,function(t,r){var o=r[2],a=r[5];i[r[1]]=o.add,a&&o.add(function(){n=a},e[3-t][2].disable,e[3-t][3].disable,e[0][2].lock,e[0][3].lock),o.add(r[3].fire),s[r[0]]=function(){return s[r[0]+"With"](this===s?void 0:this,arguments),this},s[r[0]+"With"]=o.fireWith}),i.promise(s),t&&t.call(s,s),s},when:function(t){var e=arguments.length,n=e,r=Array(n),i=a.call(arguments),s=S.Deferred(),o=function(t){return function(n){r[t]=this,i[t]=arguments.length>1?a.call(arguments):n,--e||s.resolveWith(r,i)}};if(e<=1&&(Q(t,s.done(o(n)).resolve,s.reject,!e),"pending"===s.state()||y(i[n]&&i[n].then)))return s.then();for(;n--;)Q(i[n],o(n),s.reject);return s.promise()}});var Z=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;S.Deferred.exceptionHook=function(t,e){r.console&&r.console.warn&&t&&Z.test(t.name)&&r.console.warn("jQuery.Deferred exception: "+t.message,t.stack,e)},S.readyException=function(t){r.setTimeout(function(){throw t})};var J=S.Deferred();function K(){w.removeEventListener("DOMContentLoaded",K),r.removeEventListener("load",K),S.ready()}S.fn.ready=function(t){return J.then(t).catch(function(t){S.readyException(t)}),this},S.extend({isReady:!1,readyWait:1,ready:function(t){(!0===t?--S.readyWait:S.isReady)||(S.isReady=!0,!0!==t&&--S.readyWait>0||J.resolveWith(w,[S]))}}),S.ready.then=J.then,"complete"===w.readyState||"loading"!==w.readyState&&!w.documentElement.doScroll?r.setTimeout(S.ready):(w.addEventListener("DOMContentLoaded",K),r.addEventListener("load",K));var tt=function(t,e,n,r,i,s,o){var a=0,u=t.length,h=null==n;if("object"===_(n))for(a in i=!0,n)tt(t,e,a,n[a],!0,s,o);else if(void 0!==r&&(i=!0,y(r)||(o=!0),h&&(o?(e.call(t,r),e=null):(h=e,e=function(t,e,n){return h.call(S(t),n)})),e))for(;a<u;a++)e(t[a],n,o?r:r.call(t[a],a,e(t[a],n)));return i?t:h?e.call(t):u?e(t[0],n):s},et=/^-ms-/,nt=/-([a-z])/g;function rt(t,e){return e.toUpperCase()}function it(t){return t.replace(et,"ms-").replace(nt,rt)}var st=function(t){return 1===t.nodeType||9===t.nodeType||!+t.nodeType};function ot(){this.expando=S.expando+ot.uid++}ot.uid=1,ot.prototype={cache:function(t){var e=t[this.expando];return e||(e={},st(t)&&(t.nodeType?t[this.expando]=e:Object.defineProperty(t,this.expando,{value:e,configurable:!0}))),e},set:function(t,e,n){var r,i=this.cache(t);if("string"==typeof e)i[it(e)]=n;else for(r in e)i[it(r)]=e[r];return i},get:function(t,e){return void 0===e?this.cache(t):t[this.expando]&&t[this.expando][it(e)]},access:function(t,e,n){return void 0===e||e&&"string"==typeof e&&void 0===n?this.get(t,e):(this.set(t,e,n),void 0!==n?n:e)},remove:function(t,e){var n,r=t[this.expando];if(void 0!==r){if(void 0!==e){n=(e=Array.isArray(e)?e.map(it):(e=it(e))in r?[e]:e.match(X)||[]).length;for(;n--;)delete r[e[n]]}(void 0===e||S.isEmptyObject(r))&&(t.nodeType?t[this.expando]=void 0:delete t[this.expando])}},hasData:function(t){var e=t[this.expando];return void 0!==e&&!S.isEmptyObject(e)}};var at=new ot,ut=new ot,ht=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,lt=/[A-Z]/g;function ct(t,e,n){var r;if(void 0===n&&1===t.nodeType)if(r="data-"+e.replace(lt,"-$&").toLowerCase(),"string"==typeof(n=t.getAttribute(r))){try{n=function(t){return"true"===t||"false"!==t&&("null"===t?null:t===+t+""?+t:ht.test(t)?JSON.parse(t):t)}(n)}catch(t){}ut.set(t,e,n)}else n=void 0;return n}S.extend({hasData:function(t){return ut.hasData(t)||at.hasData(t)},data:function(t,e,n){return ut.access(t,e,n)},removeData:function(t,e){ut.remove(t,e)},_data:function(t,e,n){return at.access(t,e,n)},_removeData:function(t,e){at.remove(t,e)}}),S.fn.extend({data:function(t,e){var n,r,i,s=this[0],o=s&&s.attributes;if(void 0===t){if(this.length&&(i=ut.get(s),1===s.nodeType&&!at.get(s,"hasDataAttrs"))){for(n=o.length;n--;)o[n]&&0===(r=o[n].name).indexOf("data-")&&(r=it(r.slice(5)),ct(s,r,i[r]));at.set(s,"hasDataAttrs",!0)}return i}return"object"==typeof t?this.each(function(){ut.set(this,t)}):tt(this,function(e){var n;if(s&&void 0===e)return void 0!==(n=ut.get(s,t))||void 0!==(n=ct(s,t))?n:void 0;this.each(function(){ut.set(this,t,e)})},null,e,arguments.length>1,null,!0)},removeData:function(t){return this.each(function(){ut.remove(this,t)})}}),S.extend({queue:function(t,e,n){var r;if(t)return e=(e||"fx")+"queue",r=at.get(t,e),n&&(!r||Array.isArray(n)?r=at.access(t,e,S.makeArray(n)):r.push(n)),r||[]},dequeue:function(t,e){e=e||"fx";var n=S.queue(t,e),r=n.length,i=n.shift(),s=S._queueHooks(t,e);"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===e&&n.unshift("inprogress"),delete s.stop,i.call(t,function(){S.dequeue(t,e)},s)),!r&&s&&s.empty.fire()},_queueHooks:function(t,e){var n=e+"queueHooks";return at.get(t,n)||at.access(t,n,{empty:S.Callbacks("once memory").add(function(){at.remove(t,[e+"queue",n])})})}}),S.fn.extend({queue:function(t,e){var n=2;return"string"!=typeof t&&(e=t,t="fx",n--),arguments.length<n?S.queue(this[0],t):void 0===e?this:this.each(function(){var n=S.queue(this,t,e);S._queueHooks(this,t),"fx"===t&&"inprogress"!==n[0]&&S.dequeue(this,t)})},dequeue:function(t){return this.each(function(){S.dequeue(this,t)})},clearQueue:function(t){return this.queue(t||"fx",[])},promise:function(t,e){var n,r=1,i=S.Deferred(),s=this,o=this.length,a=function(){--r||i.resolveWith(s,[s])};for("string"!=typeof t&&(e=t,t=void 0),t=t||"fx";o--;)(n=at.get(s[o],t+"queueHooks"))&&n.empty&&(r++,n.empty.add(a));return a(),i.promise(e)}});var ft=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,dt=new RegExp("^(?:([+-])=|)("+ft+")([a-z%]*)$","i"),pt=["Top","Right","Bottom","Left"],mt=w.documentElement,gt=function(t){return S.contains(t.ownerDocument,t)},yt={composed:!0};mt.getRootNode&&(gt=function(t){return S.contains(t.ownerDocument,t)||t.getRootNode(yt)===t.ownerDocument});var vt=function(t,e){return"none"===(t=e||t).style.display||""===t.style.display&>(t)&&"none"===S.css(t,"display")};function wt(t,e,n,r){var i,s,o=20,a=r?function(){return r.cur()}:function(){return S.css(t,e,"")},u=a(),h=n&&n[3]||(S.cssNumber[e]?"":"px"),l=t.nodeType&&(S.cssNumber[e]||"px"!==h&&+u)&&dt.exec(S.css(t,e));if(l&&l[3]!==h){for(u/=2,h=h||l[3],l=+u||1;o--;)S.style(t,e,l+h),(1-s)*(1-(s=a()/u||.5))<=0&&(o=0),l/=s;l*=2,S.style(t,e,l+h),n=n||[]}return n&&(l=+l||+u||0,i=n[1]?l+(n[1]+1)*n[2]:+n[2],r&&(r.unit=h,r.start=l,r.end=i)),i}var bt={};function xt(t){var e,n=t.ownerDocument,r=t.nodeName,i=bt[r];return i||(e=n.body.appendChild(n.createElement(r)),i=S.css(e,"display"),e.parentNode.removeChild(e),"none"===i&&(i="block"),bt[r]=i,i)}function _t(t,e){for(var n,r,i=[],s=0,o=t.length;s<o;s++)(r=t[s]).style&&(n=r.style.display,e?("none"===n&&(i[s]=at.get(r,"display")||null,i[s]||(r.style.display="")),""===r.style.display&&vt(r)&&(i[s]=xt(r))):"none"!==n&&(i[s]="none",at.set(r,"display",n)));for(s=0;s<o;s++)null!=i[s]&&(t[s].style.display=i[s]);return t}S.fn.extend({show:function(){return _t(this,!0)},hide:function(){return _t(this)},toggle:function(t){return"boolean"==typeof t?t?this.show():this.hide():this.each(function(){vt(this)?S(this).show():S(this).hide()})}});var Nt,kt,St=/^(?:checkbox|radio)$/i,Mt=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,Ct=/^$|^module$|\/(?:java|ecma)script/i;Nt=w.createDocumentFragment().appendChild(w.createElement("div")),(kt=w.createElement("input")).setAttribute("type","radio"),kt.setAttribute("checked","checked"),kt.setAttribute("name","t"),Nt.appendChild(kt),g.checkClone=Nt.cloneNode(!0).cloneNode(!0).lastChild.checked,Nt.innerHTML="<textarea>x</textarea>",g.noCloneChecked=!!Nt.cloneNode(!0).lastChild.defaultValue,Nt.innerHTML="<option></option>",g.option=!!Nt.lastChild;var At={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 Et(t,e){var n;return n=void 0!==t.getElementsByTagName?t.getElementsByTagName(e||"*"):void 0!==t.querySelectorAll?t.querySelectorAll(e||"*"):[],void 0===e||e&&C(t,e)?S.merge([t],n):n}function Tt(t,e){for(var n=0,r=t.length;n<r;n++)at.set(t[n],"globalEval",!e||at.get(e[n],"globalEval"))}At.tbody=At.tfoot=At.colgroup=At.caption=At.thead,At.th=At.td,g.option||(At.optgroup=At.option=[1,"<select multiple='multiple'>","</select>"]);var Ot=/<|&#?\w+;/;function Lt(t,e,n,r,i){for(var s,o,a,u,h,l,c=e.createDocumentFragment(),f=[],d=0,p=t.length;d<p;d++)if((s=t[d])||0===s)if("object"===_(s))S.merge(f,s.nodeType?[s]:s);else if(Ot.test(s)){for(o=o||c.appendChild(e.createElement("div")),a=(Mt.exec(s)||["",""])[1].toLowerCase(),u=At[a]||At._default,o.innerHTML=u[1]+S.htmlPrefilter(s)+u[2],l=u[0];l--;)o=o.lastChild;S.merge(f,o.childNodes),(o=c.firstChild).textContent=""}else f.push(e.createTextNode(s));for(c.textContent="",d=0;s=f[d++];)if(r&&S.inArray(s,r)>-1)i&&i.push(s);else if(h=gt(s),o=Et(c.appendChild(s),"script"),h&&Tt(o),n)for(l=0;s=o[l++];)Ct.test(s.type||"")&&n.push(s);return c}var jt=/^([^.]*)(?:\.(.+)|)/;function Wt(){return!0}function Pt(){return!1}function Dt(t,e,n,r,i,s){var o,a;if("object"==typeof e){for(a in"string"!=typeof n&&(r=r||n,n=void 0),e)Dt(t,a,n,r,e[a],s);return t}if(null==r&&null==i?(i=n,r=n=void 0):null==i&&("string"==typeof n?(i=r,r=void 0):(i=r,r=n,n=void 0)),!1===i)i=Pt;else if(!i)return t;return 1===s&&(o=i,i=function(t){return S().off(t),o.apply(this,arguments)},i.guid=o.guid||(o.guid=S.guid++)),t.each(function(){S.event.add(this,e,i,r,n)})}function Bt(t,e,n){n?(at.set(t,e,!1),S.event.add(t,e,{namespace:!1,handler:function(t){var n,r=at.get(this,e);if(1&t.isTrigger&&this[e]){if(r)(S.event.special[e]||{}).delegateType&&t.stopPropagation();else if(r=a.call(arguments),at.set(this,e,r),this[e](),n=at.get(this,e),at.set(this,e,!1),r!==n)return t.stopImmediatePropagation(),t.preventDefault(),n}else r&&(at.set(this,e,S.event.trigger(r[0],r.slice(1),this)),t.stopPropagation(),t.isImmediatePropagationStopped=Wt)}})):void 0===at.get(t,e)&&S.event.add(t,e,Wt)}S.event={global:{},add:function(t,e,n,r,i){var s,o,a,u,h,l,c,f,d,p,m,g=at.get(t);if(st(t))for(n.handler&&(n=(s=n).handler,i=s.selector),i&&S.find.matchesSelector(mt,i),n.guid||(n.guid=S.guid++),(u=g.events)||(u=g.events=Object.create(null)),(o=g.handle)||(o=g.handle=function(e){return void 0!==S&&S.event.triggered!==e.type?S.event.dispatch.apply(t,arguments):void 0}),h=(e=(e||"").match(X)||[""]).length;h--;)d=m=(a=jt.exec(e[h])||[])[1],p=(a[2]||"").split(".").sort(),d&&(c=S.event.special[d]||{},d=(i?c.delegateType:c.bindType)||d,c=S.event.special[d]||{},l=S.extend({type:d,origType:m,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&S.expr.match.needsContext.test(i),namespace:p.join(".")},s),(f=u[d])||((f=u[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),S.event.global[d]=!0)},remove:function(t,e,n,r,i){var s,o,a,u,h,l,c,f,d,p,m,g=at.hasData(t)&&at.get(t);if(g&&(u=g.events)){for(h=(e=(e||"").match(X)||[""]).length;h--;)if(d=m=(a=jt.exec(e[h])||[])[1],p=(a[2]||"").split(".").sort(),d){for(c=S.event.special[d]||{},f=u[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)||S.removeEvent(t,d,g.handle),delete u[d])}else for(d in u)S.event.remove(t,d+e[h],n,r,!0);S.isEmptyObject(u)&&at.remove(t,"handle events")}},dispatch:function(t){var e,n,r,i,s,o,a=new Array(arguments.length),u=S.event.fix(t),h=(at.get(this,"events")||Object.create(null))[u.type]||[],l=S.event.special[u.type]||{};for(a[0]=u,e=1;e<arguments.length;e++)a[e]=arguments[e];if(u.delegateTarget=this,!l.preDispatch||!1!==l.preDispatch.call(this,u)){for(o=S.event.handlers.call(this,u,h),e=0;(i=o[e++])&&!u.isPropagationStopped();)for(u.currentTarget=i.elem,n=0;(s=i.handlers[n++])&&!u.isImmediatePropagationStopped();)u.rnamespace&&!1!==s.namespace&&!u.rnamespace.test(s.namespace)||(u.handleObj=s,u.data=s.data,void 0!==(r=((S.event.special[s.origType]||{}).handle||s.handler).apply(i.elem,a))&&!1===(u.result=r)&&(u.preventDefault(),u.stopPropagation()));return l.postDispatch&&l.postDispatch.call(this,u),u.result}},handlers:function(t,e){var n,r,i,s,o,a=[],u=e.delegateCount,h=t.target;if(u&&h.nodeType&&!("click"===t.type&&t.button>=1))for(;h!==this;h=h.parentNode||this)if(1===h.nodeType&&("click"!==t.type||!0!==h.disabled)){for(s=[],o={},n=0;n<u;n++)void 0===o[i=(r=e[n]).selector+" "]&&(o[i]=r.needsContext?S(i,this).index(h)>-1:S.find(i,this,null,[h]).length),o[i]&&s.push(r);s.length&&a.push({elem:h,handlers:s})}return h=this,u<e.length&&a.push({elem:h,handlers:e.slice(u)}),a},addProp:function(t,e){Object.defineProperty(S.Event.prototype,t,{enumerable:!0,configurable:!0,get:y(e)?function(){if(this.originalEvent)return e(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[t]},set:function(e){Object.defineProperty(this,t,{enumerable:!0,configurable:!0,writable:!0,value:e})}})},fix:function(t){return t[S.expando]?t:new S.Event(t)},special:{load:{noBubble:!0},click:{setup:function(t){var e=this||t;return St.test(e.type)&&e.click&&C(e,"input")&&Bt(e,"click",!0),!1},trigger:function(t){var e=this||t;return St.test(e.type)&&e.click&&C(e,"input")&&Bt(e,"click"),!0},_default:function(t){var e=t.target;return St.test(e.type)&&e.click&&C(e,"input")&&at.get(e,"click")||C(e,"a")}},beforeunload:{postDispatch:function(t){void 0!==t.result&&t.originalEvent&&(t.originalEvent.returnValue=t.result)}}}},S.removeEvent=function(t,e,n){t.removeEventListener&&t.removeEventListener(e,n)},S.Event=function(t,e){if(!(this instanceof S.Event))return new S.Event(t,e);t&&t.type?(this.originalEvent=t,this.type=t.type,this.isDefaultPrevented=t.defaultPrevented||void 0===t.defaultPrevented&&!1===t.returnValue?Wt:Pt,this.target=t.target&&3===t.target.nodeType?t.target.parentNode:t.target,this.currentTarget=t.currentTarget,this.relatedTarget=t.relatedTarget):this.type=t,e&&S.extend(this,e),this.timeStamp=t&&t.timeStamp||Date.now(),this[S.expando]=!0},S.Event.prototype={constructor:S.Event,isDefaultPrevented:Pt,isPropagationStopped:Pt,isImmediatePropagationStopped:Pt,isSimulated:!1,preventDefault:function(){var t=this.originalEvent;this.isDefaultPrevented=Wt,t&&!this.isSimulated&&t.preventDefault()},stopPropagation:function(){var t=this.originalEvent;this.isPropagationStopped=Wt,t&&!this.isSimulated&&t.stopPropagation()},stopImmediatePropagation:function(){var t=this.originalEvent;this.isImmediatePropagationStopped=Wt,t&&!this.isSimulated&&t.stopImmediatePropagation(),this.stopPropagation()}},S.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:!0},S.event.addProp),S.each({focus:"focusin",blur:"focusout"},function(t,e){function n(t){if(w.documentMode){var n=at.get(this,"handle"),r=S.event.fix(t);r.type="focusin"===t.type?"focus":"blur",r.isSimulated=!0,n(t),r.target===r.currentTarget&&n(r)}else S.event.simulate(e,t.target,S.event.fix(t))}S.event.special[t]={setup:function(){var r;if(Bt(this,t,!0),!w.documentMode)return!1;(r=at.get(this,e))||this.addEventListener(e,n),at.set(this,e,(r||0)+1)},trigger:function(){return Bt(this,t),!0},teardown:function(){var t;if(!w.documentMode)return!1;(t=at.get(this,e)-1)?at.set(this,e,t):(this.removeEventListener(e,n),at.remove(this,e))},_default:function(e){return at.get(e.target,t)},delegateType:e},S.event.special[e]={setup:function(){var r=this.ownerDocument||this.document||this,i=w.documentMode?this:r,s=at.get(i,e);s||(w.documentMode?this.addEventListener(e,n):r.addEventListener(t,n,!0)),at.set(i,e,(s||0)+1)},teardown:function(){var r=this.ownerDocument||this.document||this,i=w.documentMode?this:r,s=at.get(i,e)-1;s?at.set(i,e,s):(w.documentMode?this.removeEventListener(e,n):r.removeEventListener(t,n,!0),at.remove(i,e))}}}),S.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(t,e){S.event.special[t]={delegateType:e,bindType:e,handle:function(t){var n,r=t.relatedTarget,i=t.handleObj;return r&&(r===this||S.contains(this,r))||(t.type=i.origType,n=i.handler.apply(this,arguments),t.type=e),n}}}),S.fn.extend({on:function(t,e,n,r){return Dt(this,t,e,n,r)},one:function(t,e,n,r){return Dt(this,t,e,n,r,1)},off:function(t,e,n){var r,i;if(t&&t.preventDefault&&t.handleObj)return r=t.handleObj,S(t.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler),this;if("object"==typeof t){for(i in t)this.off(i,e,t[i]);return this}return!1!==e&&"function"!=typeof e||(n=e,e=void 0),!1===n&&(n=Pt),this.each(function(){S.event.remove(this,t,n,e)})}});var It=/<script|<style|<link/i,Rt=/checked\s*(?:[^=]|=\s*.checked.)/i,zt=/^\s*<!\[CDATA\[|\]\]>\s*$/g;function Ft(t,e){return C(t,"table")&&C(11!==e.nodeType?e:e.firstChild,"tr")&&S(t).children("tbody")[0]||t}function qt(t){return t.type=(null!==t.getAttribute("type"))+"/"+t.type,t}function Ut(t){return"true/"===(t.type||"").slice(0,5)?t.type=t.type.slice(5):t.removeAttribute("type"),t}function Vt(t,e){var n,r,i,s,o,a;if(1===e.nodeType){if(at.hasData(t)&&(a=at.get(t).events))for(i in at.remove(e,"handle events"),a)for(n=0,r=a[i].length;n<r;n++)S.event.add(e,i,a[i][n]);ut.hasData(t)&&(s=ut.access(t),o=S.extend({},s),ut.set(e,o))}}function Gt(t,e){var n=e.nodeName.toLowerCase();"input"===n&&St.test(t.type)?e.checked=t.checked:"input"!==n&&"textarea"!==n||(e.defaultValue=t.defaultValue)}function Ht(t,e,n,r){e=u(e);var i,s,o,a,h,l,c=0,f=t.length,d=f-1,p=e[0],m=y(p);if(m||f>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(f&&(s=(i=Lt(e,t[0].ownerDocument,!1,t,r)).firstChild,1===i.childNodes.length&&(i=s),s||r)){for(a=(o=S.map(Et(i,"script"),qt)).length;c<f;c++)h=i,c!==d&&(h=S.clone(h,!0,!0),a&&S.merge(o,Et(h,"script"))),n.call(t[c],h,c);if(a)for(l=o[o.length-1].ownerDocument,S.map(o,Ut),c=0;c<a;c++)h=o[c],Ct.test(h.type||"")&&!at.access(h,"globalEval")&&S.contains(l,h)&&(h.src&&"module"!==(h.type||"").toLowerCase()?S._evalUrl&&!h.noModule&&S._evalUrl(h.src,{nonce:h.nonce||h.getAttribute("nonce")},l):x(h.textContent.replace(zt,""),h,l))}return t}function Xt(t,e,n){for(var r,i=e?S.filter(e,t):t,s=0;null!=(r=i[s]);s++)n||1!==r.nodeType||S.cleanData(Et(r)),r.parentNode&&(n&>(r)&&Tt(Et(r,"script")),r.parentNode.removeChild(r));return t}S.extend({htmlPrefilter:function(t){return t},clone:function(t,e,n){var r,i,s,o,a=t.cloneNode(!0),u=gt(t);if(!(g.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||S.isXMLDoc(t)))for(o=Et(a),r=0,i=(s=Et(t)).length;r<i;r++)Gt(s[r],o[r]);if(e)if(n)for(s=s||Et(t),o=o||Et(a),r=0,i=s.length;r<i;r++)Vt(s[r],o[r]);else Vt(t,a);return(o=Et(a,"script")).length>0&&Tt(o,!u&&Et(t,"script")),a},cleanData:function(t){for(var e,n,r,i=S.event.special,s=0;void 0!==(n=t[s]);s++)if(st(n)){if(e=n[at.expando]){if(e.events)for(r in e.events)i[r]?S.event.remove(n,r):S.removeEvent(n,r,e.handle);n[at.expando]=void 0}n[ut.expando]&&(n[ut.expando]=void 0)}}}),S.fn.extend({detach:function(t){return Xt(this,t,!0)},remove:function(t){return Xt(this,t)},text:function(t){return tt(this,function(t){return void 0===t?S.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=t)})},null,t,arguments.length)},append:function(){return Ht(this,arguments,function(t){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Ft(this,t).appendChild(t)})},prepend:function(){return Ht(this,arguments,function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=Ft(this,t);e.insertBefore(t,e.firstChild)}})},before:function(){return Ht(this,arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this)})},after:function(){return Ht(this,arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this.nextSibling)})},empty:function(){for(var t,e=0;null!=(t=this[e]);e++)1===t.nodeType&&(S.cleanData(Et(t,!1)),t.textContent="");return this},clone:function(t,e){return t=null!=t&&t,e=null==e?t:e,this.map(function(){return S.clone(this,t,e)})},html:function(t){return tt(this,function(t){var e=this[0]||{},n=0,r=this.length;if(void 0===t&&1===e.nodeType)return e.innerHTML;if("string"==typeof t&&!It.test(t)&&!At[(Mt.exec(t)||["",""])[1].toLowerCase()]){t=S.htmlPrefilter(t);try{for(;n<r;n++)1===(e=this[n]||{}).nodeType&&(S.cleanData(Et(e,!1)),e.innerHTML=t);e=0}catch(t){}}e&&this.empty().append(t)},null,t,arguments.length)},replaceWith:function(){var t=[];return Ht(this,arguments,function(e){var n=this.parentNode;S.inArray(this,t)<0&&(S.cleanData(Et(this)),n&&n.replaceChild(e,this))},t)}}),S.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(t,e){S.fn[t]=function(t){for(var n,r=[],i=S(t),s=i.length-1,o=0;o<=s;o++)n=o===s?this:this.clone(!0),S(i[o])[e](n),h.apply(r,n.get());return this.pushStack(r)}});var Yt=new RegExp("^("+ft+")(?!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),u=t.style;return(n=n||Qt(t))&&(o=n.getPropertyValue(e)||n[e],a&&o&&(o=o.replace(L,"$1")||void 0),""!==o||gt(t)||(o=S.style(t,e)),!g.pixelBoxStyles()&&Yt.test(o)&&Jt.test(e)&&(r=u.width,i=u.minWidth,s=u.maxWidth,u.minWidth=u.maxWidth=u.width=o,o=n.width,u.width=r,u.minWidth=i,u.maxWidth=s)),void 0!==o?o+"":o}function te(t,e){return{get:function(){if(!t())return(this.get=e).apply(this,arguments);delete this.get}}}!function(){function t(){if(l){h.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",l.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",mt.appendChild(h).appendChild(l);var t=r.getComputedStyle(l);n="1%"!==t.top,u=12===e(t.marginLeft),l.style.right="60%",o=36===e(t.right),i=36===e(t.width),l.style.position="absolute",s=12===e(l.offsetWidth/3),mt.removeChild(h),l=null}}function e(t){return Math.round(parseFloat(t))}var n,i,s,o,a,u,h=w.createElement("div"),l=w.createElement("div");l.style&&(l.style.backgroundClip="content-box",l.cloneNode(!0).style.backgroundClip="",g.clearCloneStyle="content-box"===l.style.backgroundClip,S.extend(g,{boxSizingReliable:function(){return t(),i},pixelBoxStyles:function(){return t(),o},pixelPosition:function(){return t(),n},reliableMarginLeft:function(){return t(),u},scrollboxSize:function(){return t(),s},reliableTrDimensions:function(){var t,e,n,i;return null==a&&(t=w.createElement("table"),e=w.createElement("tr"),n=w.createElement("div"),t.style.cssText="position:absolute;left:-11111px;border-collapse:separate",e.style.cssText="box-sizing:content-box;border:1px solid",e.style.height="1px",n.style.height="9px",n.style.display="block",mt.appendChild(t).appendChild(e).appendChild(n),i=r.getComputedStyle(e),a=parseInt(i.height,10)+parseInt(i.borderTopWidth,10)+parseInt(i.borderBottomWidth,10)===e.offsetHeight,mt.removeChild(t)),a}}))}();var ee=["Webkit","Moz","ms"],ne=w.createElement("div").style,re={};function ie(t){return S.cssProps[t]||re[t]||(t in ne?t:re[t]=function(t){for(var e=t[0].toUpperCase()+t.slice(1),n=ee.length;n--;)if((t=ee[n]+e)in ne)return t}(t)||t)}var se=/^(none|table(?!-c[ea]).+)/,oe={position:"absolute",visibility:"hidden",display:"block"},ae={letterSpacing:"0",fontWeight:"400"};function ue(t,e,n){var r=dt.exec(e);return r?Math.max(0,r[2]-(n||0))+(r[3]||"px"):e}function he(t,e,n,r,i,s){var o="width"===e?1:0,a=0,u=0,h=0;if(n===(r?"border":"content"))return 0;for(;o<4;o+=2)"margin"===n&&(h+=S.css(t,n+pt[o],!0,i)),r?("content"===n&&(u-=S.css(t,"padding"+pt[o],!0,i)),"margin"!==n&&(u-=S.css(t,"border"+pt[o]+"Width",!0,i))):(u+=S.css(t,"padding"+pt[o],!0,i),"padding"!==n?u+=S.css(t,"border"+pt[o]+"Width",!0,i):a+=S.css(t,"border"+pt[o]+"Width",!0,i));return!r&&s>=0&&(u+=Math.max(0,Math.ceil(t["offset"+e[0].toUpperCase()+e.slice(1)]-s-u-a-.5))||0),u+h}function le(t,e,n){var r=Qt(t),i=(!g.boxSizingReliable()||n)&&"border-box"===S.css(t,"boxSizing",!1,r),s=i,o=Kt(t,e,r),a="offset"+e[0].toUpperCase()+e.slice(1);if(Yt.test(o)){if(!n)return o;o="auto"}return(!g.boxSizingReliable()&&i||!g.reliableTrDimensions()&&C(t,"tr")||"auto"===o||!parseFloat(o)&&"inline"===S.css(t,"display",!1,r))&&t.getClientRects().length&&(i="border-box"===S.css(t,"boxSizing",!1,r),(s=a in t)&&(o=t[a])),(o=parseFloat(o)||0)+he(t,e,n||(i?"border":"content"),s,r,o)+"px"}function ce(t,e,n,r,i){return new ce.prototype.init(t,e,n,r,i)}S.extend({cssHooks:{opacity:{get:function(t,e){if(e){var n=Kt(t,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,aspectRatio:!0,borderImageSlice:!0,columnCount:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,scale:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeMiterlimit:!0,strokeOpacity:!0},cssProps:{},style:function(t,e,n,r){if(t&&3!==t.nodeType&&8!==t.nodeType&&t.style){var i,s,o,a=it(e),u=$t.test(e),h=t.style;if(u||(e=ie(a)),o=S.cssHooks[e]||S.cssHooks[a],void 0===n)return o&&"get"in o&&void 0!==(i=o.get(t,!1,r))?i:h[e];"string"==(s=typeof n)&&(i=dt.exec(n))&&i[1]&&(n=wt(t,e,i),s="number"),null!=n&&n==n&&("number"!==s||u||(n+=i&&i[3]||(S.cssNumber[a]?"":"px")),g.clearCloneStyle||""!==n||0!==e.indexOf("background")||(h[e]="inherit"),o&&"set"in o&&void 0===(n=o.set(t,n,r))||(u?h.setProperty(e,n):h[e]=n))}},css:function(t,e,n,r){var i,s,o,a=it(e);return $t.test(e)||(e=ie(a)),(o=S.cssHooks[e]||S.cssHooks[a])&&"get"in o&&(i=o.get(t,!0,n)),void 0===i&&(i=Kt(t,e,r)),"normal"===i&&e in ae&&(i=ae[e]),""===n||n?(s=parseFloat(i),!0===n||isFinite(s)?s||0:i):i}}),S.each(["height","width"],function(t,e){S.cssHooks[e]={get:function(t,n,r){if(n)return!se.test(S.css(t,"display"))||t.getClientRects().length&&t.getBoundingClientRect().width?le(t,e,r):Zt(t,oe,function(){return le(t,e,r)})},set:function(t,n,r){var i,s=Qt(t),o=!g.scrollboxSize()&&"absolute"===s.position,a=(o||r)&&"border-box"===S.css(t,"boxSizing",!1,s),u=r?he(t,e,r,a,s):0;return a&&o&&(u-=Math.ceil(t["offset"+e[0].toUpperCase()+e.slice(1)]-parseFloat(s[e])-he(t,e,"border",!1,s)-.5)),u&&(i=dt.exec(n))&&"px"!==(i[3]||"px")&&(t.style[e]=n,n=S.css(t,e)),ue(0,n,u)}}}),S.cssHooks.marginLeft=te(g.reliableMarginLeft,function(t,e){if(e)return(parseFloat(Kt(t,"marginLeft"))||t.getBoundingClientRect().left-Zt(t,{marginLeft:0},function(){return t.getBoundingClientRect().left}))+"px"}),S.each({margin:"",padding:"",border:"Width"},function(t,e){S.cssHooks[t+e]={expand:function(n){for(var r=0,i={},s="string"==typeof n?n.split(" "):[n];r<4;r++)i[t+pt[r]+e]=s[r]||s[r-2]||s[0];return i}},"margin"!==t&&(S.cssHooks[t+e].set=ue)}),S.fn.extend({css:function(t,e){return tt(this,function(t,e,n){var r,i,s={},o=0;if(Array.isArray(e)){for(r=Qt(t),i=e.length;o<i;o++)s[e[o]]=S.css(t,e[o],!1,r);return s}return void 0!==n?S.style(t,e,n):S.css(t,e)},t,e,arguments.length>1)}}),S.Tween=ce,ce.prototype={constructor:ce,init:function(t,e,n,r,i,s){this.elem=t,this.prop=n,this.easing=i||S.easing._default,this.options=e,this.start=this.now=this.cur(),this.end=r,this.unit=s||(S.cssNumber[n]?"":"px")},cur:function(){var t=ce.propHooks[this.prop];return t&&t.get?t.get(this):ce.propHooks._default.get(this)},run:function(t){var e,n=ce.propHooks[this.prop];return this.options.duration?this.pos=e=S.easing[this.easing](t,this.options.duration*t,0,1,this.options.duration):this.pos=e=t,this.now=(this.end-this.start)*e+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):ce.propHooks._default.set(this),this}},ce.prototype.init.prototype=ce.prototype,ce.propHooks={_default:{get:function(t){var e;return 1!==t.elem.nodeType||null!=t.elem[t.prop]&&null==t.elem.style[t.prop]?t.elem[t.prop]:(e=S.css(t.elem,t.prop,""))&&"auto"!==e?e:0},set:function(t){S.fx.step[t.prop]?S.fx.step[t.prop](t):1!==t.elem.nodeType||!S.cssHooks[t.prop]&&null==t.elem.style[ie(t.prop)]?t.elem[t.prop]=t.now:S.style(t.elem,t.prop,t.now+t.unit)}}},ce.propHooks.scrollTop=ce.propHooks.scrollLeft={set:function(t){t.elem.nodeType&&t.elem.parentNode&&(t.elem[t.prop]=t.now)}},S.easing={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2},_default:"swing"},S.fx=ce.prototype.init,S.fx.step={};var fe,de,pe=/^(?:toggle|show|hide)$/,me=/queueHooks$/;function ge(){de&&(!1===w.hidden&&r.requestAnimationFrame?r.requestAnimationFrame(ge):r.setTimeout(ge,S.fx.interval),S.fx.tick())}function ye(){return r.setTimeout(function(){fe=void 0}),fe=Date.now()}function ve(t,e){var n,r=0,i={height:t};for(e=e?1:0;r<4;r+=2-e)i["margin"+(n=pt[r])]=i["padding"+n]=t;return e&&(i.opacity=i.width=t),i}function we(t,e,n){for(var r,i=(be.tweeners[e]||[]).concat(be.tweeners["*"]),s=0,o=i.length;s<o;s++)if(r=i[s].call(n,e,t))return r}function be(t,e,n){var r,i,s=0,o=be.prefilters.length,a=S.Deferred().always(function(){delete u.elem}),u=function(){if(i)return!1;for(var e=fe||ye(),n=Math.max(0,h.startTime+h.duration-e),r=1-(n/h.duration||0),s=0,o=h.tweens.length;s<o;s++)h.tweens[s].run(r);return a.notifyWith(t,[h,r,n]),r<1&&o?n:(o||a.notifyWith(t,[h,1,0]),a.resolveWith(t,[h]),!1)},h=a.promise({elem:t,props:S.extend({},e),opts:S.extend(!0,{specialEasing:{},easing:S.easing._default},n),originalProperties:e,originalOptions:n,startTime:fe||ye(),duration:n.duration,tweens:[],createTween:function(e,n){var r=S.Tween(t,h.opts,e,n,h.opts.specialEasing[e]||h.opts.easing);return h.tweens.push(r),r},stop:function(e){var n=0,r=e?h.tweens.length:0;if(i)return this;for(i=!0;n<r;n++)h.tweens[n].run(1);return e?(a.notifyWith(t,[h,1,0]),a.resolveWith(t,[h,e])):a.rejectWith(t,[h,e]),this}}),l=h.props;for(function(t,e){var n,r,i,s,o;for(n in t)if(i=e[r=it(n)],s=t[n],Array.isArray(s)&&(i=s[1],s=t[n]=s[0]),n!==r&&(t[r]=s,delete t[n]),(o=S.cssHooks[r])&&"expand"in o)for(n in s=o.expand(s),delete t[r],s)n in t||(t[n]=s[n],e[n]=i);else e[r]=i}(l,h.opts.specialEasing);s<o;s++)if(r=be.prefilters[s].call(h,t,l,h.opts))return y(r.stop)&&(S._queueHooks(h.elem,h.opts.queue).stop=r.stop.bind(r)),r;return S.map(l,we,h),y(h.opts.start)&&h.opts.start.call(t,h),h.progress(h.opts.progress).done(h.opts.done,h.opts.complete).fail(h.opts.fail).always(h.opts.always),S.fx.timer(S.extend(u,{elem:t,anim:h,queue:h.opts.queue})),h}S.Animation=S.extend(be,{tweeners:{"*":[function(t,e){var n=this.createTween(t,e);return wt(n.elem,t,dt.exec(e),n),n}]},tweener:function(t,e){y(t)?(e=t,t=["*"]):t=t.match(X);for(var n,r=0,i=t.length;r<i;r++)n=t[r],be.tweeners[n]=be.tweeners[n]||[],be.tweeners[n].unshift(e)},prefilters:[function(t,e,n){var r,i,s,o,a,u,h,l,c="width"in e||"height"in e,f=this,d={},p=t.style,m=t.nodeType&&vt(t),g=at.get(t,"fxshow");for(r in n.queue||(null==(o=S._queueHooks(t,"fx")).unqueued&&(o.unqueued=0,a=o.empty.fire,o.empty.fire=function(){o.unqueued||a()}),o.unqueued++,f.always(function(){f.always(function(){o.unqueued--,S.queue(t,"fx").length||o.empty.fire()})})),e)if(i=e[r],pe.test(i)){if(delete e[r],s=s||"toggle"===i,i===(m?"hide":"show")){if("show"!==i||!g||void 0===g[r])continue;m=!0}d[r]=g&&g[r]||S.style(t,r)}if((u=!S.isEmptyObject(e))||!S.isEmptyObject(d))for(r in c&&1===t.nodeType&&(n.overflow=[p.overflow,p.overflowX,p.overflowY],null==(h=g&&g.display)&&(h=at.get(t,"display")),"none"===(l=S.css(t,"display"))&&(h?l=h:(_t([t],!0),h=t.style.display||h,l=S.css(t,"display"),_t([t]))),("inline"===l||"inline-block"===l&&null!=h)&&"none"===S.css(t,"float")&&(u||(f.done(function(){p.display=h}),null==h&&(l=p.display,h="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]})),u=!1,d)u||(g?"hidden"in g&&(m=g.hidden):g=at.access(t,"fxshow",{display:h}),s&&(g.hidden=!m),m&&_t([t],!0),f.done(function(){for(r in m||_t([t]),at.remove(t,"fxshow"),d)S.style(t,r,d[r])})),u=we(m?g[r]:0,r,f),r in g||(g[r]=u.start,m&&(u.end=u.start,u.start=0))}],prefilter:function(t,e){e?be.prefilters.unshift(t):be.prefilters.push(t)}}),S.speed=function(t,e,n){var r=t&&"object"==typeof t?S.extend({},t):{complete:n||!n&&e||y(t)&&t,duration:t,easing:n&&e||e&&!y(e)&&e};return S.fx.off?r.duration=0:"number"!=typeof r.duration&&(r.duration in S.fx.speeds?r.duration=S.fx.speeds[r.duration]:r.duration=S.fx.speeds._default),null!=r.queue&&!0!==r.queue||(r.queue="fx"),r.old=r.complete,r.complete=function(){y(r.old)&&r.old.call(this),r.queue&&S.dequeue(this,r.queue)},r},S.fn.extend({fadeTo:function(t,e,n,r){return this.filter(vt).css("opacity",0).show().end().animate({opacity:e},t,n,r)},animate:function(t,e,n,r){var i=S.isEmptyObject(t),s=S.speed(e,n,r),o=function(){var e=be(this,S.extend({},t),s);(i||at.get(this,"finish"))&&e.stop(!0)};return o.finish=o,i||!1===s.queue?this.each(o):this.queue(s.queue,o)},stop:function(t,e,n){var r=function(t){var e=t.stop;delete t.stop,e(n)};return"string"!=typeof t&&(n=e,e=t,t=void 0),e&&this.queue(t||"fx",[]),this.each(function(){var e=!0,i=null!=t&&t+"queueHooks",s=S.timers,o=at.get(this);if(i)o[i]&&o[i].stop&&r(o[i]);else for(i in o)o[i]&&o[i].stop&&me.test(i)&&r(o[i]);for(i=s.length;i--;)s[i].elem!==this||null!=t&&s[i].queue!==t||(s[i].anim.stop(n),e=!1,s.splice(i,1));!e&&n||S.dequeue(this,t)})},finish:function(t){return!1!==t&&(t=t||"fx"),this.each(function(){var e,n=at.get(this),r=n[t+"queue"],i=n[t+"queueHooks"],s=S.timers,o=r?r.length:0;for(n.finish=!0,S.queue(this,t,[]),i&&i.stop&&i.stop.call(this,!0),e=s.length;e--;)s[e].elem===this&&s[e].queue===t&&(s[e].anim.stop(!0),s.splice(e,1));for(e=0;e<o;e++)r[e]&&r[e].finish&&r[e].finish.call(this);delete n.finish})}}),S.each(["toggle","show","hide"],function(t,e){var n=S.fn[e];S.fn[e]=function(t,r,i){return null==t||"boolean"==typeof t?n.apply(this,arguments):this.animate(ve(e,!0),t,r,i)}}),S.each({slideDown:ve("show"),slideUp:ve("hide"),slideToggle:ve("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(t,e){S.fn[t]=function(t,n,r){return this.animate(e,t,n,r)}}),S.timers=[],S.fx.tick=function(){var t,e=0,n=S.timers;for(fe=Date.now();e<n.length;e++)(t=n[e])()||n[e]!==t||n.splice(e--,1);n.length||S.fx.stop(),fe=void 0},S.fx.timer=function(t){S.timers.push(t),S.fx.start()},S.fx.interval=13,S.fx.start=function(){de||(de=!0,ge())},S.fx.stop=function(){de=null},S.fx.speeds={slow:600,fast:200,_default:400},S.fn.delay=function(t,e){return t=S.fx&&S.fx.speeds[t]||t,e=e||"fx",this.queue(e,function(e,n){var i=r.setTimeout(e,t);n.stop=function(){r.clearTimeout(i)}})},function(){var t=w.createElement("input"),e=w.createElement("select").appendChild(w.createElement("option"));t.type="checkbox",g.checkOn=""!==t.value,g.optSelected=e.selected,(t=w.createElement("input")).value="t",t.type="radio",g.radioValue="t"===t.value}();var xe,_e=S.expr.attrHandle;S.fn.extend({attr:function(t,e){return tt(this,S.attr,t,e,arguments.length>1)},removeAttr:function(t){return this.each(function(){S.removeAttr(this,t)})}}),S.extend({attr:function(t,e,n){var r,i,s=t.nodeType;if(3!==s&&8!==s&&2!==s)return void 0===t.getAttribute?S.prop(t,e,n):(1===s&&S.isXMLDoc(t)||(i=S.attrHooks[e.toLowerCase()]||(S.expr.match.bool.test(e)?xe:void 0)),void 0!==n?null===n?void S.removeAttr(t,e):i&&"set"in i&&void 0!==(r=i.set(t,n,e))?r:(t.setAttribute(e,n+""),n):i&&"get"in i&&null!==(r=i.get(t,e))?r:null==(r=S.find.attr(t,e))?void 0:r)},attrHooks:{type:{set:function(t,e){if(!g.radioValue&&"radio"===e&&C(t,"input")){var n=t.value;return t.setAttribute("type",e),n&&(t.value=n),e}}}},removeAttr:function(t,e){var n,r=0,i=e&&e.match(X);if(i&&1===t.nodeType)for(;n=i[r++];)t.removeAttribute(n)}}),xe={set:function(t,e,n){return!1===e?S.removeAttr(t,n):t.setAttribute(n,n),n}},S.each(S.expr.match.bool.source.match(/\w+/g),function(t,e){var n=_e[e]||S.find.attr;_e[e]=function(t,e,r){var i,s,o=e.toLowerCase();return r||(s=_e[o],_e[o]=i,i=null!=n(t,e,r)?o:null,_e[o]=s),i}});var Ne=/^(?:input|select|textarea|button)$/i,ke=/^(?:a|area)$/i;function Se(t){return(t.match(X)||[]).join(" ")}function Me(t){return t.getAttribute&&t.getAttribute("class")||""}function Ce(t){return Array.isArray(t)?t:"string"==typeof t&&t.match(X)||[]}S.fn.extend({prop:function(t,e){return tt(this,S.prop,t,e,arguments.length>1)},removeProp:function(t){return this.each(function(){delete this[S.propFix[t]||t]})}}),S.extend({prop:function(t,e,n){var r,i,s=t.nodeType;if(3!==s&&8!==s&&2!==s)return 1===s&&S.isXMLDoc(t)||(e=S.propFix[e]||e,i=S.propHooks[e]),void 0!==n?i&&"set"in i&&void 0!==(r=i.set(t,n,e))?r:t[e]=n:i&&"get"in i&&null!==(r=i.get(t,e))?r:t[e]},propHooks:{tabIndex:{get:function(t){var e=S.find.attr(t,"tabindex");return e?parseInt(e,10):Ne.test(t.nodeName)||ke.test(t.nodeName)&&t.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),g.optSelected||(S.propHooks.selected={get:function(t){var e=t.parentNode;return e&&e.parentNode&&e.parentNode.selectedIndex,null},set:function(t){var e=t.parentNode;e&&(e.selectedIndex,e.parentNode&&e.parentNode.selectedIndex)}}),S.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){S.propFix[this.toLowerCase()]=this}),S.fn.extend({addClass:function(t){var e,n,r,i,s,o;return y(t)?this.each(function(e){S(this).addClass(t.call(this,e,Me(this)))}):(e=Ce(t)).length?this.each(function(){if(r=Me(this),n=1===this.nodeType&&" "+Se(r)+" "){for(s=0;s<e.length;s++)i=e[s],n.indexOf(" "+i+" ")<0&&(n+=i+" ");o=Se(n),r!==o&&this.setAttribute("class",o)}}):this},removeClass:function(t){var e,n,r,i,s,o;return y(t)?this.each(function(e){S(this).removeClass(t.call(this,e,Me(this)))}):arguments.length?(e=Ce(t)).length?this.each(function(){if(r=Me(this),n=1===this.nodeType&&" "+Se(r)+" "){for(s=0;s<e.length;s++)for(i=e[s];n.indexOf(" "+i+" ")>-1;)n=n.replace(" "+i+" "," ");o=Se(n),r!==o&&this.setAttribute("class",o)}}):this:this.attr("class","")},toggleClass:function(t,e){var n,r,i,s,o=typeof t,a="string"===o||Array.isArray(t);return y(t)?this.each(function(n){S(this).toggleClass(t.call(this,n,Me(this),e),e)}):"boolean"==typeof e&&a?e?this.addClass(t):this.removeClass(t):(n=Ce(t),this.each(function(){if(a)for(s=S(this),i=0;i<n.length;i++)r=n[i],s.hasClass(r)?s.removeClass(r):s.addClass(r);else void 0!==t&&"boolean"!==o||((r=Me(this))&&at.set(this,"__className__",r),this.setAttribute&&this.setAttribute("class",r||!1===t?"":at.get(this,"__className__")||""))}))},hasClass:function(t){var e,n,r=0;for(e=" "+t+" ";n=this[r++];)if(1===n.nodeType&&(" "+Se(Me(n))+" ").indexOf(e)>-1)return!0;return!1}});var Ae=/\r/g;S.fn.extend({val:function(t){var e,n,r,i=this[0];return arguments.length?(r=y(t),this.each(function(n){var i;1===this.nodeType&&(null==(i=r?t.call(this,n,S(this).val()):t)?i="":"number"==typeof i?i+="":Array.isArray(i)&&(i=S.map(i,function(t){return null==t?"":t+""})),(e=S.valHooks[this.type]||S.valHooks[this.nodeName.toLowerCase()])&&"set"in e&&void 0!==e.set(this,i,"value")||(this.value=i))})):i?(e=S.valHooks[i.type]||S.valHooks[i.nodeName.toLowerCase()])&&"get"in e&&void 0!==(n=e.get(i,"value"))?n:"string"==typeof(n=i.value)?n.replace(Ae,""):null==n?"":n:void 0}}),S.extend({valHooks:{option:{get:function(t){var e=S.find.attr(t,"value");return null!=e?e:Se(S.text(t))}},select:{get:function(t){var e,n,r,i=t.options,s=t.selectedIndex,o="select-one"===t.type,a=o?null:[],u=o?s+1:i.length;for(r=s<0?u:o?s:0;r<u;r++)if(((n=i[r]).selected||r===s)&&!n.disabled&&(!n.parentNode.disabled||!C(n.parentNode,"optgroup"))){if(e=S(n).val(),o)return e;a.push(e)}return a},set:function(t,e){for(var n,r,i=t.options,s=S.makeArray(e),o=i.length;o--;)((r=i[o]).selected=S.inArray(S.valHooks.option.get(r),s)>-1)&&(n=!0);return n||(t.selectedIndex=-1),s}}}}),S.each(["radio","checkbox"],function(){S.valHooks[this]={set:function(t,e){if(Array.isArray(e))return t.checked=S.inArray(S(t).val(),e)>-1}},g.checkOn||(S.valHooks[this].get=function(t){return null===t.getAttribute("value")?"on":t.value})});var Ee=r.location,Te={guid:Date.now()},Oe=/\?/;S.parseXML=function(t){var e,n;if(!t||"string"!=typeof t)return null;try{e=(new r.DOMParser).parseFromString(t,"text/xml")}catch(t){}return n=e&&e.getElementsByTagName("parsererror")[0],e&&!n||S.error("Invalid XML: "+(n?S.map(n.childNodes,function(t){return t.textContent}).join("\n"):t)),e};var Le=/^(?:focusinfocus|focusoutblur)$/,je=function(t){t.stopPropagation()};S.extend(S.event,{trigger:function(t,e,n,i){var s,o,a,u,h,l,c,f,p=[n||w],m=d.call(t,"type")?t.type:t,g=d.call(t,"namespace")?t.namespace.split("."):[];if(o=f=a=n=n||w,3!==n.nodeType&&8!==n.nodeType&&!Le.test(m+S.event.triggered)&&(m.indexOf(".")>-1&&(g=m.split("."),m=g.shift(),g.sort()),h=m.indexOf(":")<0&&"on"+m,(t=t[S.expando]?t:new S.Event(m,"object"==typeof t&&t)).isTrigger=i?2:3,t.namespace=g.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+g.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=n),e=null==e?[t]:S.makeArray(e,[t]),c=S.event.special[m]||{},i||!c.trigger||!1!==c.trigger.apply(n,e))){if(!i&&!c.noBubble&&!v(n)){for(u=c.delegateType||m,Le.test(u+m)||(o=o.parentNode);o;o=o.parentNode)p.push(o),a=o;a===(n.ownerDocument||w)&&p.push(a.defaultView||a.parentWindow||r)}for(s=0;(o=p[s++])&&!t.isPropagationStopped();)f=o,t.type=s>1?u:c.bindType||m,(l=(at.get(o,"events")||Object.create(null))[t.type]&&at.get(o,"handle"))&&l.apply(o,e),(l=h&&o[h])&&l.apply&&st(o)&&(t.result=l.apply(o,e),!1===t.result&&t.preventDefault());return t.type=m,i||t.isDefaultPrevented()||c._default&&!1!==c._default.apply(p.pop(),e)||!st(n)||h&&y(n[m])&&!v(n)&&((a=n[h])&&(n[h]=null),S.event.triggered=m,t.isPropagationStopped()&&f.addEventListener(m,je),n[m](),t.isPropagationStopped()&&f.removeEventListener(m,je),S.event.triggered=void 0,a&&(n[h]=a)),t.result}},simulate:function(t,e,n){var r=S.extend(new S.Event,n,{type:t,isSimulated:!0});S.event.trigger(r,null,e)}}),S.fn.extend({trigger:function(t,e){return this.each(function(){S.event.trigger(t,e,this)})},triggerHandler:function(t,e){var n=this[0];if(n)return S.event.trigger(t,e,n,!0)}});var We=/\[\]$/,Pe=/\r?\n/g,De=/^(?:submit|button|image|reset|file)$/i,Be=/^(?:input|select|textarea|keygen)/i;function Ie(t,e,n,r){var i;if(Array.isArray(e))S.each(e,function(e,i){n||We.test(t)?r(t,i):Ie(t+"["+("object"==typeof i&&null!=i?e:"")+"]",i,n,r)});else if(n||"object"!==_(e))r(t,e);else for(i in e)Ie(t+"["+i+"]",e[i],n,r)}S.param=function(t,e){var n,r=[],i=function(t,e){var n=y(e)?e():e;r[r.length]=encodeURIComponent(t)+"="+encodeURIComponent(null==n?"":n)};if(null==t)return"";if(Array.isArray(t)||t.jquery&&!S.isPlainObject(t))S.each(t,function(){i(this.name,this.value)});else for(n in t)Ie(n,t[n],e,i);return r.join("&")},S.fn.extend({serialize:function(){return S.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var t=S.prop(this,"elements");return t?S.makeArray(t):this}).filter(function(){var t=this.type;return this.name&&!S(this).is(":disabled")&&Be.test(this.nodeName)&&!De.test(t)&&(this.checked||!St.test(t))}).map(function(t,e){var n=S(this).val();return null==n?null:Array.isArray(n)?S.map(n,function(t){return{name:e.name,value:t.replace(Pe,"\r\n")}}):{name:e.name,value:n.replace(Pe,"\r\n")}}).get()}});var Re=/%20/g,ze=/#.*$/,Fe=/([?&])_=[^&]*/,qe=/^(.*?):[ \t]*([^\r\n]*)$/gm,Ue=/^(?:GET|HEAD)$/,Ve=/^\/\//,Ge={},He={},Xe="*/".concat("*"),Ye=w.createElement("a");function $e(t){return function(e,n){"string"!=typeof e&&(n=e,e="*");var r,i=0,s=e.toLowerCase().match(X)||[];if(y(n))for(;r=s[i++];)"+"===r[0]?(r=r.slice(1)||"*",(t[r]=t[r]||[]).unshift(n)):(t[r]=t[r]||[]).push(n)}}function Qe(t,e,n,r){var i={},s=t===He;function o(a){var u;return i[a]=!0,S.each(t[a]||[],function(t,a){var h=a(e,n,r);return"string"!=typeof h||s||i[h]?s?!(u=h):void 0:(e.dataTypes.unshift(h),o(h),!1)}),u}return o(e.dataTypes[0])||!i["*"]&&o("*")}function Ze(t,e){var n,r,i=S.ajaxSettings.flatOptions||{};for(n in e)void 0!==e[n]&&((i[n]?t:r||(r={}))[n]=e[n]);return r&&S.extend(!0,t,r),t}Ye.href=Ee.href,S.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Ee.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(Ee.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Xe,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":S.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(t,e){return e?Ze(Ze(t,S.ajaxSettings),e):Ze(S.ajaxSettings,t)},ajaxPrefilter:$e(Ge),ajaxTransport:$e(He),ajax:function(t,e){"object"==typeof t&&(e=t,t=void 0),e=e||{};var n,i,s,o,a,u,h,l,c,f,d=S.ajaxSetup({},e),p=d.context||d,m=d.context&&(p.nodeType||p.jquery)?S(p):S.event,g=S.Deferred(),y=S.Callbacks("once memory"),v=d.statusCode||{},b={},x={},_="canceled",N={readyState:0,getResponseHeader:function(t){var e;if(h){if(!o)for(o={};e=qe.exec(s);)o[e[1].toLowerCase()+" "]=(o[e[1].toLowerCase()+" "]||[]).concat(e[2]);e=o[t.toLowerCase()+" "]}return null==e?null:e.join(", ")},getAllResponseHeaders:function(){return h?s:null},setRequestHeader:function(t,e){return null==h&&(t=x[t.toLowerCase()]=x[t.toLowerCase()]||t,b[t]=e),this},overrideMimeType:function(t){return null==h&&(d.mimeType=t),this},statusCode:function(t){var e;if(t)if(h)N.always(t[N.status]);else for(e in t)v[e]=[v[e],t[e]];return this},abort:function(t){var e=t||_;return n&&n.abort(e),k(0,e),this}};if(g.promise(N),d.url=((t||d.url||Ee.href)+"").replace(Ve,Ee.protocol+"//"),d.type=e.method||e.type||d.method||d.type,d.dataTypes=(d.dataType||"*").toLowerCase().match(X)||[""],null==d.crossDomain){u=w.createElement("a");try{u.href=d.url,u.href=u.href,d.crossDomain=Ye.protocol+"//"+Ye.host!=u.protocol+"//"+u.host}catch(t){d.crossDomain=!0}}if(d.data&&d.processData&&"string"!=typeof d.data&&(d.data=S.param(d.data,d.traditional)),Qe(Ge,d,e,N),h)return N;for(c in(l=S.event&&d.global)&&0===S.active++&&S.event.trigger("ajaxStart"),d.type=d.type.toUpperCase(),d.hasContent=!Ue.test(d.type),i=d.url.replace(ze,""),d.hasContent?d.data&&d.processData&&0===(d.contentType||"").indexOf("application/x-www-form-urlencoded")&&(d.data=d.data.replace(Re,"+")):(f=d.url.slice(i.length),d.data&&(d.processData||"string"==typeof d.data)&&(i+=(Oe.test(i)?"&":"?")+d.data,delete d.data),!1===d.cache&&(i=i.replace(Fe,"$1"),f=(Oe.test(i)?"&":"?")+"_="+Te.guid+++f),d.url=i+f),d.ifModified&&(S.lastModified[i]&&N.setRequestHeader("If-Modified-Since",S.lastModified[i]),S.etag[i]&&N.setRequestHeader("If-None-Match",S.etag[i])),(d.data&&d.hasContent&&!1!==d.contentType||e.contentType)&&N.setRequestHeader("Content-Type",d.contentType),N.setRequestHeader("Accept",d.dataTypes[0]&&d.accepts[d.dataTypes[0]]?d.accepts[d.dataTypes[0]]+("*"!==d.dataTypes[0]?", "+Xe+"; q=0.01":""):d.accepts["*"]),d.headers)N.setRequestHeader(c,d.headers[c]);if(d.beforeSend&&(!1===d.beforeSend.call(p,N,d)||h))return N.abort();if(_="abort",y.add(d.complete),N.done(d.success),N.fail(d.error),n=Qe(He,d,e,N)){if(N.readyState=1,l&&m.trigger("ajaxSend",[N,d]),h)return N;d.async&&d.timeout>0&&(a=r.setTimeout(function(){N.abort("timeout")},d.timeout));try{h=!1,n.send(b,k)}catch(t){if(h)throw t;k(-1,t)}}else k(-1,"No Transport");function k(t,e,o,u){var c,f,w,b,x,_=e;h||(h=!0,a&&r.clearTimeout(a),n=void 0,s=u||"",N.readyState=t>0?4:0,c=t>=200&&t<300||304===t,o&&(b=function(t,e,n){for(var r,i,s,o,a=t.contents,u=t.dataTypes;"*"===u[0];)u.shift(),void 0===r&&(r=t.mimeType||e.getResponseHeader("Content-Type"));if(r)for(i in a)if(a[i]&&a[i].test(r)){u.unshift(i);break}if(u[0]in n)s=u[0];else{for(i in n){if(!u[0]||t.converters[i+" "+u[0]]){s=i;break}o||(o=i)}s=s||o}if(s)return s!==u[0]&&u.unshift(s),n[s]}(d,N,o)),!c&&S.inArray("script",d.dataTypes)>-1&&S.inArray("json",d.dataTypes)<0&&(d.converters["text script"]=function(){}),b=function(t,e,n,r){var i,s,o,a,u,h={},l=t.dataTypes.slice();if(l[1])for(o in t.converters)h[o.toLowerCase()]=t.converters[o];for(s=l.shift();s;)if(t.responseFields[s]&&(n[t.responseFields[s]]=e),!u&&r&&t.dataFilter&&(e=t.dataFilter(e,t.dataType)),u=s,s=l.shift())if("*"===s)s=u;else if("*"!==u&&u!==s){if(!(o=h[u+" "+s]||h["* "+s]))for(i in h)if((a=i.split(" "))[1]===s&&(o=h[u+" "+a[0]]||h["* "+a[0]])){!0===o?o=h[i]:!0!==h[i]&&(s=a[0],l.unshift(a[1]));break}if(!0!==o)if(o&&t.throws)e=o(e);else try{e=o(e)}catch(t){return{state:"parsererror",error:o?t:"No conversion from "+u+" to "+s}}}return{state:"success",data:e}}(d,b,N,c),c?(d.ifModified&&((x=N.getResponseHeader("Last-Modified"))&&(S.lastModified[i]=x),(x=N.getResponseHeader("etag"))&&(S.etag[i]=x)),204===t||"HEAD"===d.type?_="nocontent":304===t?_="notmodified":(_=b.state,f=b.data,c=!(w=b.error))):(w=_,!t&&_||(_="error",t<0&&(t=0))),N.status=t,N.statusText=(e||_)+"",c?g.resolveWith(p,[f,_,N]):g.rejectWith(p,[N,_,w]),N.statusCode(v),v=void 0,l&&m.trigger(c?"ajaxSuccess":"ajaxError",[N,d,c?f:w]),y.fireWith(p,[N,_]),l&&(m.trigger("ajaxComplete",[N,d]),--S.active||S.event.trigger("ajaxStop")))}return N},getJSON:function(t,e,n){return S.get(t,e,n,"json")},getScript:function(t,e){return S.get(t,void 0,e,"script")}}),S.each(["get","post"],function(t,e){S[e]=function(t,n,r,i){return y(n)&&(i=i||r,r=n,n=void 0),S.ajax(S.extend({url:t,type:e,dataType:i,data:n,success:r},S.isPlainObject(t)&&t))}}),S.ajaxPrefilter(function(t){var e;for(e in t.headers)"content-type"===e.toLowerCase()&&(t.contentType=t.headers[e]||"")}),S._evalUrl=function(t,e,n){return S.ajax({url:t,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(t){S.globalEval(t,e,n)}})},S.fn.extend({wrapAll:function(t){var e;return this[0]&&(y(t)&&(t=t.call(this[0])),e=S(t,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&e.insertBefore(this[0]),e.map(function(){for(var t=this;t.firstElementChild;)t=t.firstElementChild;return t}).append(this)),this},wrapInner:function(t){return y(t)?this.each(function(e){S(this).wrapInner(t.call(this,e))}):this.each(function(){var e=S(this),n=e.contents();n.length?n.wrapAll(t):e.append(t)})},wrap:function(t){var e=y(t);return this.each(function(n){S(this).wrapAll(e?t.call(this,n):t)})},unwrap:function(t){return this.parent(t).not("body").each(function(){S(this).replaceWith(this.childNodes)}),this}}),S.expr.pseudos.hidden=function(t){return!S.expr.pseudos.visible(t)},S.expr.pseudos.visible=function(t){return!!(t.offsetWidth||t.offsetHeight||t.getClientRects().length)},S.ajaxSettings.xhr=function(){try{return new r.XMLHttpRequest}catch(t){}};var Je={0:200,1223:204},Ke=S.ajaxSettings.xhr();g.cors=!!Ke&&"withCredentials"in Ke,g.ajax=Ke=!!Ke,S.ajaxTransport(function(t){var e,n;if(g.cors||Ke&&!t.crossDomain)return{send:function(i,s){var o,a=t.xhr();if(a.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(o in t.xhrFields)a[o]=t.xhrFields[o];for(o in t.mimeType&&a.overrideMimeType&&a.overrideMimeType(t.mimeType),t.crossDomain||i["X-Requested-With"]||(i["X-Requested-With"]="XMLHttpRequest"),i)a.setRequestHeader(o,i[o]);e=function(t){return function(){e&&(e=n=a.onload=a.onerror=a.onabort=a.ontimeout=a.onreadystatechange=null,"abort"===t?a.abort():"error"===t?"number"!=typeof a.status?s(0,"error"):s(a.status,a.statusText):s(Je[a.status]||a.status,a.statusText,"text"!==(a.responseType||"text")||"string"!=typeof a.responseText?{binary:a.response}:{text:a.responseText},a.getAllResponseHeaders()))}},a.onload=e(),n=a.onerror=a.ontimeout=e("error"),void 0!==a.onabort?a.onabort=n:a.onreadystatechange=function(){4===a.readyState&&r.setTimeout(function(){e&&n()})},e=e("abort");try{a.send(t.hasContent&&t.data||null)}catch(t){if(e)throw t}},abort:function(){e&&e()}}}),S.ajaxPrefilter(function(t){t.crossDomain&&(t.contents.script=!1)}),S.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(t){return S.globalEval(t),t}}}),S.ajaxPrefilter("script",function(t){void 0===t.cache&&(t.cache=!1),t.crossDomain&&(t.type="GET")}),S.ajaxTransport("script",function(t){var e,n;if(t.crossDomain||t.scriptAttrs)return{send:function(r,i){e=S("<script>").attr(t.scriptAttrs||{}).prop({charset:t.scriptCharset,src:t.url}).on("load error",n=function(t){e.remove(),n=null,t&&i("error"===t.type?404:200,t.type)}),w.head.appendChild(e[0])},abort:function(){n&&n()}}});var tn,en=[],nn=/(=)\?(?=&|$)|\?\?/;S.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var t=en.pop()||S.expando+"_"+Te.guid++;return this[t]=!0,t}}),S.ajaxPrefilter("json jsonp",function(t,e,n){var i,s,o,a=!1!==t.jsonp&&(nn.test(t.url)?"url":"string"==typeof t.data&&0===(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&nn.test(t.data)&&"data");if(a||"jsonp"===t.dataTypes[0])return i=t.jsonpCallback=y(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,a?t[a]=t[a].replace(nn,"$1"+i):!1!==t.jsonp&&(t.url+=(Oe.test(t.url)?"&":"?")+t.jsonp+"="+i),t.converters["script json"]=function(){return o||S.error(i+" was not called"),o[0]},t.dataTypes[0]="json",s=r[i],r[i]=function(){o=arguments},n.always(function(){void 0===s?S(r).removeProp(i):r[i]=s,t[i]&&(t.jsonpCallback=e.jsonpCallback,en.push(i)),o&&y(s)&&s(o[0]),o=s=void 0}),"script"}),g.createHTMLDocument=((tn=w.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===tn.childNodes.length),S.parseHTML=function(t,e,n){return"string"!=typeof t?[]:("boolean"==typeof e&&(n=e,e=!1),e||(g.createHTMLDocument?((r=(e=w.implementation.createHTMLDocument("")).createElement("base")).href=w.location.href,e.head.appendChild(r)):e=w),s=!n&&[],(i=z.exec(t))?[e.createElement(i[1])]:(i=Lt([t],e,s),s&&s.length&&S(s).remove(),S.merge([],i.childNodes)));var r,i,s},S.fn.load=function(t,e,n){var r,i,s,o=this,a=t.indexOf(" ");return a>-1&&(r=Se(t.slice(a)),t=t.slice(0,a)),y(e)?(n=e,e=void 0):e&&"object"==typeof e&&(i="POST"),o.length>0&&S.ajax({url:t,type:i||"GET",dataType:"html",data:e}).done(function(t){s=arguments,o.html(r?S("<div>").append(S.parseHTML(t)).find(r):t)}).always(n&&function(t,e){o.each(function(){n.apply(this,s||[t.responseText,e,t])})}),this},S.expr.pseudos.animated=function(t){return S.grep(S.timers,function(e){return t===e.elem}).length},S.offset={setOffset:function(t,e,n){var r,i,s,o,a,u,h=S.css(t,"position"),l=S(t),c={};"static"===h&&(t.style.position="relative"),a=l.offset(),s=S.css(t,"top"),u=S.css(t,"left"),("absolute"===h||"fixed"===h)&&(s+u).indexOf("auto")>-1?(o=(r=l.position()).top,i=r.left):(o=parseFloat(s)||0,i=parseFloat(u)||0),y(e)&&(e=e.call(t,n,S.extend({},a))),null!=e.top&&(c.top=e.top-a.top+o),null!=e.left&&(c.left=e.left-a.left+i),"using"in e?e.using.call(t,c):l.css(c)}},S.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(e){S.offset.setOffset(this,t,e)});var e,n,r=this[0];return r?r.getClientRects().length?(e=r.getBoundingClientRect(),n=r.ownerDocument.defaultView,{top:e.top+n.pageYOffset,left:e.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var t,e,n,r=this[0],i={top:0,left:0};if("fixed"===S.css(r,"position"))e=r.getBoundingClientRect();else{for(e=this.offset(),n=r.ownerDocument,t=r.offsetParent||n.documentElement;t&&(t===n.body||t===n.documentElement)&&"static"===S.css(t,"position");)t=t.parentNode;t&&t!==r&&1===t.nodeType&&((i=S(t).offset()).top+=S.css(t,"borderTopWidth",!0),i.left+=S.css(t,"borderLeftWidth",!0))}return{top:e.top-i.top-S.css(r,"marginTop",!0),left:e.left-i.left-S.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var t=this.offsetParent;t&&"static"===S.css(t,"position");)t=t.offsetParent;return t||mt})}}),S.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,e){var n="pageYOffset"===e;S.fn[t]=function(r){return tt(this,function(t,r,i){var s;if(v(t)?s=t:9===t.nodeType&&(s=t.defaultView),void 0===i)return s?s[e]:t[r];s?s.scrollTo(n?s.pageXOffset:i,n?i:s.pageYOffset):t[r]=i},t,r,arguments.length)}}),S.each(["top","left"],function(t,e){S.cssHooks[e]=te(g.pixelPosition,function(t,n){if(n)return n=Kt(t,e),Yt.test(n)?S(t).position()[e]+"px":n})}),S.each({Height:"height",Width:"width"},function(t,e){S.each({padding:"inner"+t,content:e,"":"outer"+t},function(n,r){S.fn[r]=function(i,s){var o=arguments.length&&(n||"boolean"!=typeof i),a=n||(!0===i||!0===s?"margin":"border");return tt(this,function(e,n,i){var s;return v(e)?0===r.indexOf("outer")?e["inner"+t]:e.document.documentElement["client"+t]:9===e.nodeType?(s=e.documentElement,Math.max(e.body["scroll"+t],s["scroll"+t],e.body["offset"+t],s["offset"+t],s["client"+t])):void 0===i?S.css(e,n,a):S.style(e,n,i,a)},e,o?i:void 0,o)}})}),S.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(t,e){S.fn[e]=function(t){return this.on(e,t)}}),S.fn.extend({bind:function(t,e,n){return this.on(t,null,e,n)},unbind:function(t,e){return this.off(t,null,e)},delegate:function(t,e,n,r){return this.on(e,t,n,r)},undelegate:function(t,e,n){return 1===arguments.length?this.off(t,"**"):this.off(e,t||"**",n)},hover:function(t,e){return this.on("mouseenter",t).on("mouseleave",e||t)}}),S.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(t,e){S.fn[e]=function(t,n){return arguments.length>0?this.on(e,null,t,n):this.trigger(e)}});var rn=/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;S.proxy=function(t,e){var n,r,i;if("string"==typeof e&&(n=t[e],e=t,t=n),y(t))return r=a.call(arguments,2),i=function(){return t.apply(e||this,r.concat(a.call(arguments)))},i.guid=t.guid=t.guid||S.guid++,i},S.holdReady=function(t){t?S.readyWait++:S.ready(!0)},S.isArray=Array.isArray,S.parseJSON=JSON.parse,S.nodeName=C,S.isFunction=y,S.isWindow=v,S.camelCase=it,S.type=_,S.now=Date.now,S.isNumeric=function(t){var e=S.type(t);return("number"===e||"string"===e)&&!isNaN(t-parseFloat(t))},S.trim=function(t){return null==t?"":(t+"").replace(rn,"$1")},void 0===(n=function(){return S}.apply(e,[]))||(t.exports=n);var sn=r.jQuery,on=r.$;return S.noConflict=function(t){return r.$===S&&(r.$=on),t&&r.jQuery===S&&(r.jQuery=sn),S},void 0===i&&(r.jQuery=r.$=S),S})},704:function(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 u=t[a],h=r.base?u[0]+r.base:u[0],l=s[h]||0,c="".concat(h," ").concat(l);s[h]=l+1;var f=n(c),d={css:u[1],media:u[2],sourceMap:u[3],supports:u[4],layer:u[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 u=r(t,i),h=0;h<s.length;h++){var l=n(s[h]);0===e[l].references&&(e[l].updater(),e.splice(l,1))}s=u}}},113:t=>{"use strict";t.exports=function(t,e){if(e.styleSheet)e.styleSheet.cssText=t;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(t))}}},314:t=>{"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map(function(e){var n="",r=void 0!==e[5];return e[4]&&(n+="@supports (".concat(e[4],") {")),e[2]&&(n+="@media ".concat(e[2]," {")),r&&(n+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),n+=t(e),r&&(n+="}"),e[2]&&(n+="}"),e[4]&&(n+="}"),n}).join("")},e.i=function(t,n,r,i,s){"string"==typeof t&&(t=[[null,t,void 0]]);var o={};if(r)for(var a=0;a<this.length;a++){var u=this[a][0];null!=u&&(o[u]=!0)}for(var h=0;h<t.length;h++){var l=[].concat(t[h]);r&&o[l[0]]||(void 0!==s&&(void 0===l[5]||(l[1]="@layer".concat(l[5].length>0?" ".concat(l[5]):""," {").concat(l[1],"}")),l[5]=s),n&&(l[2]?(l[1]="@media ".concat(l[2]," {").concat(l[1],"}"),l[2]=n):l[2]=n),i&&(l[4]?(l[1]="@supports (".concat(l[4],") {").concat(l[1],"}"),l[4]=i):l[4]="".concat(i)),e.push(l))}},e}},540:t=>{"use strict";t.exports=function(t){var e=document.createElement("style");return t.setAttributes(e,t.attributes),t.insert(e,t.options),e}},601:t=>{"use strict";t.exports=function(t){return t[1]}},645:function(t){var e;e=()=>(()=>{var t={986:function(t){t.exports=(()=>{"use strict";var t={d:(e,n)=>{for(var r in n)t.o(n,r)&&!t.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:n[r]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r:t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}},e={};function n(t){var e=0;return t.forEach(function(t){return e+=t}),e}function r(t){return n(t)/t.length}function i(t){t.sort(function(t,e){return t-e})}t.r(e),t.d(e,{areWithin:()=>d,average:()=>r,clamp:()=>f,degrees:()=>g,flipAway:()=>w,isBetween:()=>l,isBetweenExclusive:()=>c,isBetweenInclusive:()=>l,max:()=>h,mean:()=>r,median:()=>a,min:()=>u,normalizeAngle:()=>v,radians:()=>y,sortNumbers:()=>i,sortNumbersAscending:()=>i,sortNumbersDescending:()=>p,sortedNumbers:()=>o,sortedNumbersAscending:()=>o,sortedNumbersDescending:()=>m,sum:()=>n});var s=function(t,e,n){if(n||2===arguments.length)for(var r,i=0,s=e.length;i<s;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))};function o(t){var e=s([],t,!0);return i(e),e}function a(t){if(0==t.length)return NaN;var e=o(t);if(e.length%2!=0)return e[Math.floor(e.length/2)];var n=e.length/2,i=n-1;return r([e[n],e[i]])}function u(t){if(0==t.length)return 1/0;var e=t[0];return t.slice(1).forEach(function(t){e=Math.min(e,t)}),e}function h(t){if(0==t.length)return-1/0;var e=t[0];return t.slice(1).forEach(function(t){e=Math.max(e,t)}),e}function l(t,e,n){return t>=e&&t<=n}function c(t,e,n){return t>e&&t<n}function f(t,e,n){return t<e?e:t>n?n:t}function d(t,e,n){return Math.abs(t-e)<=n}function p(t){i(t),t.reverse()}function m(t){var e=o(t);return e.reverse(),e}function g(t){return t*(180/Math.PI)}function y(t){return t*(Math.PI/180)}function v(t,e){void 0===e&&(e=-Math.PI);var n=t-e;return e+((n%=2*Math.PI)>=0?n:n+2*Math.PI)}function w(t,e){var n=(e=v(e,t))-t;return(n<Math.PI/2||n>3*Math.PI/2)&&(t+=Math.PI),t}return e})()}},e={};function n(r){var i=e[r];if(void 0!==i)return i.exports;var s=e[r]={exports:{}};return t[r].call(s.exports,s,s.exports,n),s.exports}n.d=(t,e)=>{for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var r={};return(()=>{"use strict";n.r(r),n.d(r,{Box:()=>e});var t=n(986);class e{static bounding(n){let r=n.map(t=>e.matching(t)),i=(0,t.min)(r.map(t=>t.left)),s=(0,t.min)(r.map(t=>t.top)),o=(0,t.max)(r.map(t=>t.right))-i,a=(0,t.max)(r.map(t=>t.bottom))-s;return new e(i,s,o,a)}static matching(t){let{x:n,y:r,width:i,height:s}=t;return new e(n,r,i,s)}constructor(t,e,n,r){this.x=t,this.y=e,this.width=n,this.height=r}get centerX(){return this.minX+this.width/2}get centerY(){return this.minY+this.height/2}get minX(){return this.x}get minY(){return this.y}get maxX(){return this.minX+this.width}get maxY(){return this.minY+this.height}get top(){return this.minY}get right(){return this.maxX}get bottom(){return this.maxY}get left(){return this.minX}isBoundedBy(t){let n=e.matching(t);return this.minX>=n.minX&&this.minY>=n.minY&&this.maxX<=n.maxX&&this.maxY<=n.maxY}padded(t,n){return"number"!=typeof n&&(n=t),new e(this.x-t,this.y-n,this.width+2*t,this.height+2*n)}peripheralPoint(t){let e=this.width/2,n=this.height/2,r=Math.pow(Math.pow(e,2)+Math.pow(n,2),.5),i=this.centerX+r*Math.cos(t),s=this.centerY+r*Math.sin(t),o=r;return Math.abs(this.centerX-i)>e&&(o=Math.abs(e/Math.cos(t)),o=Number.isFinite(o)?o:n),Math.abs(this.centerY-s)>n&&(o=Math.abs(n/Math.sin(t)),o=Number.isFinite(o)?o:e),{x:this.centerX+o*Math.cos(t),y:this.centerY+o*Math.sin(t)}}}})(),r})(),t.exports=e()},659:t=>{"use strict";var e={};t.exports=function(t,n){var r=function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(t){n=null}e[t]=n}return e[t]}(t);if(!r)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");r.appendChild(n)}},825:t=>{"use strict";t.exports=function(t){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var e=t.insertStyleElement(t);return{update:function(n){!function(t,e,n){var r="";n.supports&&(r+="@supports (".concat(n.supports,") {")),n.media&&(r+="@media ".concat(n.media," {"));var i=void 0!==n.layer;i&&(r+="@layer".concat(n.layer.length>0?" ".concat(n.layer):""," {")),r+=n.css,i&&(r+="}"),n.media&&(r+="}"),n.supports&&(r+="}");var s=n.sourceMap;s&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(s))))," */")),e.styleTagTransform(r,t,e.options)}(e,t,n)},remove:function(){!function(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t)}(e)}}}},865:(t,e,n)=>{"use strict";n.d(e,{Ay:()=>c,JJ:()=>l,Qq:()=>u,YL:()=>a,jJ:()=>h});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",u="p5_D557pe0GpEcfAZAWo",h="D8UCSOzbDas70ahLaazC",l="RCKbqYEd_F2wRTu_tJpk";const c=o}},e={};function n(r){var i=e[r];if(void 0!==i)return i.exports;var s=e[r]={id:r,exports:{}};return t[r].call(s.exports,s,s.exports,n),s.exports}n.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.d=(t,e)=>{for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.nc=void 0;var r={};return(()=>{"use strict";n.r(r),n.d(r,{Tooltip:()=>L});var t=n(72),e=n.n(t),i=n(825),s=n.n(i),o=n(659),a=n.n(o),u=n(56),h=n.n(u),l=n(540),c=n.n(l),f=n(113),d=n.n(f),p=n(865),m={};m.styleTagTransform=d(),m.setAttributes=h(),m.insert=a().bind(null,"head"),m.domAPI=s(),m.insertStyleElement=c(),e()(p.Ay,m),p.Ay&&p.Ay.locals&&p.Ay.locals;var g,y,v,w,b,x,_,N,k,S,M,C,A,E=n(645),T=function(t,e,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!r:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(t):r?r.value:e.get(t)},O=function(t,e,n,r,i){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?i.call(t,n):i?i.value=n:e.set(t,n),n};class L{constructor(t){g.add(this),y.set(this,document.createElement("div")),v.set(this,document.createElement("p")),w.set(this,document.createElement("div")),b.set(this,document.createElement("div")),x.set(this,5),_.set(this,0),N.set(this,void 0),k.set(this,()=>{}),S.set(this,()=>{}),T(this,y,"f").classList.add(p.YL),T(this,v,"f").classList.add(p.Qq),T(this,v,"f").textContent=null!=t?t:"",T(this,y,"f").append(T(this,v,"f")),T(this,w,"f").classList.add(p.jJ),T(this,y,"f").append(T(this,w,"f")),T(this,b,"f").classList.add(p.JJ),T(this,y,"f").append(T(this,b,"f"))}get textContent(){return T(this,v,"f").textContent}set textContent(t){let e=!T(this,g,"m",A).call(this);T(this,g,"m",C).call(this),T(this,v,"f").textContent=t,e&&T(this,g,"m",M).call(this)}get owner(){return T(this,N,"f")}set owner(t){T(this,N,"f")&&(T(this,N,"f").removeEventListener("mouseover",T(this,k,"f")),T(this,N,"f").removeEventListener("mouseout",T(this,S,"f"))),O(this,N,t,"f"),t&&(t.addEventListener("mouseover",()=>T(this,g,"m",M).call(this)),t.addEventListener("mouseout",()=>T(this,g,"m",C).call(this)))}get padding(){return T(this,x,"f")}set padding(t){O(this,x,t,"f"),T(this,g,"m",A).call(this)||(T(this,g,"m",C).call(this),T(this,g,"m",M).call(this))}get pointerDisplacement(){return T(this,_,"f")}set pointerDisplacement(t){O(this,_,t,"f"),T(this,g,"m",A).call(this)||(T(this,g,"m",C).call(this),T(this,g,"m",M).call(this))}}y=new WeakMap,v=new WeakMap,w=new WeakMap,b=new WeakMap,x=new WeakMap,_=new WeakMap,N=new WeakMap,k=new WeakMap,S=new WeakMap,g=new WeakSet,M=function(){if(T(this,y,"f").style.left="0px",T(this,y,"f").style.top="0px",T(this,w,"f").style.marginLeft=`${T(this,_,"f")}px`,T(this,b,"f").style.marginLeft=`${T(this,_,"f")}px`,document.body.append(T(this,y,"f")),!T(this,N,"f"))return;let t=T(this,y,"f").getBoundingClientRect().width,e=T(this,v,"f").getBoundingClientRect().height+T(this,w,"f").getBoundingClientRect().height/2-1,n=E.Box.matching(T(this,N,"f").getBoundingClientRect()).padded(T(this,x,"f"));T(this,y,"f").style.left=n.peripheralPoint(3*Math.PI/2).x-t/2-T(this,_,"f")/2+"px",T(this,y,"f").style.top=n.peripheralPoint(3*Math.PI/2).y-e+"px"},C=function(){T(this,y,"f").remove()},A=function(){return!document.body.contains(T(this,y,"f"))}})(),r})(),t.exports=e()},705:(t,e,n)=>{"use strict";n.d(e,{Ay:()=>p,Ol:()=>f,Qs:()=>u,Se:()=>a,eB:()=>d,vM:()=>l,vw:()=>c,yZ:()=>h});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",u="Nc_rMplF2zhIq3zYlKFl",h="UArJtlXrClYUqKvYzpXe",l="rgGEAvKvdVba2DrspkU6",c="mLPVUA5YiyA4OksC17sb",f="pCuHfZ8GeFUaELxeOyqs",d="IhPX3q3sGT4fPIlgUdp1";const p=o},709:(t,e,n)=>{"use strict";n.d(e,{A:()=>u,V:()=>a});var r=n(601),i=n.n(r),s=n(314),o=n.n(s)()(i());o.push([t.id,".yIqz0290EZWCxr9FN3XJ {\n border-radius: 50%;\n\n width: 26px;\n height: 26px;\n\n padding: 3.5px;\n\n background-color: white;\n\n border: solid 1px #767676;\n\n cursor: pointer;\n}\n\n.yIqz0290EZWCxr9FN3XJ:hover {\n border-color: black;\n}\n\n.yIqz0290EZWCxr9FN3XJ::-webkit-color-swatch {\n border-radius: 50%;\n\n border-width: 0px;\n}\n\n.yIqz0290EZWCxr9FN3XJ::-moz-color-swatch {\n border-radius: 50%;\n\n border: solid 1px white;\n}\n\n.yIqz0290EZWCxr9FN3XJ::-webkit-color-swatch-wrapper {\n padding: 1px;\n}\n",""]);var a="yIqz0290EZWCxr9FN3XJ";const u=o},723:(t,e,n)=>{"use strict";n.d(e,{Ay:()=>l,Wu:()=>u,kL:()=>a,r9:()=>h});var r=n(601),i=n.n(r),s=n(314),o=n.n(s)()(i());o.push([t.id,'.X7DPHJCVbRpHEB9gcm0Z {\n position: relative;\n\n 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",u="vDAwbQmWCc39SmNMFRtv",h="BAlKKbk1BfHF_fPz1gpc";const l=o},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 u(t){return null==t}function h(t){return"object"==typeof t&&null!==t}function l(t){return Array.isArray(t)}function c(t){return l(t)&&0==t.length}function f(t){return l(t)&&t.length>0}function d(t){return l(t)&&t.every(n)}function p(t){return d(t)&&t.length>0}function m(t){return l(t)&&t.every(r)}function g(t){return l(t)&&t.every(i)}function y(t){return l(t)&&t.every(a)}function v(t){return y(t)&&t.length>0}return t.r(e),t.d(e,{isArray:()=>l,isEmptyArray:()=>c,isFiniteNumber:()=>r,isFiniteNumbersArray:()=>m,isNonEmptyArray:()=>f,isNonEmptyNumbersArray:()=>p,isNonEmptyStringsArray:()=>v,isNonFiniteNumber:()=>i,isNonFiniteNumbersArray:()=>g,isNonNegativeFiniteNumber:()=>o,isNonNullObject:()=>h,isNullish:()=>u,isNumber:()=>n,isNumbersArray:()=>d,isPositiveFiniteNumber:()=>s,isString:()=>a,isStringsArray:()=>y}),e})()}},e={};function n(r){var i=e[r];if(void 0!==i)return i.exports;var s=e[r]={exports:{}};return t[r].call(s.exports,s,s.exports,n),s.exports}n.d=(t,e)=>{for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var r={};return(()=>{"use strict";function t(t,e){for(let[n,r]of Object.entries(e))t.setAttribute(n,r)}n.r(r),n.d(r,{CoordinateSystem:()=>c,HorizontalClientScaling:()=>d,InnerXML:()=>w,OuterXML:()=>_,Scaling:()=>f,VerticalClientScaling:()=>p,assignUUID:()=>l,bringToFront:()=>m,drawOnCanvas:()=>C,isSVGGraphicsElement:()=>N,isSVGGraphicsElementsArray:()=>S,sendToBack:()=>g,setAttributes:()=>t});const e={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};var i,s=new Uint8Array(16);function o(){if(!i&&!(i="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return i(s)}for(var a=[],u=0;u<256;++u)a.push((u+256).toString(16).slice(1));const h=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-"+h()}class c{constructor(t){this.targetSVGDoc=t}get width(){return this.targetSVGDoc.viewBox.baseVal.width}get height(){return this.targetSVGDoc.viewBox.baseVal.height}get minX(){return this.targetSVGDoc.viewBox.baseVal.x}get maxX(){return this.minX+this.width}get minY(){return this.targetSVGDoc.viewBox.baseVal.y}get maxY(){return this.minY+this.height}get horizontalScaling(){return this.targetSVGDoc.width.baseVal.value/this.width}get verticalScaling(){return this.targetSVGDoc.height.baseVal.value/this.height}setScaling(t){this.targetSVGDoc.setAttribute("width",""+t*this.width),this.targetSVGDoc.setAttribute("height",""+t*this.height)}get clientWidth(){return this.targetSVGDoc.getBoundingClientRect().width}get clientHeight(){return this.targetSVGDoc.getBoundingClientRect().height}get horizontalClientScaling(){return this.clientWidth/this.width}get verticalClientScaling(){return this.clientHeight/this.height}get minClientX(){return this.targetSVGDoc.getBoundingClientRect().x}get minClientY(){return this.targetSVGDoc.getBoundingClientRect().y}fromClientX(t){return this.minX+(t-this.minClientX)/this.horizontalClientScaling}fromClientY(t){return this.minY+(t-this.minClientY)/this.verticalClientScaling}fromClientCoordinates(t,e){return[this.fromClientX(t),this.fromClientY(e)]}fromClientPoint(t){return{x:this.fromClientX(t.x),y:this.fromClientY(t.y)}}toClientX(t){return this.minClientX+this.horizontalClientScaling*(t-this.minX)}toClientY(t){return this.minClientY+this.verticalClientScaling*(t-this.minY)}toClientCoordinates(t,e){return[this.toClientX(t),this.toClientY(e)]}toClientPoint(t){return{x:this.toClientX(t.x),y:this.toClientY(t.y)}}}class f{constructor(t){this.targetSVGDoc=t}set(t){let e=this.targetSVGDoc.viewBox.baseVal;this.targetSVGDoc.setAttribute("width",t*e.width+"px"),this.targetSVGDoc.setAttribute("height",t*e.height+"px")}}class d{constructor(t){this.targetSVGDoc=t}get(){let t=this.targetSVGDoc.getBoundingClientRect(),e=this.targetSVGDoc.viewBox.baseVal;return t.width/e.width}}class p{constructor(t){this.targetSVGDoc=t}get(){let t=this.targetSVGDoc.getBoundingClientRect(),e=this.targetSVGDoc.viewBox.baseVal;return t.height/e.height}}function m(t){let e=t.parentNode;e&&e.appendChild(t)}function g(t){let e=t.parentNode;e&&e.prepend(t)}var y,v=function(t,e,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!r:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(t):r?r.value:e.get(t)};class w{constructor(t){y.set(this,void 0),function(t,e,n){if("function"==typeof e||!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");e.set(t,n)}(this,y,t)}toString(){return v(this,y,"f").innerHTML}set(t){v(this,y,"f").innerHTML=t}}y=new WeakMap;var b,x=function(t,e,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!r:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(t):r?r.value:e.get(t)};class _{constructor(t){b.set(this,void 0),function(t,e,n){if("function"==typeof e||!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");e.set(t,n)}(this,b,t)}toString(){return x(this,b,"f").outerHTML}set(t){let e=document.createElementNS("http://www.w3.org/2000/svg","svg");if(e.style.height="0px",document.body.append(e),e.innerHTML=t,!e.firstElementChild)throw new Error("Outer XML must encode an SVG element.");if(e.childNodes.length>1)throw new Error("Outer XML cannot encode multiple DOM nodes.");if(e.firstElementChild.tagName.toLowerCase()!=x(this,b,"f").tagName.toLowerCase())throw new Error("Outer XML must specify an SVG element with the same tag name as the target SVG element.");[...x(this,b,"f").attributes].forEach(t=>x(this,b,"f").removeAttribute(t.name)),[...e.firstElementChild.attributes].forEach(t=>x(this,b,"f").setAttribute(t.name,t.value)),x(this,b,"f").innerHTML=e.firstElementChild.innerHTML,e.remove()}}function N(t){return t instanceof SVGGraphicsElement}b=new WeakMap;var k=n(854);function S(t){return(0,k.isArray)(t)&&t.every(N)}var M=function(t,e,n,r){return new(n||(n=Promise))(function(i,s){function o(t){try{u(r.next(t))}catch(t){s(t)}}function a(t){try{u(r.throw(t))}catch(t){s(t)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n(function(t){t(e)})).then(o,a)}u((r=r.apply(t,e||[])).next())})};function C(t){return M(this,void 0,void 0,function*(){let e=document.createElement("canvas");e.style.position="fixed",e.style.display="none",e.style.pointerEvents="none",document.body.append(e),e.width=t.width.baseVal.value,e.height=t.height.baseVal.value;let n=e.getContext("2d");if(!n)throw new Error("Unable to get canvas context.");let r=(new XMLSerializer).serializeToString(t),i=new Image;return i.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(r),yield i.decode(),n.drawImage(i,0,0,t.width.baseVal.value,t.height.baseVal.value),e.remove(),e.style.position="",e.style.display="",e.style.pointerEvents="",e})}})(),r})(),t.exports=e()},825:t=>{"use strict";t.exports=function(t){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var e=t.insertStyleElement(t);return{update:function(n){!function(t,e,n){var r="";n.supports&&(r+="@supports (".concat(n.supports,") {")),n.media&&(r+="@media ".concat(n.media," {"));var i=void 0!==n.layer;i&&(r+="@layer".concat(n.layer.length>0?" ".concat(n.layer):""," {")),r+=n.css,i&&(r+="}"),n.media&&(r+="}"),n.supports&&(r+="}");var s=n.sourceMap;s&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(s))))," */")),e.styleTagTransform(r,t,e.options)}(e,t,n)},remove:function(){!function(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t)}(e)}}}},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),u=n.n(a),h=new URL(n(889),n.b),l=o()(i()),c=u()(h);l.push([t.id,`.pMUxgRC_f4NzkoelkDpX {\n appearance: none;\n\n margin: 0px;\n padding: 0px;\n\n border: none;\n outline: none;\n\n border-radius: 1px;\n\n width: 15px;\n height: 15px;\n\n background-color: white;\n\n cursor: pointer;\n}\n\n.pMUxgRC_f4NzkoelkDpX:checked {\n background-color: rgb(255, 194, 194);\n\n background-image: url(${c});\n}\n`,""]);var f="pMUxgRC_f4NzkoelkDpX";const d=l},887:(t,e,n)=>{"use strict";n.d(e,{Ay:()=>l,Qq:()=>u,lI:()=>a,r9:()=>h});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",u="qTVXpnB_go4Q_8V0QAhx",h="IgtWfVpmdN_e04k18xHb";const l=o},889:t=>{"use strict";t.exports="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxNSAxNSI+PHBhdGggZmlsbD0ibm9uZSIgc3Ryb2tlPSJibGFjayIgc3Ryb2tlLWxpbmVjYXA9IiIgc3Ryb2tlLWxpbmVqb2luPSIiIHN0cm9rZS13aWR0aD0iMiIgZD0iTTMuNSA4LjUgTDcuNSAxMS41IEwgMTEuNSAzLjUiLz48L3N2Zz4="},924:(t,e,n)=>{"use strict";n.d(e,{Ay:()=>g,QB:()=>m,Qs:()=>u,Te:()=>p,VX:()=>c,eB:()=>d,ho:()=>h,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",u="VFDUY2z_WgJp1fVc8TCw",h="dJmYzq3wi8hxLecdDaOF",l="Z3lHB1W2K4m8JuZOnWs9",c="GZP6NKFkjkjlFVlDU6AZ",f="f1LDX7M42DUD9AT6Mh5p",d="wq_gmBRSZasSLYaUmdWp",p="niaBwqy1zBIMYC42Y7LP",m="_YkLdMiLPhNIvuLLypQE";const g=o},933:(t,e,n)=>{"use strict";n.d(e,{Ay:()=>h,Pf:()=>u,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",u="GQe6FmedcfLCp15a2z6w";const h=o},965:(t,e,n)=>{"use strict";n.d(e,{Ay:()=>l,Qs:()=>u,fS:()=>a,yZ:()=>h});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",u="k7K01e2GUrQW3HOTGKLg",h="uQ4YNz02_aOj4lo6H7WY";const l=o}},e={};function n(r){var i=e[r];if(void 0!==i)return i.exports;var s=e[r]={id:r,loaded:!1,exports:{}};return t[r].call(s.exports,s,s.exports,n),s.loaded=!0,s.exports}n.m=t,n.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.d=(t,e)=>{for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.nmd=t=>(t.paths=[],t.children||(t.children=[]),t),n.b="undefined"!=typeof document&&document.baseURI||self.location.href,n.nc=void 0;var r={};return(()=>{"use strict";n.r(r),n.d(r,{EditingForm:()=>Qf});var t={};n.r(t),n.d(t,{cx:()=>Ie,cy:()=>Re,height:()=>Fe,rx:()=>We,ry:()=>Pe,width:()=>ze,x:()=>De,y:()=>Be});var e={};n.r(e),n.d(e,{from:()=>Ge,to:()=>He});var i={};n.r(i),n.d(i,{MorphArray:()=>Je,height:()=>nn,width:()=>en,x:()=>Ke,y:()=>tn});var s={};n.r(s),n.d(s,{array:()=>On,clear:()=>Ln,move:()=>jn,plot:()=>Wn,size:()=>Pn});var o={};n.r(o),n.d(o,{amove:()=>hr,ax:()=>ar,ay:()=>ur,build:()=>lr,center:()=>or,cx:()=>ir,cy:()=>sr,length:()=>tr,move:()=>rr,plain:()=>Kn,x:()=>er,y:()=>nr});var a={};n.r(a),n.d(a,{dmove:()=>gr,dx:()=>yr,dy:()=>vr,height:()=>wr,move:()=>br,size:()=>xr,width:()=>_r,x:()=>Nr,y:()=>kr});var u=n(72),h=n.n(u),l=n(825),c=n.n(l),f=n(659),d=n.n(f),p=n(56),m=n.n(p),g=n(540),y=n.n(g),v=n(113),w=n.n(v),b=n(420),x={};x.styleTagTransform=w(),x.setAttributes=m(),x.insert=d().bind(null,"head"),x.domAPI=c(),x.insertStyleElement=y(),h()(b.Ay,x),b.Ay&&b.Ay.locals&&b.Ay.locals;var _=n(633),N={};N.styleTagTransform=w(),N.setAttributes=m(),N.insert=d().bind(null,"head"),N.domAPI=c(),N.insertStyleElement=y(),h()(_.Ay,N),_.Ay&&_.Ay.locals&&_.Ay.locals;var k=n(584),S={};S.styleTagTransform=w(),S.setAttributes=m(),S.insert=d().bind(null,"head"),S.domAPI=c(),S.insertStyleElement=y(),h()(k.Ay,S),k.Ay&&k.Ay.locals&&k.Ay.locals;var M,C=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 A{constructor(t,e){this.domNode=document.createElement("div"),this.caret=new E,M.set(this,document.createElement("p")),this.domNode.classList.add(k.kY),!e||(this.domNode.onclick=e),this.caret.domNode.style.marginRight="6px",this.caret.domNode.style.pointerEvents="auto",this.domNode.append(this.caret.domNode),C(this,M,"f").classList.add(k.Qq),!t||(this.textContent=t),this.domNode.append(C(this,M,"f"))}get textContent(){return C(this,M,"f").textContent}set textContent(t){C(this,M,"f").textContent=t}}M=new WeakMap;class E{constructor(){this.domNode=document.createElementNS("http://www.w3.org/2000/svg","svg"),this.domNode.classList.add(k.OW),this.domNode.setAttribute("viewBox","0 0 6 10"),this.domNode.setAttribute("width","6"),this.domNode.setAttribute("height","10"),this.domNode.innerHTML='\n <path\n d="M 1 1 L 5 5 L 1 9"\n stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"\n fill="none"\n ></path>\n '}pointRight(){this.domNode.classList.remove(k.Z7)}pointDown(){this.domNode.classList.add(k.Z7)}}var T=n(887),O={};O.styleTagTransform=w(),O.setAttributes=m(),O.insert=d().bind(null,"head"),O.domAPI=c(),O.insertStyleElement=y(),h()(T.Ay,O),T.Ay&&T.Ay.locals&&T.Ay.locals;var L,j=n(704),W=function(t,e,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!r:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(t):r?r.value:e.get(t)};class P{constructor(t,e){this.domNode=document.createElement("div"),L.set(this,document.createElement("p")),this.tooltip=new j.Tooltip(""),!e||(this.domNode.onclick=e),this.domNode.classList.add(T.lI),W(this,L,"f").classList.add(T.Qq),W(this,L,"f").textContent=null!=t?t:"",this.domNode.append(W(this,L,"f")),this.tooltip.owner=this.domNode}get textContent(){return W(this,L,"f").textContent}set textContent(t){W(this,L,"f").textContent=t}disable(){this.domNode.classList.add(T.r9)}enable(){this.domNode.classList.remove(T.r9)}}L=new WeakMap;var D=n(419),B={};B.styleTagTransform=w(),B.setAttributes=m(),B.insert=d().bind(null,"head"),B.domAPI=c(),B.insertStyleElement=y(),h()(D.A,B),D.A&&D.A.locals&&D.A.locals;var I,R;class z{constructor(t){I.add(this),this.props=t,this.domNode=document.createElement("input"),this.domNode.type="text",this.domNode.classList.add(D.P),this.domNode.addEventListener("blur",()=>function(t,e,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!r:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(t):r?r.value:e.get(t)}(this,I,"m",R).call(this)),this.domNode.addEventListener("keydown",t=>{"enter"==t.key.toLowerCase()&&this.domNode.blur()})}}I=new WeakSet,R=function(){var t;(null===(t=this.props)||void 0===t?void 0:t.onSubmit)&&this.props.onSubmit()};var F=n(678),q={};q.styleTagTransform=w(),q.setAttributes=m(),q.insert=d().bind(null,"head"),q.domAPI=c(),q.insertStyleElement=y(),h()(F.Ay,q),F.Ay&&F.Ay.locals&&F.Ay.locals;var U,V,G=function(t,e,n,r,i){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?i.call(t,n):i?i.value=n:e.set(t,n),n},H=function(t,e,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!r:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(t):r?r.value:e.get(t)};class X{constructor(t,e){this.name=t,this.domNode=document.createElement("label"),U.set(this,void 0),V.set(this,void 0),this.domNode.classList.add(F.ZZ),G(this,U,e,"f"),G(this,V,document.createElement("a"),"f"),H(this,V,"f").textContent=t,H(this,V,"f").target="_blank",H(this,V,"f").rel="noopener noreferrer",H(this,V,"f").style.marginLeft="8px",this.domNode.append(e,H(this,V,"f"))}get infoLink(){return H(this,V,"f").href}set infoLink(t){H(this,V,"f").href=t,t?H(this,V,"f").classList.add(F.o3):H(this,V,"f").classList.remove(F.o3)}}U=new WeakMap,V=new WeakMap;var Y,$=function(t,e,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!r:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(t):r?r.value:e.get(t)};class Q{constructor(t,e){this.name=t,Y.set(this,void 0),function(t,e,n,r,i){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");"a"===r?i.call(t,n):i?i.value=n:e.set(t,n)}(this,Y,new X(t,e),"f"),this.domNode.style.cursor="text"}get domNode(){return $(this,Y,"f").domNode}get infoLink(){return $(this,Y,"f").infoLink}set infoLink(t){$(this,Y,"f").infoLink=t}}Y=new WeakMap;var Z=n(881),J={};J.styleTagTransform=w(),J.setAttributes=m(),J.insert=d().bind(null,"head"),J.domAPI=c(),J.insertStyleElement=y(),h()(Z.A,J),Z.A&&Z.A.locals&&Z.A.locals;class K{constructor(){this.domNode=document.createElement("input"),this.domNode.type="checkbox",this.domNode.classList.add(Z.k)}}var tt,et=function(t,e,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!r:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(t):r?r.value:e.get(t)};class nt{constructor(t,e){this.name=t,tt.set(this,void 0),function(t,e,n,r,i){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");"a"===r?i.call(t,n):i?i.value=n:e.set(t,n)}(this,tt,new X(t,e),"f"),this.domNode.style.cursor="pointer"}get domNode(){return et(this,tt,"f").domNode}get infoLink(){return et(this,tt,"f").infoLink}set infoLink(t){et(this,tt,"f").infoLink=t}}tt=new WeakMap;var rt=n(709),it={};it.styleTagTransform=w(),it.setAttributes=m(),it.insert=d().bind(null,"head"),it.domAPI=c(),it.insertStyleElement=y(),h()(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 ut{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 ht={},lt=[];function ct(t,e){if(Array.isArray(t))for(const n of t)ct(n,e);else if("object"!=typeof t)dt(Object.getOwnPropertyNames(e)),ht[t]=Object.assign(ht[t]||{},e);else for(const e in t)ct(e,t[e])}function ft(t){return ht[t]||{}}function dt(t){lt.push(...t)}function pt(t,e){let n;const r=t.length,i=[];for(n=0;n<r;n++)i.push(e(t[n]));return i}function mt(t){return t%360*Math.PI/180}function gt(t){return t.replace(/([A-Z])/g,function(t,e){return"-"+e.toLowerCase()})}function yt(t){return t.charAt(0).toUpperCase()+t.slice(1)}function vt(t,e,n,r){return null!=e&&null!=n||(r=r||t.bbox(),null==e?e=r.width/r.height*n:null==n&&(n=r.height/r.width*e)),{width:e,height:n}}function wt(t,e){const n=t.origin;let r=null!=t.ox?t.ox:null!=t.originX?t.originX:"center",i=null!=t.oy?t.oy:null!=t.originY?t.originY:"center";null!=n&&([r,i]=Array.isArray(n)?n:"object"==typeof n?[n.x,n.y]:[n,n]);const s="string"==typeof r,o="string"==typeof i;if(s||o){const{height:t,width:n,x:a,y:u}=e.bbox();s&&(r=r.includes("left")?a:r.includes("right")?a+n:a+n/2),o&&(i=i.includes("top")?u:i.includes("bottom")?u+t:u+t/2)}return[r,i]}const bt=new Set(["desc","metadata","title"]),xt=t=>bt.has(t.nodeName),_t=(t,e,n={})=>{const r={...e};for(const t in r)r[t].valueOf()===n[t]&&delete r[t];Object.keys(r).length?t.node.setAttribute("data-svgjs",JSON.stringify(r)):(t.node.removeAttribute("data-svgjs"),t.node.removeAttribute("svgjs:data"))},Nt="http://www.w3.org/2000/svg",kt="http://www.w3.org/2000/xmlns/",St="http://www.w3.org/1999/xlink",Mt={window:"undefined"==typeof window?null:window,document:"undefined"==typeof document?null:document};class Ct{}const At={},Et="___SYMBOL___ROOT___";function Tt(t,e=Nt){return Mt.document.createElementNS(e,t)}function Ot(t,e=!1){if(t instanceof Ct)return t;if("object"==typeof t)return Wt(t);if(null==t)return new At[Et];if("string"==typeof t&&"<"!==t.trim().charAt(0))return Wt(Mt.document.querySelector(t));const n=e?Mt.document.createElement("div"):Tt("svg");return n.innerHTML=t.trim(),t=Wt(n.firstElementChild),n.removeChild(n.firstElementChild),t}function Lt(t,e){return e&&(e instanceof Mt.window.Node||e.ownerDocument&&e instanceof e.ownerDocument.defaultView.Node)?e:Tt(t)}function jt(t){if(!t)return null;if(t.instance instanceof Ct)return t.instance;if("#document-fragment"===t.nodeName)return new At.Fragment(t);let e=yt(t.nodeName||"Dom");return"LinearGradient"===e||"RadialGradient"===e?e="Gradient":At[e]||(e="Dom"),new At[e](t)}let Wt=jt;function Pt(t,e=t.name,n=!1){return At[e]=t,n&&(At[Et]=t),dt(Object.getOwnPropertyNames(t.prototype)),t}let Dt=1e3;function Bt(t){return"Svgjs"+yt(t)+Dt++}function It(t){for(let e=t.children.length-1;e>=0;e--)It(t.children[e]);return t.id?(t.id=Bt(t.nodeName),t):t}function Rt(t,e){let n,r;for(r=(t=Array.isArray(t)?t:[t]).length-1;r>=0;r--)for(n in e)t[r].prototype[n]=e[n]}function zt(t){return function(...e){const n=e[e.length-1];return!n||n.constructor!==Object||n instanceof Array?t.apply(this,e):t.apply(this,e.slice(0,-1)).attr(n)}}ct("Dom",{siblings:function(){return this.parent().children()},position:function(){return this.parent().index(this)},next:function(){return this.siblings()[this.position()+1]},prev:function(){return this.siblings()[this.position()-1]},forward:function(){const t=this.position();return this.parent().add(this.remove(),t+1),this},backward:function(){const t=this.position();return this.parent().add(this.remove(),t?t-1:0),this},front:function(){return this.parent().add(this.remove()),this},back:function(){return this.parent().add(this.remove(),0),this},before:function(t){(t=Ot(t)).remove();const e=this.position();return this.parent().add(t,e),this},after:function(t){(t=Ot(t)).remove();const e=this.position();return this.parent().add(t,e+1),this},insertBefore:function(t){return(t=Ot(t)).before(this),this},insertAfter:function(t){return(t=Ot(t)).after(this),this}});const Ft=/^([+-]?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?)([a-z%]*)$/i,qt=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i,Ut=/rgb\((\d+),(\d+),(\d+)\)/,Vt=/(#[a-z_][a-z0-9\-_]*)/i,Gt=/\)\s*,?\s*/,Ht=/\s/g,Xt=/^#[a-f0-9]{3}$|^#[a-f0-9]{6}$/i,Yt=/^rgb\(/,$t=/^(\s+)?$/,Qt=/^[+-]?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,Zt=/\.(jpg|jpeg|png|gif|svg)(\?[^=]+.*)?/i,Jt=/[\s,]+/,Kt=/[MLHVCSQTAZ]/i;function te(t){const e=Math.round(t),n=Math.max(0,Math.min(255,e)).toString(16);return 1===n.length?"0"+n:n}function ee(t,e){for(let n=e.length;n--;)if(null==t[e[n]])return!1;return!0}function ne(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+6*(e-t)*n:n<.5?e:n<2/3?t+(e-t)*(2/3-n)*6:t}ct("Dom",{classes:function(){const t=this.attr("class");return null==t?[]:t.trim().split(Jt)},hasClass:function(t){return-1!==this.classes().indexOf(t)},addClass:function(t){if(!this.hasClass(t)){const e=this.classes();e.push(t),this.attr("class",e.join(" "))}return this},removeClass:function(t){return this.hasClass(t)&&this.attr("class",this.classes().filter(function(e){return e!==t}).join(" ")),this},toggleClass:function(t){return this.hasClass(t)?this.removeClass(t):this.addClass(t)}}),ct("Dom",{css:function(t,e){const n={};if(0===arguments.length)return this.node.style.cssText.split(/\s*;\s*/).filter(function(t){return!!t.length}).forEach(function(t){const e=t.split(/\s*:\s*/);n[e[0]]=e[1]}),n;if(arguments.length<2){if(Array.isArray(t)){for(const e of t){const t=e;n[e]=this.node.style.getPropertyValue(t)}return n}if("string"==typeof t)return this.node.style.getPropertyValue(t);if("object"==typeof t)for(const e in t)this.node.style.setProperty(e,null==t[e]||$t.test(t[e])?"":t[e])}return 2===arguments.length&&this.node.style.setProperty(t,null==e||$t.test(e)?"":e),this},show:function(){return this.css("display","")},hide:function(){return this.css("display","none")},visible:function(){return"none"!==this.css("display")}}),ct("Dom",{data:function(t,e,n){if(null==t)return this.data(pt(function(t,e){let n;const r=t.length,i=[];for(n=0;n<r;n++)e(t[n])&&i.push(t[n]);return i}(this.node.attributes,t=>0===t.nodeName.indexOf("data-")),t=>t.nodeName.slice(5)));if(t instanceof Array){const e={};for(const n of t)e[n]=this.data(n);return e}if("object"==typeof t)for(e in t)this.data(e,t[e]);else if(arguments.length<2)try{return JSON.parse(this.attr("data-"+t))}catch(e){return this.attr("data-"+t)}else this.attr("data-"+t,null===e?null:!0===n||"string"==typeof e||"number"==typeof e?e:JSON.stringify(e));return this}}),ct("Dom",{remember:function(t,e){if("object"==typeof arguments[0])for(const e in t)this.remember(e,t[e]);else{if(1===arguments.length)return this.memory()[t];this.memory()[t]=e}return this},forget:function(){if(0===arguments.length)this._memory={};else for(let t=arguments.length-1;t>=0;t--)delete this.memory()[arguments[t]];return this},memory:function(){return this._memory=this._memory||{}}});class re{constructor(...t){this.init(...t)}static isColor(t){return t&&(t instanceof re||this.isRgb(t)||this.test(t))}static isRgb(t){return t&&"number"==typeof t.r&&"number"==typeof t.g&&"number"==typeof t.b}static random(t="vibrant",e){const{random:n,round:r,sin:i,PI:s}=Math;if("vibrant"===t){const t=24*n()+57,e=38*n()+45,r=360*n();return new re(t,e,r,"lch")}if("sine"===t){const t=r(80*i(2*s*(e=null==e?n():e)/.5+.01)+150),o=r(50*i(2*s*e/.5+4.6)+200),a=r(100*i(2*s*e/.5+2.3)+150);return new re(t,o,a)}if("pastel"===t){const t=8*n()+86,e=17*n()+9,r=360*n();return new re(t,e,r,"lch")}if("dark"===t){const t=10+10*n(),e=50*n()+86,r=360*n();return new re(t,e,r,"lch")}if("rgb"===t){const t=255*n(),e=255*n(),r=255*n();return new re(t,e,r)}if("lab"===t){const t=100*n(),e=256*n()-128,r=256*n()-128;return new re(t,e,r,"lab")}if("grey"===t){const t=255*n();return new re(t,t,t)}throw new Error("Unsupported random color mode")}static test(t){return"string"==typeof t&&(Xt.test(t)||Yt.test(t))}cmyk(){const{_a:t,_b:e,_c:n}=this.rgb(),[r,i,s]=[t,e,n].map(t=>t/255),o=Math.min(1-r,1-i,1-s);return 1===o?new re(0,0,0,1,"cmyk"):new re((1-r-o)/(1-o),(1-i-o)/(1-o),(1-s-o)/(1-o),o,"cmyk")}hsl(){const{_a:t,_b:e,_c:n}=this.rgb(),[r,i,s]=[t,e,n].map(t=>t/255),o=Math.max(r,i,s),a=Math.min(r,i,s),u=(o+a)/2,h=o===a,l=o-a;return new re(360*(h?0:o===r?((i-s)/l+(i<s?6:0))/6:o===i?((s-r)/l+2)/6:o===s?((r-i)/l+4)/6:0),100*(h?0:u>.5?l/(2-o-a):l/(o+a)),100*u,"hsl")}init(t=0,e=0,n=0,r=0,i="rgb"){if(t=t||0,this.space)for(const t in this.space)delete this[this.space[t]];if("number"==typeof t)i="string"==typeof r?r:i,r="string"==typeof r?0:r,Object.assign(this,{_a:t,_b:e,_c:n,_d:r,space:i});else if(t instanceof Array)this.space=e||("string"==typeof t[3]?t[3]:t[4])||"rgb",Object.assign(this,{_a:t[0],_b:t[1],_c:t[2],_d:t[3]||0});else if(t instanceof Object){const n=function(t,e){const n=ee(t,"rgb")?{_a:t.r,_b:t.g,_c:t.b,_d:0,space:"rgb"}:ee(t,"xyz")?{_a:t.x,_b:t.y,_c:t.z,_d:0,space:"xyz"}:ee(t,"hsl")?{_a:t.h,_b:t.s,_c:t.l,_d:0,space:"hsl"}:ee(t,"lab")?{_a:t.l,_b:t.a,_c:t.b,_d:0,space:"lab"}:ee(t,"lch")?{_a:t.l,_b:t.c,_c:t.h,_d:0,space:"lch"}:ee(t,"cmyk")?{_a:t.c,_b:t.m,_c:t.y,_d:t.k,space:"cmyk"}:{_a:0,_b:0,_c:0,space:"rgb"};return n.space=e||n.space,n}(t,e);Object.assign(this,n)}else if("string"==typeof t)if(Yt.test(t)){const e=t.replace(Ht,""),[n,r,i]=Ut.exec(e).slice(1,4).map(t=>parseInt(t));Object.assign(this,{_a:n,_b:r,_c:i,_d:0,space:"rgb"})}else{if(!Xt.test(t))throw Error("Unsupported string format, can't construct Color");{const e=t=>parseInt(t,16),[,n,r,i]=qt.exec(function(t){return 4===t.length?["#",t.substring(1,2),t.substring(1,2),t.substring(2,3),t.substring(2,3),t.substring(3,4),t.substring(3,4)].join(""):t}(t)).map(e);Object.assign(this,{_a:n,_b:r,_c:i,_d:0,space:"rgb"})}}const{_a:s,_b:o,_c:a,_d:u}=this,h="rgb"===this.space?{r:s,g:o,b:a}:"xyz"===this.space?{x:s,y:o,z:a}:"hsl"===this.space?{h:s,s:o,l:a}:"lab"===this.space?{l:s,a:o,b:a}:"lch"===this.space?{l:s,c:o,h:a}:"cmyk"===this.space?{c:s,m:o,y:a,k:u}:{};Object.assign(this,h)}lab(){const{x:t,y:e,z:n}=this.xyz();return new 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,u=o-s/200,h=16/116,l=.008856,c=7.787;t=.95047*(a**3>l?a**3:(a-h)/c),e=1*(o**3>l?o**3:(o-h)/c),n=1.08883*(u**3>l?u**3:(u-h)/c)}const r=3.2406*t+-1.5372*e+-.4986*n,i=-.9689*t+1.8758*e+.0415*n,s=.0557*t+-.204*e+1.057*n,o=Math.pow,a=.0031308,u=r>a?1.055*o(r,1/2.4)-.055:12.92*r,h=i>a?1.055*o(i,1/2.4)-.055:12.92*i,l=s>a?1.055*o(s,1/2.4)-.055:12.92*s;return new re(255*u,255*h,255*l)}if("hsl"===this.space){let{h:t,s:e,l:n}=this;if(t/=360,e/=100,n/=100,0===e)return n*=255,new 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,u=s>.04045?Math.pow((s+.055)/1.055,2.4):s/12.92,h=(.4124*o+.3576*a+.1805*u)/.95047,l=(.2126*o+.7152*a+.0722*u)/1,c=(.0193*o+.1192*a+.9505*u)/1.08883,f=h>.008856?Math.pow(h,1/3):7.787*h+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 re(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 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,u=t.shear||0,h=t.rotate||t.theta||0,l=new ie(t.origin||t.around||t.ox||t.originX,t.oy||t.originY),c=l.x,f=l.y,d=new ie(t.position||t.px||t.positionX||NaN,t.py||t.positionY||NaN),p=d.x,m=d.y,g=new ie(t.translate||t.tx||t.translateX,t.ty||t.translateY),y=g.x,v=g.y,w=new ie(t.relative||t.rx||t.relativeX,t.ry||t.relativeY);return{scaleX:o,scaleY:a,skewX:i,skewY:s,shear:u,theta:h,rx:w.x,ry:w.y,tx:y,ty:v,ox:c,oy:f,px:p,py:m}}static fromArray(t){return{a:t[0],b:t[1],c:t[2],d:t[3],e:t[4],f:t[5]}}static isMatrixLike(t){return null!=t.a||null!=t.b||null!=t.c||null!=t.d||null!=t.e||null!=t.f}static matrixMultiply(t,e,n){const r=t.a*e.a+t.c*e.b,i=t.b*e.a+t.d*e.b,s=t.a*e.c+t.c*e.d,o=t.b*e.c+t.d*e.d,a=t.e+t.a*e.e+t.c*e.f,u=t.f+t.b*e.e+t.d*e.f;return n.a=r,n.b=i,n.c=s,n.d=o,n.e=a,n.f=u,n}around(t,e,n){return this.clone().aroundO(t,e,n)}aroundO(t,e,n){const r=t||0,i=e||0;return this.translateO(-r,-i).lmultiplyO(n).translateO(r,i)}clone(){return new 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,u=n*s-r*i,h=u>0?1:-1,l=h*Math.sqrt(n*n+r*r),c=Math.atan2(h*r,h*n),f=180/Math.PI*c,d=Math.cos(c),p=Math.sin(c),m=(n*i+r*s)/u,g=i*l/(m*n-r)||s*l/(m*r+n);return{scaleX:l,scaleY:g,shear:m,rotate: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 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 Ee?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,u=-e/o,h=-n/o,l=t/o,c=-(a*i+h*s),f=-(u*i+l*s);return this.a=a,this.b=u,this.c=h,this.d=l,this.e=c,this.f=f,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:u,e:h,f:l}=this;return this.a=s*r-o*i,this.b=o*r+s*i,this.c=a*r-u*i,this.d=u*r+a*i,this.e=h*r-l*i+n*i-e*r+e,this.f=l*r+h*i-e*i-n*r+n,this}scale(){return this.clone().scaleO(...arguments)}scaleO(t,e=t,n=0,r=0){3===arguments.length&&(r=n,n=e,e=t);const{a:i,b:s,c:o,d:a,e:u,f:h}=this;return this.a=i*t,this.b=s*e,this.c=o*t,this.d=a*e,this.e=u*t-n*t+n,this.f=h*e-r*e+r,this}shear(t,e,n){return this.clone().shearO(t,e,n)}shearO(t,e=0,n=0){const{a:r,b:i,c:s,d:o,e:a,f:u}=this;return this.a=r+i*t,this.c=s+o*t,this.e=a+u*t-n*t,this}skew(){return this.clone().skewO(...arguments)}skewO(t,e=t,n=0,r=0){3===arguments.length&&(r=n,n=e,e=t),t=mt(t),e=mt(e);const i=Math.tan(t),s=Math.tan(e),{a:o,b:a,c:u,d:h,e:l,f:c}=this;return this.a=o+a*i,this.b=a+o*s,this.c=u+h*i,this.d=h+u*s,this.e=l+c*i-r*i,this.f=c+l*s-n*s,this}skewX(t,e,n){return this.skew(t,0,e,n)}skewY(t,e,n){return this.skew(0,t,e,n)}toArray(){return[this.a,this.b,this.c,this.d,this.e,this.f]}toString(){return"matrix("+this.a+","+this.b+","+this.c+","+this.d+","+this.e+","+this.f+")"}transform(t){if(oe.isMatrixLike(t))return new oe(t).multiplyO(this);const e=oe.formatTransforms(t),{x:n,y:r}=new ie(e.ox,e.oy).transform(this),i=(new oe).translateO(e.rx,e.ry).lmultiplyO(this).translateO(-n,-r).scaleO(e.scaleX,e.scaleY).skewO(e.skewX,e.skewY).shearO(e.shear).rotateO(e.theta).translateO(n,r);if(isFinite(e.px)||isFinite(e.py)){const t=new ie(n,r).transform(i),s=isFinite(e.px)?e.px-t.x:0,o=isFinite(e.py)?e.py-t.y:0;i.translateO(s,o)}return i.translateO(e.tx,e.ty),i}translate(t,e){return this.clone().translateO(t,e)}translateO(t,e){return this.e+=t||0,this.f+=e||0,this}valueOf(){return{a:this.a,b:this.b,c:this.c,d:this.d,e:this.e,f:this.f}}}function ae(){if(!ae.nodes){const t=Ot().size(2,0);t.node.style.cssText=["opacity: 0","position: absolute","left: -100%","top: -100%","overflow: hidden"].join(";"),t.attr("focusable","false"),t.attr("aria-hidden","true");const e=t.path().node;ae.nodes={svg:t,path:e}}if(!ae.nodes.svg.node.parentNode){const t=Mt.document.body||Mt.document.documentElement;ae.nodes.svg.addTo(t)}return ae.nodes}function ue(t){return!(t.width||t.height||t.x||t.y)}Pt(oe,"Matrix");class he{constructor(...t){this.init(...t)}addOffset(){return this.x+=Mt.window.pageXOffset,this.y+=Mt.window.pageYOffset,new he(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 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 he(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 he(e,r,n-e,i-r)}}function le(t,e,n){let r;try{if(r=e(t.node),ue(r)&&(i=t.node)!==Mt.document&&!(Mt.document.documentElement.contains||function(t){for(;t.parentNode;)t=t.parentNode;return t===Mt.document}).call(Mt.document.documentElement,i))throw new Error("Element not in the dom")}catch(e){r=n(t)}var i;return r}ct({viewbox:{viewbox(t,e,n,r){return null==t?new he(this.attr("viewBox")):this.attr("viewBox",new he(t,e,n,r))},zoom(t,e){let{width:n,height:r}=this.attr(["width","height"]);if((n||r)&&"string"!=typeof n&&"string"!=typeof r||(n=this.node.clientWidth,r=this.node.clientHeight),!n||!r)throw new Error("Impossible to get absolute width and height. Please provide an absolute width and height attribute on the zooming element");const i=this.viewbox(),s=n/i.width,o=r/i.height,a=Math.min(s,o);if(null==t)return a;let u=a/t;u===1/0&&(u=Number.MAX_SAFE_INTEGER/100),e=e||new ie(n/2/s+i.x,r/2/o+i.y);const h=new he(i).transform(new oe({scale:u,origin:e}));return this.viewbox(h)}}}),Pt(he,"Box");class ce extends Array{constructor(t=[],...e){if(super(t,...e),"number"==typeof t)return this;this.length=0,this.push(...t)}}const fe=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 de=["toArray","constructor","each"];function pe(t,e){return new fe(pt((e||Mt.document).querySelectorAll(t),function(t){return jt(t)}))}ce.extend=function(t){t=t.reduce((t,e)=>(de.includes(e)||"_"===e[0]||(e in Array.prototype&&(t["$"+e]=Array.prototype[e]),t[e]=function(...t){return this.each(e,...t)}),t),{}),Rt([ce],t)};let me=0;const ge={};function ye(t){let e=t.getEventHolder();return e===Mt.window&&(e=ge),e.events||(e.events={}),e.events}function ve(t){return t.getEventTarget()}function we(t,e,n,r,i){const s=n.bind(r||t),o=Ot(t),a=ye(o),u=ve(o);e=Array.isArray(e)?e:e.split(Jt),n._svgjsListenerId||(n._svgjsListenerId=++me),e.forEach(function(t){const e=t.split(".")[0],r=t.split(".")[1]||"*";a[e]=a[e]||{},a[e][r]=a[e][r]||{},a[e][r][n._svgjsListenerId]=s,u.addEventListener(e,s,i||!1)})}function be(t,e,n,r){const i=Ot(t),s=ye(i),o=ve(i);("function"!=typeof n||(n=n._svgjsListenerId))&&(e=Array.isArray(e)?e:(e||"").split(Jt)).forEach(function(t){const e=t&&t.split(".")[0],a=t&&t.split(".")[1];let u,h;if(n)s[e]&&s[e][a||"*"]&&(o.removeEventListener(e,s[e][a||"*"][n],r||!1),delete s[e][a||"*"][n]);else if(e&&a){if(s[e]&&s[e][a]){for(h in s[e][a])be(o,[e,a].join("."),h);delete s[e][a]}}else if(a)for(t in s)for(u in s[t])a===u&&be(o,[t,a].join("."));else if(e){if(s[e]){for(u in s[e])be(o,[e,u].join("."));delete s[e]}}else{for(t in s)be(o,t);!function(t){let e=t.getEventHolder();e===Mt.window&&(e=ge),e.events&&(e.events={})}(i)}})}class xe extends Ct{addEventListener(){}dispatch(t,e,n){return function(t,e,n,r){const i=ve(t);return e instanceof Mt.window.Event||(e=new Mt.window.CustomEvent(e,{detail:n,cancelable:!0,...r})),i.dispatchEvent(e),e}(this,t,e,n)}dispatchEvent(t){const e=this.getEventHolder().events;if(!e)return!0;const n=e[t.type];for(const e in n)for(const r in n[e])n[e][r](t);return!t.defaultPrevented}fire(t,e,n){return this.dispatch(t,e,n),this}getEventHolder(){return this}getEventTarget(){return this}off(t,e,n){return be(this,t,e,n),this}on(t,e,n,r){return we(this,t,e,n,r),this}removeEventListener(){}}function _e(){}Pt(xe,"EventTarget");const Ne={"fill-opacity":1,"stroke-opacity":1,"stroke-width":0,"stroke-linejoin":"miter","stroke-linecap":"butt",fill:"#000000",stroke:"#000000",opacity:1,x:0,y:0,cx:0,cy:0,width:0,height:0,r:0,rx:0,ry:0,offset:0,"stop-opacity":1,"stop-color":"#000000","text-anchor":"start"};class ke extends Array{constructor(...t){super(...t),this.init(...t)}clone(){return new this.constructor(this)}init(t){return"number"==typeof t||(this.length=0,this.push(...this.parse(t))),this}parse(t=[]){return t instanceof Array?t:t.trim().split(Jt).map(parseFloat)}toArray(){return Array.prototype.concat.apply([],this)}toSet(){return new Set(this)}toString(){return this.join(" ")}valueOf(){const t=[];return t.push(...this),t}}class Se{constructor(...t){this.init(...t)}convert(t){return new Se(this.value,t)}divide(t){return t=new Se(t),new Se(this/t,this.unit||t.unit)}init(t,e){return e=Array.isArray(t)?t[1]:e,t=Array.isArray(t)?t[0]:t,this.value=0,this.unit=e||"","number"==typeof t?this.value=isNaN(t)?0:isFinite(t)?t:t<0?-34e37:34e37:"string"==typeof t?(e=t.match(Ft))&&(this.value=parseFloat(e[1]),"%"===e[5]?this.value/=100:"s"===e[5]&&(this.value*=1e3),this.unit=e[5]):t instanceof Se&&(this.value=t.valueOf(),this.unit=t.unit),this}minus(t){return t=new Se(t),new Se(this-t,this.unit||t.unit)}plus(t){return t=new Se(t),new Se(this+t,this.unit||t.unit)}times(t){return t=new Se(t),new Se(this*t,this.unit||t.unit)}toArray(){return[this.value,this.unit]}toJSON(){return this.toString()}toString(){return("%"===this.unit?~~(1e8*this.value)/1e6:"s"===this.unit?this.value/1e3:this.value)+this.unit}valueOf(){return this.value}}const Me=new Set(["fill","stroke","color","bgcolor","stop-color","flood-color","lighting-color"]),Ce=[];class Ae extends xe{constructor(t,e){super(),this.node=t,this.type=t.nodeName,e&&t!==e&&this.attr(e)}add(t,e){return(t=Ot(t)).removeNamespace&&this.node instanceof Mt.window.SVGElement&&t.removeNamespace(),null==e?this.node.appendChild(t.node):t.node!==this.node.childNodes[e]&&this.node.insertBefore(t.node,this.node.childNodes[e]),this}addTo(t,e){return Ot(t).put(this,e)}children(){return new fe(pt(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=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 Ae(Tt(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=Bt(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=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=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=Tt("wrapper",n),i=Mt.document.createDocumentFragment();r.innerHTML=t;for(let t=r.children.length;t--;)i.appendChild(r.firstElementChild);const s=this.parent();return e?this.replace(i)&&s:this.add(i)}}Rt(Ae,{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=Ce.reduce((e,n)=>n(t,e,this),e))?e=new Se(e):Me.has(t)&&re.isColor(e)?e=new re(e):e.constructor===Array&&(e=new ke(e)),"leading"===t?this.leading&&this.leading(e):"string"==typeof n?this.node.setAttributeNS(n,t,e.toString()):this.node.setAttribute(t,e.toString()),!this.rebuild||"font-size"!==t&&"x"!==t||this.rebuild()}return this},find:function(t){return pe(t,this.node)},findOne:function(t){return jt(this.node.querySelector(t))}}),Pt(Ae,"Dom");class Ee extends Ae{constructor(t,e){super(t,e),this.dom={},this.node.instance=this,(t.hasAttribute("data-svgjs")||t.hasAttribute("svgjs:data"))&&this.setData(JSON.parse(t.getAttribute("data-svgjs"))??JSON.parse(t.getAttribute("svgjs:data"))??{})}center(t,e){return this.cx(t).cy(e)}cx(t){return null==t?this.x()+this.width()/2:this.x(t-this.width()/2)}cy(t){return null==t?this.y()+this.height()/2:this.y(t-this.height()/2)}defs(){const t=this.root();return t&&t.defs()}dmove(t,e){return this.dx(t).dy(e)}dx(t=0){return this.x(new Se(t).plus(this.x()))}dy(t=0){return this.y(new Se(t).plus(this.y()))}getEventHolder(){return this}height(t){return this.attr("height",t)}move(t,e){return this.x(t).y(e)}parents(t=this.root()){const e="string"==typeof t;e||(t=Ot(t));const n=new fe;let r=this;for(;(r=r.parent())&&r.node!==Mt.document&&"#document-fragment"!==r.nodeName&&(n.push(r),e||r.node!==t.node)&&(!e||!r.matches(t));)if(r.node===this.root().node)return null;return n}reference(t){if(!(t=this.attr(t)))return null;const e=(t+"").match(Vt);return e?Ot(e[1]):null}root(){const t=this.parent(At[Et]);return t&&t.root()}setData(t){return this.dom=t,this}size(t,e){const n=vt(this,t,e);return this.width(new Se(n.width)).height(new Se(n.height))}width(t){return this.attr("width",t)}writeDataToDom(){return _t(this,this.dom),super.writeDataToDom()}x(t){return this.attr("x",t)}y(t){return this.attr("y",t)}}Rt(Ee,{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 he(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 he(e);return t?n.transform(t.screenCTM().inverseO()):n.addOffset()},inside:function(t,e){const n=this.bbox();return t>n.x&&e>n.y&&t<n.x+n.width&&e<n.y+n.height},point:function(t,e){return new ie(t,e).transformO(this.screenCTM().inverseO())},ctm:function(){return new oe(this.node.getCTM())},screenCTM:function(){try{if("function"==typeof this.isRoot&&!this.isRoot()){const t=this.rect(1,1),e=t.node.getScreenCTM();return t.remove(),new oe(e)}return new oe(this.node.getScreenCTM())}catch(t){return console.warn(`Cannot get CTM from SVG node ${this.node.nodeName}. Is the element rendered?`),new oe}}}),Pt(Ee,"Element");const Te={stroke:["color","width","opacity","linecap","linejoin","miterlimit","dasharray","dashoffset"],fill:["color","opacity","rule"],prefix:function(t,e){return"color"===e?t:t+"-"+e}};["fill","stroke"].forEach(function(t){const e={};let n;e[t]=function(e){if(void 0===e)return this.attr(t);if("string"==typeof e||e instanceof re||re.isRgb(e)||e instanceof Ee)this.attr(t,e);else for(n=Te[t].length-1;n>=0;n--)null!=e[Te[t][n]]&&this.attr(Te.prefix(t,Te[t][n]),e[Te[t][n]]);return this},ct(["Element","Runner"],e)}),ct(["Element","Runner"],{matrix:function(t,e,n,r,i,s){return null==t?new oe(this):this.attr("transform",new oe(t,e,n,r,i,s))},rotate:function(t,e,n){return this.transform({rotate:t,ox:e,oy:n},!0)},skew:function(t,e,n,r){return 1===arguments.length||3===arguments.length?this.transform({skew:t,ox:e,oy:n},!0):this.transform({skew:[t,e],ox:n,oy:r},!0)},shear:function(t,e,n){return this.transform({shear:t,ox:e,oy:n},!0)},scale:function(t,e,n,r){return 1===arguments.length||3===arguments.length?this.transform({scale:t,ox:e,oy:n},!0):this.transform({scale:[t,e],ox:n,oy:r},!0)},translate:function(t,e){return this.transform({translate:[t,e]},!0)},relative:function(t,e){return this.transform({relative:[t,e]},!0)},flip:function(t="both",e="center"){return-1==="xybothtrue".indexOf(t)&&(e=t,t="both"),this.transform({flip:t,origin:e},!0)},opacity:function(t){return this.attr("opacity",t)}}),ct("radius",{radius:function(t,e=t){return"radialGradient"===(this._element||this).type?this.attr("r",new Se(t)):this.rx(t).ry(e)}}),ct("Path",{length:function(){return this.node.getTotalLength()},pointAt:function(t){return new ie(this.node.getPointAtLength(t))}}),ct(["Element","Runner"],{font:function(t,e){if("object"==typeof t){for(e in t)this.font(e,t[e]);return this}return"leading"===t?this.leading(e):"anchor"===t?this.attr("text-anchor",e):"size"===t||"family"===t||"weight"===t||"stretch"===t||"variant"===t||"style"===t?this.attr("font-"+t,e):this.attr(t,e)}}),ct("Element",["click","dblclick","mousedown","mouseup","mouseover","mouseout","mousemove","mouseenter","mouseleave","touchstart","touchmove","touchleave","touchend","touchcancel","contextmenu","wheel","pointerdown","pointermove","pointerup","pointerleave","pointercancel"].reduce(function(t,e){return t[e]=function(t){return null===t?this.off(e):this.on(e,t),this},t},{})),ct("Element",{untransform:function(){return this.attr("transform",null)},matrixify:function(){return(this.attr("transform")||"").split(Gt).slice(0,-1).map(function(t){const e=t.trim().split("(");return[e[0],e[1].split(Jt).map(function(t){return parseFloat(t)})]}).reverse().reduce(function(t,e){return"matrix"===e[0]?t.lmultiply(oe.fromArray(e[1])):t[e[0]].apply(t,e[1])},new oe)},toParent:function(t,e){if(this===t)return this;if(xt(this.node))return this.addTo(t,e);const n=this.screenCTM(),r=t.screenCTM().inverse();return this.addTo(t,e).untransform().transform(r.multiply(n)),this},toRoot:function(t){return this.toParent(this.root(),t)},transform:function(t,e){if(null==t||"string"==typeof t){const e=new oe(this).decompose();return null==t?e:e[t]}oe.isMatrixLike(t)||(t={...t,origin:wt(t,this)});const n=new oe(!0===e?this:e||!1).transform(t);return this.attr("transform",n)}});class Oe extends Ee{flatten(){return this.each(function(){if(this instanceof Oe)return this.flatten().ungroup()}),this}ungroup(t=this.parent(),e=t.index(this)){return e=-1===e?t.children().length:e,this.each(function(n,r){return r[r.length-n-1].toParent(t,e)}),this.remove()}}Pt(Oe,"Container");class Le extends Oe{constructor(t,e=t){super(Lt("defs",t),e)}flatten(){return this}ungroup(){return this}}Pt(Le,"Defs");class je extends Ee{}function We(t){return this.attr("rx",t)}function Pe(t){return this.attr("ry",t)}function De(t){return null==t?this.cx()-this.rx():this.cx(t+this.rx())}function Be(t){return null==t?this.cy()-this.ry():this.cy(t+this.ry())}function Ie(t){return this.attr("cx",t)}function Re(t){return this.attr("cy",t)}function ze(t){return null==t?2*this.rx():this.rx(new Se(t).divide(2))}function Fe(t){return null==t?2*this.ry():this.ry(new Se(t).divide(2))}Pt(je,"Shape");class qe extends je{constructor(t,e=t){super(Lt("ellipse",t),e)}size(t,e){const n=vt(this,t,e);return this.rx(new Se(n.width).divide(2)).ry(new Se(n.height).divide(2))}}Rt(qe,t),ct("Container",{ellipse:zt(function(t=0,e=t){return this.put(new qe).size(t,e).move(0,0)})}),Pt(qe,"Ellipse");class Ue extends Ae{constructor(t=Mt.document.createDocumentFragment()){super(t)}xml(t,e,n){if("boolean"==typeof t&&(n=e,e=t,t=null),null==t||"function"==typeof t){const t=new Ae(Tt("wrapper",n));return t.add(this.node.cloneNode(!0)),t.xml(!1,n)}return super.xml(t,!1,n)}}Pt(Ue,"Fragment");const Ve=Ue;function Ge(t,e){return"radialGradient"===(this._element||this).type?this.attr({fx:new Se(t),fy:new Se(e)}):this.attr({x1:new Se(t),y1:new Se(e)})}function He(t,e){return"radialGradient"===(this._element||this).type?this.attr({cx:new Se(t),cy:new Se(e)}):this.attr({x2:new Se(t),y2:new Se(e)})}class Xe extends Oe{constructor(t,e){super(Lt(t+"Gradient","string"==typeof t?null:t),e)}attr(t,e,n){return"transform"===t&&(t="gradientTransform"),super.attr(t,e,n)}bbox(){return new he}targets(){return pe("svg [fill*="+this.id()+"]")}toString(){return this.url()}update(t){return this.clear(),"function"==typeof t&&t.call(this,this),this}url(){return"url(#"+this.id()+")"}}Rt(Xe,e),ct({Container:{gradient(...t){return this.defs().gradient(...t)}},Defs:{gradient:zt(function(t,e){return this.put(new Xe(t)).update(e)})}}),Pt(Xe,"Gradient");class Ye extends Oe{constructor(t,e=t){super(Lt("pattern",t),e)}attr(t,e,n){return"transform"===t&&(t="patternTransform"),super.attr(t,e,n)}bbox(){return new he}targets(){return pe("svg [fill*="+this.id()+"]")}toString(){return this.url()}update(t){return this.clear(),"function"==typeof t&&t.call(this,this),this}url(){return"url(#"+this.id()+")"}}ct({Container:{pattern(...t){return this.defs().pattern(...t)}},Defs:{pattern:zt(function(t,e,n){return this.put(new Ye).update(n).attr({x:0,y:0,width:t,height:e,patternUnits:"userSpaceOnUse"})})}}),Pt(Ye,"Pattern");class $e extends je{constructor(t,e=t){super(Lt("image",t),e)}load(t,e){if(!t)return this;const n=new Mt.window.Image;return we(n,"load",function(t){const r=this.parent(Ye);0===this.width()&&0===this.height()&&this.size(n.width,n.height),r instanceof Ye&&0===r.width()&&0===r.height()&&r.size(this.width(),this.height()),"function"==typeof e&&e.call(this,t)},this),we(n,"load error",function(){be(n)}),this.attr("href",n.src=t,St)}}var Qe;Qe=function(t,e,n){return"fill"!==t&&"stroke"!==t||Zt.test(e)&&(e=n.root().defs().image(e)),e instanceof $e&&(e=n.root().defs().pattern(0,0,t=>{t.add(e)})),e},Ce.push(Qe),ct({Container:{image:zt(function(t,e){return this.put(new $e).size(0,0).load(t,e)})}}),Pt($e,"Image");class Ze extends ke{bbox(){let t=-1/0,e=-1/0,n=1/0,r=1/0;return this.forEach(function(i){t=Math.max(i[0],t),e=Math.max(i[1],e),n=Math.min(i[0],n),r=Math.min(i[1],r)}),new he(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 je{constructor(t,e=t){super(Lt("line",t),e)}array(){return new Ze([[this.attr("x1"),this.attr("y1")],[this.attr("x2"),this.attr("y2")]])}move(t,e){return this.attr(this.array().move(t,e).toLine())}plot(t,e,n,r){return null==t?this.array():(t=void 0!==e?{x1:t,y1:e,x2:n,y2:r}:new Ze(t).toLine(),this.attr(t))}size(t,e){const n=vt(this,t,e);return this.attr(this.array().size(n.width,n.height).toLine())}}Rt(rn,i),ct({Container:{line:zt(function(...t){return rn.prototype.plot.apply(this.put(new rn),null!=t[0]?t:[0,0,0,0])})}}),Pt(rn,"Line");class sn extends Oe{constructor(t,e=t){super(Lt("marker",t),e)}height(t){return this.attr("markerHeight",t)}orient(t){return this.attr("orient",t)}ref(t,e){return this.attr("refX",t).attr("refY",e)}toString(){return"url(#"+this.id()+")"}update(t){return this.clear(),"function"==typeof t&&t.call(this,this),this}width(t){return this.attr("markerWidth",t)}}function on(t,e){return function(n){return null==n?this[t]:(this[t]=n,e&&e.call(this),this)}}ct({Container:{marker(...t){return this.defs().marker(...t)}},Defs:{marker:zt(function(t,e,n){return this.put(new sn).size(t,e).ref(t/2,e/2).viewbox(0,0,t,e).attr("orient","auto").update(n)})},marker:{marker(t,e,n,r){let i=["marker"];return"all"!==t&&i.push(t),i=i.join("-"),t=arguments[1]instanceof sn?arguments[1]:this.defs().marker(e,n,r),this.attr(i,t)}}}),Pt(sn,"Marker");const an={"-":function(t){return t},"<>":function(t){return-Math.cos(t*Math.PI)/2+.5},">":function(t){return Math.sin(t*Math.PI/2)},"<":function(t){return 1-Math.cos(t*Math.PI/2)},bezier:function(t,e,n,r){return function(i){return i<0?t>0?e/t*i:n>0?r/n*i:0:i>1?n<1?(1-r)/(1-n)*i+(r-n)/(1-n):t<1?(1-e)/(1-t)*i+(e-t)/(1-t):1:3*i*(1-i)**2*e+3*i**2*(1-i)*r+i**3}},steps:function(t,e="end"){e=e.split("-").reverse()[0];let n=t;return"none"===e?--n:"both"===e&&++n,(r,i=!1)=>{let s=Math.floor(r*t);const o=r*s%1==0;return"start"!==e&&"both"!==e||++s,i&&o&&--s,r>=0&&s<0&&(s=0),r<=1&&s>n&&(s=n),s/n}}};class un{done(){return!1}}class hn extends un{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 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 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 fn={M:2,L:2,H:1,V:1,C:6,S:4,Q:4,T:2,A:7,Z:0},dn={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)dn[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 dn[t](e,n,r)}}(pn[t].toUpperCase());function mn(t){return t.segment.length&&t.segment.length-1===fn[t.segment[0].toUpperCase()]}function gn(t,e){t.inNumber&&yn(t,!1);const n=Kt.test(e);if(n)t.segment=[e];else{const e=t.lastCommand,n=e.toLowerCase(),r=e===n;t.segment=["m"===n?r?"l":"L":e]}return t.inSegment=!0,t.lastCommand=t.segment[0],n}function yn(t,e){if(!t.inNumber)throw new Error("Parser Error");t.number&&t.segment.push(parseFloat(t.number)),t.inNumber=e,t.number="",t.pointSeen=!1,t.hasExponent=!1,mn(t)&&vn(t)}function vn(t){t.inSegment=!1,t.absolute&&(t.segment=function(t){const e=t.segment[0];return dn[e](t.segment.slice(1),t.p,t.p0)}(t)),t.segments.push(t.segment)}function wn(t){if(!t.segment.length)return!1;const e="A"===t.segment[0].toUpperCase(),n=t.segment.length;return e&&(4===n||5===n)}function bn(t){return"E"===t.lastToken.toUpperCase()}const xn=new Set([" ",",","\t","\n","\r","\f"]);class _n extends ke{bbox(){return ae().path.setAttribute("d",this.toString()),new he(ae.nodes.path.getBBox())}move(t,e){const n=this.bbox();if(t-=n.x,e-=n.y,!isNaN(t)&&!isNaN(e))for(let n,r=this.length-1;r>=0;r--)n=this[r][0],"M"===n||"L"===n||"T"===n?(this[r][1]+=t,this[r][2]+=e):"H"===n?this[r][1]+=t:"V"===n?this[r][1]+=e:"C"===n||"S"===n||"Q"===n?(this[r][1]+=t,this[r][2]+=e,this[r][3]+=t,this[r][4]+=e,"C"===n&&(this[r][5]+=t,this[r][6]+=e)):"A"===n&&(this[r][6]+=t,this[r][7]+=e);return this}parse(t="M0 0"){return Array.isArray(t)&&(t=Array.prototype.concat.apply([],t).toString()),function(t,e=!0){let n=0,r="";const i={segment:[],inNumber:!1,number:"",lastToken:"",inSegment:!1,segments:[],pointSeen:!1,hasExponent:!1,absolute:e,p0:new ie,p:new ie};for(;i.lastToken=r,r=t.charAt(n++);)if(i.inSegment||!gn(i,r))if("."!==r)if(isNaN(parseInt(r)))if(xn.has(r))i.inNumber&&yn(i,!1);else if("-"!==r&&"+"!==r)if("E"!==r.toUpperCase()){if(Kt.test(r)){if(i.inNumber)yn(i,!1);else{if(!mn(i))throw new Error("parser Error");vn(i)}--n}}else i.number+=r,i.hasExponent=!0;else{if(i.inNumber&&!bn(i)){yn(i,!1),--n;continue}i.number+=r,i.inNumber=!0}else{if("0"===i.number||wn(i)){i.inNumber=!0,i.number=r,yn(i,!0);continue}i.inNumber=!0,i.number+=r}else{if(i.pointSeen||i.hasExponent){yn(i,!1),--n;continue}i.inNumber=!0,i.pointSeen=!0,i.number+=r}return i.inNumber&&yn(i,!1),i.inSegment&&mn(i)&&vn(i),i.segments}(t)}size(t,e){const n=this.bbox();let r,i;for(n.width=0===n.width?1:n.width,n.height=0===n.height?1:n.height,r=this.length-1;r>=0;r--)i=this[r][0],"M"===i||"L"===i||"T"===i?(this[r][1]=(this[r][1]-n.x)*t/n.width+n.x,this[r][2]=(this[r][2]-n.y)*e/n.height+n.y):"H"===i?this[r][1]=(this[r][1]-n.x)*t/n.width+n.x:"V"===i?this[r][1]=(this[r][1]-n.y)*e/n.height+n.y:"C"===i||"S"===i||"Q"===i?(this[r][1]=(this[r][1]-n.x)*t/n.width+n.x,this[r][2]=(this[r][2]-n.y)*e/n.height+n.y,this[r][3]=(this[r][3]-n.x)*t/n.width+n.x,this[r][4]=(this[r][4]-n.y)*e/n.height+n.y,"C"===i&&(this[r][5]=(this[r][5]-n.x)*t/n.width+n.x,this[r][6]=(this[r][6]-n.y)*e/n.height+n.y)):"A"===i&&(this[r][1]=this[r][1]*t/n.width,this[r][2]=this[r][2]*e/n.height,this[r][6]=(this[r][6]-n.x)*t/n.width+n.x,this[r][7]=(this[r][7]-n.y)*e/n.height+n.y);return this}toString(){return function(t){let e="";for(let n=0,r=t.length;n<r;n++)e+=t[n][0],null!=t[n][1]&&(e+=t[n][1],null!=t[n][2]&&(e+=" ",e+=t[n][2],null!=t[n][3]&&(e+=" ",e+=t[n][3],e+=" ",e+=t[n][4],null!=t[n][5]&&(e+=" ",e+=t[n][5],e+=" ",e+=t[n][6],null!=t[n][7]&&(e+=" ",e+=t[n][7])))));return e+" "}(this)}}const Nn=t=>{const e=typeof t;return"number"===e?Se:"string"===e?re.isColor(t)?re:Jt.test(t)?Kt.test(t)?_n:ke:Ft.test(t)?Se:Sn:En.indexOf(t.constructor)>-1?t.constructor:Array.isArray(t)?ke:"object"===e?An:Sn};class kn{constructor(t){this._stepper=t||new hn("-"),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===An&&(e=this._to?e.align(this._to):this._from?e.align(this._from):e),e=e.toConsumable(),this._morphObj=this._morphObj||new this._type,this._context=this._context||Array.apply(null,Array(e.length)).map(Object).map(function(t){return t.done=!0,t}),e}}class Sn{constructor(...t){this.init(...t)}init(t){return t=Array.isArray(t)?t[0]:t,this.value=t,this}toArray(){return[this.value]}valueOf(){return this.value}}class Mn{constructor(...t){this.init(...t)}init(t){return Array.isArray(t)&&(t={scaleX:t[0],scaleY:t[1],shear:t[2],rotate:t[3],translateX:t[4],translateY:t[5],originX:t[6],originY:t[7]}),Object.assign(this,Mn.defaults,t),this}toArray(){const t=this;return[t.scaleX,t.scaleY,t.shear,t.rotate,t.translateX,t.translateY,t.originX,t.originY]}}Mn.defaults={scaleX:1,scaleY:1,shear:0,rotate:0,translateX:0,translateY:0,originX:0,originY:0};const Cn=(t,e)=>t[0]<e[0]?-1:t[0]>e[0]?1:0;class An{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(Cn),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 En=[Sn,Mn,An];class Tn extends je{constructor(t,e=t){super(Lt("path",t),e)}array(){return this._array||(this._array=new _n(this.attr("d")))}clear(){return delete this._array,this}height(t){return null==t?this.bbox().height:this.size(this.bbox().width,t)}move(t,e){return this.attr("d",this.array().move(t,e))}plot(t){return null==t?this.array():this.clear().attr("d","string"==typeof t?t:this._array=new _n(t))}size(t,e){const n=vt(this,t,e);return this.attr("d",this.array().size(n.width,n.height))}width(t){return null==t?this.bbox().width:this.size(t,this.bbox().height)}x(t){return null==t?this.bbox().x:this.move(t,this.bbox().y)}y(t){return null==t?this.bbox().y:this.move(this.bbox().x,t)}}function On(){return this._array||(this._array=new Ze(this.attr("points")))}function Ln(){return delete this._array,this}function jn(t,e){return this.attr("points",this.array().move(t,e))}function Wn(t){return null==t?this.array():this.clear().attr("points","string"==typeof t?t:this._array=new Ze(t))}function Pn(t,e){const n=vt(this,t,e);return this.attr("points",this.array().size(n.width,n.height))}Tn.prototype.MorphArray=_n,ct({Container:{path:zt(function(t){return this.put(new Tn).plot(t||new _n)})}}),Pt(Tn,"Path");class Dn extends je{constructor(t,e=t){super(Lt("polygon",t),e)}}ct({Container:{polygon:zt(function(t){return this.put(new Dn).plot(t||new Ze)})}}),Rt(Dn,i),Rt(Dn,s),Pt(Dn,"Polygon");class Bn extends je{constructor(t,e=t){super(Lt("polyline",t),e)}}ct({Container:{polyline:zt(function(t){return this.put(new Bn).plot(t||new Ze)})}}),Rt(Bn,i),Rt(Bn,s),Pt(Bn,"Polyline");class In extends je{constructor(t,e=t){super(Lt("rect",t),e)}}Rt(In,{rx:We,ry:Pe}),ct({Container:{rect:zt(function(t,e){return this.put(new In).size(t,e)})}}),Pt(In,"Rect");class Rn{constructor(){this._first=null,this._last=null}first(){return this._first&&this._first.value}last(){return this._last&&this._last.value}push(t){const e=void 0!==t.next?t:{value:t,next:null,prev:null};return this._last?(e.prev=this._last,this._last.next=e,this._last=e):(this._last=e,this._first=e),e}remove(t){t.prev&&(t.prev.next=t.next),t.next&&(t.next.prev=t.prev),t===this._last&&(this._last=t.prev),t===this._first&&(this._first=t.next),t.prev=null,t.next=null}shift(){const t=this._first;return t?(this._first=t.next,this._first&&(this._first.prev=null),this._last=this._first?this._last:null,t.value):null}}const zn={nextDraw:null,frames:new Rn,timeouts:new Rn,immediates:new Rn,timer:()=>Mt.window.performance||Mt.window.Date,transforms:[],frame(t){const e=zn.frames.push({run:t});return null===zn.nextDraw&&(zn.nextDraw=Mt.window.requestAnimationFrame(zn._draw)),e},timeout(t,e){e=e||0;const n=zn.timer().now()+e,r=zn.timeouts.push({run:t,time:n});return null===zn.nextDraw&&(zn.nextDraw=Mt.window.requestAnimationFrame(zn._draw)),r},immediate(t){const e=zn.immediates.push(t);return null===zn.nextDraw&&(zn.nextDraw=Mt.window.requestAnimationFrame(zn._draw)),e},cancelFrame(t){null!=t&&zn.frames.remove(t)},clearTimeout(t){null!=t&&zn.timeouts.remove(t)},cancelImmediate(t){null!=t&&zn.immediates.remove(t)},_draw(t){let e=null;const n=zn.timeouts.last();for(;(e=zn.timeouts.shift())&&(t>=e.time?e.run():zn.timeouts.push(e),e!==n););let r=null;const i=zn.frames.last();for(;r!==i&&(r=zn.frames.shift());)r.run(t);let s=null;for(;s=zn.immediates.shift();)s();zn.nextDraw=zn.timeouts.first()||zn.frames.first()?Mt.window.requestAnimationFrame(zn._draw):null}},Fn=zn,qn=function(t){const e=t.start,n=t.runner.duration();return{start:e,duration:n,end:e+n,runner:t.runner}},Un=function(){const t=Mt.window;return(t.performance||t.Date).now()};class Vn extends xe{constructor(t=Un){super(),this._timeSource=t,this.terminate()}active(){return!!this._nextFrame}finish(){return this.time(this.getEndTimeOfTimeline()+1),this.pause()}getEndTime(){const t=this.getLastRunnerInfo(),e=t?t.runner.duration():0;return(t?t.start:this._time)+e}getEndTimeOfTimeline(){const t=this._runners.map(t=>t.start+t.runner.duration());return Math.max(0,...t)}getLastRunnerInfo(){return this.getRunnerInfoById(this._lastRunnerId)}getRunnerInfoById(t){return this._runners[this._runnerIds.indexOf(t)]||null}pause(){return this._paused=!0,this._continue()}persist(t){return null==t?this._persist:(this._persist=t,this)}play(){return this._paused=!1,this.updateTime()._continue()}reverse(t){const e=this.speed();if(null==t)return this.speed(-e);const n=Math.abs(e);return this.speed(t?-n:n)}schedule(t,e,n){if(null==t)return this._runners.map(qn);let r=0;const i=this.getEndTime();if(e=e||0,null==n||"last"===n||"after"===n)r=i;else if("absolute"===n||"start"===n)r=e,e=0;else if("now"===n)r=this._time;else if("relative"===n){const n=this.getRunnerInfoById(t.id);n&&(r=n.start+e,e=0)}else{if("with-last"!==n)throw new Error('Invalid value for the "when" parameter');{const t=this.getLastRunnerInfo();r=t?t.start:this._time}}t.unschedule(),t.timeline(this);const s=t.persist(),o={persist:null===s?this._persist:s,start:r+e,runner:t};return this._lastRunnerId=t.id,this._runners.push(o),this._runners.sort((t,e)=>t.start-e.start),this._runnerIds=this._runners.map(t=>t.runner.id),this.updateTime()._continue(),this}seek(t){return this.time(this._time+t)}source(t){return null==t?this._timeSource:(this._timeSource=t,this)}speed(t){return null==t?this._speed:(this._speed=t,this)}stop(){return this.time(0),this.pause()}time(t){return null==t?this._time:(this._time=t,this._continue(!0))}unschedule(t){const e=this._runnerIds.indexOf(t.id);return e<0||(this._runners.splice(e,1),this._runnerIds.splice(e,1),t.timeline(null)),this}updateTime(){return this.active()||(this._lastSourceTime=this._timeSource()),this}_continue(t=!1){return Fn.cancelFrame(this._nextFrame),this._nextFrame=null,t?this._stepImmediate():(this._paused||(this._nextFrame=Fn.frame(this._step)),this)}_stepFn(t=!1){const e=this._timeSource();let n=e-this._lastSourceTime;t&&(n=0);const r=this._speed*n+(this._time-this._lastStepTime);this._lastSourceTime=e,t||(this._time+=r,this._time=this._time<0?0:this._time),this._lastStepTime=this._time,this.fire("time",this._time);for(let t=this._runners.length;t--;){const e=this._runners[t],n=e.runner;this._time-e.start<=0&&n.reset()}let i=!1;for(let t=0,e=this._runners.length;t<e;t++){const n=this._runners[t],s=n.runner;let o=r;const a=this._time-n.start;a<=0?i=!0:(a<o&&(o=a),s.active()&&(s.step(o).done?!0!==n.persist&&s.duration()-s.time()+this._time+n.persist<this._time&&(s.unschedule(),--t,--e):i=!0))}return i&&!(this._speed<0&&0===this._time)||this._runnerIds.length&&this._speed<0&&this._time>0?this._continue():(this.pause(),this.fire("finished")),this}terminate(){this._startTime=0,this._speed=1,this._persist=0,this._nextFrame=null,this._paused=!0,this._runners=[],this._runnerIds=[],this._lastRunnerId=-1,this._time=0,this._lastSourceTime=0,this._lastStepTime=0,this._step=this._stepFn.bind(this,!1),this._stepImmediate=this._stepFn.bind(this,!0)}}ct({Element:{timeline:function(t){return null==t?(this._timeline=this._timeline||new Vn,this._timeline):(this._timeline=t,this)}}});class Gn extends xe{constructor(t){super(),this.id=Gn.id++,t="function"==typeof(t=null==t?400:t)?new ln(t):t,this._element=null,this._timeline=null,this.done=!1,this._queue=[],this._duration="number"==typeof t&&t,this._isDeclarative=t instanceof ln,this._stepper=this._isDeclarative?t:new hn,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 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=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 hn(t),this}element(t){return null==t?this._element:(this._element=t,t._prepareRunner(),this)}finish(){return this.step(1/0)}loop(t,e,n){return"object"==typeof t&&(e=t.swing,n=t.wait,t=t.times),this._times=t||1/0,this._swing=e||!1,this._wait=n||0,!0===this._times&&(this._times=1/0),this}loops(t){const e=this._duration+this._wait;if(null==t){const t=Math.floor(this._time/e),n=(this._time-t*e)/this._duration;return Math.min(t+n,this._times)}const n=t%1,r=e*Math.floor(t)+this._duration*n;return this.time(r)}persist(t){return null==t?this._persist:(this._persist=t,this)}position(t){const e=this._time,n=this._duration,r=this._wait,i=this._times,s=this._swing,o=this._reverse;let a;if(null==t){const t=function(t){const e=s*Math.floor(t%(2*(r+n))/(r+n)),i=e&&!o||!e&&o,a=Math.pow(-1,i)*(t%(r+n))/n+i;return Math.max(Math.min(a,1),0)},u=i*(r+n)-r;return a=e<=0?Math.round(t(1e-5)):e<u?t(e):Math.round(t(u-1e-5)),a}const u=Math.floor(this.loops()),h=s&&u%2==0;return a=u+(h&&!o||o&&h?t:1-t),this.loops(a)}progress(t){return null==t?Math.min(1,this._time/this.duration()):this.time(t*this.duration())}queue(t,e,n,r){return this._queue.push({initialiser:t||_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 An(i.from()).valueOf();Object.assign(n,e),i.from(n)}const u=new An(i.to()).valueOf();Object.assign(u,e),i.to(u),s=n,r=e}),this._rememberMorpher(t,i),this},zoom(t,e){if(this._tryRetarget("zoom",t,e))return this;let n=new kn(this._stepper).to(new Se(t));return this.queue(function(){n=n.from(this.element().zoom())},function(t){return this.element().zoom(n.at(t),e),n.done()},function(t,r){e=r,n.to(t)}),this._rememberMorpher("zoom",n),this},transform(t,e,n){if(e=t.relative||e,this._isDeclarative&&!e&&this._tryRetarget("transform",t))return this;const r=oe.isMatrixLike(t);n=null!=t.affine?t.affine:null!=n?n:!r;const i=new kn(this._stepper).type(n?Mn:oe);let s,o,a,u,h;return this.queue(function(){o=o||this.element(),s=s||wt(t,o),h=new oe(e?void 0:o),o._addRunner(this),e||o._clearTransformRunnersBefore(this)},function(l){e||this.clearTransform();const{x:c,y:f}=new ie(s).transform(o._currentTransform(this));let d=new oe({...t,origin:[c,f]}),p=this._isDeclarative&&a?a:h;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&&u&&(p.rotate=u)),i.from(p),i.to(d);const m=i.at(l);return u=m.rotate,a=new oe(m),this.addTransform(a),o._addRunner(this),i.done()},function(e){(e.origin||"center").toString()!==(t.origin||"center").toString()&&(s=wt(e,o)),t={...e,origin:s}},!0),this._isDeclarative&&this._rememberMorpher("transform",i),this},x(t){return this._queueNumber("x",t)},y(t){return this._queueNumber("y",t)},ax(t){return this._queueNumber("ax",t)},ay(t){return this._queueNumber("ay",t)},dx(t=0){return this._queueNumberDelta("x",t)},dy(t=0){return this._queueNumberDelta("y",t)},dmove(t,e){return this.dx(t).dy(e)},_queueNumberDelta(t,e){if(e=new Se(e),this._tryRetarget(t,e))return this;const n=new kn(this._stepper).to(e);let r=null;return this.queue(function(){r=this.element()[t](),n.from(r),n.to(r+e)},function(e){return this.element()[t](n.at(e)),n.done()},function(t){n.to(r+new Se(t))}),this._rememberMorpher(t,n),this},_queueObject(t,e){if(this._tryRetarget(t,e))return this;const n=new kn(this._stepper).to(e);return this.queue(function(){n.from(this.element()[t]())},function(e){return this.element()[t](n.at(e)),n.done()}),this._rememberMorpher(t,n),this},_queueNumber(t,e){return this._queueObject(t,new Se(e))},cx(t){return this._queueNumber("cx",t)},cy(t){return this._queueNumber("cy",t)},move(t,e){return this.x(t).y(e)},amove(t,e){return this.ax(t).ay(e)},center(t,e){return this.cx(t).cy(e)},size(t,e){let n;return t&&e||(n=this._element.bbox()),t||(t=n.width/n.height*e),e||(e=n.height/n.width*t),this.width(t).height(e)},width(t){return this._queueNumber("width",t)},height(t){return this._queueNumber("height",t)},plot(t,e,n,r){if(4===arguments.length)return this.plot([t,e,n,r]);if(this._tryRetarget("plot",t))return this;const i=new kn(this._stepper).type(this._element.MorphArray).to(t);return this.queue(function(){i.from(this._element.array())},function(t){return this._element.plot(i.at(t)),i.done()}),this._rememberMorpher("plot",i),this},leading(t){return this._queueNumber("leading",t)},viewbox(t,e,n,r){return this._queueObject("viewbox",new he(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:We,ry:Pe,from:Ge,to:He}),Pt(Gn,"Runner");class Zn extends Oe{constructor(t,e=t){super(Lt("svg",t),e),this.namespace()}defs(){return this.isRoot()?jt(this.node.querySelector("defs"))||this.put(new Le):this.root().defs()}isRoot(){return!this.node.parentNode||!(this.node.parentNode instanceof Mt.window.SVGElement)&&"#document-fragment"!==this.node.parentNode.nodeName}namespace(){return this.isRoot()?this.attr({xmlns:Nt,version:"1.1"}).attr("xmlns:xlink",St,kt):this.root().namespace()}removeNamespace(){return this.attr({xmlns:null,version:null}).attr("xmlns:xlink",null,kt).attr("xmlns:svgjs",null,kt)}root(){return this.isRoot()?this:super.root()}}ct({Container:{nested:zt(function(){return this.put(new Zn)})}}),Pt(Zn,"Svg",!0);class Jn extends Oe{constructor(t,e=t){super(Lt("symbol",t),e)}}function Kn(t){return!1===this._build&&this.clear(),this.node.appendChild(Mt.document.createTextNode(t)),this}function tr(){return this.node.getComputedTextLength()}function er(t,e=this.bbox()){return null==t?e.x:this.attr("x",this.attr("x")+t-e.x)}function nr(t,e=this.bbox()){return null==t?e.y:this.attr("y",this.attr("y")+t-e.y)}function rr(t,e,n=this.bbox()){return this.x(t,n).y(e,n)}function ir(t,e=this.bbox()){return null==t?e.cx:this.attr("x",this.attr("x")+t-e.cx)}function sr(t,e=this.bbox()){return null==t?e.cy:this.attr("y",this.attr("y")+t-e.cy)}function or(t,e,n=this.bbox()){return this.cx(t,n).cy(e,n)}function ar(t){return this.attr("x",t)}function ur(t){return this.attr("y",t)}function hr(t,e){return this.ax(t).ay(e)}function lr(t){return this._build=!!t,this}ct({Container:{symbol:zt(function(){return this.put(new Jn)})}}),Pt(Jn,"Symbol");class cr extends je{constructor(t,e=t){super(Lt("text",t),e),this.dom.leading=this.dom.leading??new Se(1.3),this._rebuild=!0,this._build=!1}leading(t){return null==t?this.dom.leading:(this.dom.leading=new Se(t),this.rebuild())}rebuild(t){if("boolean"==typeof t&&(this._rebuild=t),this._rebuild){const t=this;let e=0;const n=this.dom.leading;this.each(function(r){if(xt(this.node))return;const i=Mt.window.getComputedStyle(this.node).getPropertyValue("font-size"),s=n*new Se(i);this.dom.newLined&&(this.attr("x",t.attr("x")),"\n"===this.text()?e+=s:(this.attr("dy",r?s+e:0),e=0))}),this.fire("rebuild")}return this}setData(t){return this.dom=t,this.dom.leading=new Se(t.leading||1.3),this}writeDataToDom(){return _t(this,this.dom,{leading:1.3}),this}text(t){if(void 0===t){const e=this.node.childNodes;let n=0;t="";for(let r=0,i=e.length;r<i;++r)"textPath"===e[r].nodeName||xt(e[r])?0===r&&(n=r+1):(r!==n&&3!==e[r].nodeType&&!0===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()}}Rt(cr,o),ct({Container:{text:zt(function(t=""){return this.put(new cr).text(t)}),plain:zt(function(t=""){return this.put(new cr).plain(t)})}}),Pt(cr,"Text");class fr extends je{constructor(t,e=t){super(Lt("tspan",t),e),this._build=!1}dx(t){return this.attr("dx",t)}dy(t){return this.attr("dy",t)}newLine(){this.dom.newLined=!0;const t=this.parent();if(!(t instanceof cr))return this;const e=t.index(this),n=Mt.window.getComputedStyle(this.node).getPropertyValue("font-size"),r=t.dom.leading*new Se(n);return this.dy(e?r:0).attr("x",t.x())}text(t){return null==t?this.node.textContent+(this.dom.newLined?"\n":""):("function"==typeof t?(this.clear().build(!0),t.call(this,this),this.build(!1)):this.plain(t),this)}}Rt(fr,o),ct({Tspan:{tspan:zt(function(t=""){const e=new fr;return this._build||this.clear(),this.put(e).text(t)})},Text:{newLine:function(t=""){return this.tspan(t).newLine()}}}),Pt(fr,"Tspan");class dr extends je{constructor(t,e=t){super(Lt("circle",t),e)}radius(t){return this.attr("r",t)}rx(t){return this.attr("r",t)}ry(t){return this.rx(t)}size(t){return this.radius(new Se(t).divide(2))}}Rt(dr,{x:De,y:Be,cx:Ie,cy:Re,width:ze,height:Fe}),ct({Container:{circle:zt(function(t=0){return this.put(new dr).size(t).move(0,0)})}}),Pt(dr,"Circle");class pr extends Oe{constructor(t,e=t){super(Lt("clipPath",t),e)}remove(){return this.targets().forEach(function(t){t.unclip()}),super.remove()}targets(){return pe("svg [clip-path*="+this.id()+"]")}}ct({Container:{clip:zt(function(){return this.defs().put(new pr)})},Element:{clipper(){return this.reference("clip-path")},clipWith(t){const e=t instanceof pr?t:this.parent().clip().add(t);return this.attr("clip-path","url(#"+e.id()+")")},unclip(){return this.attr("clip-path",null)}}}),Pt(pr,"ClipPath");class mr extends Ee{constructor(t,e=t){super(Lt("foreignObject",t),e)}}function gr(t,e){return this.children().forEach(n=>{let r;try{r=n.node instanceof Mt.window.SVGSVGElement?new he(n.attr(["x","y","width","height"])):n.bbox()}catch(t){return}const i=new oe(n),s=i.translate(t,e).transform(i.inverse()),o=new ie(r.x,r.y).transform(s);n.move(o.x,o.y)}),this}function yr(t){return this.dmove(t,0)}function vr(t){return this.dmove(0,t)}function wr(t,e=this.bbox()){return null==t?e.height:this.size(e.width,t,e)}function br(t=0,e=0,n=this.bbox()){const r=t-n.x,i=e-n.y;return this.dmove(r,i)}function xr(t,e,n=this.bbox()){const r=vt(this,t,e,n),i=r.width/n.width,s=r.height/n.height;return this.children().forEach(t=>{const e=new ie(n).transform(new oe(t).inverse());t.scale(i,s,e.x,e.y)}),this}function _r(t,e=this.bbox()){return null==t?e.width:this.size(t,e.height,e)}function Nr(t,e=this.bbox()){return null==t?e.x:this.move(t,e.y,e)}function kr(t,e=this.bbox()){return null==t?e.y:this.move(e.x,t,e)}ct({Container:{foreignObject:zt(function(t,e){return this.put(new mr).size(t,e)})}}),Pt(mr,"ForeignObject");class Sr extends Oe{constructor(t,e=t){super(Lt("g",t),e)}}Rt(Sr,a),ct({Container:{group:zt(function(){return this.put(new Sr)})}}),Pt(Sr,"G");class Mr extends Oe{constructor(t,e=t){super(Lt("a",t),e)}target(t){return this.attr("target",t)}to(t){return this.attr("href",t,St)}}Rt(Mr,a),ct({Container:{link:zt(function(t){return this.put(new Mr).to(t)})},Element:{unlink(){const t=this.linker();if(!t)return this;const e=t.parent();if(!e)return this.remove();const n=e.index(t);return e.add(this,n),t.remove(),this},linkTo(t){let e=this.linker();return e||(e=new Mr,this.wrap(e)),"function"==typeof t?t.call(e,e):e.to(t),this},linker(){const t=this.parent();return t&&"a"===t.node.nodeName.toLowerCase()?t:null}}}),Pt(Mr,"A");class Cr extends Oe{constructor(t,e=t){super(Lt("mask",t),e)}remove(){return this.targets().forEach(function(t){t.unmask()}),super.remove()}targets(){return pe("svg [mask*="+this.id()+"]")}}ct({Container:{mask:zt(function(){return this.defs().put(new Cr)})},Element:{masker(){return this.reference("mask")},maskWith(t){const e=t instanceof Cr?t:this.parent().mask().add(t);return this.attr("mask","url(#"+e.id()+")")},unmask(){return this.attr("mask",null)}}}),Pt(Cr,"Mask");class Ar extends Ee{constructor(t,e=t){super(Lt("stop",t),e)}update(t){return("number"==typeof t||t instanceof Se)&&(t={offset:arguments[0],color:arguments[1],opacity:arguments[2]}),null!=t.opacity&&this.attr("stop-opacity",t.opacity),null!=t.color&&this.attr("stop-color",t.color),null!=t.offset&&this.attr("offset",new Se(t.offset)),this}}ct({Gradient:{stop:function(t,e,n){return this.put(new Ar).update(t,e,n)}}}),Pt(Ar,"Stop");class Er extends Ee{constructor(t,e=t){super(Lt("style",t),e)}addText(t=""){return this.node.textContent+=t,this}font(t,e,n={}){return this.rule("@font-face",{fontFamily:t,src:e,...n})}rule(t,e){return this.addText(function(t,e){if(!t)return"";if(!e)return t;let n=t+"{";for(const t in e)n+=gt(t)+":"+e[t]+";";return n+="}",n}(t,e))}}ct("Dom",{style(t,e){return this.put(new Er).rule(t,e)},fontface(t,e,n){return this.put(new Er).font(t,e,n)}}),Pt(Er,"Style");class Tr extends cr{constructor(t,e=t){super(Lt("textPath",t),e)}array(){const t=this.track();return t?t.array():null}plot(t){const e=this.track();let n=null;return e&&(n=e.plot(t)),null==t?n:this}track(){return this.reference("href")}}ct({Container:{textPath:zt(function(t,e){return t instanceof cr||(t=this.text(t)),t.path(e)})},Text:{path:zt(function(t,e=!0){const n=new Tr;let r;if(t instanceof Tn||(t=this.defs().path(t)),n.attr("href","#"+t,St),e)for(;r=this.node.firstChild;)n.node.appendChild(r);return this.put(n)}),textPath(){return this.findOne("textPath")}},Path:{text:zt(function(t){return t instanceof cr||(t=(new cr).addTo(this.parent()).text(t)),t.path(this)}),targets(){return pe("svg textPath").filter(t=>(t.attr("href")||"").includes(this.id()))}}}),Tr.prototype.MorphArray=_n,Pt(Tr,"TextPath");class Or extends je{constructor(t,e=t){super(Lt("use",t),e)}use(t,e){return this.attr("href",(e||"")+"#"+t,St)}}ct({Container:{use:zt(function(t,e){return this.put(new Or).use(t,e)})}}),Pt(Or,"Use"),Rt([Zn,Jn,$e,Ye,sn],ft("viewbox")),Rt([rn,Bn,Dn,Tn],ft("marker")),Rt(cr,ft("Text")),Rt(Tn,ft("Path")),Rt(Le,ft("Defs")),Rt([cr,fr],ft("Tspan")),Rt([In,qe,Xe,Gn],ft("radius")),Rt(xe,ft("EventTarget")),Rt(Ae,ft("Dom")),Rt(Ee,ft("Element")),Rt(je,ft("Shape")),Rt([Oe,Ve],ft("Container")),Rt(Xe,ft("Gradient")),Rt(Gn,ft("Runner")),fe.extend([...new Set(lt)]),function(t=[]){En.push(...[].concat(t))}([Se,re,he,oe,ke,Ze,_n,ie]),Rt(En,{to(t){return(new kn).type(this.constructor).from(this.toArray()).to(t)},fromArray(t){return this.init(t),this},toConsumable(){return this.toArray()},morph(t,e,n,r,i){return this.fromArray(t.map(function(t,s){return r.step(t,e[s],n,i[s],i)}))}});var Lr,jr,Wr,Pr,Dr,Br,Ir,Rr,zr,Fr,qr,Ur,Vr,Gr,Hr,Xr,Yr,$r,Qr,Zr,Jr,Kr,ti,ei,ni,ri,ii,si,oi,ai,ui,hi,li,ci,fi,di,pi,mi,gi,yi,vi,wi,bi,xi,_i,Ni,ki,Si,Mi,Ci,Ai,Ei,Ti,Oi,Li,ji,Wi,Pi,Di,Bi,Ii,Ri,zi,Fi,qi,Ui,Vi,Gi,Hi,Xi,Yi,$i,Qi,Zi,Ji,Ki,ts,es,ns,rs,is,ss,os,as,us,hs,ls,cs,fs,ds,ps,ms,gs,ys,vs,ws,bs,xs=n(169),_s=n(726),Ns=n(692),ks=function(t,e,n,r,i){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?i.call(t,n):i?i.value=n:e.set(t,n),n},Ss=function(t,e,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!r:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(t):r?r.value:e.get(t)};class Ms{constructor(t){Lr.add(this),jr.set(this,void 0),this.domNode=document.createElement("div"),Wr.set(this,new Cs),Pr.set(this,document.createElement("div")),Dr.set(this,void 0),Br.set(this,void 0),Ir.set(this,document.createElement("div")),Rr.set(this,void 0),zr.set(this,void 0),Fr.set(this,void 0),qr.set(this,void 0),Ur.set(this,void 0),Vr.set(this,void 0),Gr.set(this,void 0),Hr.set(this,void 0),Xr.set(this,void 0),Yr.set(this,void 0),$r.set(this,void 0),Qr.set(this,void 0),ks(this,jr,t,"f"),this.domNode.classList.add(_.lf),Ss(this,Wr,"f").domNode.addEventListener("click",()=>this.domNode.classList.toggle(_.ho)),this.domNode.append(Ss(this,Wr,"f").domNode),Ss(this,Pr,"f").classList.add(_.Qs),this.domNode.append(Ss(this,Pr,"f")),ks(this,Dr,new As(t),"f"),Ss(this,Pr,"f").append(Ss(this,Dr,"f").domNode),ks(this,Br,new Es(t),"f"),Ss(this,Pr,"f").append(Ss(this,Br,"f").domNode),Ss(this,Ir,"f").classList.add(_.eB),Ss(this,Pr,"f").append(Ss(this,Ir,"f")),t.selectedBases.addEventListener("change",()=>{document.body.contains(this.domNode)&&([...t.selectedBases].length>0?Ss(this,Lr,"m",Jr).call(this):Ss(this,Lr,"m",Kr).call(this))}),ks(this,Rr,new Ts(t),"f"),Ss(this,Ir,"f").append(Ss(this,Rr,"f").domNode),ks(this,zr,new Os(t),"f"),Ss(this,Ir,"f").append(Ss(this,zr,"f").domNode),ks(this,Fr,new Ls(t),"f"),Ss(this,Ir,"f").append(Ss(this,Fr,"f").domNode),ks(this,qr,new js(t),"f"),Ss(this,Ir,"f").append(Ss(this,qr,"f").domNode),ks(this,Ur,new Ws(t),"f"),Ss(this,Ir,"f").append(Ss(this,Ur,"f").domNode),ks(this,Vr,new Ps(t),"f"),Ss(this,Ir,"f").append(Ss(this,Vr,"f").domNode),ks(this,Gr,new Ds(t),"f"),Ss(this,Ir,"f").append(Ss(this,Gr,"f").domNode),ks(this,Hr,new Bs(t),"f"),Ss(this,Ir,"f").append(Ss(this,Hr,"f").domNode),ks(this,Xr,new Is(t),"f"),Ss(this,Ir,"f").append(Ss(this,Xr,"f").domNode),ks(this,Yr,new Fs(t),"f"),Ss(this,Ir,"f").append(Ss(this,Yr,"f").domNode),ks(this,$r,new qs(t),"f"),Ss(this,Ir,"f").append(Ss(this,$r,"f").domNode),ks(this,Qr,new Us(t),"f"),Ss(this,Ir,"f").append(Ss(this,Qr,"f").domNode)}refresh(){Ss(this,Lr,"a",Zr).forEach(t=>t.refresh()),[...Ss(this,jr,"f").selectedBases].length>0?Ss(this,Lr,"m",Jr).call(this):Ss(this,Lr,"m",Kr).call(this)}}jr=new WeakMap,Wr=new WeakMap,Pr=new WeakMap,Dr=new WeakMap,Br=new WeakMap,Ir=new WeakMap,Rr=new WeakMap,zr=new WeakMap,Fr=new WeakMap,qr=new WeakMap,Ur=new WeakMap,Vr=new WeakMap,Gr=new WeakMap,Hr=new WeakMap,Xr=new WeakMap,Yr=new WeakMap,$r=new WeakMap,Qr=new WeakMap,Lr=new WeakSet,Zr=function(){return[Ss(this,Dr,"f"),Ss(this,Br,"f"),Ss(this,Rr,"f"),Ss(this,zr,"f"),Ss(this,Fr,"f"),Ss(this,qr,"f"),Ss(this,Ur,"f"),Ss(this,Vr,"f"),Ss(this,Gr,"f"),Ss(this,Hr,"f"),Ss(this,Xr,"f"),Ss(this,Yr,"f"),Ss(this,$r,"f"),Ss(this,Qr,"f")]},Jr=function(){Ss(this,Ir,"f").style.display="block"},Kr=function(){Ss(this,Ir,"f").style.display="none"};class Cs{constructor(){this.domNode=document.createElement("div"),ti.set(this,document.createElementNS("http://www.w3.org/2000/svg","svg")),ei.set(this,document.createElement("p")),this.domNode.classList.add(_.wx),Ss(this,ti,"f").classList.add(_.m9),Ss(this,ti,"f").setAttribute("viewBox","0 0 6 10"),Ss(this,ti,"f").setAttribute("width","6"),Ss(this,ti,"f").setAttribute("height","10"),Ss(this,ti,"f").innerHTML='\n <path\n d="M 1 1 L 5 5 L 1 9"\n stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"\n fill="none"\n ></path>\n ',this.domNode.append(Ss(this,ti,"f")),Ss(this,ei,"f").classList.add(_.aW),Ss(this,ei,"f").textContent="Bases",this.domNode.append(Ss(this,ei,"f"))}}ti=new WeakMap,ei=new WeakMap;class As{constructor(t){ni.set(this,void 0),this.domNode=document.createElement("p"),ri.set(this,document.createElement("span")),ii.set(this,document.createElement("span")),ks(this,ni,t,"f"),this.domNode.classList.add(_.IU),Ss(this,ri,"f").style.fontWeight="700",this.domNode.append(Ss(this,ri,"f"),Ss(this,ii,"f")),Ss(this,ni,"f").selectedBases.addEventListener("change",()=>document.body.contains(this.domNode)?this.refresh():{}),this.refresh()}refresh(){let t=[...Ss(this,ni,"f").selectedBases].length;Ss(this,ri,"f").textContent=`${t}`,Ss(this,ii,"f").textContent=1==t?" base is selected.":" bases are selected."}}ni=new WeakMap,ri=new WeakMap,ii=new WeakMap;class Es{constructor(t){si.add(this),oi.set(this,void 0),this.domNode=document.createElement("div"),ai.set(this,new A),ui.set(this,document.createElement("div")),hi.set(this,{All:new P("All",()=>Ss(this,si,"m",fi).call(this)),None:new P("None",()=>Ss(this,si,"m",di).call(this)),A:new P("A",()=>Ss(this,si,"m",pi).call(this,"A")),U:new P("U",()=>Ss(this,si,"m",pi).call(this,"U")),G:new P("G",()=>Ss(this,si,"m",pi).call(this,"G")),C:new P("C",()=>Ss(this,si,"m",pi).call(this,"C")),T:new P("T",()=>Ss(this,si,"m",pi).call(this,"T")),a:new P("a",()=>Ss(this,si,"m",pi).call(this,"a")),u:new P("u",()=>Ss(this,si,"m",pi).call(this,"u")),g:new P("g",()=>Ss(this,si,"m",pi).call(this,"g")),c:new P("c",()=>Ss(this,si,"m",pi).call(this,"c")),t:new P("t",()=>Ss(this,si,"m",pi).call(this,"t")),Outlined:new P("Outlined",()=>Ss(this,si,"m",mi).call(this)),Paired:new P("Paired",()=>Ss(this,si,"m",gi).call(this)),Unpaired:new P("Unpaired",()=>Ss(this,si,"m",yi).call(this))}),li.set(this,void 0),ks(this,oi,t,"f"),this.domNode.classList.add(_.vw),Ss(this,ai,"f").textContent="Select:",Ss(this,ai,"f").domNode.addEventListener("click",()=>Ss(this,si,"m",ci).call(this)),this.domNode.append(Ss(this,ai,"f").domNode);let e=document.createElement("div");Ns(e).css({marginTop:"1.5px",display:"flex",flexDirection:"column",gap:"6px"}),this.domNode.append(e);let n=document.createElement("div");Ns(n).css({display:"flex",flexDirection:"row",gap:"23px"}),n.append(...["All","None"].map(t=>Ss(this,hi,"f")[t].domNode)),e.append(n),Ns(Ss(this,ui,"f")).css({display:"flex",flexDirection:"column",gap:"6px"}),e.append(Ss(this,ui,"f")),Ss(this,ui,"f").style.display="none",Ss(this,ai,"f").caret.pointRight();let r=document.createElement("div");Ns(r).css({display:"flex",flexDirection:"row",gap:"17px"}),r.append(...["A","U","G","C","T"].map(t=>Ss(this,hi,"f")[t].domNode)),Ss(this,ui,"f").append(r);let i=document.createElement("div");Ns(i).css({display:"flex",flexDirection:"row",gap:"18px"}),i.append(...["a","u","g","c","t"].map(t=>Ss(this,hi,"f")[t].domNode)),Ss(this,ui,"f").append(i),Ss(this,ui,"f").append(Ss(this,hi,"f").Outlined.domNode);let s=document.createElement("div");Ns(s).css({display:"flex",flexDirection:"row",gap:"18px"}),s.append(...["Paired","Unpaired"].map(t=>Ss(this,hi,"f")[t].domNode)),Ss(this,ui,"f").append(s),t.selectedBases.addEventListener("change",()=>document.body.contains(this.domNode)?this.refresh():{}),t.selectedOutlines.addEventListener("change",()=>document.body.contains(this.domNode)?this.refresh():{}),ks(this,li,new MutationObserver(()=>document.body.contains(this.domNode)?this.refresh():{}),"f"),Ss(this,li,"f").observe(t.drawing.domNode,{childList:!0,subtree:!0}),this.refresh()}refresh(){let t=[...Ss(this,oi,"f").drawing.bases],e=new Set([...Ss(this,oi,"f").drawing.secondaryBonds].flatMap(t=>[t.base1,t.base2])),n=t.filter(t=>!e.has(t)),r=new Set(Ss(this,oi,"f").selectedBases),i=[...Ss(this,oi,"f").selectedOutlines];0==t.length?(Ss(this,hi,"f").All.disable(),Ss(this,hi,"f").All.tooltip.textContent="There are no bases in the drawing."):r.size==t.length?(Ss(this,hi,"f").All.disable(),Ss(this,hi,"f").All.tooltip.textContent="All bases are already selected."):(Ss(this,hi,"f").All.enable(),Ss(this,hi,"f").All.tooltip.textContent="Select all bases."),0==r.size?(Ss(this,hi,"f").None.disable(),Ss(this,hi,"f").None.tooltip.textContent="No bases are selected."):(Ss(this,hi,"f").None.enable(),Ss(this,hi,"f").None.tooltip.textContent="Deselect all bases."),["A","U","G","C","T","a","u","g","c","t"].forEach(e=>{let n=t.filter(t=>t.textContent==e),i=Ss(this,hi,"f")[e];0==n.length?(i.disable(),i.tooltip.textContent=`No bases have the letter "${e}".`):n.every(t=>r.has(t))?(i.disable(),i.tooltip.textContent=`All bases with the letter "${e}" are already selected.`):(i.enable(),i.tooltip.textContent=`Select all bases with the letter "${e}".`)}),0==i.length?(Ss(this,hi,"f").Outlined.disable(),Ss(this,hi,"f").Outlined.tooltip.textContent="No outlines are selected."):i.map(t=>t.owner).every(t=>r.has(t))?(Ss(this,hi,"f").Outlined.disable(),Ss(this,hi,"f").Outlined.tooltip.textContent="All bases outlined by the selected outlines are already selected."):(Ss(this,hi,"f").Outlined.enable(),Ss(this,hi,"f").Outlined.tooltip.textContent="Select bases outlined by the selected outlines."),0==e.size?(Ss(this,hi,"f").Paired.disable(),Ss(this,hi,"f").Paired.tooltip.textContent="There are no paired bases in the drawing."):[...e].every(t=>r.has(t))?(Ss(this,hi,"f").Paired.disable(),Ss(this,hi,"f").Paired.tooltip.textContent="All paired bases are already selected."):(Ss(this,hi,"f").Paired.enable(),Ss(this,hi,"f").Paired.tooltip.textContent="Select all paired bases."),0==n.length?(Ss(this,hi,"f").Unpaired.disable(),Ss(this,hi,"f").Unpaired.tooltip.textContent="There are no unpaired bases in the drawing."):n.every(t=>r.has(t))?(Ss(this,hi,"f").Unpaired.disable(),Ss(this,hi,"f").Unpaired.tooltip.textContent="All unpaired bases are already selected."):(Ss(this,hi,"f").Unpaired.enable(),Ss(this,hi,"f").Unpaired.tooltip.textContent="Select all unpaired bases.")}}oi=new WeakMap,ai=new WeakMap,ui=new WeakMap,hi=new WeakMap,li=new WeakMap,si=new WeakSet,ci=function(){let t="none"!=Ss(this,ui,"f").style.display;Ss(this,ui,"f").style.display=t?"none":"flex",t?Ss(this,ai,"f").caret.pointRight():Ss(this,ai,"f").caret.pointDown()},fi=function(){Ss(this,oi,"f").addToSelected([...Ss(this,oi,"f").drawing.bases])},di=function(){Ss(this,oi,"f").removeFromSelected([...Ss(this,oi,"f").drawing.bases])},pi=function(t){Ss(this,oi,"f").addToSelected([...Ss(this,oi,"f").drawing.bases].filter(e=>e.domNode.textContent==t))},mi=function(){Ss(this,oi,"f").addToSelected([...Ss(this,oi,"f").selectedOutlines].map(t=>t.owner))},gi=function(){Ss(this,oi,"f").addToSelected([...Ss(this,oi,"f").drawing.secondaryBonds].flatMap(t=>[t.base1,t.base2]))},yi=function(){let t=new Set([...Ss(this,oi,"f").drawing.secondaryBonds].flatMap(t=>[t.base1,t.base2]));Ss(this,oi,"f").addToSelected([...Ss(this,oi,"f").drawing.bases].filter(e=>!t.has(e)))};class Ts{constructor(t){vi.add(this),wi.set(this,void 0),this.domNode=document.createElement("div"),bi.set(this,document.createElement("p")),xi.set(this,new P),_i.set(this,new P),ks(this,wi,t,"f"),this.domNode.classList.add(_.Te),Ss(this,bi,"f").classList.add(_.QB),Ss(this,bi,"f").textContent="Send to:",this.domNode.append(Ss(this,bi,"f")),Ss(this,xi,"f").domNode.addEventListener("click",()=>Ss(this,vi,"m",Ni).call(this)),Ss(this,xi,"f").textContent="Front",Ss(this,xi,"f").domNode.style.marginLeft="26px",this.domNode.append(Ss(this,xi,"f").domNode),Ss(this,_i,"f").domNode.addEventListener("click",()=>Ss(this,vi,"m",ki).call(this)),Ss(this,_i,"f").textContent="Back",Ss(this,_i,"f").domNode.style.marginLeft="28px",this.domNode.append(Ss(this,_i,"f").domNode),t.selectedBases.addEventListener("change",()=>document.body.contains(this.domNode)?this.refresh():{}),this.refresh()}refresh(){Ss(this,vi,"m",Si).call(this),Ss(this,vi,"m",Mi).call(this)}}wi=new WeakMap,bi=new WeakMap,xi=new WeakMap,_i=new WeakMap,vi=new WeakSet,Ni=function(){let t=[...Ss(this,wi,"f").selectedBases];0!=t.length?(Ss(this,wi,"f").pushUndoStack(),t.forEach(t=>(0,_s.bringToFront)(t.domNode))):this.refresh()},ki=function(){let t=[...Ss(this,wi,"f").selectedBases];0!=t.length?(Ss(this,wi,"f").pushUndoStack(),t.forEach(t=>(0,_s.sendToBack)(t.domNode))):this.refresh()},Si=function(){0==[...Ss(this,wi,"f").selectedBases].length?(Ss(this,xi,"f").disable(),Ss(this,xi,"f").tooltip.textContent="No bases are selected."):(Ss(this,xi,"f").enable(),Ss(this,xi,"f").tooltip.textContent="Bring the selected bases to the front.")},Mi=function(){0==[...Ss(this,wi,"f").selectedBases].length?(Ss(this,_i,"f").disable(),Ss(this,_i,"f").tooltip.textContent="No bases are selected."):(Ss(this,_i,"f").enable(),Ss(this,_i,"f").tooltip.textContent="Send the selected bases to the back.")};class Os{constructor(t){Ci.add(this),Ai.set(this,void 0),Ei.set(this,new z({onSubmit:()=>Ss(this,Ci,"m",Oi).call(this)})),Ti.set(this,void 0),ks(this,Ai,t,"f"),ks(this,Ti,new Q("Text Content",Ss(this,Ei,"f").domNode),"f"),Ss(this,Ti,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/API/Node/textContent",this.domNode.style.marginTop="23px",this.domNode.style.alignSelf="start",Ss(this,Ai,"f").selectedBases.addEventListener("change",()=>document.body.contains(this.domNode)?this.refresh():{}),new MutationObserver(()=>document.body.contains(this.domNode)?this.refresh():{}).observe(Ss(this,Ai,"f").drawing.domNode,{characterData:!0,subtree:!0}),this.refresh()}get domNode(){return Ss(this,Ti,"f").domNode}refresh(){let t=[...Ss(this,Ai,"f").selectedBases];try{Ss(this,Ei,"f").domNode.value=(0,xs.consensusValue)(t.map(t=>{var e;return null!==(e=t.textContent)&&void 0!==e?e:""}))}catch(t){Ss(this,Ei,"f").domNode.value=""}}}Ai=new WeakMap,Ei=new WeakMap,Ti=new WeakMap,Ci=new WeakSet,Oi=function(){var t;let e=null!==(t=Ss(this,Ei,"f").domNode.value)&&void 0!==t?t:"";if(e=e.trim(),!e)return void this.refresh();let n=[...Ss(this,Ai,"f").selectedBases];0==n.length||n.every(t=>t.textContent===e)||(Ss(this,Ai,"f").pushUndoStack(),n.forEach(t=>t.maintainingCenterPoint(()=>t.textContent=e))),this.refresh()};class Ls{constructor(t){Li.set(this,void 0),ji.set(this,void 0),Wi.set(this,void 0),ks(this,Li,t,"f"),ks(this,ji,new Hs(t,"fill"),"f"),ks(this,Wi,new Q("Fill",Ss(this,ji,"f").domNode),"f"),Ss(this,Wi,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/fill",Ns(this.domNode).css({marginTop:"10px",alignSelf:"start"}),this.refresh()}get domNode(){return Ss(this,Wi,"f").domNode}refresh(){Ss(this,ji,"f").refresh()}}Li=new WeakMap,ji=new WeakMap,Wi=new WeakMap;class js{constructor(t){Pi.add(this),Di.set(this,void 0),Bi.set(this,new st),Ii.set(this,void 0),Ri.set(this,void 0),zi.set(this,void 0),ks(this,Di,t,"f"),Ss(this,Bi,"f").domNode.addEventListener("input",()=>Ss(this,Pi,"m",Fi).call(this)),ks(this,Ii,new ut("Fill Color",Ss(this,Bi,"f").domNode),"f"),Ns(this.domNode).css({marginTop:"12px",alignSelf:"start"}),Ss(this,Di,"f").selectedBases.addEventListener("change",()=>ks(this,Ri,void 0,"f")),Ss(this,Bi,"f").domNode.addEventListener("focus",()=>ks(this,zi,Ss(this,Bi,"f").domNode.value,"f")),Ss(this,Di,"f").selectedBases.addEventListener("change",()=>document.body.contains(this.domNode)?this.refresh():{}),new MutationObserver(()=>document.body.contains(this.domNode)?this.refresh():{}).observe(Ss(this,Di,"f").drawing.domNode,{attributes:!0,attributeFilter:["fill"],subtree:!0}),this.refresh()}get domNode(){return Ss(this,Ii,"f").domNode}refresh(){let t=[...Ss(this,Di,"f").selectedBases];if(0!=t.length)try{let e=t.map(t=>window.getComputedStyle(t.domNode).fill).map(t=>new re(t));Ss(this,Bi,"f").domNode.value=(0,xs.consensusValue)(e.map(t=>t.toHex().toLowerCase()))}catch(t){Ss(this,Bi,"f").domNode.value="#000000"}else Ss(this,Bi,"f").domNode.value="#000000"}}Di=new WeakMap,Bi=new WeakMap,Ii=new WeakMap,Ri=new WeakMap,zi=new WeakMap,Pi=new WeakSet,Fi=function(){if(Ss(this,Bi,"f").domNode.value===Ss(this,zi,"f"))return;let t=[...Ss(this,Di,"f").selectedBases];0!=t.length?(t.every(t=>{var e;return(null===(e=t.getAttribute("fill"))||void 0===e?void 0:e.toLowerCase())===Ss(this,Bi,"f").domNode.value.toLowerCase()})||((Ss(this,Di,"f").undoStack.isEmpty()||Ss(this,Di,"f").undoStack.peek()!==Ss(this,Ri,"f"))&&(Ss(this,Di,"f").pushUndoStack(),ks(this,Ri,Ss(this,Di,"f").undoStack.peek(),"f")),t.forEach(t=>t.setAttribute("fill",Ss(this,Bi,"f").domNode.value.toLowerCase()))),this.refresh()):this.refresh()};class Ws{constructor(t){qi.set(this,void 0),Ui.set(this,void 0),Vi.set(this,void 0),ks(this,qi,t,"f"),ks(this,Ui,new Hs(t,"fill-opacity"),"f"),ks(this,Vi,new Q("Fill Opacity",Ss(this,Ui,"f").domNode),"f"),Ss(this,Vi,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/fill-opacity",Ns(this.domNode).css({marginTop:"12px",alignSelf:"start"}),this.refresh()}get domNode(){return Ss(this,Vi,"f").domNode}refresh(){Ss(this,Ui,"f").refresh()}}qi=new WeakMap,Ui=new WeakMap,Vi=new WeakMap;class Ps{constructor(t){Gi.set(this,void 0),Hi.set(this,void 0),Xi.set(this,void 0),ks(this,Gi,t,"f"),ks(this,Hi,new Hs(t,"font-family"),"f"),ks(this,Xi,new Q("Font Family",Ss(this,Hi,"f").domNode),"f"),Ss(this,Xi,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/font-family",Ns(this.domNode).css({marginTop:"10px",alignSelf:"start"}),this.refresh()}get domNode(){return Ss(this,Xi,"f").domNode}refresh(){Ss(this,Hi,"f").refresh()}}Gi=new WeakMap,Hi=new WeakMap,Xi=new WeakMap;class Ds{constructor(t){Yi.set(this,void 0),$i.set(this,void 0),Qi.set(this,void 0),ks(this,Yi,t,"f"),ks(this,$i,new Hs(t,"font-size"),"f"),ks(this,Qi,new Q("Font Size",Ss(this,$i,"f").domNode),"f"),Ss(this,Qi,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/font-size",Ns(this.domNode).css({marginTop:"10px",alignSelf:"start"}),this.refresh()}get domNode(){return Ss(this,Qi,"f").domNode}refresh(){Ss(this,$i,"f").refresh()}}Yi=new WeakMap,$i=new WeakMap,Qi=new WeakMap;class Bs{constructor(t){Zi.set(this,void 0),Ji.set(this,void 0),Ki.set(this,void 0),ks(this,Zi,t,"f"),ks(this,Ji,new Hs(t,"font-weight"),"f"),ks(this,Ki,new Q("Font Weight",Ss(this,Ji,"f").domNode),"f"),Ss(this,Ki,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/font-weight",Ns(this.domNode).css({marginTop:"10px",alignSelf:"start"}),this.refresh()}get domNode(){return Ss(this,Ki,"f").domNode}refresh(){Ss(this,Ji,"f").refresh()}}Zi=new WeakMap,Ji=new WeakMap,Ki=new WeakMap;class Is{constructor(t){ts.add(this),es.set(this,void 0),ns.set(this,new K),rs.set(this,void 0),ks(this,es,t,"f"),Ss(this,ns,"f").domNode.addEventListener("change",()=>Ss(this,ts,"m",is).call(this)),ks(this,rs,new nt("Bold",Ss(this,ns,"f").domNode),"f"),Ns(this.domNode).css({marginTop:"12px",alignSelf:"start"}),Ss(this,es,"f").selectedBases.addEventListener("change",()=>document.body.contains(this.domNode)?this.refresh():{}),new MutationObserver(()=>document.body.contains(this.domNode)?this.refresh():{}).observe(Ss(this,es,"f").drawing.domNode,{attributes:!0,attributeFilter:["font-weight"],subtree:!0}),this.refresh()}get domNode(){return Ss(this,rs,"f").domNode}refresh(){let t=[...Ss(this,es,"f").selectedBases];0==t.length?Ss(this,ns,"f").domNode.checked=!1:Ss(this,ns,"f").domNode.checked=t.every(Rs)}}function Rs(t){let e=t.getAttribute("font-weight");if(null===e)return!1;let n=Number.parseFloat(e);return Number.isNaN(n)?"bold"===e.toLowerCase():n>=700}function zs(t){return!Rs(t)}es=new WeakMap,ns=new WeakMap,rs=new WeakMap,ts=new WeakSet,is=function(){let t=[...Ss(this,es,"f").selectedBases];0!=t.length?Ss(this,ns,"f").domNode.checked&&t.every(Rs)?this.refresh():Ss(this,ns,"f").domNode.checked||!t.every(zs)?(Ss(this,es,"f").pushUndoStack(),t.forEach(t=>{t.maintainingCenterPoint(()=>{Ss(this,ns,"f").domNode.checked&&zs(t)?t.setAttribute("font-weight","700"):!Ss(this,ns,"f").domNode.checked&&Rs(t)&&t.setAttribute("font-weight","400")})}),this.refresh(),Ss(this,ns,"f").domNode.blur()):this.refresh():this.refresh()};class Fs{constructor(t){ss.set(this,void 0),os.set(this,void 0),as.set(this,void 0),ks(this,ss,t,"f"),ks(this,os,new Hs(t,"font-style"),"f"),ks(this,as,new Q("Font Style",Ss(this,os,"f").domNode),"f"),Ss(this,as,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/font-style",Ns(this.domNode).css({marginTop:"12px",alignSelf:"start"}),this.refresh()}get domNode(){return Ss(this,as,"f").domNode}refresh(){Ss(this,os,"f").refresh()}}ss=new WeakMap,os=new WeakMap,as=new WeakMap;class qs{constructor(t){us.set(this,void 0),hs.set(this,void 0),ls.set(this,void 0),ks(this,us,t,"f"),ks(this,hs,new Hs(t,"text-decoration"),"f"),ks(this,ls,new Q("Text Decoration",Ss(this,hs,"f").domNode),"f"),Ss(this,ls,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/text-decoration",Ns(this.domNode).css({marginTop:"10px",alignSelf:"start"}),this.refresh()}get domNode(){return Ss(this,ls,"f").domNode}refresh(){Ss(this,hs,"f").refresh()}}us=new WeakMap,hs=new WeakMap,ls=new WeakMap;class Us{constructor(t){cs.add(this),fs.set(this,void 0),ds.set(this,new K),ps.set(this,void 0),ks(this,fs,t,"f"),Ss(this,ds,"f").domNode.addEventListener("change",()=>Ss(this,cs,"m",ms).call(this)),ks(this,ps,new nt("Underlined",Ss(this,ds,"f").domNode),"f"),Ns(this.domNode).css({marginTop:"12px",alignSelf:"start"}),Ss(this,fs,"f").selectedBases.addEventListener("change",()=>document.body.contains(this.domNode)?this.refresh():{}),new MutationObserver(()=>document.body.contains(this.domNode)?this.refresh():{}).observe(Ss(this,fs,"f").drawing.domNode,{attributes:!0,attributeFilter:["text-decoration"],subtree:!0}),this.refresh()}get domNode(){return Ss(this,ps,"f").domNode}refresh(){let t=[...Ss(this,fs,"f").selectedBases];0==t.length?Ss(this,ds,"f").domNode.checked=!1:Ss(this,ds,"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)}fs=new WeakMap,ds=new WeakMap,ps=new WeakMap,cs=new WeakSet,ms=function(){let t=[...Ss(this,fs,"f").selectedBases];0!=t.length?Ss(this,ds,"f").domNode.checked&&t.every(Vs)?this.refresh():Ss(this,ds,"f").domNode.checked||!t.every(Gs)?(Ss(this,fs,"f").pushUndoStack(),t.forEach(t=>{t.maintainingCenterPoint(()=>{Ss(this,ds,"f").domNode.checked&&Gs(t)?t.setAttribute("text-decoration","underline"):!Ss(this,ds,"f").domNode.checked&&Vs(t)&&t.setAttribute("text-decoration","")})}),this.refresh(),Ss(this,ds,"f").domNode.blur()):this.refresh():this.refresh()};class Hs{constructor(t,e){gs.add(this),ys.set(this,void 0),vs.set(this,void 0),ws.set(this,new z({onSubmit:()=>Ss(this,gs,"m",bs).call(this)})),ks(this,ys,t,"f"),ks(this,vs,e,"f"),Ss(this,ys,"f").selectedBases.addEventListener("change",()=>document.body.contains(this.domNode)?this.refresh():{}),new MutationObserver(()=>document.body.contains(this.domNode)?this.refresh():{}).observe(Ss(this,ys,"f").drawing.domNode,{attributes:!0,subtree:!0}),this.refresh()}get domNode(){return Ss(this,ws,"f").domNode}refresh(){let t=[...Ss(this,ys,"f").selectedBases];try{Ss(this,ws,"f").domNode.value=(0,xs.consensusValue)(t.map(t=>{var e;return null!==(e=t.getAttribute(Ss(this,vs,"f")))&&void 0!==e?e:""}))}catch(t){Ss(this,ws,"f").domNode.value=""}}}ys=new WeakMap,vs=new WeakMap,ws=new WeakMap,gs=new WeakSet,bs=function(){let t=Ss(this,ws,"f").domNode.value,e=[...Ss(this,ys,"f").selectedBases];0==e.length||e.every(e=>e.getAttribute(Ss(this,vs,"f"))===t)||(Ss(this,ys,"f").pushUndoStack(),e.forEach(e=>e.maintainingCenterPoint(()=>e.setAttribute(Ss(this,vs,"f"),t)))),this.refresh()};var Xs=n(924),Ys={};Ys.styleTagTransform=w(),Ys.setAttributes=m(),Ys.insert=d().bind(null,"head"),Ys.domAPI=c(),Ys.insertStyleElement=y(),h()(Xs.Ay,Ys),Xs.Ay&&Xs.Ay.locals&&Xs.Ay.locals;var $s=n(723),Qs={};Qs.styleTagTransform=w(),Qs.setAttributes=m(),Qs.insert=d().bind(null,"head"),Qs.domAPI=c(),Qs.insertStyleElement=y(),h()($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 j.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,uo,ho,lo,co,fo,po,mo,go,yo,vo,wo,bo,xo,_o,No,ko,So,Mo,Co,Ao,Eo,To,Oo,Lo,jo,Wo,Po,Do,Bo,Io,Ro,zo,Fo,qo,Uo,Vo,Go,Ho,Xo,Yo,$o,Qo,Zo,Jo,Ko,ta,ea,na,ra,ia,sa,oa,aa,ua,ha,la,ca,fa,da,pa,ma,ga,ya,va,wa,ba,xa,_a,Na,ka,Sa,Ma,Ca,Aa,Ea,Ta,Oa,La,ja,Wa,Pa,Da,Ba,Ia,Ra,za,Fa,qa,Ua,Va=function(t,e,n,r,i){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?i.call(t,n):i?i.value=n:e.set(t,n),n},Ga=function(t,e,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!r:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(t):r?r.value:e.get(t)};class Ha{constructor(t){to.add(this),eo.set(this,void 0),this.domNode=document.createElement("div"),no.set(this,new A),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),uo.set(this,void 0),ho.set(this,void 0),lo.set(this,void 0),co.set(this,void 0),fo.set(this,void 0),po.set(this,void 0),mo.set(this,void 0),go.set(this,void 0),yo.set(this,void 0),vo.set(this,void 0),wo.set(this,void 0),Va(this,eo,t,"f"),this.domNode.classList.add(Xs.qM),Ga(this,no,"f").textContent="Outlines",Ga(this,no,"f").domNode.addEventListener("click",()=>this.toggle()),this.domNode.append(Ga(this,no,"f").domNode),Ga(this,ro,"f").classList.add(Xs.Qs),this.domNode.append(Ga(this,ro,"f")),Va(this,io,new Xa(t),"f"),Ga(this,ro,"f").append(Ga(this,io,"f").domNode),Va(this,oo,new Ya(t),"f"),Ga(this,ro,"f").append(Ga(this,oo,"f").domNode),Va(this,ao,new $a(t),"f"),Ga(this,ro,"f").append(Ga(this,ao,"f").domNode),Va(this,uo,new Qa(t),"f"),Ga(this,ro,"f").append(Ga(this,uo,"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,ho,new Za(t),"f"),Ga(this,so,"f").append(Ga(this,ho,"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 tu(t),"f"),Ga(this,so,"f").append(Ga(this,fo,"f").domNode),Va(this,po,new eu(t),"f"),Ga(this,so,"f").append(Ga(this,po,"f").domNode),Va(this,mo,new nu(t),"f"),Ga(this,so,"f").append(Ga(this,mo,"f").domNode),Va(this,go,new ru(t),"f"),Ga(this,so,"f").append(Ga(this,go,"f").domNode),Va(this,yo,new iu(t),"f"),Ga(this,so,"f").append(Ga(this,yo,"f").domNode),Va(this,vo,new su(t),"f"),Ga(this,so,"f").append(Ga(this,vo,"f").domNode),Va(this,wo,new ou(t),"f"),Ga(this,so,"f").append(Ga(this,wo,"f").domNode)}isOpen(){return this.domNode.classList.contains(Xs.ho)}toggle(){this.isOpen()?(this.domNode.classList.remove(Xs.ho),Ga(this,no,"f").caret.pointRight()):(this.domNode.classList.add(Xs.ho),Ga(this,no,"f").caret.pointDown())}refresh(){Ga(this,to,"a",bo).forEach(t=>t.refresh()),[...Ga(this,eo,"f").selectedOutlines].length>0?Ga(this,to,"m",xo).call(this):Ga(this,to,"m",_o).call(this)}}eo=new WeakMap,no=new WeakMap,ro=new WeakMap,io=new WeakMap,so=new WeakMap,oo=new WeakMap,ao=new WeakMap,uo=new WeakMap,ho=new WeakMap,lo=new WeakMap,co=new WeakMap,fo=new WeakMap,po=new WeakMap,mo=new WeakMap,go=new WeakMap,yo=new WeakMap,vo=new WeakMap,wo=new WeakMap,to=new WeakSet,bo=function(){return[Ga(this,io,"f"),Ga(this,oo,"f"),Ga(this,ao,"f"),Ga(this,uo,"f"),Ga(this,ho,"f"),Ga(this,lo,"f"),Ga(this,co,"f"),Ga(this,fo,"f"),Ga(this,po,"f"),Ga(this,mo,"f"),Ga(this,go,"f"),Ga(this,yo,"f"),Ga(this,vo,"f"),Ga(this,wo,"f")]},xo=function(){Ga(this,so,"f").style.display="flex"},_o=function(){Ga(this,so,"f").style.display="none"};class Xa{constructor(t){No.set(this,void 0),this.domNode=document.createElement("p"),ko.set(this,document.createElement("span")),So.set(this,document.createElement("span")),Va(this,No,t,"f"),this.domNode.classList.add(Xs.vM),Ga(this,ko,"f").style.fontWeight="700",this.domNode.append(Ga(this,ko,"f"),Ga(this,So,"f")),Ga(this,No,"f").selectedOutlines.addEventListener("change",()=>document.body.contains(this.domNode)?this.refresh():{}),this.refresh()}refresh(){let t=[...Ga(this,No,"f").selectedOutlines].length;Ga(this,ko,"f").textContent=`${t}`,Ga(this,So,"f").textContent=1==t?" outline is selected.":" outlines are selected."}}No=new WeakMap,ko=new WeakMap,So=new WeakMap;class Ya{constructor(t){Mo.add(this),Co.set(this,void 0),this.domNode=document.createElement("div"),Ao.set(this,document.createElement("p")),Eo.set(this,new P),To.set(this,new P),Oo.set(this,new P),Lo.set(this,void 0),Va(this,Co,t,"f"),this.domNode.classList.add(Xs.VX),Ga(this,Ao,"f").classList.add(Xs.iE),Ga(this,Ao,"f").textContent="Select:",this.domNode.append(Ga(this,Ao,"f")),Ga(this,Eo,"f").domNode.addEventListener("click",()=>Ga(this,Mo,"m",jo).call(this)),Ga(this,Eo,"f").textContent="All",Ga(this,Eo,"f").domNode.style.marginLeft="20px",this.domNode.append(Ga(this,Eo,"f").domNode),Ga(this,To,"f").domNode.addEventListener("click",()=>Ga(this,Mo,"m",Wo).call(this)),Ga(this,To,"f").textContent="Outlining",Ga(this,To,"f").domNode.style.marginLeft="17px",this.domNode.append(Ga(this,To,"f").domNode),Ga(this,Oo,"f").domNode.addEventListener("click",()=>Ga(this,Mo,"m",Po).call(this)),Ga(this,Oo,"f").textContent="None",Ga(this,Oo,"f").domNode.style.marginLeft="17px",this.domNode.append(Ga(this,Oo,"f").domNode),t.selectedOutlines.addEventListener("change",()=>document.body.contains(this.domNode)?this.refresh():{}),Va(this,Lo,new MutationObserver(()=>document.body.contains(this.domNode)?this.refresh():{}),"f"),Ga(this,Lo,"f").observe(t.drawing.domNode,{childList:!0,subtree:!0}),this.refresh()}refresh(){Ga(this,Mo,"m",Do).call(this),Ga(this,Mo,"m",Bo).call(this),Ga(this,Mo,"m",Io).call(this)}}Co=new WeakMap,Ao=new WeakMap,Eo=new WeakMap,To=new WeakMap,Oo=new WeakMap,Lo=new WeakMap,Mo=new WeakSet,jo=function(){let t=[...Ga(this,Co,"f").drawing.outlines];Ga(this,Co,"f").addToSelected(t)},Wo=function(){let t=new Set(Ga(this,Co,"f").selectedBases),e=[...Ga(this,Co,"f").drawing.outlines];Ga(this,Co,"f").addToSelected(e.filter(e=>t.has(e.owner)))},Po=function(){let t=[...Ga(this,Co,"f").drawing.outlines];Ga(this,Co,"f").removeFromSelected(t)},Do=function(){let t=[...Ga(this,Co,"f").drawing.outlines],e=[...Ga(this,Co,"f").selectedOutlines];0==t.length?(Ga(this,Eo,"f").disable(),Ga(this,Eo,"f").tooltip.textContent="There are no outlines in the drawing."):e.length==t.length?(Ga(this,Eo,"f").disable(),Ga(this,Eo,"f").tooltip.textContent="All outlines are already selected."):(Ga(this,Eo,"f").enable(),Ga(this,Eo,"f").tooltip.textContent="Select all outlines.")},Bo=function(){let t=[...Ga(this,Co,"f").drawing.outlines],e=new Set(Ga(this,Co,"f").selectedBases),n=t.filter(t=>e.has(t.owner)),r=new Set(Ga(this,Co,"f").selectedOutlines);0==e.size?(Ga(this,To,"f").disable(),Ga(this,To,"f").tooltip.textContent="No bases are selected."):0==n.length?(Ga(this,To,"f").disable(),Ga(this,To,"f").tooltip.textContent="No selected bases are outlined."):n.every(t=>r.has(t))?(Ga(this,To,"f").disable(),Ga(this,To,"f").tooltip.textContent="All outlines outlining the selected bases are already selected."):(Ga(this,To,"f").enable(),Ga(this,To,"f").tooltip.textContent="Select outlines outlining the selected bases.")},Io=function(){0==[...Ga(this,Co,"f").selectedOutlines].length?(Ga(this,Oo,"f").disable(),Ga(this,Oo,"f").tooltip.textContent="No outlines are selected."):(Ga(this,Oo,"f").enable(),Ga(this,Oo,"f").tooltip.textContent="Deselect all outlines.")};class $a{constructor(t){Ro.add(this),zo.set(this,void 0),this.domNode=document.createElement("div"),Fo.set(this,new Ks("Add",()=>Ga(this,Ro,"m",Ho).call(this))),qo.set(this,new K),Uo.set(this,new nt("Only add missing outlines",Ga(this,qo,"f").domNode)),Vo.set(this,void 0),Va(this,zo,t,"f"),this.domNode.style.marginTop="29px",this.domNode.style.display="flex",this.domNode.style.flexDirection="column",this.domNode.append(Ga(this,Fo,"f").domNode),Ga(this,qo,"f").domNode.checked=!0,Ga(this,Uo,"f").domNode.style.margin="10px 0px 0px 10px",Ga(this,Uo,"f").domNode.style.alignSelf="start",this.domNode.append(Ga(this,Uo,"f").domNode),t.selectedBases.addEventListener("change",()=>document.body.contains(this.domNode)?this.refresh():{}),Va(this,Vo,new MutationObserver(()=>document.body.contains(this.domNode)?this.refresh():{}),"f"),Ga(this,Vo,"f").observe(t.drawing.domNode,{childList:!0,subtree:!0}),Ga(this,qo,"f").domNode.addEventListener("change",()=>this.refresh()),this.refresh()}refresh(){let t=[...Ga(this,zo,"f").selectedBases],e=[...Ga(this,zo,"f").drawing.outlines],n=new Set(e.map(t=>t.owner)),r=t.filter(t=>!n.has(t));0==t.length?(Ga(this,Fo,"f").disable(),Ga(this,Fo,"f").tooltip.textContent="No bases are selected."):Ga(this,Ro,"a",Go)&&0==r.length?(Ga(this,Fo,"f").disable(),Ga(this,Fo,"f").tooltip.textContent="The selected bases are already outlined."):(Ga(this,Fo,"f").enable(),Ga(this,Fo,"f").tooltip.textContent="Outline the selected bases.")}}zo=new WeakMap,Fo=new WeakMap,qo=new WeakMap,Uo=new WeakMap,Vo=new WeakMap,Ro=new WeakSet,Go=function(){return Ga(this,qo,"f").domNode.checked},Ho=function(){let t=[...Ga(this,zo,"f").selectedBases];if(0==t.length)return;let e=[...Ga(this,zo,"f").drawing.outlines],n=new Set(e.map(t=>t.owner)),r=t.filter(t=>!n.has(t)),i=Ga(this,Ro,"a",Go)?r:t;if(0==i.length)return;Ga(this,zo,"f").pushUndoStack();let s=i.map(t=>Ga(this,zo,"f").drawing.outline(t));Ga(this,zo,"f").addToSelected(s),this.refresh()};class Qa{constructor(t){Xo.set(this,void 0),Yo.set(this,new Ks("Remove",()=>this.press())),Va(this,Xo,t,"f"),this.domNode.style.marginTop="18px",Ga(this,Xo,"f").selectedOutlines.addEventListener("change",()=>document.body.contains(this.domNode)?this.refresh():{}),this.refresh()}get domNode(){return Ga(this,Yo,"f").domNode}press(){let t=[...Ga(this,Xo,"f").selectedOutlines];0!=t.length?(Ga(this,Xo,"f").pushUndoStack(),t.forEach(t=>t.domNode.remove()),this.refresh()):this.refresh()}refresh(){0==[...Ga(this,Xo,"f").selectedOutlines].length?(Ga(this,Yo,"f").disable(),Ga(this,Yo,"f").tooltip.textContent="No outlines are selected."):(Ga(this,Yo,"f").enable(),Ga(this,Yo,"f").tooltip.textContent="Remove the selected outlines from the drawing.")}}Xo=new WeakMap,Yo=new WeakMap;class Za{constructor(t){$o.add(this),Qo.set(this,void 0),this.domNode=document.createElement("div"),Zo.set(this,document.createElement("p")),Jo.set(this,new P),Ko.set(this,new P),Va(this,Qo,t,"f"),this.domNode.classList.add(Xs.Te),Ga(this,Zo,"f").classList.add(Xs.QB),Ga(this,Zo,"f").textContent="Send to:",this.domNode.append(Ga(this,Zo,"f")),Ga(this,Jo,"f").domNode.addEventListener("click",()=>Ga(this,$o,"m",ta).call(this)),Ga(this,Jo,"f").textContent="Front",Ga(this,Jo,"f").domNode.style.marginLeft="24px",this.domNode.append(Ga(this,Jo,"f").domNode),Ga(this,Ko,"f").domNode.addEventListener("click",()=>Ga(this,$o,"m",ea).call(this)),Ga(this,Ko,"f").textContent="Back",Ga(this,Ko,"f").domNode.style.marginLeft="28px",this.domNode.append(Ga(this,Ko,"f").domNode),t.selectedOutlines.addEventListener("change",()=>document.body.contains(this.domNode)?this.refresh():{}),this.refresh()}refresh(){Ga(this,$o,"m",na).call(this),Ga(this,$o,"m",ra).call(this)}}Qo=new WeakMap,Zo=new WeakMap,Jo=new WeakMap,Ko=new WeakMap,$o=new WeakSet,ta=function(){let t=[...Ga(this,Qo,"f").selectedOutlines];0!=t.length?(Ga(this,Qo,"f").pushUndoStack(),t.forEach(t=>(0,_s.bringToFront)(t.domNode)),this.refresh()):this.refresh()},ea=function(){let t=[...Ga(this,Qo,"f").selectedOutlines];0!=t.length?(Ga(this,Qo,"f").pushUndoStack(),t.forEach(t=>(0,_s.sendToBack)(t.domNode)),this.refresh()):this.refresh()},na=function(){0==[...Ga(this,Qo,"f").selectedOutlines].length?(Ga(this,Jo,"f").disable(),Ga(this,Jo,"f").tooltip.textContent="No outlines are selected."):(Ga(this,Jo,"f").enable(),Ga(this,Jo,"f").tooltip.textContent="Bring the selected outlines to the front.")},ra=function(){0==[...Ga(this,Qo,"f").selectedOutlines].length?(Ga(this,Ko,"f").disable(),Ga(this,Ko,"f").tooltip.textContent="No outlines are selected."):(Ga(this,Ko,"f").enable(),Ga(this,Ko,"f").tooltip.textContent="Send selected outlines to the back.")};class Ja{constructor(t){ia.set(this,void 0),sa.set(this,void 0),oa.set(this,void 0),Va(this,ia,t,"f"),Va(this,sa,new au(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),ua.set(this,void 0),ha.set(this,void 0),Va(this,aa,t,"f"),Va(this,ua,new au(t,"fill"),"f"),Va(this,ha,new Q("Fill",Ga(this,ua,"f").domNode),"f"),Ga(this,ha,"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,ha,"f").domNode}refresh(){Ga(this,ua,"f").refresh()}}aa=new WeakMap,ua=new WeakMap,ha=new WeakMap;class tu{constructor(t){la.add(this),ca.set(this,void 0),fa.set(this,new st),da.set(this,void 0),pa.set(this,void 0),ma.set(this,void 0),Va(this,ca,t,"f"),Ga(this,fa,"f").domNode.addEventListener("input",()=>Ga(this,la,"m",ga).call(this)),Va(this,da,new ut("Fill Color",Ga(this,fa,"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,fa,"f").domNode.addEventListener("focus",()=>Va(this,ma,Ga(this,fa,"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,da,"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,fa,"f").domNode.value=(0,xs.consensusValue)(e.map(t=>t.toHex().toLowerCase()))}catch(t){Ga(this,fa,"f").domNode.value="#000000"}else Ga(this,fa,"f").domNode.value="#000000"}}ca=new WeakMap,fa=new WeakMap,da=new WeakMap,pa=new WeakMap,ma=new WeakMap,la=new WeakSet,ga=function(){if(Ga(this,fa,"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,fa,"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,fa,"f").domNode.value.toLowerCase()))),this.refresh()):this.refresh()};class eu{constructor(t){ya.set(this,void 0),va.set(this,void 0),wa.set(this,void 0),Va(this,ya,t,"f"),Va(this,va,new au(t,"fill-opacity"),"f"),Va(this,wa,new Q("Fill Opacity",Ga(this,va,"f").domNode),"f"),Ga(this,wa,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Attribute/fill-opacity",Ns(this.domNode).css({marginTop:"12px",alignSelf:"start"}),this.refresh()}get domNode(){return Ga(this,wa,"f").domNode}refresh(){Ga(this,va,"f").refresh()}}ya=new WeakMap,va=new WeakMap,wa=new WeakMap;class nu{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 au(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 ru{constructor(t){Na.add(this),ka.set(this,void 0),Sa.set(this,new st),Ma.set(this,void 0),Ca.set(this,void 0),Aa.set(this,void 0),Va(this,ka,t,"f"),Ga(this,Sa,"f").domNode.addEventListener("input",()=>Ga(this,Na,"m",Ea).call(this)),Va(this,Ma,new ut("Stroke Color",Ga(this,Sa,"f").domNode),"f"),Ns(this.domNode).css({marginTop:"12px",alignSelf:"start"}),Ga(this,ka,"f").selectedOutlines.addEventListener("change",()=>Va(this,Ca,void 0,"f")),Ga(this,Sa,"f").domNode.addEventListener("focus",()=>Va(this,Aa,Ga(this,Sa,"f").domNode.value,"f")),Ga(this,ka,"f").selectedOutlines.addEventListener("change",()=>document.body.contains(this.domNode)?this.refresh():{}),new MutationObserver(()=>document.body.contains(this.domNode)?this.refresh():{}).observe(Ga(this,ka,"f").drawing.domNode,{attributes:!0,attributeFilter:["stroke"],subtree:!0}),this.refresh()}get domNode(){return Ga(this,Ma,"f").domNode}refresh(){let t=[...Ga(this,ka,"f").selectedOutlines];if(0!=t.length)try{let e=t.map(t=>window.getComputedStyle(t.domNode).stroke).map(t=>new re(t));Ga(this,Sa,"f").domNode.value=(0,xs.consensusValue)(e.map(t=>t.toHex().toLowerCase()))}catch(t){Ga(this,Sa,"f").domNode.value="#000000"}else Ga(this,Sa,"f").domNode.value="#000000"}}ka=new WeakMap,Sa=new WeakMap,Ma=new WeakMap,Ca=new WeakMap,Aa=new WeakMap,Na=new WeakSet,Ea=function(){if(Ga(this,Sa,"f").domNode.value===Ga(this,Aa,"f"))return;let t=[...Ga(this,ka,"f").selectedOutlines];0!=t.length?(t.every(t=>{var e;return(null===(e=t.domNode.getAttribute("stroke"))||void 0===e?void 0:e.toLowerCase())===Ga(this,Sa,"f").domNode.value.toLowerCase()})||((Ga(this,ka,"f").undoStack.isEmpty()||Ga(this,ka,"f").undoStack.peek()!==Ga(this,Ca,"f"))&&(Ga(this,ka,"f").pushUndoStack(),Va(this,Ca,Ga(this,ka,"f").undoStack.peek(),"f")),t.forEach(t=>t.domNode.setAttribute("stroke",Ga(this,Sa,"f").domNode.value.toLowerCase()))),this.refresh()):this.refresh()};class iu{constructor(t){Ta.set(this,void 0),Oa.set(this,void 0),La.set(this,void 0),Va(this,Ta,t,"f"),Va(this,Oa,new au(t,"stroke-opacity"),"f"),Va(this,La,new Q("Stroke Opacity",Ga(this,Oa,"f").domNode),"f"),Ga(this,La,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Attribute/stroke-opacity",Ns(this.domNode).css({marginTop:"12px",alignSelf:"start"}),this.refresh()}get domNode(){return Ga(this,La,"f").domNode}refresh(){Ga(this,Oa,"f").refresh()}}Ta=new WeakMap,Oa=new WeakMap,La=new WeakMap;class su{constructor(t){ja.set(this,void 0),Wa.set(this,void 0),Pa.set(this,void 0),Va(this,ja,t,"f"),Va(this,Wa,new au(t,"stroke-width"),"f"),Va(this,Pa,new Q("Stroke Width",Ga(this,Wa,"f").domNode),"f"),Ga(this,Pa,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Attribute/stroke-width",Ns(this.domNode).css({marginTop:"10px",alignSelf:"start"}),this.refresh()}get domNode(){return Ga(this,Pa,"f").domNode}refresh(){Ga(this,Wa,"f").refresh()}}ja=new WeakMap,Wa=new WeakMap,Pa=new WeakMap;class ou{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 au(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 au{constructor(t,e){Ra.add(this),za.set(this,void 0),Fa.set(this,void 0),qa.set(this,new z({onSubmit:()=>Ga(this,Ra,"m",Ua).call(this)})),Va(this,za,t,"f"),Va(this,Fa,e,"f"),Ga(this,za,"f").selectedOutlines.addEventListener("change",()=>document.body.contains(this.domNode)?this.refresh():{}),new MutationObserver(()=>document.body.contains(this.domNode)?this.refresh():{}).observe(Ga(this,za,"f").drawing.domNode,{attributes:!0,subtree:!0}),this.refresh()}get domNode(){return Ga(this,qa,"f").domNode}refresh(){let t=[...Ga(this,za,"f").selectedOutlines];try{Ga(this,qa,"f").domNode.value=(0,xs.consensusValue)(t.map(t=>{var e;return null!==(e=t.domNode.getAttribute(Ga(this,Fa,"f")))&&void 0!==e?e:""}))}catch(t){Ga(this,qa,"f").domNode.value=""}}}za=new WeakMap,Fa=new WeakMap,qa=new WeakMap,Ra=new WeakSet,Ua=function(){let t=Ga(this,qa,"f").domNode.value,e=[...Ga(this,za,"f").selectedOutlines];0==e.length||e.every(e=>e.domNode.getAttribute(Ga(this,Fa,"f"))===t)||(Ga(this,za,"f").pushUndoStack(),e.forEach(e=>e.domNode.setAttribute(Ga(this,Fa,"f"),t))),this.refresh()};var uu=n(401),hu={};hu.styleTagTransform=w(),hu.setAttributes=m(),hu.insert=d().bind(null,"head"),hu.domAPI=c(),hu.insertStyleElement=y(),h()(uu.Ay,hu),uu.Ay&&uu.Ay.locals&&uu.Ay.locals;var lu=n(933),cu={};cu.styleTagTransform=w(),cu.setAttributes=m(),cu.insert=d().bind(null,"head"),cu.domAPI=c(),cu.insertStyleElement=y(),h()(lu.Ay,cu),lu.Ay&&lu.Ay.locals&&lu.Ay.locals;var fu,du,pu,mu,gu,yu,vu,wu,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){fu.add(this),du.set(this,void 0),pu.set(this,void 0),this.domNode=document.createElement("div"),mu.set(this,document.createElement("p")),this.buttons={Front:new P("Front",()=>xu(this,fu,"m",gu).call(this)),Back:new P("Back",()=>xu(this,fu,"m",yu).call(this))},vu.set(this,{refresh:[]}),bu(this,du,t,"f"),bu(this,pu,e,"f"),this.domNode.classList.add(lu.Te),xu(this,mu,"f").classList.add(lu.Pf),xu(this,mu,"f").textContent="Send to:",this.domNode.append(xu(this,mu,"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=[...xu(this,du,"f")];0==t.length?this.buttons.Front.disable():this.buttons.Front.enable(),0==t.length?this.buttons.Back.disable():this.buttons.Back.enable(),xu(this,fu,"m",wu).call(this,"refresh")}addEventListener(t,e){xu(this,vu,"f")[t].push(e)}removeEventListener(t,e){xu(this,vu,"f")[t]=xu(this,vu,"f")[t].filter(t=>t!==e)}}du=new WeakMap,pu=new WeakMap,mu=new WeakMap,vu=new WeakMap,fu=new WeakSet,gu=function(){let t=[...xu(this,du,"f")];0!=t.length?(xu(this,pu,"f").pushUndoStack(),t.forEach(t=>(0,_s.bringToFront)(t.domNode)),this.refresh()):this.refresh()},yu=function(){let t=[...xu(this,du,"f")];0!=t.length?(xu(this,pu,"f").pushUndoStack(),t.forEach(t=>(0,_s.sendToBack)(t.domNode)),this.refresh()):this.refresh()},wu=function(t){xu(this,vu,"f")[t].forEach(t=>t())};var Nu,ku,Su,Mu,Cu,Au,Eu,Tu,Ou=function(t,e,n,r,i){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?i.call(t,n):i?i.value=n:e.set(t,n),n},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 ju{constructor(t,e,n){Nu.add(this),ku.set(this,void 0),Su.set(this,void 0),Mu.set(this,void 0),Cu.set(this,new z({onSubmit:()=>Lu(this,Nu,"m",Eu).call(this)})),Au.set(this,{edit:[]}),Ou(this,ku,t,"f"),Ou(this,Su,e,"f"),Ou(this,Mu,n,"f"),e.addEventListener("change",()=>{!document.body.contains(this.domNode)||this.refresh()}),new MutationObserver(()=>{!document.body.contains(this.domNode)||this.refresh()}).observe(n.drawing.domNode,{attributes:!0,attributeFilter:[t],subtree:!0}),this.refresh()}get domNode(){return Lu(this,Cu,"f").domNode}refresh(){try{Lu(this,Cu,"f").domNode.value=(0,xs.consensusValue)([...Lu(this,Su,"f")].map(t=>{var e;return null!==(e=t.domNode.getAttribute(Lu(this,ku,"f")))&&void 0!==e?e:""}))}catch(t){Lu(this,Cu,"f").domNode.value=""}}addEventListener(t,e){Lu(this,Au,"f")[t].push(e)}}ku=new WeakMap,Su=new WeakMap,Mu=new WeakMap,Cu=new WeakMap,Au=new WeakMap,Nu=new WeakSet,Eu=function(){let t=Lu(this,Cu,"f").domNode.value,e=[...Lu(this,Su,"f")];0==e.length||e.every(e=>e.domNode.getAttribute(Lu(this,ku,"f"))===t)?this.refresh():(Lu(this,Mu,"f").pushUndoStack(),e.forEach(e=>e.domNode.setAttribute(Lu(this,ku,"f"),t)),Lu(this,Nu,"m",Tu).call(this,"edit"))},Tu=function(t){Lu(this,Au,"f")[t].forEach(t=>t())};var Wu,Pu,Du,Bu,Iu,Ru,zu,Fu,qu=n(543),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},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 Gu{constructor(t,e,n){Wu.add(this),Pu.set(this,void 0),Du.set(this,void 0),Bu.set(this,void 0),Iu.set(this,new st),Ru.set(this,void 0),zu.set(this,void 0),Uu(this,Pu,t,"f"),Uu(this,Du,e,"f"),Uu(this,Bu,n,"f"),Vu(this,Iu,"f").domNode.addEventListener("input",()=>Vu(this,Wu,"m",Fu).call(this)),e.addEventListener("change",()=>Uu(this,Ru,void 0,"f")),Vu(this,Iu,"f").domNode.addEventListener("focus",()=>Uu(this,zu,Vu(this,Iu,"f").domNode.value,"f")),e.addEventListener("change",()=>{!document.body.contains(this.domNode)||this.refresh()}),new MutationObserver(()=>{!document.body.contains(this.domNode)||this.refresh()}).observe(n.drawing.domNode,{attributes:!0,attributeFilter:[t],subtree:!0}),this.refresh()}get domNode(){return Vu(this,Iu,"f").domNode}refresh(){let t=[...Vu(this,Du,"f")];if(0!=t.length)try{let e=qu.camelCase(Vu(this,Pu,"f")),n=t.map(t=>window.getComputedStyle(t.domNode)[e]).map(t=>new re(t));Vu(this,Iu,"f").domNode.value=(0,xs.consensusValue)(n.map(t=>t.toHex().toLowerCase()))}catch(t){Vu(this,Iu,"f").domNode.value="#000000"}else Vu(this,Iu,"f").domNode.value="#000000"}}Pu=new WeakMap,Du=new WeakMap,Bu=new WeakMap,Iu=new WeakMap,Ru=new WeakMap,zu=new WeakMap,Wu=new WeakSet,Fu=function(){if(Vu(this,Iu,"f").domNode.value===Vu(this,zu,"f"))return;let t=[...Vu(this,Du,"f")];0!=t.length?t.every(t=>{var e;return(null===(e=t.domNode.getAttribute(Vu(this,Pu,"f")))||void 0===e?void 0:e.toLowerCase())===Vu(this,Iu,"f").domNode.value.toLowerCase()})?this.refresh():((Vu(this,Bu,"f").undoStack.isEmpty()||Vu(this,Bu,"f").undoStack.peek()!==Vu(this,Ru,"f"))&&(Vu(this,Bu,"f").pushUndoStack(),Uu(this,Ru,Vu(this,Bu,"f").undoStack.peek(),"f")),t.forEach(t=>t.domNode.setAttribute(Vu(this,Pu,"f"),Vu(this,Iu,"f").domNode.value.toLowerCase()))):this.refresh()};var Hu,Xu,Yu,$u,Qu,Zu,Ju,Ku,th,eh,nh,rh,ih,sh,oh,ah,uh,hh,lh,ch,fh,dh,ph,mh,gh,yh,vh,wh,bh,xh,_h,Nh,kh,Sh,Mh,Ch,Ah,Eh,Th,Oh,Lh,jh,Wh,Ph,Dh,Bh,Ih,Rh,zh,Fh,qh,Uh,Vh,Gh,Hh,Xh,Yh,$h,Qh,Zh,Jh,Kh,tl,el,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},rl=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 il{constructor(t){Hu.add(this),Xu.set(this,void 0),this.domNode=document.createElement("div"),Yu.set(this,new A("Primary Bonds",()=>this.toggle())),$u.set(this,document.createElement("div")),Qu.set(this,void 0),Zu.set(this,void 0),Ju.set(this,document.createElement("div")),Ku.set(this,void 0),th.set(this,void 0),eh.set(this,void 0),nh.set(this,void 0),rh.set(this,void 0),ih.set(this,void 0),sh.set(this,void 0),oh.set(this,void 0),ah.set(this,void 0),nl(this,Xu,t,"f"),this.domNode.classList.add(uu.gP),this.domNode.append(rl(this,Yu,"f").domNode),rl(this,$u,"f").classList.add(uu.Qs),this.domNode.append(rl(this,$u,"f")),nl(this,Qu,new sl(t),"f"),rl(this,$u,"f").append(rl(this,Qu,"f").domNode),nl(this,Zu,new ol(t),"f"),rl(this,$u,"f").append(rl(this,Zu,"f").domNode),rl(this,Ju,"f").classList.add(uu.eB),rl(this,$u,"f").append(rl(this,Ju,"f")),t.selectedPrimaryBonds.addEventListener("change",()=>{document.body.contains(this.domNode)&&(0==[...t.selectedPrimaryBonds].length?rl(this,Hu,"m",hh).call(this):rl(this,Hu,"m",lh).call(this))}),nl(this,Ku,new al(t),"f"),rl(this,Ju,"f").append(rl(this,Ku,"f").domNode),nl(this,th,new ul(t),"f"),rl(this,Ju,"f").append(rl(this,th,"f").domNode),nl(this,eh,new hl(t),"f"),rl(this,Ju,"f").append(rl(this,eh,"f").domNode),nl(this,nh,new ll(t),"f"),rl(this,Ju,"f").append(rl(this,nh,"f").domNode),nl(this,rh,new cl(t),"f"),rl(this,Ju,"f").append(rl(this,rh,"f").domNode),nl(this,ih,new fl(t),"f"),rl(this,Ju,"f").append(rl(this,ih,"f").domNode),nl(this,sh,new dl(t),"f"),rl(this,Ju,"f").append(rl(this,sh,"f").domNode),nl(this,oh,new pl(t),"f"),rl(this,Ju,"f").append(rl(this,oh,"f").domNode),nl(this,ah,new ml(t),"f"),rl(this,Ju,"f").append(rl(this,ah,"f").domNode),this.collapse(),this.refresh()}isCollapsed(){return this.domNode.classList.contains(uu.yZ)}collapse(){this.domNode.classList.add(uu.yZ),rl(this,Yu,"f").caret.pointRight()}expand(){this.domNode.classList.remove(uu.yZ),rl(this,Yu,"f").caret.pointDown()}toggle(){this.isCollapsed()?this.expand():this.collapse()}refresh(){rl(this,Hu,"a",uh).forEach(t=>t.refresh()),0==[...rl(this,Xu,"f").selectedPrimaryBonds].length?rl(this,Hu,"m",hh).call(this):rl(this,Hu,"m",lh).call(this)}}Xu=new WeakMap,Yu=new WeakMap,$u=new WeakMap,Qu=new WeakMap,Zu=new WeakMap,Ju=new WeakMap,Ku=new WeakMap,th=new WeakMap,eh=new WeakMap,nh=new WeakMap,rh=new WeakMap,ih=new WeakMap,sh=new WeakMap,oh=new WeakMap,ah=new WeakMap,Hu=new WeakSet,uh=function(){return[rl(this,Qu,"f"),rl(this,Zu,"f"),rl(this,Ku,"f"),rl(this,th,"f"),rl(this,eh,"f"),rl(this,nh,"f"),rl(this,rh,"f"),rl(this,ih,"f"),rl(this,sh,"f"),rl(this,oh,"f"),rl(this,ah,"f")]},hh=function(){rl(this,Ju,"f").style.display="none"},lh=function(){rl(this,Ju,"f").style.display="flex"};class sl{constructor(t){ch.set(this,void 0),this.domNode=document.createElement("p"),fh.set(this,document.createElement("span")),dh.set(this,document.createElement("span")),nl(this,ch,t,"f"),this.domNode.classList.add(uu.vM),rl(this,fh,"f").style.fontWeight="700",this.domNode.append(rl(this,fh,"f"),rl(this,dh,"f")),rl(this,ch,"f").selectedPrimaryBonds.addEventListener("change",()=>{!document.body.contains(this.domNode)||this.refresh()}),this.refresh()}refresh(){let t=[...rl(this,ch,"f").selectedPrimaryBonds].length;rl(this,fh,"f").textContent=`${t}`,rl(this,dh,"f").textContent=1==t?" primary bond is selected.":" primary bonds are selected."}}ch=new WeakMap,fh=new WeakMap,dh=new WeakMap;class ol{constructor(t){ph.add(this),mh.set(this,void 0),this.domNode=document.createElement("div"),gh.set(this,new A("Select:",()=>this.toggle())),yh.set(this,{All:new P("All",()=>rl(this,ph,"m",_h).call(this)),None:new P("None",()=>rl(this,ph,"m",Nh).call(this)),Between:new P("Between",()=>rl(this,ph,"m",kh).call(this)),Connecting:new P("Connecting",()=>rl(this,ph,"m",Mh).call(this))}),vh.set(this,document.createElement("div")),wh.set(this,document.createElement("div")),bh.set(this,document.createElement("div")),xh.set(this,void 0),nl(this,mh,t,"f"),this.domNode.classList.add(uu.vw),this.domNode.append(rl(this,gh,"f").domNode),Ns(rl(this,vh,"f")).css({marginTop:"1.5px",display:"flex",flexDirection:"column",gap:"10px"}),this.domNode.append(rl(this,vh,"f")),Ns(rl(this,wh,"f")).css({display:"flex",flexDirection:"row",gap:"27px"}),rl(this,wh,"f").append(...["All","None"].map(t=>rl(this,yh,"f")[t].domNode)),rl(this,vh,"f").append(rl(this,wh,"f")),Ns(rl(this,bh,"f")).css({display:"flex",flexDirection:"row",gap:"20px"}),rl(this,bh,"f").append(...["Between","Connecting"].map(t=>rl(this,yh,"f")[t].domNode)),rl(this,vh,"f").append(rl(this,bh,"f")),rl(this,bh,"f").style.display="none",rl(this,gh,"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():{}),nl(this,xh,new MutationObserver(()=>document.body.contains(this.domNode)?this.refresh():{}),"f"),rl(this,xh,"f").observe(t.drawing.domNode,{childList:!0,subtree:!0}),this.refresh()}toggle(){this.isCollapsed()?this.expand():this.collapse()}isCollapsed(){return"none"==rl(this,bh,"f").style.display}collapse(){rl(this,bh,"f").style.display="none",rl(this,gh,"f").caret.pointRight()}expand(){rl(this,bh,"f").style.display="flex",rl(this,gh,"f").caret.pointDown()}refresh(){let t=[...rl(this,mh,"f").drawing.primaryBonds],e=new Set(rl(this,mh,"f").selectedPrimaryBonds);0==t.length?(rl(this,yh,"f").All.disable(),rl(this,yh,"f").All.tooltip.textContent="There are no primary bonds in the drawing."):t.every(t=>e.has(t))?(rl(this,yh,"f").All.disable(),rl(this,yh,"f").All.tooltip.textContent="All primary bonds are already selected."):(rl(this,yh,"f").All.enable(),rl(this,yh,"f").All.tooltip.textContent="Select all primary bonds."),0==e.size?(rl(this,yh,"f").None.disable(),rl(this,yh,"f").None.tooltip.textContent="No primary bonds are selected."):(rl(this,yh,"f").None.enable(),rl(this,yh,"f").None.tooltip.textContent="Deselect all primary bonds.");let n=[...rl(this,mh,"f").selectedBases],r=rl(this,ph,"a",Sh);0==n.length?(rl(this,yh,"f").Between.disable(),rl(this,yh,"f").Between.tooltip.textContent="No bases are selected."):r.every(t=>e.has(t))?(rl(this,yh,"f").Between.disable(),rl(this,yh,"f").Between.tooltip.textContent="All primary bonds between the selected bases are already selected."):(rl(this,yh,"f").Between.enable(),rl(this,yh,"f").Between.tooltip.textContent="Select primary bonds between the selected bases.");let i=rl(this,ph,"a",Ch);0==n.length?(rl(this,yh,"f").Connecting.disable(),rl(this,yh,"f").Connecting.tooltip.textContent="No bases are selected."):i.every(t=>e.has(t))?(rl(this,yh,"f").Connecting.disable(),rl(this,yh,"f").Connecting.tooltip.textContent="All primary bonds connecting the selected bases are already selected."):(rl(this,yh,"f").Connecting.enable(),rl(this,yh,"f").Connecting.tooltip.textContent="Select primary bonds connecting the selected bases.")}}mh=new WeakMap,gh=new WeakMap,yh=new WeakMap,vh=new WeakMap,wh=new WeakMap,bh=new WeakMap,xh=new WeakMap,ph=new WeakSet,_h=function(){rl(this,mh,"f").addToSelected([...rl(this,mh,"f").drawing.primaryBonds])},Nh=function(){rl(this,mh,"f").removeFromSelected([...rl(this,mh,"f").drawing.primaryBonds])},kh=function(){rl(this,mh,"f").addToSelected(rl(this,ph,"a",Sh))},Sh=function(){let t=new Set(rl(this,mh,"f").selectedBases);return[...rl(this,mh,"f").drawing.primaryBonds].filter(e=>t.has(e.base1)&&t.has(e.base2))},Mh=function(){rl(this,mh,"f").addToSelected(rl(this,ph,"a",Ch))},Ch=function(){let t=new Set(rl(this,mh,"f").selectedBases);return[...rl(this,mh,"f").drawing.primaryBonds].filter(e=>t.has(e.base1)||t.has(e.base2))};class al{constructor(t){Ah.add(this),Eh.set(this,void 0),Th.set(this,void 0),nl(this,Eh,t,"f");let e=t.selectedPrimaryBonds;nl(this,Th,new _u(e,t),"f"),this.domNode.style.marginTop="26px",rl(this,Th,"f").addEventListener("refresh",()=>rl(this,Ah,"m",Oh).call(this)),this.refresh()}get domNode(){return rl(this,Th,"f").domNode}refresh(){rl(this,Th,"f").refresh()}}Eh=new WeakMap,Th=new WeakMap,Ah=new WeakSet,Oh=function(){let t=[...rl(this,Eh,"f").selectedPrimaryBonds];rl(this,Th,"f").buttons.Front.tooltip.textContent=0==t.length?"No primary bonds are selected.":"Bring the selected primary bonds to the front.",rl(this,Th,"f").buttons.Back.tooltip.textContent=0==t.length?"No primary bonds are selected.":"Send the selected primary bonds to the back."};class ul{constructor(t){Lh.set(this,void 0),jh.set(this,void 0),Wh.set(this,void 0),nl(this,Lh,t,"f");let e=t.selectedPrimaryBonds;nl(this,jh,new ju("stroke",e,t),"f"),nl(this,Wh,new Q("Stroke",rl(this,jh,"f").domNode),"f"),rl(this,Wh,"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 rl(this,Wh,"f").domNode}refresh(){rl(this,jh,"f").refresh()}}Lh=new WeakMap,jh=new WeakMap,Wh=new WeakMap;class hl{constructor(t){Ph.set(this,void 0),Dh.set(this,void 0),Bh.set(this,void 0),nl(this,Ph,t,"f");let e=t.selectedPrimaryBonds;nl(this,Dh,new Gu("stroke",e,t),"f"),nl(this,Bh,new ut("Stroke Color",rl(this,Dh,"f").domNode),"f"),rl(this,Bh,"f").domNode.style.marginTop="12px",rl(this,Bh,"f").domNode.style.alignSelf="start",this.refresh()}get domNode(){return rl(this,Bh,"f").domNode}refresh(){rl(this,Dh,"f").refresh()}}Ph=new WeakMap,Dh=new WeakMap,Bh=new WeakMap;class ll{constructor(t){Ih.set(this,void 0),Rh.set(this,void 0),zh.set(this,void 0),nl(this,Ih,t,"f");let e=t.selectedPrimaryBonds;nl(this,Rh,new ju("stroke-opacity",e,t),"f"),nl(this,zh,new Q("Stroke Opacity",rl(this,Rh,"f").domNode),"f"),rl(this,zh,"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 rl(this,zh,"f").domNode}refresh(){rl(this,Rh,"f").refresh()}}Ih=new WeakMap,Rh=new WeakMap,zh=new WeakMap;class cl{constructor(t){Fh.set(this,void 0),qh.set(this,void 0),Uh.set(this,void 0),nl(this,Fh,t,"f");let e=t.selectedPrimaryBonds;nl(this,qh,new ju("stroke-width",e,t),"f"),nl(this,Uh,new Q("Stroke Width",rl(this,qh,"f").domNode),"f"),rl(this,Uh,"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 rl(this,Uh,"f").domNode}refresh(){rl(this,qh,"f").refresh()}}Fh=new WeakMap,qh=new WeakMap,Uh=new WeakMap;class fl{constructor(t){Vh.set(this,void 0),Gh.set(this,void 0),Hh.set(this,void 0),nl(this,Vh,t,"f");let e=t.selectedPrimaryBonds;nl(this,Gh,new ju("stroke-linecap",e,t),"f"),nl(this,Hh,new Q("Stroke Line-Cap",rl(this,Gh,"f").domNode),"f"),rl(this,Hh,"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 rl(this,Hh,"f").domNode}refresh(){rl(this,Gh,"f").refresh()}}Vh=new WeakMap,Gh=new WeakMap,Hh=new WeakMap;class dl{constructor(t){Xh.set(this,void 0),Yh.set(this,void 0),$h.set(this,void 0),nl(this,Xh,t,"f");let e=t.selectedPrimaryBonds;nl(this,Yh,new ju("stroke-dasharray",e,t),"f"),nl(this,$h,new Q("Stroke Dash-Array",rl(this,Yh,"f").domNode),"f"),rl(this,$h,"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 rl(this,$h,"f").domNode}refresh(){rl(this,Yh,"f").refresh()}}Xh=new WeakMap,Yh=new WeakMap,$h=new WeakMap;class pl{constructor(t){Qh.set(this,void 0),Zh.set(this,void 0),Jh.set(this,void 0),nl(this,Qh,t,"f");let e=t.selectedPrimaryBonds;nl(this,Zh,new ju("data-base-padding1",e,t),"f"),rl(this,Zh,"f").addEventListener("edit",()=>{[...e].forEach(t=>{let e=t.basePadding1;t.basePadding1+=1,t.basePadding1=e})}),nl(this,Jh,new Q("Base Padding 1",rl(this,Zh,"f").domNode),"f"),this.domNode.style.marginTop="10px",this.domNode.style.alignSelf="start",this.refresh()}get domNode(){return rl(this,Jh,"f").domNode}refresh(){rl(this,Zh,"f").refresh()}}Qh=new WeakMap,Zh=new WeakMap,Jh=new WeakMap;class ml{constructor(t){Kh.set(this,void 0),tl.set(this,void 0),el.set(this,void 0),nl(this,Kh,t,"f");let e=t.selectedPrimaryBonds;nl(this,tl,new ju("data-base-padding2",e,t),"f"),rl(this,tl,"f").addEventListener("edit",()=>{[...e].forEach(t=>{let e=t.basePadding2;t.basePadding2+=1,t.basePadding2=e})}),nl(this,el,new Q("Base Padding 2",rl(this,tl,"f").domNode),"f"),this.domNode.style.marginTop="10px",this.domNode.style.alignSelf="start",this.refresh()}get domNode(){return rl(this,el,"f").domNode}refresh(){rl(this,tl,"f").refresh()}}Kh=new WeakMap,tl=new WeakMap,el=new WeakMap;var gl=n(358),yl=n(705),vl={};vl.styleTagTransform=w(),vl.setAttributes=m(),vl.insert=d().bind(null,"head"),vl.domAPI=c(),vl.insertStyleElement=y(),h()(yl.Ay,vl),yl.Ay&&yl.Ay.locals&&yl.Ay.locals;var wl,bl,xl,_l,Nl,kl,Sl,Ml,Cl,Al,El,Tl,Ol,Ll,jl,Wl,Pl,Dl,Bl,Il,Rl,zl,Fl,ql,Ul,Vl,Gl,Hl,Xl,Yl,$l,Ql,Zl,Jl,Kl,tc,ec,nc,rc,ic,sc,oc,ac,uc,hc,lc,cc,fc,dc,pc,mc,gc,yc,vc,wc,bc,xc,_c,Nc,kc,Sc,Mc,Cc,Ac,Ec,Tc,Oc,Lc,jc,Wc,Pc,Dc,Bc,Ic,Rc,zc,Fc,qc,Uc,Vc,Gc,Hc,Xc,Yc=n(127),$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){wl.add(this),bl.set(this,void 0),this.domNode=document.createElement("div"),xl.set(this,new A("Secondary Bonds",()=>this.toggle())),_l.set(this,document.createElement("div")),Nl.set(this,void 0),kl.set(this,void 0),Sl.set(this,void 0),Ml.set(this,void 0),Cl.set(this,document.createElement("div")),Al.set(this,void 0),El.set(this,void 0),Tl.set(this,void 0),Ol.set(this,void 0),Ll.set(this,void 0),jl.set(this,void 0),Wl.set(this,void 0),Pl.set(this,void 0),Dl.set(this,void 0),$c(this,bl,t,"f"),this.domNode.classList.add(yl.Se),this.domNode.append(Qc(this,xl,"f").domNode),Qc(this,_l,"f").classList.add(yl.Qs),this.domNode.append(Qc(this,_l,"f")),$c(this,Nl,new Jc(t),"f"),Qc(this,_l,"f").append(Qc(this,Nl,"f").domNode),$c(this,kl,new Kc(t),"f"),Qc(this,_l,"f").append(Qc(this,kl,"f").domNode),$c(this,Sl,new tf(t),"f"),Qc(this,_l,"f").append(Qc(this,Sl,"f").domNode),$c(this,Ml,new ef(t),"f"),Qc(this,_l,"f").append(Qc(this,Ml,"f").domNode),Qc(this,Cl,"f").classList.add(yl.eB),Qc(this,_l,"f").append(Qc(this,Cl,"f")),t.selectedSecondaryBonds.addEventListener("change",()=>{document.body.contains(this.domNode)&&(0==[...t.selectedSecondaryBonds].length?Qc(this,wl,"m",Rl).call(this):Qc(this,wl,"m",Il).call(this))}),$c(this,Al,new nf(t),"f"),Qc(this,Cl,"f").append(Qc(this,Al,"f").domNode),$c(this,El,new rf(t),"f"),Qc(this,Cl,"f").append(Qc(this,El,"f").domNode),$c(this,Tl,new sf(t),"f"),Qc(this,Cl,"f").append(Qc(this,Tl,"f").domNode),$c(this,Ol,new of(t),"f"),Qc(this,Cl,"f").append(Qc(this,Ol,"f").domNode),$c(this,Ll,new af(t),"f"),Qc(this,Cl,"f").append(Qc(this,Ll,"f").domNode),$c(this,jl,new uf(t),"f"),Qc(this,Cl,"f").append(Qc(this,jl,"f").domNode),$c(this,Wl,new hf(t),"f"),Qc(this,Cl,"f").append(Qc(this,Wl,"f").domNode),$c(this,Pl,new lf(t),"f"),Qc(this,Cl,"f").append(Qc(this,Pl,"f").domNode),$c(this,Dl,new cf(t),"f"),Qc(this,Cl,"f").append(Qc(this,Dl,"f").domNode),this.collapse(),this.refresh()}isCollapsed(){return this.domNode.classList.contains(yl.yZ)}collapse(){this.domNode.classList.add(yl.yZ),Qc(this,xl,"f").caret.pointRight()}expand(){this.domNode.classList.remove(yl.yZ),Qc(this,xl,"f").caret.pointDown()}toggle(){this.isCollapsed()?this.expand():this.collapse()}refresh(){Qc(this,wl,"a",Bl).forEach(t=>t.refresh()),0==[...Qc(this,bl,"f").selectedSecondaryBonds].length?Qc(this,wl,"m",Rl).call(this):Qc(this,wl,"m",Il).call(this)}}bl=new WeakMap,xl=new WeakMap,_l=new WeakMap,Nl=new WeakMap,kl=new WeakMap,Sl=new WeakMap,Ml=new WeakMap,Cl=new WeakMap,Al=new WeakMap,El=new WeakMap,Tl=new WeakMap,Ol=new WeakMap,Ll=new WeakMap,jl=new WeakMap,Wl=new WeakMap,Pl=new WeakMap,Dl=new WeakMap,wl=new WeakSet,Bl=function(){return[Qc(this,Nl,"f"),Qc(this,kl,"f"),Qc(this,Sl,"f"),Qc(this,Ml,"f"),Qc(this,Al,"f"),Qc(this,El,"f"),Qc(this,Tl,"f"),Qc(this,Ol,"f"),Qc(this,Ll,"f"),Qc(this,jl,"f"),Qc(this,Wl,"f"),Qc(this,Pl,"f"),Qc(this,Dl,"f")]},Il=function(){Qc(this,Cl,"f").style.display="flex"},Rl=function(){Qc(this,Cl,"f").style.display="none"};class Jc{constructor(t){zl.set(this,void 0),this.domNode=document.createElement("p"),Fl.set(this,document.createElement("span")),ql.set(this,document.createElement("span")),$c(this,zl,t,"f"),this.domNode.classList.add(yl.vM),Qc(this,Fl,"f").style.fontWeight="700",this.domNode.append(Qc(this,Fl,"f"),Qc(this,ql,"f")),Qc(this,zl,"f").selectedSecondaryBonds.addEventListener("change",()=>{!document.body.contains(this.domNode)||this.refresh()}),this.refresh()}refresh(){let t=[...Qc(this,zl,"f").selectedSecondaryBonds].length;Qc(this,Fl,"f").textContent=`${t}`,Qc(this,ql,"f").textContent=1==t?" secondary bond is selected.":" secondary bonds are selected."}}zl=new WeakMap,Fl=new WeakMap,ql=new WeakMap;class Kc{constructor(t){Ul.add(this),Vl.set(this,void 0),this.domNode=document.createElement("div"),Gl.set(this,new A("Select:",()=>this.toggle())),Hl.set(this,{All:new P("All",()=>Qc(this,Ul,"m",Zl).call(this)),None:new P("None",()=>Qc(this,Ul,"m",Jl).call(this)),Between:new P("Between",()=>Qc(this,Ul,"m",Kl).call(this)),Connecting:new P("Connecting",()=>Qc(this,Ul,"m",ec).call(this)),"A:U":new P("A:U",()=>Qc(this,Ul,"m",rc).call(this)),"A:T":new P("A:T",()=>Qc(this,Ul,"m",sc).call(this)),"G:C":new P("G:C",()=>Qc(this,Ul,"m",ac).call(this)),"G:U":new P("G:U",()=>Qc(this,Ul,"m",hc).call(this)),"G:T":new P("G:T",()=>Qc(this,Ul,"m",cc).call(this))}),Xl.set(this,document.createElement("div")),Yl.set(this,document.createElement("div")),$l.set(this,document.createElement("div")),Ql.set(this,void 0),$c(this,Vl,t,"f"),this.domNode.classList.add(yl.vw),this.domNode.append(Qc(this,Gl,"f").domNode),Ns(Qc(this,Xl,"f")).css({marginTop:"1.5px",display:"flex",flexDirection:"column",gap:"12px"}),this.domNode.append(Qc(this,Xl,"f")),Ns(Qc(this,Yl,"f")).css({display:"flex",flexDirection:"row",gap:"27px"}),Qc(this,Yl,"f").append(...["All","None"].map(t=>Qc(this,Hl,"f")[t].domNode)),Qc(this,Xl,"f").append(Qc(this,Yl,"f")),Ns(Qc(this,$l,"f")).css({display:"flex",flexDirection:"column",gap:"12px"}),Qc(this,Xl,"f").append(Qc(this,$l,"f")),Qc(this,$l,"f").style.display="none",Qc(this,Gl,"f").caret.pointRight();let e=document.createElement("div");Ns(e).css({display:"flex",flexDirection:"row",gap:"20px"}),e.append(...["Between","Connecting"].map(t=>Qc(this,Hl,"f")[t].domNode)),Qc(this,$l,"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=>Qc(this,Hl,"f")[t].domNode)),Qc(this,$l,"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():{}),$c(this,Ql,new MutationObserver(()=>document.body.contains(this.domNode)?this.refresh():{}),"f"),Qc(this,Ql,"f").observe(t.drawing.domNode,{childList:!0,characterData:!0,subtree:!0}),this.refresh()}toggle(){this.isCollapsed()?this.expand():this.collapse()}isCollapsed(){return"none"==Qc(this,$l,"f").style.display}collapse(){Qc(this,$l,"f").style.display="none",Qc(this,Gl,"f").caret.pointRight()}expand(){Qc(this,$l,"f").style.display="flex",Qc(this,Gl,"f").caret.pointDown()}refresh(){let t=[...Qc(this,Vl,"f").drawing.secondaryBonds],e=new Set(Qc(this,Vl,"f").selectedSecondaryBonds);0==t.length?(Qc(this,Hl,"f").All.disable(),Qc(this,Hl,"f").All.tooltip.textContent="There are no secondary bonds in the drawing."):t.every(t=>e.has(t))?(Qc(this,Hl,"f").All.disable(),Qc(this,Hl,"f").All.tooltip.textContent="All secondary bonds are already selected."):(Qc(this,Hl,"f").All.enable(),Qc(this,Hl,"f").All.tooltip.textContent="Select all secondary bonds."),0==e.size?(Qc(this,Hl,"f").None.disable(),Qc(this,Hl,"f").None.tooltip.textContent="No secondary bonds are selected."):(Qc(this,Hl,"f").None.enable(),Qc(this,Hl,"f").None.tooltip.textContent="Deselect all secondary bonds.");let n=[...Qc(this,Vl,"f").selectedBases],r=Qc(this,Ul,"a",tc);0==n.length?(Qc(this,Hl,"f").Between.disable(),Qc(this,Hl,"f").Between.tooltip.textContent="No bases are selected."):r.every(t=>e.has(t))?(Qc(this,Hl,"f").Between.disable(),Qc(this,Hl,"f").Between.tooltip.textContent="All secondary bonds between the selected bases are already selected."):(Qc(this,Hl,"f").Between.enable(),Qc(this,Hl,"f").Between.tooltip.textContent="Select secondary bonds between the selected bases.");let i=Qc(this,Ul,"a",nc);0==n.length?(Qc(this,Hl,"f").Connecting.disable(),Qc(this,Hl,"f").Connecting.tooltip.textContent="No bases are selected."):i.every(t=>e.has(t))?(Qc(this,Hl,"f").Connecting.disable(),Qc(this,Hl,"f").Connecting.tooltip.textContent="All secondary bonds connecting the selected bases are already selected."):(Qc(this,Hl,"f").Connecting.enable(),Qc(this,Hl,"f").Connecting.tooltip.textContent="Select secondary bonds connecting the selected bases."),[["A:U",Qc(this,Ul,"a",ic)],["A:T",Qc(this,Ul,"a",oc)],["G:C",Qc(this,Ul,"a",uc)],["G:U",Qc(this,Ul,"a",lc)],["G:T",Qc(this,Ul,"a",fc)]].forEach(([t,n])=>{0==n.length?(Qc(this,Hl,"f")[t].disable(),Qc(this,Hl,"f")[t].tooltip.textContent=`There are no ${t} base-pairs in the drawing.`):n.every(t=>e.has(t))?(Qc(this,Hl,"f")[t].disable(),Qc(this,Hl,"f")[t].tooltip.textContent=`All secondary bonds between ${t} base-pairs are already selected.`):(Qc(this,Hl,"f")[t].enable(),Qc(this,Hl,"f")[t].tooltip.textContent=`Select secondary bonds between ${t} base-pairs.`)})}}Vl=new WeakMap,Gl=new WeakMap,Hl=new WeakMap,Xl=new WeakMap,Yl=new WeakMap,$l=new WeakMap,Ql=new WeakMap,Ul=new WeakSet,Zl=function(){Qc(this,Vl,"f").addToSelected([...Qc(this,Vl,"f").drawing.secondaryBonds])},Jl=function(){Qc(this,Vl,"f").removeFromSelected([...Qc(this,Vl,"f").drawing.secondaryBonds])},Kl=function(){Qc(this,Vl,"f").addToSelected(Qc(this,Ul,"a",tc))},tc=function(){let t=new Set(Qc(this,Vl,"f").selectedBases);return[...Qc(this,Vl,"f").drawing.secondaryBonds].filter(e=>t.has(e.base1)&&t.has(e.base2))},ec=function(){Qc(this,Vl,"f").addToSelected(Qc(this,Ul,"a",nc))},nc=function(){let t=new Set(Qc(this,Vl,"f").selectedBases);return[...Qc(this,Vl,"f").drawing.secondaryBonds].filter(e=>t.has(e.base1)||t.has(e.base2))},rc=function(){Qc(this,Vl,"f").addToSelected(Qc(this,Ul,"a",ic))},ic=function(){return[...Qc(this,Vl,"f").drawing.secondaryBonds].filter(ff)},sc=function(){Qc(this,Vl,"f").addToSelected(Qc(this,Ul,"a",oc))},oc=function(){return[...Qc(this,Vl,"f").drawing.secondaryBonds].filter(df)},ac=function(){Qc(this,Vl,"f").addToSelected(Qc(this,Ul,"a",uc))},uc=function(){return[...Qc(this,Vl,"f").drawing.secondaryBonds].filter(pf)},hc=function(){Qc(this,Vl,"f").addToSelected(Qc(this,Ul,"a",lc))},lc=function(){return[...Qc(this,Vl,"f").drawing.secondaryBonds].filter(mf)},cc=function(){Qc(this,Vl,"f").addToSelected(Qc(this,Ul,"a",fc))},fc=function(){return[...Qc(this,Vl,"f").drawing.secondaryBonds].filter(gf)};class tf{constructor(t){dc.set(this,void 0),this.domNode=document.createElement("div"),pc.set(this,new Ks("Add",()=>this.press())),mc.set(this,new K),gc.set(this,new nt("Only add missing secondary bonds",Qc(this,mc,"f").domNode)),yc.set(this,void 0),$c(this,dc,t,"f"),this.domNode.classList.add(yl.Ol),this.domNode.append(Qc(this,pc,"f").domNode,Qc(this,gc,"f").domNode),Qc(this,mc,"f").domNode.checked=!0,Qc(this,gc,"f").domNode.style.marginLeft="10px",Qc(this,dc,"f").selectedBases.addEventListener("change",()=>{!document.body.contains(this.domNode)||this.refresh()}),$c(this,yc,new MutationObserver(()=>document.body.contains(this.domNode)?this.refresh():{}),"f"),Qc(this,yc,"f").observe(t.drawing.domNode,{childList:!0,subtree:!0}),Qc(this,mc,"f").domNode.addEventListener("change",()=>this.refresh())}press(){let t=[...Qc(this,dc,"f").drawing.bases],e=[...Qc(this,dc,"f").selectedBases];e=(0,gl.seqSorted)(e,t);let n=(0,Yc.antiParallelPairs)(e),r=[...Qc(this,dc,"f").drawing.secondaryBonds],i=(0,Yc.missing)(vf(r),n);0!=n.length&&(Qc(this,mc,"f").domNode.checked&&0==i.length||(Qc(this,dc,"f").pushUndoStack(),Qc(this,mc,"f").domNode.checked?i.forEach(t=>Qc(this,dc,"f").drawing.addSecondaryBond(...t)):n.forEach(t=>Qc(this,dc,"f").drawing.addSecondaryBond(...t))))}refresh(){let t=[...Qc(this,dc,"f").drawing.bases],e=[...Qc(this,dc,"f").selectedBases];e=(0,gl.seqSorted)(e,t);let n=(0,Yc.antiParallelPairs)(e),r=[...Qc(this,dc,"f").drawing.secondaryBonds],i=(0,Yc.missing)(vf(r),n);0==e.length?(Qc(this,pc,"f").disable(),Qc(this,pc,"f").tooltip.textContent="No bases are selected."):1==e.length?(Qc(this,pc,"f").disable(),Qc(this,pc,"f").tooltip.textContent="At least two bases must be selected."):Qc(this,mc,"f").domNode.checked&&0==i.length?(Qc(this,pc,"f").disable(),Qc(this,pc,"f").tooltip.textContent="There are no missing pairs between the selected bases."):(Qc(this,pc,"f").enable(),Qc(this,pc,"f").tooltip.textContent="Add secondary bonds between the selected bases.")}}dc=new WeakMap,pc=new WeakMap,mc=new WeakMap,gc=new WeakMap,yc=new WeakMap;class ef{constructor(t){vc.set(this,void 0),wc.set(this,new Ks("Remove",()=>this.press())),$c(this,vc,t,"f"),Qc(this,vc,"f").selectedSecondaryBonds.addEventListener("change",()=>{!document.body.contains(this.domNode)||this.refresh()}),this.domNode.style.marginTop="15px"}get domNode(){return Qc(this,wc,"f").domNode}press(){let t=[...Qc(this,vc,"f").selectedSecondaryBonds];0!=t.length&&(Qc(this,vc,"f").pushUndoStack(),t.forEach(t=>t.domNode.remove()))}refresh(){0==[...Qc(this,vc,"f").selectedSecondaryBonds].length?(Qc(this,wc,"f").disable(),Qc(this,wc,"f").tooltip.textContent="No secondary bonds are selected."):(Qc(this,wc,"f").enable(),Qc(this,wc,"f").tooltip.textContent="Remove the selected secondary bonds from the drawing.")}}vc=new WeakMap,wc=new WeakMap;class nf{constructor(t){bc.add(this),xc.set(this,void 0),_c.set(this,void 0),$c(this,xc,t,"f");let e=t.selectedSecondaryBonds;$c(this,_c,new _u(e,t),"f"),this.domNode.style.marginTop="27px",Qc(this,_c,"f").addEventListener("refresh",()=>Qc(this,bc,"m",Nc).call(this)),this.refresh()}get domNode(){return Qc(this,_c,"f").domNode}refresh(){Qc(this,_c,"f").refresh()}}xc=new WeakMap,_c=new WeakMap,bc=new WeakSet,Nc=function(){let t=[...Qc(this,xc,"f").selectedSecondaryBonds];Qc(this,_c,"f").buttons.Front.tooltip.textContent=0==t.length?"No secondary bonds are selected.":"Bring the selected secondary bonds to the front.",Qc(this,_c,"f").buttons.Back.tooltip.textContent=0==t.length?"No secondary bonds are selected.":"Send the selected secondary bonds to the back."};class rf{constructor(t){kc.set(this,void 0),Sc.set(this,void 0),Mc.set(this,void 0),$c(this,kc,t,"f");let e=t.selectedSecondaryBonds;$c(this,Sc,new ju("stroke",e,t),"f"),$c(this,Mc,new Q("Stroke",Qc(this,Sc,"f").domNode),"f"),Qc(this,Mc,"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 Qc(this,Mc,"f").domNode}refresh(){Qc(this,Sc,"f").refresh()}}kc=new WeakMap,Sc=new WeakMap,Mc=new WeakMap;class sf{constructor(t){Cc.set(this,void 0),Ac.set(this,void 0),Ec.set(this,void 0),$c(this,Cc,t,"f");let e=t.selectedSecondaryBonds;$c(this,Ac,new Gu("stroke",e,t),"f"),$c(this,Ec,new ut("Stroke Color",Qc(this,Ac,"f").domNode),"f"),Qc(this,Ec,"f").domNode.style.marginTop="12px",Qc(this,Ec,"f").domNode.style.alignSelf="start",this.refresh()}get domNode(){return Qc(this,Ec,"f").domNode}refresh(){Qc(this,Ac,"f").refresh()}}Cc=new WeakMap,Ac=new WeakMap,Ec=new WeakMap;class of{constructor(t){Tc.set(this,void 0),Oc.set(this,void 0),Lc.set(this,void 0),$c(this,Tc,t,"f");let e=t.selectedSecondaryBonds;$c(this,Oc,new ju("stroke-opacity",e,t),"f"),$c(this,Lc,new Q("Stroke Opacity",Qc(this,Oc,"f").domNode),"f"),Qc(this,Lc,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Attribute/stroke-opacity",this.domNode.style.marginTop="12px",this.domNode.style.alignSelf="start",this.refresh()}get domNode(){return Qc(this,Lc,"f").domNode}refresh(){Qc(this,Oc,"f").refresh()}}Tc=new WeakMap,Oc=new WeakMap,Lc=new WeakMap;class af{constructor(t){jc.set(this,void 0),Wc.set(this,void 0),Pc.set(this,void 0),$c(this,jc,t,"f");let e=t.selectedSecondaryBonds;$c(this,Wc,new ju("stroke-width",e,t),"f"),$c(this,Pc,new Q("Stroke Width",Qc(this,Wc,"f").domNode),"f"),Qc(this,Pc,"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 Qc(this,Pc,"f").domNode}refresh(){Qc(this,Wc,"f").refresh()}}jc=new WeakMap,Wc=new WeakMap,Pc=new WeakMap;class uf{constructor(t){Dc.set(this,void 0),Bc.set(this,void 0),Ic.set(this,void 0),$c(this,Dc,t,"f");let e=t.selectedSecondaryBonds;$c(this,Bc,new ju("stroke-linecap",e,t),"f"),$c(this,Ic,new Q("Stroke Line-Cap",Qc(this,Bc,"f").domNode),"f"),Qc(this,Ic,"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 Qc(this,Ic,"f").domNode}refresh(){Qc(this,Bc,"f").refresh()}}Dc=new WeakMap,Bc=new WeakMap,Ic=new WeakMap;class hf{constructor(t){Rc.set(this,void 0),zc.set(this,void 0),Fc.set(this,void 0),$c(this,Rc,t,"f");let e=t.selectedSecondaryBonds;$c(this,zc,new ju("stroke-dasharray",e,t),"f"),$c(this,Fc,new Q("Stroke Dash-Array",Qc(this,zc,"f").domNode),"f"),Qc(this,Fc,"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 Qc(this,Fc,"f").domNode}refresh(){Qc(this,zc,"f").refresh()}}Rc=new WeakMap,zc=new WeakMap,Fc=new WeakMap;class lf{constructor(t){qc.set(this,void 0),Uc.set(this,void 0),Vc.set(this,void 0),$c(this,qc,t,"f");let e=t.selectedSecondaryBonds;$c(this,Uc,new ju("data-base-padding1",e,t),"f"),Qc(this,Uc,"f").addEventListener("edit",()=>{[...e].forEach(t=>{let e=t.basePadding1;t.basePadding1+=1,t.basePadding1=e})}),$c(this,Vc,new Q("Base Padding 1",Qc(this,Uc,"f").domNode),"f"),this.domNode.style.marginTop="10px",this.domNode.style.alignSelf="start",this.refresh()}get domNode(){return Qc(this,Vc,"f").domNode}refresh(){Qc(this,Uc,"f").refresh()}}qc=new WeakMap,Uc=new WeakMap,Vc=new WeakMap;class cf{constructor(t){Gc.set(this,void 0),Hc.set(this,void 0),Xc.set(this,void 0),$c(this,Gc,t,"f");let e=t.selectedSecondaryBonds;$c(this,Hc,new ju("data-base-padding2",e,t),"f"),Qc(this,Hc,"f").addEventListener("edit",()=>{[...e].forEach(t=>{let e=t.basePadding2;t.basePadding2+=1,t.basePadding2=e})}),$c(this,Xc,new Q("Base Padding 2",Qc(this,Hc,"f").domNode),"f"),this.domNode.style.marginTop="10px",this.domNode.style.alignSelf="start",this.refresh()}get domNode(){return Qc(this,Xc,"f").domNode}refresh(){Qc(this,Hc,"f").refresh()}}function ff(t){return new gl.BasePair(t.base1,t.base2).isAU()}function df(t){return new gl.BasePair(t.base1,t.base2).isAT()}function pf(t){return new gl.BasePair(t.base1,t.base2).isGC()}function mf(t){return new gl.BasePair(t.base1,t.base2).isGU()}function gf(t){return new gl.BasePair(t.base1,t.base2).isGT()}function yf(t){return[t.base1,t.base2]}function vf(t){return t.map(yf)}Gc=new WeakMap,Hc=new WeakMap,Xc=new WeakMap;var wf=n(965),bf={};bf.styleTagTransform=w(),bf.setAttributes=m(),bf.insert=d().bind(null,"head"),bf.domAPI=c(),bf.insertStyleElement=y(),h()(wf.Ay,bf),wf.Ay&&wf.Ay.locals&&wf.Ay.locals;var xf,_f,Nf,kf,Sf,Mf,Cf,Af,Ef,Tf,Of=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},Lf=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){xf.add(this),_f.set(this,void 0),this.domNode=document.createElement("div"),Nf.set(this,new A("Drawing",()=>this.toggle())),kf.set(this,document.createElement("div")),Sf.set(this,void 0),Of(this,_f,t,"f"),this.domNode.classList.add(wf.fS),this.domNode.append(Lf(this,Nf,"f").domNode),Lf(this,kf,"f").classList.add(wf.Qs),this.domNode.append(Lf(this,kf,"f")),Of(this,Sf,new Wf(t),"f"),Lf(this,kf,"f").append(Lf(this,Sf,"f").domNode),this.collapse(),this.refresh()}isCollapsed(){return this.domNode.classList.contains(wf.yZ)}collapse(){this.domNode.classList.add(wf.yZ),Lf(this,Nf,"f").caret.pointRight()}expand(){this.domNode.classList.remove(wf.yZ),Lf(this,Nf,"f").caret.pointDown()}toggle(){this.isCollapsed()?this.expand():this.collapse()}refresh(){Lf(this,xf,"a",Mf).forEach(t=>t.refresh())}}_f=new WeakMap,Nf=new WeakMap,kf=new WeakMap,Sf=new WeakMap,xf=new WeakSet,Mf=function(){return[Lf(this,Sf,"f")]};class Wf{constructor(t){Cf.set(this,void 0),Af.set(this,void 0),Ef.set(this,void 0),Of(this,Cf,t,"f"),Of(this,Af,new ju("data-name",new Pf([t.drawing]),t),"f"),Of(this,Ef,new Q("Name",Lf(this,Af,"f").domNode),"f"),this.domNode.style.alignSelf="start",Lf(this,Af,"f").domNode.style.width="132px",this.refresh()}get domNode(){return Lf(this,Ef,"f").domNode}refresh(){Lf(this,Af,"f").refresh()}}Cf=new WeakMap,Af=new WeakMap,Ef=new WeakMap;class Pf{constructor(t){Tf.set(this,void 0),Of(this,Tf,[...t],"f")}[(Tf=new WeakMap,Symbol.iterator)](){return Lf(this,Tf,"f").values()}addEventListener(t,e){}}var Df=n(290),Bf={};Bf.styleTagTransform=w(),Bf.setAttributes=m(),Bf.insert=d().bind(null,"head"),Bf.domAPI=c(),Bf.insertStyleElement=y(),h()(Df.A,Bf),Df.A&&Df.A.locals&&Df.A.locals;var If,Rf,zf,Ff,qf,Uf,Vf,Gf,Hf,Xf=n(139),Yf=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},$f=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.add(this),Rf.set(this,void 0),this.domNode=document.createElement("div"),zf.set(this,void 0),Ff.set(this,void 0),qf.set(this,void 0),Uf.set(this,void 0),Vf.set(this,void 0),Gf.set(this,void 0),Yf(this,Rf,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),Yf(this,zf,new Ms(t),"f"),n.append($f(this,zf,"f").domNode),Yf(this,Ff,new Ha(t),"f"),n.append($f(this,Ff,"f").domNode),Yf(this,qf,new il(t),"f"),n.append($f(this,qf,"f").domNode),Yf(this,Uf,new Zc(t),"f"),n.append($f(this,Uf,"f").domNode),Yf(this,Vf,new jf(t),"f"),n.append($f(this,Vf,"f").domNode);let r=function(){let t=document.createElement("p");return t.classList.add(Df._),t.textContent="Close",t}();r.addEventListener("click",()=>this.close()),this.domNode.append(r),Yf(this,Gf,new Xf.DragTranslater(this.domNode),"f")}appendTo(t){this.refresh(),this.reposition(),t.appendChild(this.domNode)}close(){this.domNode.remove()}refresh(){$f(this,If,"a",Hf).forEach(t=>t.refresh())}reposition(){$f(this,Gf,"f").untranslate()}}Rf=new WeakMap,zf=new WeakMap,Ff=new WeakMap,qf=new WeakMap,Uf=new WeakMap,Vf=new WeakMap,Gf=new WeakMap,If=new WeakSet,Hf=function(){return[$f(this,zf,"f"),$f(this,Ff,"f"),$f(this,qf,"f"),$f(this,Uf,"f"),$f(this,Vf,"f")]}})(),r})());
|