@rnacanvas/forms.edit 10.0.3 → 10.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! For license information please see index.js.LICENSE.txt */
|
|
2
|
-
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports["forms.edit"]=e():t["forms.edit"]=e()}(this,(()=>(()=>{var t={51:t=>{"use strict";t.exports="data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgOTYgOTYiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIGlkPSJJY29uc19DaGVja21hcmsiIG92ZXJmbG93PSJoaWRkZW4iPjxwYXRoIGQ9Ik04Ni4xIDE1LjggMzQuOSA2NC4yIDEwLjMgMzkgMS44IDQ3LjEgMzQuNSA4MC43IDQzLjEgNzIuNyA5NC4yIDI0LjJaIiBzdHJva2U9IiNGRkZGRkYiIHN0cm9rZS13aWR0aD0iMy42NjY2NyIgZmlsbD0iI0ZGRkZGRiIvPjwvc3ZnPg=="},56:(t,e,n)=>{"use strict";t.exports=function(t){var e=n.nc;e&&t.setAttribute("nonce",e)}},72:t=>{"use strict";var e=[];function n(t){for(var n=-1,r=0;r<e.length;r++)if(e[r].identifier===t){n=r;break}return n}function r(t,r){for(var s={},o=[],a=0;a<t.length;a++){var u=t[a],h=r.base?u[0]+r.base:u[0],l=s[h]||0,c="".concat(h," ").concat(l);s[h]=l+1;var 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))}}},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:()=>y});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),v=n(826),g={};g.styleTagTransform=m(),g.setAttributes=c(),g.insert=h().bind(null,"head"),g.domAPI=a(),g.insertStyleElement=d(),s()(v.A,g),v.A&&v.A.locals&&v.A.locals;class y{constructor(t){this.targetForm=t,this.mouseIsDown=!1,this.interactionDepth="shallow",window.addEventListener("mousedown",(t=>this.handleMouseDown(t))),window.addEventListener("mousemove",(t=>this.handleMouseMove(t))),window.addEventListener("mouseup",(t=>this.handleMouseUp(t))),t.addEventListener("mouseover",(e=>{e.target!==t||t.classList.add(v.y)})),t.addEventListener("mouseout",(e=>{e.target!==t||t.classList.remove(v.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:()=>f,average:()=>r,isBetweenExclusive:()=>c,isBetweenInclusive:()=>l,max:()=>h,mean:()=>r,median:()=>a,min:()=>u,sortNumbers:()=>i,sortNumbersAscending:()=>i,sortNumbersDescending:()=>d,sortedNumbers:()=>o,sortedNumbersAscending:()=>o,sortedNumbersDescending:()=>p,sum:()=>n});var s=function(t,e,n){if(n||2===arguments.length)for(var r,i=0,s=e.length;i<s;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))};function o(t){var e=s([],t,!0);return i(e),e}function a(t){if(0==t.length)return NaN;var e=o(t);if(e.length%2!=0)return e[Math.floor(e.length/2)];var n=e.length/2,i=n-1;return r([e[n],e[i]])}function u(t){if(0==t.length)return 1/0;var e=t[0];return t.slice(1).forEach((function(t){e=Math.min(e,t)})),e}function h(t){if(0==t.length)return-1/0;var e=t[0];return t.slice(1).forEach((function(t){e=Math.max(e,t)})),e}function l(t,e,n){return t>=e&&t<=n}function c(t,e,n){return t>e&&t<n}function f(t,e,n){return Math.abs(t-e)<=n}function d(t){i(t),t.reverse()}function p(t){var e=o(t);return e.reverse(),e}return e})()}},e={};function n(r){var i=e[r];if(void 0!==i)return i.exports;var s=e[r]={exports:{}};return t[r].call(s.exports,s,s.exports,n),s.exports}n.d=(t,e)=>{for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var r={};return(()=>{"use strict";function t(t){if(0==t.length)throw new Error("The array of values is empty.");if(1==new Set(t).size)return t[0];throw new Error("Not all values are the same.")}n.r(r),n.d(r,{consensusValue:()=>t,mostCommonValue:()=>s});var e=n(986);class i{static of(t){return{in:e=>{let n=new Set([t]);return e.filter((t=>n.has(t)))}}}}function s(t){if(0==t.length)throw new Error("The array of values is empty.");let n=[...new Set(t)],r=n.map((e=>i.of(e).in(t).length)),s=(0,e.max)(r),o=n.findIndex((e=>i.of(e).in(t).length==s));if(o<0)throw new Error("Unable to find the most common value.");return n[o]}})(),r})()},290:(t,e,n)=>{"use strict";n.d(e,{A:()=>u,_:()=>a});var r=n(601),i=n.n(r),s=n(314),o=n.n(s)()(i());o.push([t.id,'.kcto2iumhdvv3MluNmLw {\n position: absolute;\n top: 13px;\n right: 17px;\n\n margin: 0px;\n\n border: none;\n outline: none;\n\n padding: 3px 12px;\n border-radius: 3px;\n\n font-family: "Open Sans", sans-serif;\n font-size: 16px;\n font-weight: 600;\n font-style: normal;\n color: #871414;\n\n pointer-events: auto;\n\n cursor: pointer;\n\n user-select: none;\n -webkit-user-select: none;\n\n background-color: transparent;\n}\n\n.kcto2iumhdvv3MluNmLw:hover {\n background-color: #cab8d99c;\n}\n\n.kcto2iumhdvv3MluNmLw:active {\n background-color: #aa8eba9e;\n}\n',""]);var a="kcto2iumhdvv3MluNmLw";const u=o},314:t=>{"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var n="",r=void 0!==e[5];return e[4]&&(n+="@supports (".concat(e[4],") {")),e[2]&&(n+="@media ".concat(e[2]," {")),r&&(n+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),n+=t(e),r&&(n+="}"),e[2]&&(n+="}"),e[4]&&(n+="}"),n})).join("")},e.i=function(t,n,r,i,s){"string"==typeof t&&(t=[[null,t,void 0]]);var o={};if(r)for(var a=0;a<this.length;a++){var u=this[a][0];null!=u&&(o[u]=!0)}for(var h=0;h<t.length;h++){var l=[].concat(t[h]);r&&o[l[0]]||(void 0!==s&&(void 0===l[5]||(l[1]="@layer".concat(l[5].length>0?" ".concat(l[5]):""," {").concat(l[1],"}")),l[5]=s),n&&(l[2]?(l[1]="@media ".concat(l[2]," {").concat(l[1],"}"),l[2]=n):l[2]=n),i&&(l[4]?(l[1]="@supports (".concat(l[4],") {").concat(l[1],"}"),l[4]=i):l[4]="".concat(i)),e.push(l))}},e}},401:(t,e,n)=>{"use strict";n.d(e,{Ay:()=>f,Qs:()=>u,eB:()=>c,gP:()=>a,vM:()=>l,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: 29px;\n\n display: flex;\n flex-direction: column;\n}\n\n.RAWN5K2ehadscPWlBK_9 {\n margin: 10px 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: black;\n\n user-select: none;\n -webkit-user-select: none;\n\n pointer-events: none;\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="nJxPkvauzUEG66FC0ZAb";const f=o},417:t=>{"use strict";t.exports=function(t,e){return e||(e={}),t?(t=String(t.__esModule?t.default:t),/^['"].*['"]$/.test(t)&&(t=t.slice(1,-1)),e.hash&&(t+=e.hash),/["'() \t\n]|(%20)/.test(t)||e.needQuotes?'"'.concat(t.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):t):t}},419:(t,e,n)=>{"use strict";n.d(e,{A:()=>u,P:()=>a});var r=n(601),i=n.n(r),s=n(314),o=n.n(s)()(i());o.push([t.id,'.cstoj4QoATbKp66WQrBA {\n border: 1px solid #75758c;\n border-radius: 2px;\n\n outline: none;\n\n width: 90px;\n\n padding: 3px 6px;\n\n font-family: "Open Sans", sans-serif;\n font-size: 12px;\n font-weight: 700;\n font-style: normal;\n color: black;\n\n pointer-events: auto;\n}\n\n.cstoj4QoATbKp66WQrBA:hover {\n border-color: #0a0a0b;\n}\n\n.cstoj4QoATbKp66WQrBA:focus {\n border-color: #0a0a0b;\n\n outline: none;\n}\n',""]);var a="cstoj4QoATbKp66WQrBA";const u=o},420:(t,e,n)=>{"use strict";n.d(e,{Ay:()=>l,KQ:()=>a,UJ:()=>h,wx:()=>u});var r=n(601),i=n.n(r),s=n(314),o=n.n(s)()(i());o.push([t.id,'.wkp2L4HpJzRg7XSLEG0O {\n width: 268px;\n height: 524px;\n\n overflow: auto;\n\n border-radius: 16px;\n\n border: 1px solid #220536;\n\n padding: 23px 32px 50px 36px;\n\n background-color: rgba(227, 229, 255, 0.37);\n\n backdrop-filter: blur(20px);\n -webkit-backdrop-filter: blur(20px);\n\n box-shadow: 0 0 14px rgba(219, 219, 238, 0.09);\n}\n\n.Y7tezdMOsnQfs2CQtMUR {\n margin: 0px;\n padding: 0px;\n\n font-family: "Open Sans", sans-serif;\n font-size: 34px;\n font-weight: 700;\n font-style: normal;\n color: black;\n\n user-select: none;\n -webkit-user-select: none;\n\n pointer-events: none;\n}\n\n.blLx0TnwxHwlX8qvUigb {\n margin: 27px 0px 0px 24px;\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]",v="[object Array]",g="[object Boolean]",y="[object Date]",w="[object Error]",b="[object Function]",x="[object GeneratorFunction]",_="[object Map]",k="[object Number]",N="[object Object]",S="[object Promise]",E="[object RegExp]",M="[object Set]",T="[object String]",C="[object Symbol]",A="[object WeakMap]",L="[object ArrayBuffer]",W="[object DataView]",O="[object Float32Array]",j="[object Float64Array]",D="[object Int8Array]",P="[object Int16Array]",I="[object Int32Array]",R="[object Uint8Array]",B="[object Uint8ClampedArray]",z="[object Uint16Array]",F="[object Uint32Array]",q=/\b__p \+= '';/g,U=/\b(__p \+=) '' \+/g,H=/(__e\(.*?\)|\b__t\)) \+\n'';/g,V=/&(?:amp|lt|gt|quot|#39);/g,G=/[&<>"']/g,X=RegExp(V.source),Y=RegExp(G.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\]$/,vt=/^0o[0-7]+$/i,gt=/^(?:0|[1-9]\d*)$/,yt=/[\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",kt="\\u2700-\\u27bf",Nt="a-z\\xdf-\\xf6\\xf8-\\xff",St="A-Z\\xc0-\\xd6\\xd8-\\xde",Et="\\ufe0e\\ufe0f",Mt="\\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",Tt="["+xt+"]",Ct="["+Mt+"]",At="["+_t+"]",Lt="\\d+",Wt="["+kt+"]",Ot="["+Nt+"]",jt="[^"+xt+Mt+Lt+kt+Nt+St+"]",Dt="\\ud83c[\\udffb-\\udfff]",Pt="[^"+xt+"]",It="(?:\\ud83c[\\udde6-\\uddff]){2}",Rt="[\\ud800-\\udbff][\\udc00-\\udfff]",Bt="["+St+"]",zt="\\u200d",Ft="(?:"+Ot+"|"+jt+")",qt="(?:"+Bt+"|"+jt+")",Ut="(?:['’](?:d|ll|m|re|s|t|ve))?",Ht="(?:['’](?:D|LL|M|RE|S|T|VE))?",Vt="(?:"+At+"|"+Dt+")?",Gt="["+Et+"]?",Xt=Gt+Vt+"(?:"+zt+"(?:"+[Pt,It,Rt].join("|")+")"+Gt+Vt+")*",Yt="(?:"+[Wt,It,Rt].join("|")+")"+Xt,$t="(?:"+[Pt+At+"?",At,It,Rt,Tt].join("|")+")",Qt=RegExp("['’]","g"),Zt=RegExp(At,"g"),Jt=RegExp(Dt+"(?="+Dt+")|"+$t+Xt,"g"),Kt=RegExp([Bt+"?"+Ot+"+"+Ut+"(?="+[Ct,Bt,"$"].join("|")+")",qt+"+"+Ht+"(?="+[Ct,Bt+Ft,"$"].join("|")+")",Bt+"?"+Ft+"+"+Ut,Bt+"+"+Ht,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Lt,Yt].join("|"),"g"),te=RegExp("["+zt+xt+_t+Et+"]"),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[O]=ie[j]=ie[D]=ie[P]=ie[I]=ie[R]=ie[B]=ie[z]=ie[F]=!0,ie[m]=ie[v]=ie[L]=ie[g]=ie[W]=ie[y]=ie[w]=ie[b]=ie[_]=ie[k]=ie[N]=ie[E]=ie[M]=ie[T]=ie[A]=!1;var se={};se[m]=se[v]=se[L]=se[W]=se[g]=se[y]=se[O]=se[j]=se[D]=se[P]=se[I]=se[_]=se[k]=se[N]=se[E]=se[M]=se[T]=se[C]=se[R]=se[B]=se[z]=se[F]=!0,se[w]=se[b]=se[A]=!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,ve=function(){try{return de&&de.require&&de.require("util").types||me&&me.binding&&me.binding("util")}catch(t){}}(),ge=ve&&ve.isArrayBuffer,ye=ve&&ve.isDate,we=ve&&ve.isMap,be=ve&&ve.isRegExp,xe=ve&&ve.isSet,_e=ve&&ve.isTypedArray;function ke(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 Ne(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 Ee(t,e){for(var n=null==t?0:t.length;n--&&!1!==e(t[n],n,t););return t}function Me(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 Te(t,e){for(var n=-1,r=null==t?0:t.length,i=0,s=[];++n<r;){var o=t[n];e(o,n,t)&&(s[i++]=o)}return s}function Ce(t,e){return!(null==t||!t.length)&&Be(t,e,0)>-1}function Ae(t,e,n){for(var r=-1,i=null==t?0:t.length;++r<i;)if(n(e,t[r]))return!0;return!1}function Le(t,e){for(var n=-1,r=null==t?0:t.length,i=Array(r);++n<r;)i[n]=e(t[n],n,t);return i}function We(t,e){for(var n=-1,r=e.length,i=t.length;++n<r;)t[i+n]=e[n];return t}function Oe(t,e,n,r){var i=-1,s=null==t?0:t.length;for(r&&s&&(n=t[++i]);++i<s;)n=e(n,t[i],i,t);return n}function je(t,e,n,r){var i=null==t?0:t.length;for(r&&i&&(n=t[--i]);i--;)n=e(n,t[i],i,t);return n}function De(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 Pe=Ue("length");function Ie(t,e,n){var r;return n(t,(function(t,n,i){if(e(t,n,i))return r=n,!1})),r}function Re(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 Be(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):Re(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?Ge(t,e)/n:f}function Ue(t){return function(e){return null==e?i:e[t]}}function He(t){return function(e){return null==t?i:t[e]}}function Ve(t,e,n,r,i){return i(t,(function(t,i,s){n=r?(r=!1,t):e(n,t,i,s)})),n}function Ge(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 Le(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&&Be(e,t[n],0)>-1;);return n}function Ke(t,e){for(var n=t.length;n--&&Be(e,t[n],0)>-1;);return n}var tn=He({À:"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=He({"&":"&","<":"<",">":">",'"':""","'":"'"});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):Pe(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=He({"&":"&","<":"<",">":">",""":'"',"'":"'"}),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,kt=e.Math,Nt=e.Object,St=e.RegExp,Et=e.String,Mt=e.TypeError,Tt=r.prototype,Ct=_t.prototype,At=Nt.prototype,Lt=e["__core-js_shared__"],Wt=Ct.toString,Ot=At.hasOwnProperty,jt=0,Dt=(n=/[^.]+$/.exec(Lt&&Lt.keys&&Lt.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",Pt=At.toString,It=Wt.call(Nt),Rt=ce._,Bt=St("^"+Wt.call(Ot).replace(et,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),zt=pe?e.Buffer:i,Ft=e.Symbol,qt=e.Uint8Array,Ut=zt?zt.allocUnsafe:i,Ht=on(Nt.getPrototypeOf,Nt),Vt=Nt.create,Gt=At.propertyIsEnumerable,Xt=Tt.splice,Yt=Ft?Ft.isConcatSpreadable:i,$t=Ft?Ft.iterator:i,Jt=Ft?Ft.toStringTag:i,te=function(){try{var t=us(Nt,"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=kt.ceil,de=kt.floor,me=Nt.getOwnPropertySymbols,ve=zt?zt.isBuffer:i,Pe=e.isFinite,He=Tt.join,mn=on(Nt.keys,Nt),vn=kt.max,gn=kt.min,yn=it.now,wn=e.parseInt,bn=kt.random,xn=Tt.reverse,_n=us(e,"DataView"),kn=us(e,"Map"),Nn=us(e,"Promise"),Sn=us(e,"Set"),En=us(e,"WeakMap"),Mn=us(Nt,"create"),Tn=En&&new En,Cn={},An=Ps(_n),Ln=Ps(kn),Wn=Ps(Nn),On=Ps(Sn),jn=Ps(En),Dn=Ft?Ft.prototype:i,Pn=Dn?Dn.valueOf:i,In=Dn?Dn.toString:i;function Rn(t){if(ta(t)&&!Uo(t)&&!(t instanceof qn)){if(t instanceof Fn)return t;if(Ot.call(t,"__wrapped__"))return Is(t)}return new Fn(t)}var Bn=function(){function t(){}return function(e){if(!Ko(e))return{};if(Vt)return Vt(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 Hn(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.__data__=new Vn;++e<n;)this.add(t[e])}function Xn(t){var e=this.__data__=new Hn(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,Et):[],u=a.length;for(var h in t)!e&&!Ot.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[Vr(0,e-1)]:i}function Qn(t,e){return Ls(Ei(t),sr(e,0,t.length))}function Zn(t){return Ls(Ei(t))}function Jn(t,e,n){(n!==i&&!Bo(t[e],n)||n===i&&!(e in t))&&rr(t,e,n)}function Kn(t,e,n){var r=t[e];Ot.call(t,e)&&Bo(r,n)&&(n!==i||e in t)||rr(t,e,n)}function tr(t,e){for(var n=t.length;n--;)if(Bo(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&&Mi(e,Aa(e),t)}function rr(t,e,n){"__proto__"==e&&te?te(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}function ir(t,e){for(var n=-1,s=e.length,o=r(s),a=null==t;++n<s;)o[n]=a?i: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]&&Ot.call(t,"index")&&(n.index=t.index,n.input=t.input),n}(t),!u)return Ei(t,a)}else{var f=cs(t),d=f==b||f==x;if(Xo(t))return bi(t,u);if(f==N||f==m||d&&!s){if(a=h||d?{}:ds(t),!u)return h?function(t,e){return Mi(t,ls(t),e)}(t,function(t,e){return t&&Mi(e,La(e),t)}(a,t)):function(t,e){return Mi(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 L:return xi(t);case g:case y:return new i(+t);case W:return function(t,e){var n=e?xi(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}(t,n);case O:case j:case D:case P:case I:case R:case B:case z:case F:return _i(t,n);case _:return new i;case k:case T:return new i(t);case E:return function(t){var e=new t.constructor(t.source,ft.exec(t));return e.lastIndex=t.lastIndex,e}(t);case M:return new i;case C:return r=t,Pn?Nt(Pn.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 v=c?i:(l?h?es:ts:h?La:Aa)(t);return Se(v||t,(function(r,i){v&&(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=Nt(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 Mt(s);return Ms((function(){t.apply(i,n)}),e)}function hr(t,e,n,r){var i=-1,s=Ce,o=!0,a=t.length,u=[],h=e.length;if(!a)return u;n&&(e=Le(e,$e(n))),r?(s=Ae,o=!1):e.length>=200&&(s=Ze,o=!1,e=new Gn(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}Rn.templateSettings={escape:$,evaluate:Q,interpolate:Z,variable:"",imports:{_:Rn}},Rn.prototype=zn.prototype,Rn.prototype.constructor=Rn,Fn.prototype=Bn(zn.prototype),Fn.prototype.constructor=Fn,qn.prototype=Bn(zn.prototype),qn.prototype.constructor=qn,Un.prototype.clear=function(){this.__data__=Mn?Mn(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(Mn){var n=e[t];return n===o?i:n}return Ot.call(e,t)?e[t]:i},Un.prototype.has=function(t){var e=this.__data__;return Mn?e[t]!==i:Ot.call(e,t)},Un.prototype.set=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=Mn&&e===i?o:e,this},Hn.prototype.clear=function(){this.__data__=[],this.size=0},Hn.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))},Hn.prototype.get=function(t){var e=this.__data__,n=tr(e,t);return n<0?i:e[n][1]},Hn.prototype.has=function(t){return tr(this.__data__,t)>-1},Hn.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},Vn.prototype.clear=function(){this.size=0,this.__data__={hash:new Un,map:new(kn||Hn),string:new Un}},Vn.prototype.delete=function(t){var e=os(this,t).delete(t);return this.size-=e?1:0,e},Vn.prototype.get=function(t){return os(this,t).get(t)},Vn.prototype.has=function(t){return os(this,t).has(t)},Vn.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},Gn.prototype.add=Gn.prototype.push=function(t){return this.__data__.set(t,o),this},Gn.prototype.has=function(t){return this.__data__.has(t)},Xn.prototype.clear=function(){this.__data__=new Hn,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 Hn){var r=n.__data__;if(!kn||r.length<199)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new Vn(r)}return n.set(t,e),this.size=n.size,this};var lr=Ai(yr),cr=Ai(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):We(i,a):r||(i[i.length]=a)}return i}var vr=Li(),gr=Li(!0);function yr(t,e){return t&&vr(t,e,Aa)}function wr(t,e){return t&&gr(t,e,Aa)}function br(t,e){return Te(e,(function(e){return Qo(t[e])}))}function xr(t,e){for(var n=0,r=(e=vi(e,t)).length;null!=t&&n<r;)t=t[Ds(e[n++])];return n&&n==r?t:i}function _r(t,e,n){var r=e(t);return Uo(t)?r:We(r,n(t))}function kr(t){return null==t?t===i?"[object Undefined]":"[object Null]":Jt&&Jt in Nt(t)?function(t){var e=Ot.call(t,Jt),n=t[Jt];try{t[Jt]=i;var r=!0}catch(t){}var s=Pt.call(t);return r&&(e?t[Jt]=n:delete t[Jt]),s}(t):function(t){return Pt.call(t)}(t)}function Nr(t,e){return t>e}function Sr(t,e){return null!=t&&Ot.call(t,e)}function Er(t,e){return null!=t&&e in Nt(t)}function Mr(t,e,n){for(var s=n?Ae:Ce,o=t[0].length,a=t.length,u=a,h=r(a),l=1/0,c=[];u--;){var f=t[u];u&&e&&(f=Le(f,$e(e))),l=gn(f.length,l),h[u]=!n&&(e||o>=120&&f.length>=120)?new Gn(u&&f):i}f=t[0];var d=-1,p=h[0];t:for(;++d<o&&c.length<l;){var m=f[d],v=e?e(m):m;if(m=n||0!==m?m:0,!(p?Ze(p,v):s(c,v,n))){for(u=a;--u;){var g=h[u];if(!(g?Ze(g,v):s(t[u],v,n)))continue t}p&&p.push(v),c.push(m)}}return c}function Tr(t,e,n){var r=null==(t=Ns(t,e=vi(e,t)))?t:t[Ds(Ys(e))];return null==r?i:ke(r,t,n)}function Cr(t){return ta(t)&&kr(t)==m}function Ar(t,e,n,r,s){return t===e||(null==t||null==e||!ta(t)&&!ta(e)?t!=t&&e!=e:function(t,e,n,r,s,o){var a=Uo(t),u=Uo(e),h=a?v:cs(t),l=u?v:cs(e),c=(h=h==m?N:h)==N,f=(l=l==m?N:l)==N,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 W:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case L:return!(t.byteLength!=e.byteLength||!s(new qt(t),new qt(e)));case g:case y:case k:return Bo(+t,+e);case w:return t.name==e.name&&t.message==e.message;case E:case T:return t==e+"";case _:var a=sn;case M: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 C:if(Pn)return Pn.call(t)==Pn.call(e)}return!1}(t,e,h,n,r,s,o);if(!(1&n)){var p=c&&Ot.call(t,"__wrapped__"),b=f&&Ot.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:Ot.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 v=t[c=u[l]],g=e[c];if(r)var y=a?r(g,v,c,e,t,o):r(v,g,c,t,e,o);if(!(y===i?v===g||s(v,g,n,r,o):y)){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,Ar,s))}function Lr(t,e,n,r){var s=n.length,o=s,a=!r;if(null==t)return!o;for(t=Nt(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?Ar(c,l,3,r,f):d))return!1}}return!0}function Wr(t){return!(!Ko(t)||(e=t,Dt&&Dt in e))&&(Qo(t)?Bt:mt).test(Ps(t));var e}function Or(t){return"function"==typeof t?t:null==t?nu:"object"==typeof t?Uo(t)?Rr(t[0],t[1]):Ir(t):cu(t)}function jr(t){if(!bs(t))return mn(t);var e=[];for(var n in Nt(t))Ot.call(t,n)&&"constructor"!=n&&e.push(n);return e}function Dr(t,e){return t<e}function Pr(t,e){var n=-1,i=Vo(t)?r(t.length):[];return lr(t,(function(t,r,s){i[++n]=e(t,r,s)})),i}function Ir(t){var e=as(t);return 1==e.length&&e[0][2]?_s(e[0][0],e[0][1]):function(n){return n===t||Lr(n,t,e)}}function Rr(t,e){return gs(t)&&xs(e)?_s(Ds(t),e):function(n){var r=Sa(n,t);return r===i&&r===e?Ea(n,t):Ar(e,r,3)}}function Br(t,e,n,r,s){t!==e&&vr(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:Go(u)?c=Ei(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=va(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,Br,r,s);else{var u=r?r(Ss(t,a),o,a+"",t,e,s):i;u===i&&(u=o),Jn(t,a,u)}}),La)}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?Le(e,(function(t){return Uo(t)?function(e){return xr(e,1===t.length?t[0]:t)}:t})):[nu];var r=-1;e=Le(e,$e(ss()));var i=Pr(t,(function(t,n,i){var s=Le(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=ki(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,vi(o,t),a)}return s}function Ur(t,e,n,r){var i=r?ze:Be,s=-1,o=e.length,a=t;for(t===e&&(e=Ei(e)),n&&(a=Le(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 Hr(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 Vr(t,e){return t+de(bn()*(e-t+1))}function Gr(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 Ts(ks(t,e,nu),t+"")}function Yr(t){return $n(Ba(t))}function $r(t,e){var n=Ba(t);return Ls(n,sr(e,0,n.length))}function Qr(t,e,n,r){if(!Ko(t))return t;for(var s=-1,o=(e=vi(e,t)).length,a=o-1,u=t;null!=u&&++s<o;){var h=Ds(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=Tn?function(t,e){return Tn.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 Ls(Ba(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,v=aa(f);if(a)var g=r||m;else g=l?m&&(r||d):u?m&&d&&(r||!p):h?m&&d&&!p&&(r||!v):!p&&!v&&(r?f<=e:f<e);g?s=c+1:o=c}return gn(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||!Bo(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 Le(t,oi)+"";if(aa(t))return In?In.call(t):"";var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}function ai(t,e,n){var r=-1,i=Ce,s=t.length,o=!0,a=[],u=a;if(n)o=!1,i=Ae;else if(s>=200){var h=e?null:Gi(t);if(h)return un(h);o=!1,i=Ze,u=new Gn}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=Ns(t,e=vi(e,t)))||delete t[Ds(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()),Oe(e,(function(t,e){return e.func.apply(e.thisArg,We([t],e.args))}),n)}function fi(t,e,n){var i=t.length;if(i<2)return i?ai(t[0]):[];for(var s=-1,o=r(i);++s<i;)for(var a=t[s],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 Go(t)?t:[]}function mi(t){return"function"==typeof t?t:nu}function vi(t,e){return Uo(t)?t:gs(t,e)?[t]:js(ga(t))}var gi=Xr;function yi(t,e,n){var r=t.length;return n=n===i?r:n,!e&&n>=r?t:ti(t,e,n)}var 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 ki(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 Ni(t,e,n,i){for(var s=-1,o=t.length,a=n.length,u=-1,h=e.length,l=vn(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=vn(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 Ei(t,e){var n=-1,i=t.length;for(e||(e=r(i));++n<i;)e[n]=t[n];return e}function Mi(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 Ti(t,e){return function(n,r){var i=Uo(n)?Ne:er,s=e?e():{};return i(n,t,ss(r,2),s)}}function Ci(t){return Xr((function(e,n){var r=-1,s=n.length,o=s>1?n[s-1]:i,a=s>2?n[2]:i;for(o=t.length>3&&"function"==typeof o?(s--,o):i,a&&vs(n[0],n[1],a)&&(o=s<3?i:o,s=1),e=Nt(e);++r<s;){var u=n[r];u&&t(e,u,r,o)}return e}))}function Ai(t,e){return function(n,r){if(null==n)return n;if(!Vo(n))return t(n,r);for(var i=n.length,s=e?i:-1,o=Nt(n);(e?s--:++s<i)&&!1!==r(o[s],s,o););return n}}function Li(t){return function(e,n,r){for(var i=-1,s=Nt(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 Wi(t){return function(e){var n=rn(e=ga(e))?cn(e):i,r=n?n[0]:e.charAt(0),s=n?yi(n,1).join(""):e.slice(1);return r[t]()+s}}function Oi(t){return function(e){return Oe(Qa(qa(e).replace(Qt,"")),t,"")}}function ji(t){return function(){var e=arguments;switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3]);case 5:return new t(e[0],e[1],e[2],e[3],e[4]);case 6:return new t(e[0],e[1],e[2],e[3],e[4],e[5]);case 7:return new t(e[0],e[1],e[2],e[3],e[4],e[5],e[6])}var n=Bn(t.prototype),r=t.apply(n,e);return Ko(r)?r:n}}function Di(t){return function(e,n,r){var s=Nt(e);if(!Vo(e)){var o=ss(n,3);e=Aa(e),n=function(t){return o(s[t],t,s)}}var a=t(e,n,r);return a>-1?s[o?e[a]:a]:i}}function Pi(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 Mt(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&&ys(l[0])&&424==l[1]&&!l[4].length&&1==l[9]?u[rs(l[0])].apply(u,l[3]):1==a.length&&ys(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 Ii(t,e,n,s,o,a,u,l,c,f){var d=e&h,p=1&e,m=2&e,v=24&e,g=512&e,y=m?i:ji(t);return function h(){for(var w=arguments.length,b=r(w),x=w;x--;)b[x]=arguments[x];if(v)var _=is(h),k=function(t,e){for(var n=t.length,r=0;n--;)t[n]===e&&++r;return r}(b,_);if(s&&(b=Ni(b,s,o,v)),a&&(b=Si(b,a,u,v)),w-=k,v&&w<f){var N=an(b,_);return Hi(t,e,Ii,h.placeholder,n,b,N,l,c,f-w)}var S=p?n:this,E=m?S[t]:t;return w=b.length,l?b=function(t,e){for(var n=t.length,r=gn(e.length,n),s=Ei(t);r--;){var o=e[r];t[r]=ms(o,n)?s[o]:i}return t}(b,l):g&&w>1&&b.reverse(),d&&c<w&&(b.length=c),this&&this!==ce&&this instanceof h&&(E=y||ji(E)),E.apply(S,b)}}function Ri(t,e){return function(n,r){return function(t,e,n,r){return yr(t,(function(t,i,s){e(r,n(t),i,s)})),r}(n,t,e(r),{})}}function Bi(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=Le(e,$e(ss())),Xr((function(n){var r=this;return t(e,(function(t){return ke(t,r,n)}))}))}))}function Fi(t,e){var n=(e=e===i?" ":oi(e)).length;if(n<2)return n?Gr(e,t):e;var r=Gr(e,fe(t/ln(e)));return rn(e)?yi(cn(r),0,t).join(""):r.slice(0,t)}function qi(t){return function(e,n,s){return s&&"number"!=typeof s&&vs(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=vn(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 Hi(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 ys(t)&&Es(p,d),p.placeholder=r,Cs(p,t,e)}function Vi(t){var e=kt[t];return function(t,n){if(t=ma(t),(n=null==n?0:gn(da(n),292))&&Pe(t)){var r=(ga(t)+"e").split("e");return+((r=(ga(e(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return e(t)}}var Gi=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==M?hn(e):function(t,e){return Le(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 Mt(s);var m=o?o.length:0;if(m||(e&=-97,o=l=i),f=f===i?f:vn(da(f),0),d=d===i?d:da(d),m-=l?l.length:0,64&e){var v=o,g=l;o=l=i}var y=p?i:ns(t),w=[t,e,n,o,l,v,g,c,f,d];if(y&&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?Ni(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]:gn(t[8],e[8])),null==t[9]&&(t[9]=e[9]),t[0]=e[0],t[1]=i}(w,y),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:vn(w[9]-m,0))&&24&e&&(e&=-25),e&&1!=e)b=8==e||16==e?function(t,e,n){var s=ji(t);return function o(){for(var a=arguments.length,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?Hi(t,e,Ii,o.placeholder,i,u,c,i,i,n-a):ke(this&&this!==ce&&this instanceof o?s:t,this,u)}}(t,e,d):e!=u&&33!=e||l.length?Ii.apply(i,w):function(t,e,n,i){var s=1&e,o=ji(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 ke(f,s?n:this,c)}}(t,e,n,o);else var b=function(t,e,n){var r=1&e,i=ji(t);return function e(){return(this&&this!==ce&&this instanceof e?i:t).apply(r?n:this,arguments)}}(t,e,n);return Cs((y?Zr:Es)(b,w),t,e)}function $i(t,e,n,r){return t===i||Bo(t,At[n])&&!Ot.call(r,n)?e:t}function Qi(t,e,n,r,s,o){return Ko(t)&&Ko(e)&&(o.set(e,t),Br(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 Gn:i;for(o.set(t,e),o.set(e,t);++f<u;){var m=t[f],v=e[f];if(r)var g=a?r(v,m,f,e,t,o):r(m,v,f,t,e,o);if(g!==i){if(g)continue;d=!1;break}if(p){if(!De(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!==v&&!s(m,v,n,r,o)){d=!1;break}}return o.delete(t),o.delete(e),d}function Ki(t){return Ts(ks(t,i,Us),t+"")}function ts(t){return _r(t,Aa,hs)}function es(t){return _r(t,La,ls)}var ns=Tn?function(t){return Tn.get(t)}:au;function rs(t){for(var e=t.name+"",n=Cn[e],r=Ot.call(Cn,e)?n.length:0;r--;){var i=n[r],s=i.func;if(null==s||s==t)return i.name}return e}function is(t){return(Ot.call(Rn,"placeholder")?Rn:t).placeholder}function ss(){var t=Rn.iteratee||ru;return t=t===ru?Or:t,arguments.length?t(arguments[0],arguments[1]):t}function os(t,e){var n,r,i=t.__data__;return("string"==(r=typeof(n=e))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?i["string"==typeof e?"string":"hash"]:i.map}function as(t){for(var e=Aa(t),n=e.length;n--;){var r=e[n],i=t[r];e[n]=[r,i,xs(i)]}return e}function us(t,e){var n=function(t,e){return null==t?i:t[e]}(t,e);return Wr(n)?n:i}var hs=me?function(t){return null==t?[]:(t=Nt(t),Te(me(t),(function(e){return Gt.call(t,e)})))}:pu,ls=me?function(t){for(var e=[];t;)We(e,hs(t)),t=Ht(t);return e}:pu,cs=kr;function fs(t,e,n){for(var r=-1,i=(e=vi(e,t)).length,s=!1;++r<i;){var o=Ds(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)?{}:Bn(Ht(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&>.test(t))&&t>-1&&t%1==0&&t<e}function vs(t,e,n){if(!Ko(n))return!1;var r=typeof e;return!!("number"==r?Vo(n)&&ms(e,n.length):"string"==r&&e in n)&&Bo(n[e],t)}function gs(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 Nt(e)}function ys(t){var e=rs(t),n=Rn[e];if("function"!=typeof n||!(e in qn.prototype))return!1;if(t===n)return!0;var r=ns(n);return!!r&&t===r[0]}(_n&&cs(new _n(new ArrayBuffer(1)))!=W||kn&&cs(new kn)!=_||Nn&&cs(Nn.resolve())!=S||Sn&&cs(new Sn)!=M||En&&cs(new En)!=A)&&(cs=function(t){var e=kr(t),n=e==N?t.constructor:i,r=n?Ps(n):"";if(r)switch(r){case An:return W;case Ln:return _;case Wn:return S;case On:return M;case jn:return A}return e});var ws=Lt?Qo:mu;function bs(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||At)}function xs(t){return t==t&&!Ko(t)}function _s(t,e){return function(n){return null!=n&&n[t]===e&&(e!==i||t in Nt(n))}}function ks(t,e,n){return e=vn(e===i?t.length-1:e,0),function(){for(var i=arguments,s=-1,o=vn(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),ke(t,this,u)}}function Ns(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 Es=As(Zr),Ms=le||function(t,e){return ce.setTimeout(t,e)},Ts=As(Jr);function Cs(t,e,n){var r=e+"";return Ts(t,function(t,e){var n=e.length;if(!n)return t;var r=n-1;return e[r]=(n>1?"& ":"")+e[r],e=e.join(n>2?", ":" "),t.replace(st,"{\n/* [wrapped with "+e+"] */\n")}(r,function(t,e){return Se(p,(function(n){var r="_."+n[0];e&n[1]&&!Ce(t,r)&&t.push(r)})),t.sort()}(function(t){var e=t.match(ot);return e?e[1].split(at):[]}(r),n)))}function As(t){var e=0,n=0;return function(){var r=yn(),s=16-(r-n);if(n=r,s>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(i,arguments)}}function Ls(t,e){var n=-1,r=t.length,s=r-1;for(e=e===i?r:e;++n<e;){var o=Vr(n,s),a=t[o];t[o]=t[n],t[n]=a}return t.length=e,t}var Ws,Os,js=(Ws=Oo((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===Os.size&&Os.clear(),t})),Os=Ws.cache,Ws);function Ds(t){if("string"==typeof t||aa(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}function Ps(t){if(null!=t){try{return Wt.call(t)}catch(t){}try{return t+""}catch(t){}}return""}function Is(t){if(t instanceof qn)return t.clone();var e=new Fn(t.__wrapped__,t.__chain__);return e.__actions__=Ei(t.__actions__),e.__index__=t.__index__,e.__values__=t.__values__,e}var Rs=Xr((function(t,e){return Go(t)?hr(t,mr(e,1,Go,!0)):[]})),Bs=Xr((function(t,e){var n=Ys(e);return Go(n)&&(n=i),Go(t)?hr(t,mr(e,1,Go,!0),ss(n,2)):[]})),zs=Xr((function(t,e){var n=Ys(e);return Go(n)&&(n=i),Go(t)?hr(t,mr(e,1,Go,!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=vn(r+i,0)),Re(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?vn(r+s,0):gn(s,r-1)),Re(t,ss(e,3),s,!0)}function Us(t){return null!=t&&t.length?mr(t,1):[]}function Hs(t){return t&&t.length?t[0]:i}var Vs=Xr((function(t){var e=Le(t,pi);return e.length&&e[0]===t[0]?Mr(e):[]})),Gs=Xr((function(t){var e=Ys(t),n=Le(t,pi);return e===Ys(n)?e=i:n.pop(),n.length&&n[0]===t[0]?Mr(n,ss(e,2)):[]})),Xs=Xr((function(t){var e=Ys(t),n=Le(t,pi);return(e="function"==typeof e?e:i)&&n.pop(),n.length&&n[0]===t[0]?Mr(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 Hr(t,Le(e,(function(t){return ms(t,n)?+t:t})).sort(ki)),r}));function Js(t){return null==t?t:xn.call(t)}var Ks=Xr((function(t){return ai(mr(t,1,Go,!0))})),to=Xr((function(t){var e=Ys(t);return Go(e)&&(e=i),ai(mr(t,1,Go,!0),ss(e,2))})),eo=Xr((function(t){var e=Ys(t);return e="function"==typeof e?e:i,ai(mr(t,1,Go,!0),i,e)}));function no(t){if(!t||!t.length)return[];var e=0;return t=Te(t,(function(t){if(Go(t))return e=vn(t.length,e),!0})),Xe(e,(function(e){return Le(t,Ue(e))}))}function ro(t,e){if(!t||!t.length)return[];var n=no(t);return null==e?n:Le(n,(function(t){return ke(e,i,t)}))}var io=Xr((function(t,e){return Go(t)?hr(t,e):[]})),so=Xr((function(t){return fi(Te(t,Go))})),oo=Xr((function(t){var e=Ys(t);return Go(e)&&(e=i),fi(Te(t,Go),ss(e,2))})),ao=Xr((function(t){var e=Ys(t);return e="function"==typeof e?e:i,fi(Te(t,Go),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=Rn(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=Ti((function(t,e,n){Ot.call(t,n)?++t[n]:rr(t,n,1)})),mo=Di(Fs),vo=Di(qs);function go(t,e){return(Uo(t)?Se:lr)(t,ss(e,3))}function yo(t,e){return(Uo(t)?Ee:cr)(t,ss(e,3))}var wo=Ti((function(t,e,n){Ot.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=Vo(t)?r(t.length):[];return lr(t,(function(t){o[++i]=s?ke(e,t,n):Tr(t,e,n)})),o})),xo=Ti((function(t,e,n){rr(t,n,e)}));function _o(t,e){return(Uo(t)?Le:Pr)(t,ss(e,3))}var ko=Ti((function(t,e,n){t[n?0:1].push(e)}),(function(){return[[],[]]})),No=Xr((function(t,e){if(null==t)return[];var n=e.length;return n>1&&vs(t,e[0],e[1])?e=[]:n>2&&vs(e[0],e[1],e[2])&&(e=[e[0]]),Fr(t,mr(e,1),[])})),So=he||function(){return ce.Date.now()};function Eo(t,e,n){return e=n?i:e,e=t&&null==e?t.length:e,Yi(t,h,i,i,i,i,e)}function Mo(t,e){var n;if("function"!=typeof e)throw new Mt(s);return t=da(t),function(){return--t>0&&(n=e.apply(this,arguments)),t<=1&&(e=i),n}}var To=Xr((function(t,e,n){var r=1;if(n.length){var i=an(n,is(To));r|=u}return Yi(t,r,e,n,i)})),Co=Xr((function(t,e,n){var r=3;if(n.length){var i=an(n,is(Co));r|=u}return Yi(e,r,t,n,i)}));function Ao(t,e,n){var r,o,a,u,h,l,c=0,f=!1,d=!1,p=!0;if("function"!=typeof t)throw new Mt(s);function m(e){var n=r,s=o;return r=o=i,c=e,u=t.apply(s,n)}function v(t){var n=t-l;return l===i||n>=e||n<0||d&&t-c>=a}function g(){var t=So();if(v(t))return y(t);h=Ms(g,function(t){var n=e-(t-l);return d?gn(n,a-(t-c)):n}(t))}function y(t){return h=i,p&&r?m(t):(r=o=i,u)}function w(){var t=So(),n=v(t);if(r=arguments,o=this,l=t,n){if(h===i)return function(t){return c=t,h=Ms(g,e),f?m(t):u}(l);if(d)return wi(h),h=Ms(g,e),m(l)}return h===i&&(h=Ms(g,e)),u}return e=ma(e)||0,Ko(n)&&(f=!!n.leading,a=(d="maxWait"in n)?vn(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:y(So())},w}var Lo=Xr((function(t,e){return ur(t,1,e)})),Wo=Xr((function(t,e,n){return ur(t,ma(e)||0,n)}));function Oo(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new Mt(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(Oo.Cache||Vn),n}function jo(t){if("function"!=typeof t)throw new Mt(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)}}Oo.Cache=Vn;var Do=gi((function(t,e){var n=(e=1==e.length&&Uo(e[0])?Le(e[0],$e(ss())):Le(mr(e,1),$e(ss()))).length;return Xr((function(r){for(var i=-1,s=gn(r.length,n);++i<s;)r[i]=e[i].call(this,r[i]);return ke(t,this,r)}))})),Po=Xr((function(t,e){var n=an(e,is(Po));return Yi(t,u,i,e,n)})),Io=Xr((function(t,e){var n=an(e,is(Io));return Yi(t,64,i,e,n)})),Ro=Ki((function(t,e){return Yi(t,256,i,i,i,e)}));function Bo(t,e){return t===e||t!=t&&e!=e}var zo=Ui(Nr),Fo=Ui((function(t,e){return t>=e})),qo=Cr(function(){return arguments}())?Cr:function(t){return ta(t)&&Ot.call(t,"callee")&&!Gt.call(t,"callee")},Uo=r.isArray,Ho=ge?$e(ge):function(t){return ta(t)&&kr(t)==L};function Vo(t){return null!=t&&Jo(t.length)&&!Qo(t)}function Go(t){return ta(t)&&Vo(t)}var Xo=ve||mu,Yo=ye?$e(ye):function(t){return ta(t)&&kr(t)==y};function $o(t){if(!ta(t))return!1;var e=kr(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=kr(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)&&kr(t)==k}function ra(t){if(!ta(t)||kr(t)!=N)return!1;var e=Ht(t);if(null===e)return!0;var n=Ot.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&Wt.call(n)==It}var ia=be?$e(be):function(t){return ta(t)&&kr(t)==E},sa=xe?$e(xe):function(t){return ta(t)&&cs(t)==M};function oa(t){return"string"==typeof t||!Uo(t)&&ta(t)&&kr(t)==T}function aa(t){return"symbol"==typeof t||ta(t)&&kr(t)==C}var ua=_e?$e(_e):function(t){return ta(t)&&Jo(t.length)&&!!ie[kr(t)]},ha=Ui(Dr),la=Ui((function(t,e){return t<=e}));function ca(t){if(!t)return[];if(Vo(t))return oa(t)?cn(t):Ei(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==M?un:Ba)(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||vt.test(t)?ue(t.slice(2),n?2:8):dt.test(t)?f:+t}function va(t){return Mi(t,La(t))}function ga(t){return null==t?"":oi(t)}var ya=Ci((function(t,e){if(bs(e)||Vo(e))Mi(e,Aa(e),t);else for(var n in e)Ot.call(e,n)&&Kn(t,n,e[n])})),wa=Ci((function(t,e){Mi(e,La(e),t)})),ba=Ci((function(t,e,n,r){Mi(e,La(e),t,r)})),xa=Ci((function(t,e,n,r){Mi(e,Aa(e),t,r)})),_a=Ki(ir),ka=Xr((function(t,e){t=Nt(t);var n=-1,r=e.length,s=r>2?e[2]:i;for(s&&vs(e[0],e[1],s)&&(r=1);++n<r;)for(var o=e[n],a=La(o),u=-1,h=a.length;++u<h;){var l=a[u],c=t[l];(c===i||Bo(c,At[l])&&!Ot.call(t,l))&&(t[l]=o[l])}return t})),Na=Xr((function(t){return t.push(i,Qi),ke(Oa,i,t)}));function Sa(t,e,n){var r=null==t?i:xr(t,e);return r===i?n:r}function Ea(t,e){return null!=t&&fs(t,e,Er)}var Ma=Ri((function(t,e,n){null!=e&&"function"!=typeof e.toString&&(e=Pt.call(e)),t[e]=n}),Ka(nu)),Ta=Ri((function(t,e,n){null!=e&&"function"!=typeof e.toString&&(e=Pt.call(e)),Ot.call(t,e)?t[e].push(n):t[e]=[n]}),ss),Ca=Xr(Tr);function Aa(t){return Vo(t)?Yn(t):jr(t)}function La(t){return Vo(t)?Yn(t,!0):function(t){if(!Ko(t))return function(t){var e=[];if(null!=t)for(var n in Nt(t))e.push(n);return e}(t);var e=bs(t),n=[];for(var r in t)("constructor"!=r||!e&&Ot.call(t,r))&&n.push(r);return n}(t)}var Wa=Ci((function(t,e,n){Br(t,e,n)})),Oa=Ci((function(t,e,n,r){Br(t,e,n,r)})),ja=Ki((function(t,e){var n={};if(null==t)return n;var r=!1;e=Le(e,(function(e){return e=vi(e,t),r||(r=e.length>1),e})),Mi(t,es(t),n),r&&(n=or(n,7,Zi));for(var i=e.length;i--;)ui(n,e[i]);return n})),Da=Ki((function(t,e){return null==t?{}:function(t,e){return qr(t,e,(function(e,n){return Ea(t,n)}))}(t,e)}));function Pa(t,e){if(null==t)return{};var n=Le(es(t),(function(t){return[t]}));return e=ss(e),qr(t,n,(function(t,n){return e(t,n[0])}))}var Ia=Xi(Aa),Ra=Xi(La);function Ba(t){return null==t?[]:Qe(t,Aa(t))}var za=Oi((function(t,e,n){return e=e.toLowerCase(),t+(n?Fa(e):e)}));function Fa(t){return $a(ga(t).toLowerCase())}function qa(t){return(t=ga(t))&&t.replace(yt,tn).replace(Zt,"")}var Ua=Oi((function(t,e,n){return t+(n?"-":"")+e.toLowerCase()})),Ha=Oi((function(t,e,n){return t+(n?" ":"")+e.toLowerCase()})),Va=Wi("toLowerCase"),Ga=Oi((function(t,e,n){return t+(n?"_":"")+e.toLowerCase()})),Xa=Oi((function(t,e,n){return t+(n?" ":"")+$a(e)})),Ya=Oi((function(t,e,n){return t+(n?" ":"")+e.toUpperCase()})),$a=Wi("toUpperCase");function Qa(t,e,n){return t=ga(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 ke(t,i,e)}catch(t){return $o(t)?t:new xt(t)}})),Ja=Ki((function(t,e){return Se(e,(function(e){e=Ds(e),rr(t,e,To(t[e],t))})),t}));function Ka(t){return function(){return t}}var tu=Pi(),eu=Pi(!0);function nu(t){return t}function ru(t){return Or("function"==typeof t?t:or(t,1))}var iu=Xr((function(t,e){return function(n){return Tr(n,t,e)}})),su=Xr((function(t,e){return function(n){return Tr(t,n,e)}}));function ou(t,e,n){var r=Aa(e),i=br(e,r);null!=n||Ko(e)&&(i.length||!r.length)||(n=e,e=t,t=this,i=br(e,Aa(e)));var s=!(Ko(n)&&"chain"in n&&!n.chain),o=Qo(t);return 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__=Ei(this.__actions__)).push({func:r,args:arguments,thisArg:t}),n.__chain__=e,n}return r.apply(t,We([this.value()],arguments))})})),t}function au(){}var uu=zi(Le),hu=zi(Me),lu=zi(De);function cu(t){return gs(t)?Ue(Ds(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 vu,gu=Bi((function(t,e){return t+e}),0),yu=Vi("ceil"),wu=Bi((function(t,e){return t/e}),1),bu=Vi("floor"),xu=Bi((function(t,e){return t*e}),1),_u=Vi("round"),ku=Bi((function(t,e){return t-e}),0);return Rn.after=function(t,e){if("function"!=typeof e)throw new Mt(s);return t=da(t),function(){if(--t<1)return e.apply(this,arguments)}},Rn.ary=Eo,Rn.assign=ya,Rn.assignIn=wa,Rn.assignInWith=ba,Rn.assignWith=xa,Rn.at=_a,Rn.before=Mo,Rn.bind=To,Rn.bindAll=Ja,Rn.bindKey=Co,Rn.castArray=function(){if(!arguments.length)return[];var t=arguments[0];return Uo(t)?t:[t]},Rn.chain=lo,Rn.chunk=function(t,e,n){e=(n?vs(t,e,n):e===i)?1:vn(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},Rn.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},Rn.concat=function(){var t=arguments.length;if(!t)return[];for(var e=r(t-1),n=arguments[0],i=t;i--;)e[i-1]=arguments[i];return We(Uo(n)?Ei(n):[n],mr(e,1))},Rn.cond=function(t){var e=null==t?0:t.length,n=ss();return t=e?Le(t,(function(t){if("function"!=typeof t[1])throw new Mt(s);return[n(t[0]),t[1]]})):[],Xr((function(n){for(var r=-1;++r<e;){var i=t[r];if(ke(i[0],this,n))return ke(i[1],this,n)}}))},Rn.conforms=function(t){return function(t){var e=Aa(t);return function(n){return ar(n,t,e)}}(or(t,1))},Rn.constant=Ka,Rn.countBy=po,Rn.create=function(t,e){var n=Bn(t);return null==e?n:nr(n,e)},Rn.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},Rn.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},Rn.debounce=Ao,Rn.defaults=ka,Rn.defaultsDeep=Na,Rn.defer=Lo,Rn.delay=Wo,Rn.difference=Rs,Rn.differenceBy=Bs,Rn.differenceWith=zs,Rn.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):[]},Rn.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):[]},Rn.dropRightWhile=function(t,e){return t&&t.length?li(t,ss(e,3),!0,!0):[]},Rn.dropWhile=function(t,e){return t&&t.length?li(t,ss(e,3),!0):[]},Rn.fill=function(t,e,n,r){var s=null==t?0:t.length;return s?(n&&"number"!=typeof n&&vs(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)):[]},Rn.filter=function(t,e){return(Uo(t)?Te:pr)(t,ss(e,3))},Rn.flatMap=function(t,e){return mr(_o(t,e),1)},Rn.flatMapDeep=function(t,e){return mr(_o(t,e),l)},Rn.flatMapDepth=function(t,e,n){return n=n===i?1:da(n),mr(_o(t,e),n)},Rn.flatten=Us,Rn.flattenDeep=function(t){return null!=t&&t.length?mr(t,l):[]},Rn.flattenDepth=function(t,e){return null!=t&&t.length?mr(t,e=e===i?1:da(e)):[]},Rn.flip=function(t){return Yi(t,512)},Rn.flow=tu,Rn.flowRight=eu,Rn.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},Rn.functions=function(t){return null==t?[]:br(t,Aa(t))},Rn.functionsIn=function(t){return null==t?[]:br(t,La(t))},Rn.groupBy=wo,Rn.initial=function(t){return null!=t&&t.length?ti(t,0,-1):[]},Rn.intersection=Vs,Rn.intersectionBy=Gs,Rn.intersectionWith=Xs,Rn.invert=Ma,Rn.invertBy=Ta,Rn.invokeMap=bo,Rn.iteratee=ru,Rn.keyBy=xo,Rn.keys=Aa,Rn.keysIn=La,Rn.map=_o,Rn.mapKeys=function(t,e){var n={};return e=ss(e,3),yr(t,(function(t,r,i){rr(n,e(t,r,i),t)})),n},Rn.mapValues=function(t,e){var n={};return e=ss(e,3),yr(t,(function(t,r,i){rr(n,r,e(t,r,i))})),n},Rn.matches=function(t){return Ir(or(t,1))},Rn.matchesProperty=function(t,e){return Rr(t,or(e,1))},Rn.memoize=Oo,Rn.merge=Wa,Rn.mergeWith=Oa,Rn.method=iu,Rn.methodOf=su,Rn.mixin=ou,Rn.negate=jo,Rn.nthArg=function(t){return t=da(t),Xr((function(e){return zr(e,t)}))},Rn.omit=ja,Rn.omitBy=function(t,e){return Pa(t,jo(ss(e)))},Rn.once=function(t){return Mo(2,t)},Rn.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))},Rn.over=uu,Rn.overArgs=Do,Rn.overEvery=hu,Rn.overSome=lu,Rn.partial=Po,Rn.partialRight=Io,Rn.partition=ko,Rn.pick=Da,Rn.pickBy=Pa,Rn.property=cu,Rn.propertyOf=function(t){return function(e){return null==t?i:xr(t,e)}},Rn.pull=$s,Rn.pullAll=Qs,Rn.pullAllBy=function(t,e,n){return t&&t.length&&e&&e.length?Ur(t,e,ss(n,2)):t},Rn.pullAllWith=function(t,e,n){return t&&t.length&&e&&e.length?Ur(t,e,i,n):t},Rn.pullAt=Zs,Rn.range=fu,Rn.rangeRight=du,Rn.rearg=Ro,Rn.reject=function(t,e){return(Uo(t)?Te:pr)(t,jo(ss(e,3)))},Rn.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 Hr(t,i),n},Rn.rest=function(t,e){if("function"!=typeof t)throw new Mt(s);return Xr(t,e=e===i?e:da(e))},Rn.reverse=Js,Rn.sampleSize=function(t,e,n){return e=(n?vs(t,e,n):e===i)?1:da(e),(Uo(t)?Qn:$r)(t,e)},Rn.set=function(t,e,n){return null==t?t:Qr(t,e,n)},Rn.setWith=function(t,e,n,r){return r="function"==typeof r?r:i,null==t?t:Qr(t,e,n,r)},Rn.shuffle=function(t){return(Uo(t)?Zn:Kr)(t)},Rn.slice=function(t,e,n){var r=null==t?0:t.length;return r?(n&&"number"!=typeof n&&vs(t,e,n)?(e=0,n=r):(e=null==e?0:da(e),n=n===i?r:da(n)),ti(t,e,n)):[]},Rn.sortBy=No,Rn.sortedUniq=function(t){return t&&t.length?ii(t):[]},Rn.sortedUniqBy=function(t,e){return t&&t.length?ii(t,ss(e,2)):[]},Rn.split=function(t,e,n){return n&&"number"!=typeof n&&vs(t,e,n)&&(e=n=i),(n=n===i?d:n>>>0)?(t=ga(t))&&("string"==typeof e||null!=e&&!ia(e))&&!(e=oi(e))&&rn(t)?yi(cn(t),0,n):t.split(e,n):[]},Rn.spread=function(t,e){if("function"!=typeof t)throw new Mt(s);return e=null==e?0:vn(da(e),0),Xr((function(n){var r=n[e],i=yi(n,0,e);return r&&We(i,r),ke(t,this,i)}))},Rn.tail=function(t){var e=null==t?0:t.length;return e?ti(t,1,e):[]},Rn.take=function(t,e,n){return t&&t.length?ti(t,0,(e=n||e===i?1:da(e))<0?0:e):[]},Rn.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):[]},Rn.takeRightWhile=function(t,e){return t&&t.length?li(t,ss(e,3),!1,!0):[]},Rn.takeWhile=function(t,e){return t&&t.length?li(t,ss(e,3)):[]},Rn.tap=function(t,e){return e(t),t},Rn.throttle=function(t,e,n){var r=!0,i=!0;if("function"!=typeof t)throw new Mt(s);return Ko(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),Ao(t,e,{leading:r,maxWait:e,trailing:i})},Rn.thru=co,Rn.toArray=ca,Rn.toPairs=Ia,Rn.toPairsIn=Ra,Rn.toPath=function(t){return Uo(t)?Le(t,Ds):aa(t)?[t]:Ei(js(ga(t)))},Rn.toPlainObject=va,Rn.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)?Bn(Ht(t)):{}}return(i?Se:yr)(t,(function(t,r,i){return e(n,t,r,i)})),n},Rn.unary=function(t){return Eo(t,1)},Rn.union=Ks,Rn.unionBy=to,Rn.unionWith=eo,Rn.uniq=function(t){return t&&t.length?ai(t):[]},Rn.uniqBy=function(t,e){return t&&t.length?ai(t,ss(e,2)):[]},Rn.uniqWith=function(t,e){return e="function"==typeof e?e:i,t&&t.length?ai(t,i,e):[]},Rn.unset=function(t,e){return null==t||ui(t,e)},Rn.unzip=no,Rn.unzipWith=ro,Rn.update=function(t,e,n){return null==t?t:hi(t,e,mi(n))},Rn.updateWith=function(t,e,n,r){return r="function"==typeof r?r:i,null==t?t:hi(t,e,mi(n),r)},Rn.values=Ba,Rn.valuesIn=function(t){return null==t?[]:Qe(t,La(t))},Rn.without=io,Rn.words=Qa,Rn.wrap=function(t,e){return Po(mi(e),t)},Rn.xor=so,Rn.xorBy=oo,Rn.xorWith=ao,Rn.zip=uo,Rn.zipObject=function(t,e){return di(t||[],e||[],Kn)},Rn.zipObjectDeep=function(t,e){return di(t||[],e||[],Qr)},Rn.zipWith=ho,Rn.entries=Ia,Rn.entriesIn=Ra,Rn.extend=wa,Rn.extendWith=ba,ou(Rn,Rn),Rn.add=gu,Rn.attempt=Za,Rn.camelCase=za,Rn.capitalize=Fa,Rn.ceil=yu,Rn.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)},Rn.clone=function(t){return or(t,4)},Rn.cloneDeep=function(t){return or(t,5)},Rn.cloneDeepWith=function(t,e){return or(t,5,e="function"==typeof e?e:i)},Rn.cloneWith=function(t,e){return or(t,4,e="function"==typeof e?e:i)},Rn.conformsTo=function(t,e){return null==e||ar(t,e,Aa(e))},Rn.deburr=qa,Rn.defaultTo=function(t,e){return null==t||t!=t?e:t},Rn.divide=wu,Rn.endsWith=function(t,e,n){t=ga(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},Rn.eq=Bo,Rn.escape=function(t){return(t=ga(t))&&Y.test(t)?t.replace(G,en):t},Rn.escapeRegExp=function(t){return(t=ga(t))&&nt.test(t)?t.replace(et,"\\$&"):t},Rn.every=function(t,e,n){var r=Uo(t)?Me:fr;return n&&vs(t,e,n)&&(e=i),r(t,ss(e,3))},Rn.find=mo,Rn.findIndex=Fs,Rn.findKey=function(t,e){return Ie(t,ss(e,3),yr)},Rn.findLast=vo,Rn.findLastIndex=qs,Rn.findLastKey=function(t,e){return Ie(t,ss(e,3),wr)},Rn.floor=bu,Rn.forEach=go,Rn.forEachRight=yo,Rn.forIn=function(t,e){return null==t?t:vr(t,ss(e,3),La)},Rn.forInRight=function(t,e){return null==t?t:gr(t,ss(e,3),La)},Rn.forOwn=function(t,e){return t&&yr(t,ss(e,3))},Rn.forOwnRight=function(t,e){return t&&wr(t,ss(e,3))},Rn.get=Sa,Rn.gt=zo,Rn.gte=Fo,Rn.has=function(t,e){return null!=t&&fs(t,e,Sr)},Rn.hasIn=Ea,Rn.head=Hs,Rn.identity=nu,Rn.includes=function(t,e,n,r){t=Vo(t)?t:Ba(t),n=n&&!r?da(n):0;var i=t.length;return n<0&&(n=vn(i+n,0)),oa(t)?n<=i&&t.indexOf(e,n)>-1:!!i&&Be(t,e,n)>-1},Rn.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=vn(r+i,0)),Be(t,e,i)},Rn.inRange=function(t,e,n){return e=fa(e),n===i?(n=e,e=0):n=fa(n),function(t,e,n){return t>=gn(e,n)&&t<vn(e,n)}(t=ma(t),e,n)},Rn.invoke=Ca,Rn.isArguments=qo,Rn.isArray=Uo,Rn.isArrayBuffer=Ho,Rn.isArrayLike=Vo,Rn.isArrayLikeObject=Go,Rn.isBoolean=function(t){return!0===t||!1===t||ta(t)&&kr(t)==g},Rn.isBuffer=Xo,Rn.isDate=Yo,Rn.isElement=function(t){return ta(t)&&1===t.nodeType&&!ra(t)},Rn.isEmpty=function(t){if(null==t)return!0;if(Vo(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==M)return!t.size;if(bs(t))return!jr(t).length;for(var n in t)if(Ot.call(t,n))return!1;return!0},Rn.isEqual=function(t,e){return Ar(t,e)},Rn.isEqualWith=function(t,e,n){var r=(n="function"==typeof n?n:i)?n(t,e):i;return r===i?Ar(t,e,i,n):!!r},Rn.isError=$o,Rn.isFinite=function(t){return"number"==typeof t&&Pe(t)},Rn.isFunction=Qo,Rn.isInteger=Zo,Rn.isLength=Jo,Rn.isMap=ea,Rn.isMatch=function(t,e){return t===e||Lr(t,e,as(e))},Rn.isMatchWith=function(t,e,n){return n="function"==typeof n?n:i,Lr(t,e,as(e),n)},Rn.isNaN=function(t){return na(t)&&t!=+t},Rn.isNative=function(t){if(ws(t))throw new xt("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Wr(t)},Rn.isNil=function(t){return null==t},Rn.isNull=function(t){return null===t},Rn.isNumber=na,Rn.isObject=Ko,Rn.isObjectLike=ta,Rn.isPlainObject=ra,Rn.isRegExp=ia,Rn.isSafeInteger=function(t){return Zo(t)&&t>=-9007199254740991&&t<=c},Rn.isSet=sa,Rn.isString=oa,Rn.isSymbol=aa,Rn.isTypedArray=ua,Rn.isUndefined=function(t){return t===i},Rn.isWeakMap=function(t){return ta(t)&&cs(t)==A},Rn.isWeakSet=function(t){return ta(t)&&"[object WeakSet]"==kr(t)},Rn.join=function(t,e){return null==t?"":He.call(t,e)},Rn.kebabCase=Ua,Rn.last=Ys,Rn.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?vn(r+s,0):gn(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):Re(t,Fe,s,!0)},Rn.lowerCase=Ha,Rn.lowerFirst=Va,Rn.lt=ha,Rn.lte=la,Rn.max=function(t){return t&&t.length?dr(t,nu,Nr):i},Rn.maxBy=function(t,e){return t&&t.length?dr(t,ss(e,2),Nr):i},Rn.mean=function(t){return qe(t,nu)},Rn.meanBy=function(t,e){return qe(t,ss(e,2))},Rn.min=function(t){return t&&t.length?dr(t,nu,Dr):i},Rn.minBy=function(t,e){return t&&t.length?dr(t,ss(e,2),Dr):i},Rn.stubArray=pu,Rn.stubFalse=mu,Rn.stubObject=function(){return{}},Rn.stubString=function(){return""},Rn.stubTrue=function(){return!0},Rn.multiply=xu,Rn.nth=function(t,e){return t&&t.length?zr(t,da(e)):i},Rn.noConflict=function(){return ce._===this&&(ce._=Rt),this},Rn.noop=au,Rn.now=So,Rn.pad=function(t,e,n){t=ga(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)},Rn.padEnd=function(t,e,n){t=ga(t);var r=(e=da(e))?ln(t):0;return e&&r<e?t+Fi(e-r,n):t},Rn.padStart=function(t,e,n){t=ga(t);var r=(e=da(e))?ln(t):0;return e&&r<e?Fi(e-r,n)+t:t},Rn.parseInt=function(t,e,n){return n||null==e?e=0:e&&(e=+e),wn(ga(t).replace(rt,""),e||0)},Rn.random=function(t,e,n){if(n&&"boolean"!=typeof n&&vs(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 gn(t+s*(e-t+ae("1e-"+((s+"").length-1))),e)}return Vr(t,e)},Rn.reduce=function(t,e,n){var r=Uo(t)?Oe:Ve,i=arguments.length<3;return r(t,ss(e,4),n,i,lr)},Rn.reduceRight=function(t,e,n){var r=Uo(t)?je:Ve,i=arguments.length<3;return r(t,ss(e,4),n,i,cr)},Rn.repeat=function(t,e,n){return e=(n?vs(t,e,n):e===i)?1:da(e),Gr(ga(t),e)},Rn.replace=function(){var t=arguments,e=ga(t[0]);return t.length<3?e:e.replace(t[1],t[2])},Rn.result=function(t,e,n){var r=-1,s=(e=vi(e,t)).length;for(s||(s=1,t=i);++r<s;){var o=null==t?i:t[Ds(e[r])];o===i&&(r=s,o=n),t=Qo(o)?o.call(t):o}return t},Rn.round=_u,Rn.runInContext=t,Rn.sample=function(t){return(Uo(t)?$n:Yr)(t)},Rn.size=function(t){if(null==t)return 0;if(Vo(t))return oa(t)?ln(t):t.length;var e=cs(t);return e==_||e==M?t.size:jr(t).length},Rn.snakeCase=Ga,Rn.some=function(t,e,n){var r=Uo(t)?De:ei;return n&&vs(t,e,n)&&(e=i),r(t,ss(e,3))},Rn.sortedIndex=function(t,e){return ni(t,e)},Rn.sortedIndexBy=function(t,e,n){return ri(t,e,ss(n,2))},Rn.sortedIndexOf=function(t,e){var n=null==t?0:t.length;if(n){var r=ni(t,e);if(r<n&&Bo(t[r],e))return r}return-1},Rn.sortedLastIndex=function(t,e){return ni(t,e,!0)},Rn.sortedLastIndexBy=function(t,e,n){return ri(t,e,ss(n,2),!0)},Rn.sortedLastIndexOf=function(t,e){if(null!=t&&t.length){var n=ni(t,e,!0)-1;if(Bo(t[n],e))return n}return-1},Rn.startCase=Xa,Rn.startsWith=function(t,e,n){return t=ga(t),n=null==n?0:sr(da(n),0,t.length),e=oi(e),t.slice(n,n+e.length)==e},Rn.subtract=ku,Rn.sum=function(t){return t&&t.length?Ge(t,nu):0},Rn.sumBy=function(t,e){return t&&t.length?Ge(t,ss(e,2)):0},Rn.template=function(t,e,n){var r=Rn.templateSettings;n&&vs(t,e,n)&&(e=i),t=ga(t),e=ba({},e,r,$i);var s,o,a=ba({},e.imports,r.imports,$i),u=Aa(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="+(Ot.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=Ot.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(H,"$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 v=Za((function(){return _t(u,p+"return "+f).apply(i,h)}));if(v.source=f,$o(v))throw v;return v},Rn.times=function(t,e){if((t=da(t))<1||t>c)return[];var n=d,r=gn(t,d);e=ss(e),t-=d;for(var i=Xe(r,e);++n<t;)e(n);return i},Rn.toFinite=fa,Rn.toInteger=da,Rn.toLength=pa,Rn.toLower=function(t){return ga(t).toLowerCase()},Rn.toNumber=ma,Rn.toSafeInteger=function(t){return t?sr(da(t),-9007199254740991,c):0===t?t:0},Rn.toString=ga,Rn.toUpper=function(t){return ga(t).toUpperCase()},Rn.trim=function(t,e,n){if((t=ga(t))&&(n||e===i))return Ye(t);if(!t||!(e=oi(e)))return t;var r=cn(t),s=cn(e);return yi(r,Je(r,s),Ke(r,s)+1).join("")},Rn.trimEnd=function(t,e,n){if((t=ga(t))&&(n||e===i))return t.slice(0,fn(t)+1);if(!t||!(e=oi(e)))return t;var r=cn(t);return yi(r,0,Ke(r,cn(e))+1).join("")},Rn.trimStart=function(t,e,n){if((t=ga(t))&&(n||e===i))return t.replace(rt,"");if(!t||!(e=oi(e)))return t;var r=cn(t);return yi(r,Je(r,cn(e))).join("")},Rn.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=ga(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?yi(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,ga(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},Rn.unescape=function(t){return(t=ga(t))&&X.test(t)?t.replace(V,dn):t},Rn.uniqueId=function(t){var e=++jt;return ga(t)+e},Rn.upperCase=Ya,Rn.upperFirst=$a,Rn.each=go,Rn.eachRight=yo,Rn.first=Hs,ou(Rn,(vu={},yr(Rn,(function(t,e){Ot.call(Rn.prototype,e)||(vu[e]=t)})),vu),{chain:!1}),Rn.VERSION="4.17.21",Se(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(t){Rn[t].placeholder=Rn})),Se(["drop","take"],(function(t,e){qn.prototype[t]=function(n){n=n===i?1:vn(da(n),0);var r=this.__filtered__&&!e?new qn(this):this.clone();return r.__filtered__?r.__takeCount__=gn(n,r.__takeCount__):r.__views__.push({size:gn(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 Tr(n,t,e)}))})),qn.prototype.reject=function(t){return this.filter(jo(ss(t)))},qn.prototype.slice=function(t,e){t=da(t);var n=this;return n.__filtered__&&(t>0||e<0)?new qn(n):(t<0?n=n.takeRight(-t):t&&(n=n.drop(t)),e!==i&&(n=(e=da(e))<0?n.dropRight(-e):n.take(e-t)),n)},qn.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},qn.prototype.toArray=function(){return this.take(d)},yr(qn.prototype,(function(t,e){var n=/^(?:filter|find|map|reject)|While$/.test(e),r=/^(?:head|last)$/.test(e),s=Rn[r?"take"+("last"==e?"Right":""):e],o=r||/^find/.test(e);s&&(Rn.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(Rn,We([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 v=t.apply(e,a);return v.__actions__.push({func:co,args:[c],thisArg:i}),new Fn(v,f)}return p&&m?t.apply(this,a):(v=this.thru(c),p?r?v.value()[0]:v.value():v)})})),Se(["pop","push","shift","sort","splice","unshift"],(function(t){var e=Tt[t],n=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",r=/^(?:pop|shift)$/.test(t);Rn.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)}))}})),yr(qn.prototype,(function(t,e){var n=Rn[e];if(n){var r=n.name+"";Ot.call(Cn,r)||(Cn[r]=[]),Cn[r].push({name:e,func:n})}})),Cn[Ii(i,2).name]=[{name:"wrapper",func:i}],qn.prototype.clone=function(){var t=new qn(this.__wrapped__);return t.__actions__=Ei(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=Ei(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=Ei(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=gn(e,t+o);break;case"takeRight":t=vn(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=gn(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,v=t[h+=e];++m<c;){var g=l[m],y=g.iteratee,w=g.type,b=y(v);if(2==w)v=b;else if(!b){if(1==w)continue t;break t}}p[f++]=v}return p},Rn.prototype.at=fo,Rn.prototype.chain=function(){return lo(this)},Rn.prototype.commit=function(){return new Fn(this.value(),this.__chain__)},Rn.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__++]}},Rn.prototype.plant=function(t){for(var e,n=this;n instanceof zn;){var r=Is(n);r.__index__=0,r.__values__=i,e?s.__wrapped__=r:e=r;var s=r;n=n.__wrapped__}return s.__wrapped__=t,e},Rn.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)},Rn.prototype.toJSON=Rn.prototype.valueOf=Rn.prototype.value=function(){return ci(this.__wrapped__,this.__actions__)},Rn.prototype.first=Rn.prototype.head,$t&&(Rn.prototype[$t]=function(){return this}),Rn}();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: black;\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:()=>y,IU:()=>d,QB:()=>g,Qs:()=>f,Te:()=>v,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: black;\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: 10px 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: black;\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: black;\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",v="vXdbsaENeFcx9uTlNetr",g="a5Wi7rcTlB2tWpGwD8zf";const y=o},659:t=>{"use strict";var e={};t.exports=function(t,n){var r=function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(t){n=null}e[t]=n}return e[t]}(t);if(!r)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");r.appendChild(n)}},678:(t,e,n)=>{"use strict";n.d(e,{Ay:()=>h,ZZ:()=>a,o3:()=>u});var r=n(601),i=n.n(r),s=n(314),o=n.n(s)()(i());o.push([t.id,'.rIHrsark1WbeRGC9M1ZY {\n display: flex;\n flex-direction: row;\n align-items: center;\n\n font-family: "Open Sans", sans-serif;\n font-size: 12px;\n font-weight: 700;\n font-style: normal;\n color: black;\n\n user-select: none;\n -webkit-user-select: none;\n\n pointer-events: auto;\n}\n\n.P5PJGaHxnhsEaezm8Nhg {\n color: black;\n\n cursor: pointer;\n\n text-decoration: none;\n}\n\n.P5PJGaHxnhsEaezm8Nhg:hover {\n text-decoration: underline;\n}\n',""]);var a="rIHrsark1WbeRGC9M1ZY",u="P5PJGaHxnhsEaezm8Nhg";const h=o},692:function(t,e){var n;!function(e,n){"use strict";"object"==typeof t.exports?t.exports=e.document?n(e,!0):function(t){if(!t.document)throw new Error("jQuery requires a window with a document");return n(t)}:n(e)}("undefined"!=typeof window?window:this,(function(r,i){"use strict";var s=[],o=Object.getPrototypeOf,a=s.slice,u=s.flat?function(t){return s.flat.call(t)}:function(t){return s.concat.apply([],t)},h=s.push,l=s.indexOf,c={},f=c.toString,d=c.hasOwnProperty,p=d.toString,m=p.call(Object),v={},g=function(t){return"function"==typeof t&&"number"!=typeof t.nodeType&&"function"!=typeof t.item},y=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 k="3.7.1",N=/HTML$/i,S=function(t,e){return new S.fn.init(t,e)};function E(t){var e=!!t&&"length"in t&&t.length,n=_(t);return!g(t)&&!y(t)&&("array"===n||0===e||"number"==typeof e&&e>0&&e-1 in t)}function M(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()}S.fn=S.prototype={jquery:k,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||g(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"+(k+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(E(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&&(E(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!N.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(E(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:v}),"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 T=s.pop,C=s.sort,A=s.splice,L="[\\x20\\t\\r\\n\\f]",W=new RegExp("^"+L+"+|((?:^|[^\\\\])(?:\\\\.)*)"+L+"+$","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 O=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g;function j(t,e){return e?"\0"===t?"�":t.slice(0,-1)+"\\"+t.charCodeAt(t.length-1).toString(16)+" ":"\\"+t}S.escapeSelector=function(t){return(t+"").replace(O,j)};var D=w,P=h;!function(){var t,e,n,i,o,u,h,c,f,p,m=P,g=S.expando,y=0,w=0,b=tt(),x=tt(),_=tt(),k=tt(),N=function(t,e){return t===e&&(o=!0),0},E="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",O="(?:\\\\[\\da-fA-F]{1,6}"+L+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",j="\\["+L+"*("+O+")(?:"+L+"*([*^$|!~]?=)"+L+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+O+"))|)"+L+"*\\]",I=":("+O+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+j+")*)|.*)\\)|)",R=new RegExp(L+"+","g"),B=new RegExp("^"+L+"*,"+L+"*"),z=new RegExp("^"+L+"*([>+~]|"+L+")"+L+"*"),F=new RegExp(L+"|>"),q=new RegExp(I),U=new RegExp("^"+O+"$"),H={ID:new RegExp("^#("+O+")"),CLASS:new RegExp("^\\.("+O+")"),TAG:new RegExp("^("+O+"|[*])"),ATTR:new RegExp("^"+j),PSEUDO:new RegExp("^"+I),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+L+"*(even|odd|(([+-]|)(\\d*)n|)"+L+"*(?:([+-]|)"+L+"*(\\d+)|))"+L+"*\\)|)","i"),bool:new RegExp("^(?:"+E+")$","i"),needsContext:new RegExp("^"+L+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+L+"*((?:-\\d)?\\d*)"+L+"*\\)|)(?=[^-]|$)","i")},V=/^(?:input|select|textarea|button)$/i,G=/^h\d$/i,X=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,Y=/[+~]/,$=new RegExp("\\\\[\\da-fA-F]{1,6}"+L+"?|\\\\([^\\r\\n\\f])","g"),Q=function(t,e){var n="0x"+t.slice(1)-65536;return e||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320))},Z=function(){ut()},J=ft((function(t){return!0===t.disabled&&M(t,"fieldset")}),{dir:"parentNode",next:"legend"});try{m.apply(s=a.call(D.childNodes),D.childNodes),s[D.childNodes.length].nodeType}catch(t){m={apply:function(t,e){P.apply(t,a.call(e))},call:function(t){P.apply(t,a.call(arguments,1))}}}function K(t,e,n,r){var i,s,o,a,h,l,d,p=e&&e.ownerDocument,y=e?e.nodeType:9;if(n=n||[],"string"!=typeof t||!t||1!==y&&9!==y&&11!==y)return n;if(!r&&(ut(e),e=e||u,c)){if(11!==y&&(h=X.exec(t)))if(i=h[1]){if(9===y){if(!(o=e.getElementById(i)))return n;if(o.id===i)return m.call(n,o),n}else if(p&&(o=p.getElementById(i))&&K.contains(e,o)&&o.id===i)return m.call(n,o),n}else{if(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(!(k[t+" "]||f&&f.test(t))){if(d=t,p=e,1===y&&(F.test(t)||z.test(t))){for((p=Y.test(t)&&at(e.parentNode)||e)==e&&v.scope||((a=e.getAttribute("id"))?a=S.escapeSelector(a):e.setAttribute("id",a=g)),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){k(t,!0)}finally{a===g&&e.removeAttribute("id")}}}return yt(t.replace(W,"$1"),e,n,r)}function tt(){var t=[];return function n(r,i){return t.push(r+" ")>e.cacheLength&&delete n[t.shift()],n[r+" "]=i}}function et(t){return t[g]=!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 M(e,"input")&&e.type===t}}function it(t){return function(e){return(M(e,"input")||M(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:D;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&&D!=u&&(n=u.defaultView)&&n.top!==n&&n.addEventListener("unload",Z),v.getById=nt((function(t){return h.appendChild(t).id=S.expando,!u.getElementsByName||!u.getElementsByName(S.expando).length})),v.disconnectedMatch=nt((function(t){return p.call(t,"*")})),v.scope=nt((function(){return u.querySelectorAll(":scope")})),v.cssHas=nt((function(){try{return u.querySelector(":has(*,:jqfake)"),!1}catch(t){return!0}})),v.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='"+g+"' href='' disabled='disabled'></a><select id='"+g+"-\r\\' disabled='disabled'><option selected=''></option></select>",t.querySelectorAll("[selected]").length||f.push("\\["+L+"*(?:value|"+E+")"),t.querySelectorAll("[id~="+g+"-]").length||f.push("~="),t.querySelectorAll("a#"+g+"+*").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("\\["+L+"*name"+L+"*="+L+"*(?:''|\"\")")})),v.cssHas||f.push(":has"),f=f.length&&new RegExp(f.join("|")),N=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)||!v.sortDetached&&e.compareDocumentPosition(t)===n?t===u||t.ownerDocument==D&&K.contains(D,t)?-1:e===u||e.ownerDocument==D&&K.contains(D,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&&!k[e+" "]&&(!f||!f.test(e)))try{var n=p.call(t,e);if(n||v.disconnectedMatch||t.document&&11!==t.document.nodeType)return n}catch(t){k(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=!v.sortStable,i=!v.sortStable&&a.call(t,0),C.call(t,N),o){for(;e=t[s++];)e===t[s]&&(r=n.push(s));for(;r--;)A.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:H,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 H.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 M(t,e)}},CLASS:function(t){var e=b[t+" "];return e||(e=new RegExp("(^|"+L+")"+t+"("+L+"|$)"))&&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(R," ")+" ").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,v=a&&e.nodeName.toLowerCase(),w=!u&&!a,b=!1;if(m){if(s){for(;p;){for(c=e;c=c[p];)if(a?M(c,v):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[g]||(m[g]={}))[t]||[])[0]===y&&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]=[y,f,b];break}}else if(w&&(b=f=(h=(l=e[g]||(e[g]={}))[t]||[])[0]===y&&h[1]),!1===b)for(;(c=++f&&c&&c[p]||(b=f=0)||d.pop())&&(!(a?M(c,v):1===c.nodeType)||!++b||(w&&((l=c[g]||(c[g]={}))[t]=[y,b]),c!==e)););return(b-=i)===r||b%r===0&&b/r>=0}}},PSEUDO:function(t,n){var r,i=e.pseudos[t]||e.setFilters[t.toLowerCase()]||K.error("unsupported pseudo: "+t);return i[g]?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=gt(t.replace(W,"$1"));return r[g]?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 M(t,"input")&&!!t.checked||M(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 G.test(t.nodeName)},input:function(t){return V.test(t.nodeName)},button:function(t){return M(t,"input")&&"button"===t.type||M(t,"button")},text:function(t){var e;return M(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=B.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(W," ")}),a=a.slice(r.length)),e.filter)!(i=H[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=[y,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[g]||(e[g]={}),i&&M(e,i))e=e[r]||e;else{if((h=l[s])&&h[0]===y&&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[g]&&(r=mt(r)),i&&!i[g]&&(i=mt(i,s)),et((function(s,o,a,u){var h,c,f,d,p=[],v=[],g=o.length,y=s||function(t,e,n){for(var r=0,i=e.length;r<i;r++)K(t,e[r],n);return n}(e||"*",a.nodeType?[a]:a,[]),w=!t||!s&&e?y:pt(y,p,t,a,u);if(n?n(w,d=i||(s?t:g||r)?[]:o,a,u):d=w,r)for(h=pt(d,v),r(h,[],a,u),c=h.length;c--;)(f=h[c])&&(d[v[c]]=!(w[v[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(g,d.length):d),i?i(null,o,d,u):m.apply(o,d)}))}function vt(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))[g]){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(W,"$1"),i,h<s&&vt(t.slice(h,s)),s<o&&vt(t=t.slice(s)),s<o&&ct(t))}d.push(i)}return dt(d)}function gt(t,r){var i,s=[],o=[],a=_[t+" "];if(!a){for(r||(r=lt(t)),i=r.length;i--;)(a=vt(r[i]))[g]?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,v,g=0,w="0",b=o&&[],x=[],_=n,k=o||s&&e.find.TAG("*",f),N=y+=null==_?1:Math.random()||.1,E=k.length;for(f&&(n=a==u||a||f);w!==E&&null!=(d=k[w]);w++){if(s&&d){for(p=0,a||d.ownerDocument==u||(ut(d),h=!c);v=t[p++];)if(v(d,a||u,h)){m.call(l,d);break}f&&(y=N)}i&&((d=!v&&d)&&g--,o&&b.push(d))}if(g+=w,i&&w!==g){for(p=0;v=r[p++];)v(b,x,a,h);if(o){if(g>0)for(;w--;)b[w]||x[w]||(x[w]=T.call(l));x=pt(x)}m.apply(l,x),f&&!o&&x.length>0&&g+r.length>1&&S.uniqueSort(l)}return f&&(y=N,n=_),b};return i?et(o):o}(o,s)),a.selector=t}return a}function yt(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=H.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||gt(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,v.sortStable=g.split("").sort(N).join("")===g,ut(),v.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=gt,K.select=yt,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 I=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},R=function(t,e){for(var n=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&n.push(t);return n},B=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 g(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&&B.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)g(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):g(t)?void 0!==n.ready?n.ready(t):t(S):S.makeArray(t,this)}).prototype=S.fn,q=S(w);var H=/^(?:parents|prev(?:Until|All))/,V={children:!0,contents:!0,next:!0,prev:!0};function G(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(!B.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 I(t,"parentNode")},parentsUntil:function(t,e,n){return I(t,"parentNode",n)},next:function(t){return G(t,"nextSibling")},prev:function(t){return G(t,"previousSibling")},nextAll:function(t){return I(t,"nextSibling")},prevAll:function(t){return I(t,"previousSibling")},nextUntil:function(t,e,n){return I(t,"nextSibling",n)},prevUntil:function(t,e,n){return I(t,"previousSibling",n)},siblings:function(t){return R((t.parentNode||{}).firstChild,t)},children:function(t){return R(t.firstChild)},contents:function(t){return null!=t.contentDocument&&o(t.contentDocument)?t.contentDocument:(M(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&&(V[t]||S.uniqueSort(i),H.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&&g(i=t.promise)?i.call(t).done(e).fail(n):t&&g(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){g(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=g(t[r[4]])&&t[r[4]];s[r[1]]((function(){var t=i&&i.apply(this,arguments);t&&g(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,g(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,g(i)?i:Y,r.notifyWith)),e[1][3].add(o(0,r,g(t)?t:Y)),e[2][3].add(o(0,r,g(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()||g(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,g(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,vt=function(t){return S.contains(t.ownerDocument,t)},gt={composed:!0};mt.getRootNode&&(vt=function(t){return S.contains(t.ownerDocument,t)||t.getRootNode(gt)===t.ownerDocument});var yt=function(t,e){return"none"===(t=e||t).style.display||""===t.style.display&&vt(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&&yt(r)&&(i[s]=xt(r))):"none"!==n&&(i[s]="none",at.set(r,"display",n)));for(s=0;s<o;s++)null!=i[s]&&(t[s].style.display=i[s]);return t}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(){yt(this)?S(this).show():S(this).hide()}))}});var kt,Nt,St=/^(?:checkbox|radio)$/i,Et=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,Mt=/^$|^module$|\/(?:java|ecma)script/i;kt=w.createDocumentFragment().appendChild(w.createElement("div")),(Nt=w.createElement("input")).setAttribute("type","radio"),Nt.setAttribute("checked","checked"),Nt.setAttribute("name","t"),kt.appendChild(Nt),v.checkClone=kt.cloneNode(!0).cloneNode(!0).lastChild.checked,kt.innerHTML="<textarea>x</textarea>",v.noCloneChecked=!!kt.cloneNode(!0).lastChild.defaultValue,kt.innerHTML="<option></option>",v.option=!!kt.lastChild;var Tt={thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function Ct(t,e){var n;return n=void 0!==t.getElementsByTagName?t.getElementsByTagName(e||"*"):void 0!==t.querySelectorAll?t.querySelectorAll(e||"*"):[],void 0===e||e&&M(t,e)?S.merge([t],n):n}function At(t,e){for(var n=0,r=t.length;n<r;n++)at.set(t[n],"globalEval",!e||at.get(e[n],"globalEval"))}Tt.tbody=Tt.tfoot=Tt.colgroup=Tt.caption=Tt.thead,Tt.th=Tt.td,v.option||(Tt.optgroup=Tt.option=[1,"<select multiple='multiple'>","</select>"]);var Lt=/<|&#?\w+;/;function Wt(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(Lt.test(s)){for(o=o||c.appendChild(e.createElement("div")),a=(Et.exec(s)||["",""])[1].toLowerCase(),u=Tt[a]||Tt._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=vt(s),o=Ct(c.appendChild(s),"script"),h&&At(o),n)for(l=0;s=o[l++];)Mt.test(s.type||"")&&n.push(s);return c}var Ot=/^([^.]*)(?:\.(.+)|)/;function jt(){return!0}function Dt(){return!1}function Pt(t,e,n,r,i,s){var o,a;if("object"==typeof e){for(a in"string"!=typeof n&&(r=r||n,n=void 0),e)Pt(t,a,n,r,e[a],s);return t}if(null==r&&null==i?(i=n,r=n=void 0):null==i&&("string"==typeof n?(i=r,r=void 0):(i=r,r=n,n=void 0)),!1===i)i=Dt;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 It(t,e,n){n?(at.set(t,e,!1),S.event.add(t,e,{namespace:!1,handler:function(t){var n,r=at.get(this,e);if(1&t.isTrigger&&this[e]){if(r)(S.event.special[e]||{}).delegateType&&t.stopPropagation();else if(r=a.call(arguments),at.set(this,e,r),this[e](),n=at.get(this,e),at.set(this,e,!1),r!==n)return t.stopImmediatePropagation(),t.preventDefault(),n}else r&&(at.set(this,e,S.event.trigger(r[0],r.slice(1),this)),t.stopPropagation(),t.isImmediatePropagationStopped=jt)}})):void 0===at.get(t,e)&&S.event.add(t,e,jt)}S.event={global:{},add:function(t,e,n,r,i){var s,o,a,u,h,l,c,f,d,p,m,v=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=v.events)||(u=v.events=Object.create(null)),(o=v.handle)||(o=v.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=Ot.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,v=at.hasData(t)&&at.get(t);if(v&&(u=v.events)){for(h=(e=(e||"").match(X)||[""]).length;h--;)if(d=m=(a=Ot.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,v.handle)||S.removeEvent(t,d,v.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:g(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&&M(e,"input")&&It(e,"click",!0),!1},trigger:function(t){var e=this||t;return St.test(e.type)&&e.click&&M(e,"input")&&It(e,"click"),!0},_default:function(t){var e=t.target;return St.test(e.type)&&e.click&&M(e,"input")&&at.get(e,"click")||M(e,"a")}},beforeunload:{postDispatch:function(t){void 0!==t.result&&t.originalEvent&&(t.originalEvent.returnValue=t.result)}}}},S.removeEvent=function(t,e,n){t.removeEventListener&&t.removeEventListener(e,n)},S.Event=function(t,e){if(!(this instanceof S.Event))return new S.Event(t,e);t&&t.type?(this.originalEvent=t,this.type=t.type,this.isDefaultPrevented=t.defaultPrevented||void 0===t.defaultPrevented&&!1===t.returnValue?jt:Dt,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:Dt,isPropagationStopped:Dt,isImmediatePropagationStopped:Dt,isSimulated:!1,preventDefault:function(){var t=this.originalEvent;this.isDefaultPrevented=jt,t&&!this.isSimulated&&t.preventDefault()},stopPropagation:function(){var t=this.originalEvent;this.isPropagationStopped=jt,t&&!this.isSimulated&&t.stopPropagation()},stopImmediatePropagation:function(){var t=this.originalEvent;this.isImmediatePropagationStopped=jt,t&&!this.isSimulated&&t.stopImmediatePropagation(),this.stopPropagation()}},S.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:!0},S.event.addProp),S.each({focus:"focusin",blur:"focusout"},(function(t,e){function n(t){if(w.documentMode){var n=at.get(this,"handle"),r=S.event.fix(t);r.type="focusin"===t.type?"focus":"blur",r.isSimulated=!0,n(t),r.target===r.currentTarget&&n(r)}else S.event.simulate(e,t.target,S.event.fix(t))}S.event.special[t]={setup:function(){var r;if(It(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 It(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 Pt(this,t,e,n,r)},one:function(t,e,n,r){return Pt(this,t,e,n,r,1)},off:function(t,e,n){var r,i;if(t&&t.preventDefault&&t.handleObj)return r=t.handleObj,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=Dt),this.each((function(){S.event.remove(this,t,n,e)}))}});var Rt=/<script|<style|<link/i,Bt=/checked\s*(?:[^=]|=\s*.checked.)/i,zt=/^\s*<!\[CDATA\[|\]\]>\s*$/g;function Ft(t,e){return M(t,"table")&&M(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 Ht(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 Vt(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 Gt(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=g(p);if(m||f>1&&"string"==typeof p&&!v.checkClone&&Bt.test(p))return t.each((function(i){var s=t.eq(i);m&&(e[0]=p.call(this,i,s.html())),Gt(s,e,n,r)}));if(f&&(s=(i=Wt(e,t[0].ownerDocument,!1,t,r)).firstChild,1===i.childNodes.length&&(i=s),s||r)){for(a=(o=S.map(Ct(i,"script"),qt)).length;c<f;c++)h=i,c!==d&&(h=S.clone(h,!0,!0),a&&S.merge(o,Ct(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],Mt.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(Ct(r)),r.parentNode&&(n&&vt(r)&&At(Ct(r,"script")),r.parentNode.removeChild(r));return t}S.extend({htmlPrefilter:function(t){return t},clone:function(t,e,n){var r,i,s,o,a=t.cloneNode(!0),u=vt(t);if(!(v.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||S.isXMLDoc(t)))for(o=Ct(a),r=0,i=(s=Ct(t)).length;r<i;r++)Vt(s[r],o[r]);if(e)if(n)for(s=s||Ct(t),o=o||Ct(a),r=0,i=s.length;r<i;r++)Ht(s[r],o[r]);else Ht(t,a);return(o=Ct(a,"script")).length>0&&At(o,!u&&Ct(t,"script")),a},cleanData:function(t){for(var e,n,r,i=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 Gt(this,arguments,(function(t){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Ft(this,t).appendChild(t)}))},prepend:function(){return Gt(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 Gt(this,arguments,(function(t){this.parentNode&&this.parentNode.insertBefore(t,this)}))},after:function(){return Gt(this,arguments,(function(t){this.parentNode&&this.parentNode.insertBefore(t,this.nextSibling)}))},empty:function(){for(var t,e=0;null!=(t=this[e]);e++)1===t.nodeType&&(S.cleanData(Ct(t,!1)),t.textContent="");return this},clone:function(t,e){return t=null!=t&&t,e=null==e?t:e,this.map((function(){return S.clone(this,t,e)}))},html:function(t){return tt(this,(function(t){var e=this[0]||{},n=0,r=this.length;if(void 0===t&&1===e.nodeType)return e.innerHTML;if("string"==typeof t&&!Rt.test(t)&&!Tt[(Et.exec(t)||["",""])[1].toLowerCase()]){t=S.htmlPrefilter(t);try{for(;n<r;n++)1===(e=this[n]||{}).nodeType&&(S.cleanData(Ct(e,!1)),e.innerHTML=t);e=0}catch(t){}}e&&this.empty().append(t)}),null,t,arguments.length)},replaceWith:function(){var t=[];return Gt(this,arguments,(function(e){var n=this.parentNode;S.inArray(this,t)<0&&(S.cleanData(Ct(this)),n&&n.replaceChild(e,this))}),t)}}),S.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},(function(t,e){S.fn[t]=function(t){for(var n,r=[],i=S(t),s=i.length-1,o=0;o<=s;o++)n=o===s?this:this.clone(!0),S(i[o])[e](n),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(W,"$1")||void 0),""!==o||vt(t)||(o=S.style(t,e)),!v.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="",v.clearCloneStyle="content-box"===l.style.backgroundClip,S.extend(v,{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=(!v.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(!v.boxSizingReliable()&&i||!v.reliableTrDimensions()&&M(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")),v.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=!v.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(v.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 ve(){de&&(!1===w.hidden&&r.requestAnimationFrame?r.requestAnimationFrame(ve):r.setTimeout(ve,S.fx.interval),S.fx.tick())}function ge(){return r.setTimeout((function(){fe=void 0})),fe=Date.now()}function ye(t,e){var n,r=0,i={height:t};for(e=e?1:0;r<4;r+=2-e)i["margin"+(n=pt[r])]=i["padding"+n]=t;return e&&(i.opacity=i.width=t),i}function 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||ge(),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||ge(),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 g(r.stop)&&(S._queueHooks(h.elem,h.opts.queue).stop=r.stop.bind(r)),r;return S.map(l,we,h),g(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){g(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&&yt(t),v=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||!v||void 0===v[r])continue;m=!0}d[r]=v&&v[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=v&&v.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||(v?"hidden"in v&&(m=v.hidden):v=at.access(t,"fxshow",{display:h}),s&&(v.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?v[r]:0,r,f),r in v||(v[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||g(t)&&t,duration:t,easing:n&&e||e&&!g(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(){g(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(yt).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(ye(e,!0),t,r,i)}})),S.each({slideDown:ye("show"),slideUp:ye("hide"),slideToggle:ye("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,ve())},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",v.checkOn=""!==t.value,v.optSelected=e.selected,(t=w.createElement("input")).value="t",t.type="radio",v.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(!v.radioValue&&"radio"===e&&M(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 ke=/^(?:input|select|textarea|button)$/i,Ne=/^(?:a|area)$/i;function Se(t){return(t.match(X)||[]).join(" ")}function Ee(t){return t.getAttribute&&t.getAttribute("class")||""}function Me(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):ke.test(t.nodeName)||Ne.test(t.nodeName)&&t.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),v.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 g(t)?this.each((function(e){S(this).addClass(t.call(this,e,Ee(this)))})):(e=Me(t)).length?this.each((function(){if(r=Ee(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 g(t)?this.each((function(e){S(this).removeClass(t.call(this,e,Ee(this)))})):arguments.length?(e=Me(t)).length?this.each((function(){if(r=Ee(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 g(t)?this.each((function(n){S(this).toggleClass(t.call(this,n,Ee(this),e),e)})):"boolean"==typeof e&&a?e?this.addClass(t):this.removeClass(t):(n=Me(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=Ee(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(Ee(n))+" ").indexOf(e)>-1)return!0;return!1}});var Te=/\r/g;S.fn.extend({val:function(t){var e,n,r,i=this[0];return arguments.length?(r=g(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(Te,""):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||!M(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}},v.checkOn||(S.valHooks[this].get=function(t){return null===t.getAttribute("value")?"on":t.value})}));var Ce=r.location,Ae={guid:Date.now()},Le=/\?/;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 We=/^(?:focusinfocus|focusoutblur)$/,Oe=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,v=d.call(t,"namespace")?t.namespace.split("."):[];if(o=f=a=n=n||w,3!==n.nodeType&&8!==n.nodeType&&!We.test(m+S.event.triggered)&&(m.indexOf(".")>-1&&(v=m.split("."),m=v.shift(),v.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=v.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+v.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&&!y(n)){for(u=c.delegateType||m,We.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&&g(n[m])&&!y(n)&&((a=n[h])&&(n[h]=null),S.event.triggered=m,t.isPropagationStopped()&&f.addEventListener(m,Oe),n[m](),t.isPropagationStopped()&&f.removeEventListener(m,Oe),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 je=/\[\]$/,De=/\r?\n/g,Pe=/^(?:submit|button|image|reset|file)$/i,Ie=/^(?:input|select|textarea|keygen)/i;function Re(t,e,n,r){var i;if(Array.isArray(e))S.each(e,(function(e,i){n||je.test(t)?r(t,i):Re(t+"["+("object"==typeof i&&null!=i?e:"")+"]",i,n,r)}));else if(n||"object"!==_(e))r(t,e);else for(i in e)Re(t+"["+i+"]",e[i],n,r)}S.param=function(t,e){var n,r=[],i=function(t,e){var n=g(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)Re(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")&&Ie.test(this.nodeName)&&!Pe.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(De,"\r\n")}})):{name:e.name,value:n.replace(De,"\r\n")}})).get()}});var Be=/%20/g,ze=/#.*$/,Fe=/([?&])_=[^&]*/,qe=/^(.*?):[ \t]*([^\r\n]*)$/gm,Ue=/^(?:GET|HEAD)$/,He=/^\/\//,Ve={},Ge={},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(g(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===Ge;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=Ce.href,S.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Ce.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(Ce.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Xe,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":S.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(t,e){return e?Ze(Ze(t,S.ajaxSettings),e):Ze(S.ajaxSettings,t)},ajaxPrefilter:$e(Ve),ajaxTransport:$e(Ge),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,v=S.Deferred(),g=S.Callbacks("once memory"),y=d.statusCode||{},b={},x={},_="canceled",k={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)k.always(t[k.status]);else for(e in t)y[e]=[y[e],t[e]];return this},abort:function(t){var e=t||_;return n&&n.abort(e),N(0,e),this}};if(v.promise(k),d.url=((t||d.url||Ce.href)+"").replace(He,Ce.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(Ve,d,e,k),h)return k;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(Be,"+")):(f=d.url.slice(i.length),d.data&&(d.processData||"string"==typeof d.data)&&(i+=(Le.test(i)?"&":"?")+d.data,delete d.data),!1===d.cache&&(i=i.replace(Fe,"$1"),f=(Le.test(i)?"&":"?")+"_="+Ae.guid+++f),d.url=i+f),d.ifModified&&(S.lastModified[i]&&k.setRequestHeader("If-Modified-Since",S.lastModified[i]),S.etag[i]&&k.setRequestHeader("If-None-Match",S.etag[i])),(d.data&&d.hasContent&&!1!==d.contentType||e.contentType)&&k.setRequestHeader("Content-Type",d.contentType),k.setRequestHeader("Accept",d.dataTypes[0]&&d.accepts[d.dataTypes[0]]?d.accepts[d.dataTypes[0]]+("*"!==d.dataTypes[0]?", "+Xe+"; q=0.01":""):d.accepts["*"]),d.headers)k.setRequestHeader(c,d.headers[c]);if(d.beforeSend&&(!1===d.beforeSend.call(p,k,d)||h))return k.abort();if(_="abort",g.add(d.complete),k.done(d.success),k.fail(d.error),n=Qe(Ge,d,e,k)){if(k.readyState=1,l&&m.trigger("ajaxSend",[k,d]),h)return k;d.async&&d.timeout>0&&(a=r.setTimeout((function(){k.abort("timeout")}),d.timeout));try{h=!1,n.send(b,N)}catch(t){if(h)throw t;N(-1,t)}}else N(-1,"No Transport");function N(t,e,o,u){var c,f,w,b,x,_=e;h||(h=!0,a&&r.clearTimeout(a),n=void 0,s=u||"",k.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,k,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,k,c),c?(d.ifModified&&((x=k.getResponseHeader("Last-Modified"))&&(S.lastModified[i]=x),(x=k.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))),k.status=t,k.statusText=(e||_)+"",c?v.resolveWith(p,[f,_,k]):v.rejectWith(p,[k,_,w]),k.statusCode(y),y=void 0,l&&m.trigger(c?"ajaxSuccess":"ajaxError",[k,d,c?f:w]),g.fireWith(p,[k,_]),l&&(m.trigger("ajaxComplete",[k,d]),--S.active||S.event.trigger("ajaxStop")))}return k},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 g(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]&&(g(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 g(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=g(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();v.cors=!!Ke&&"withCredentials"in Ke,v.ajax=Ke=!!Ke,S.ajaxTransport((function(t){var e,n;if(v.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+"_"+Ae.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=g(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,a?t[a]=t[a].replace(nn,"$1"+i):!1!==t.jsonp&&(t.url+=(Le.test(t.url)?"&":"?")+t.jsonp+"="+i),t.converters["script json"]=function(){return o||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&&g(s)&&s(o[0]),o=s=void 0})),"script"})),v.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||(v.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=Wt([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)),g(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),g(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(y(t)?s=t:9===t.nodeType&&(s=t.defaultView),void 0===i)return s?s[e]:t[r];s?s.scrollTo(n?s.pageXOffset:i,n?i:s.pageYOffset):t[r]=i}),t,r,arguments.length)}})),S.each(["top","left"],(function(t,e){S.cssHooks[e]=te(v.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 y(e)?0===r.indexOf("outer")?e["inner"+t]:e.document.documentElement["client"+t]:9===e.nodeType?(s=e.documentElement,Math.max(e.body["scroll"+t],s["scroll"+t],e.body["offset"+t],s["offset"+t],s["client"+t])):void 0===i?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),g(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=M,S.isFunction=g,S.isWindow=y,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:()=>v,flipAway:()=>w,isBetween:()=>l,isBetweenExclusive:()=>c,isBetweenInclusive:()=>l,max:()=>h,mean:()=>r,median:()=>a,min:()=>u,normalizeAngle:()=>y,radians:()=>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 v(t){return t*(180/Math.PI)}function g(t){return t*(Math.PI/180)}function y(t,e){void 0===e&&(e=-Math.PI);var n=t-e;return e+((n%=2*Math.PI)>=0?n:n+2*Math.PI)}function w(t,e){var n=(e=y(e,t))-t;return(n<Math.PI/2||n>3*Math.PI/2)&&(t+=Math.PI),t}return e})()}},e={};function n(r){var i=e[r];if(void 0!==i)return i.exports;var s=e[r]={exports:{}};return t[r].call(s.exports,s,s.exports,n),s.exports}n.d=(t,e)=>{for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var r={};return(()=>{"use strict";n.r(r),n.d(r,{Box:()=>e});var t=n(986);class e{static bounding(n){let r=n.map((t=>e.matching(t))),i=(0,t.min)(r.map((t=>t.left))),s=(0,t.min)(r.map((t=>t.top))),o=(0,t.max)(r.map((t=>t.right)))-i,a=(0,t.max)(r.map((t=>t.bottom)))-s;return new e(i,s,o,a)}static matching(t){let{x:n,y:r,width:i,height:s}=t;return new e(n,r,i,s)}constructor(t,e,n,r){this.x=t,this.y=e,this.width=n,this.height=r}get centerX(){return this.minX+this.width/2}get centerY(){return this.minY+this.height/2}get minX(){return this.x}get minY(){return this.y}get maxX(){return this.minX+this.width}get maxY(){return this.minY+this.height}get top(){return this.minY}get right(){return this.maxX}get bottom(){return this.maxY}get left(){return this.minX}isBoundedBy(t){let n=e.matching(t);return this.minX>=n.minX&&this.minY>=n.minY&&this.maxX<=n.maxX&&this.maxY<=n.maxY}padded(t,n){return"number"!=typeof n&&(n=t),new e(this.x-t,this.y-n,this.width+2*t,this.height+2*n)}peripheralPoint(t){let e=this.width/2,n=this.height/2,r=Math.pow(Math.pow(e,2)+Math.pow(n,2),.5),i=this.centerX+r*Math.cos(t),s=this.centerY+r*Math.sin(t),o=r;return Math.abs(this.centerX-i)>e&&(o=Math.abs(e/Math.cos(t)),o=Number.isFinite(o)?o:n),Math.abs(this.centerY-s)>n&&(o=Math.abs(n/Math.sin(t)),o=Number.isFinite(o)?o:e),{x:this.centerX+o*Math.cos(t),y:this.centerY+o*Math.sin(t)}}}})(),r})(),t.exports=e()},659:t=>{"use strict";var e={};t.exports=function(t,n){var r=function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(t){n=null}e[t]=n}return e[t]}(t);if(!r)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");r.appendChild(n)}},825:t=>{"use strict";t.exports=function(t){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var e=t.insertStyleElement(t);return{update:function(n){!function(t,e,n){var r="";n.supports&&(r+="@supports (".concat(n.supports,") {")),n.media&&(r+="@media ".concat(n.media," {"));var i=void 0!==n.layer;i&&(r+="@layer".concat(n.layer.length>0?" ".concat(n.layer):""," {")),r+=n.css,i&&(r+="}"),n.media&&(r+="}"),n.supports&&(r+="}");var s=n.sourceMap;s&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(s))))," */")),e.styleTagTransform(r,t,e.options)}(e,t,n)},remove:function(){!function(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t)}(e)}}}},865:(t,e,n)=>{"use strict";n.d(e,{Ay:()=>l,Qq:()=>u,YL:()=>a,zX:()=>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-radius: 5px;\n\n background-color: black;\n box-shadow: 0px 0px 6px #d9d9e724;\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.Z0ghuBmvyXYH9uep6VTd {\n border-style: solid;\n border-color: black transparent transparent transparent;\n border-width: 18px 9px;\n}\n',""]);var a="DKvRm2Iz8xnCJ3FyFRDv",u="p5_D557pe0GpEcfAZAWo",h="Z0ghuBmvyXYH9uep6VTd";const l=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:()=>C});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 v,g,y,w,b,x,_,k,N,S,E,M=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)};class C{constructor(t){v.add(this),g.set(this,document.createElement("div")),y.set(this,document.createElement("p")),w.set(this,document.createElement("div")),b.set(this,5),x.set(this,void 0),_.set(this,(()=>{})),k.set(this,(()=>{})),T(this,g,"f").classList.add(p.YL),T(this,y,"f").classList.add(p.Qq),T(this,y,"f").textContent=t,T(this,g,"f").append(T(this,y,"f")),T(this,w,"f").classList.add(p.zX),T(this,g,"f").append(T(this,w,"f"))}get textContent(){return T(this,y,"f").textContent}set textContent(t){let e=!T(this,v,"m",E).call(this);T(this,v,"m",S).call(this),T(this,y,"f").textContent=t,e&&T(this,v,"m",N).call(this)}get owner(){return T(this,x,"f")}set owner(t){T(this,x,"f")&&(T(this,x,"f").removeEventListener("mouseover",T(this,_,"f")),T(this,x,"f").removeEventListener("mouseout",T(this,k,"f"))),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,x,t),t&&(t.addEventListener("mouseover",(()=>T(this,v,"m",N).call(this))),t.addEventListener("mouseout",(()=>T(this,v,"m",S).call(this))))}}g=new WeakMap,y=new WeakMap,w=new WeakMap,b=new WeakMap,x=new WeakMap,_=new WeakMap,k=new WeakMap,v=new WeakSet,N=function(){if(T(this,g,"f").style.left="0px",T(this,g,"f").style.top="0px",document.body.append(T(this,g,"f")),!T(this,x,"f"))return;let t=T(this,g,"f").getBoundingClientRect().width,e=T(this,y,"f").getBoundingClientRect().height+T(this,w,"f").getBoundingClientRect().height/2,n=M.Box.matching(T(this,x,"f").getBoundingClientRect()).padded(T(this,b,"f"));T(this,g,"f").style.left=n.peripheralPoint(3*Math.PI/2).x-t/2+"px",T(this,g,"f").style.top=n.peripheralPoint(3*Math.PI/2).y-e+"px"},S=function(){T(this,g,"f").remove()},E=function(){return!document.body.contains(T(this,g,"f"))}})(),r})(),t.exports=e()},705:(t,e,n)=>{"use strict";n.d(e,{Ay:()=>f,Qs:()=>u,Se:()=>a,eB:()=>c,vM:()=>l,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: 29px;\n\n display: flex;\n flex-direction: column;\n}\n\n.Nc_rMplF2zhIq3zYlKFl {\n margin: 10px 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: black;\n\n user-select: none;\n -webkit-user-select: none;\n\n pointer-events: none;\n}\n\n.IhPX3q3sGT4fPIlgUdp1 {\n display: none;\n flex-direction: column;\n}\n',""]);var a="LtjvWfQ5DEgLE0jZ1VYc",u="Nc_rMplF2zhIq3zYlKFl",h="UArJtlXrClYUqKvYzpXe",l="rgGEAvKvdVba2DrspkU6",c="IhPX3q3sGT4fPIlgUdp1";const f=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 pointer-events: auto;\n}\n\n.vDAwbQmWCc39SmNMFRtv {\n margin: 0px;\n\n border: none;\n\n padding: 4px 14px;\n border-radius: 3px;\n\n font-family: "Open Sans", sans-serif;\n font-size: 11px;\n font-weight: 700;\n font-style: normal;\n color: #06064a;\n\n background-color: rgba(219, 219, 255, 0.9);\n\n cursor: pointer;\n\n user-select: none;\n -webkit-user-select: none;\n\n pointer-events: auto;\n}\n\n.BAlKKbk1BfHF_fPz1gpc {\n color: #9797cb;\n\n pointer-events: none;\n}\n\n.vDAwbQmWCc39SmNMFRtv:hover {\n background-color: rgba(175, 175, 255, 0.92);\n}\n\n.vDAwbQmWCc39SmNMFRtv:active {\n background-color: rgba(147, 147, 255, 0.92);\n}\n\n.vDAwbQmWCc39SmNMFRtv:focus {\n outline: none;\n}\n',""]);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 v(t){return l(t)&&t.every(i)}function g(t){return l(t)&&t.every(a)}function y(t){return g(t)&&t.length>0}return t.r(e),t.d(e,{isArray:()=>l,isEmptyArray:()=>c,isFiniteNumber:()=>r,isFiniteNumbersArray:()=>m,isNonEmptyArray:()=>f,isNonEmptyNumbersArray:()=>p,isNonEmptyStringsArray:()=>y,isNonFiniteNumber:()=>i,isNonFiniteNumbersArray:()=>v,isNonNegativeFiniteNumber:()=>o,isNonNullObject:()=>h,isNullish:()=>u,isNumber:()=>n,isNumbersArray:()=>d,isPositiveFiniteNumber:()=>s,isString:()=>a,isStringsArray:()=>g}),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:()=>k,isSVGGraphicsElementsArray:()=>S,sendToBack:()=>v,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 v(t){let e=t.parentNode;e&&e.prepend(t)}var g,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 w{constructor(t){g.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,g,t)}toString(){return y(this,g,"f").innerHTML}set(t){y(this,g,"f").innerHTML=t}}g=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 k(t){return t instanceof SVGGraphicsElement}b=new WeakMap;var N=n(854);function S(t){return(0,N.isArray)(t)&&t.every(k)}})(),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,{Ay:()=>d,kv:()=>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(51),n.b),l=o()(i()),c=u()(h);l.push([t.id,`.pMUxgRC_f4NzkoelkDpX {\n appearance: none;\n\n margin: 0px;\n padding: 0px;\n\n border: 2px solid hsl(240, 6.6%, 70.2%);\n border-radius: 2px;\n\n width: 14px;\n height: 14px;\n\n background-color: white;\n\n cursor: pointer;\n}\n\n.pMUxgRC_f4NzkoelkDpX:checked {\n border-color: #2b2b2f;\n\n background-color: #2b2b2f;\n\n background-image: url(${c});\n}\n\n.pMUxgRC_f4NzkoelkDpX:hover {\n transform: scale(1.1);\n transition: transform 0.1s;\n}\n\n.vYZXo8oaWpWVgqUCMYTb:active {\n transform: scale(1);\n transition: transform 0s;\n}\n`,""]);var 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: blue;\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: #a9a9ff;\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},924:(t,e,n)=>{"use strict";n.d(e,{Ay:()=>v,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: 29px;\n\n display: flex;\n flex-direction: column;\n}\n\n.VFDUY2z_WgJp1fVc8TCw {\n margin: 10px 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: black;\n\n user-select: none;\n -webkit-user-select: none;\n\n pointer-events: none;\n}\n\n.GZP6NKFkjkjlFVlDU6AZ {\n margin-top: 18px;\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: black;\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: 23px;\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: black;\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 v=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: black;\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}},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=document.baseURI||self.location.href,n.nc=void 0;var r={};return(()=>{"use strict";n.r(r),n.d(r,{EditingForm:()=>nc});var t={};n.r(t),n.d(t,{cx:()=>Ie,cy:()=>Re,height:()=>ze,rx:()=>Oe,ry:()=>je,width:()=>Be,x:()=>De,y:()=>Pe});var e={};n.r(e),n.d(e,{from:()=>He,to:()=>Ve});var i={};n.r(i),n.d(i,{MorphArray:()=>Ze,height:()=>en,width:()=>tn,x:()=>Je,y:()=>Ke});var s={};n.r(s),n.d(s,{array:()=>An,clear:()=>Ln,move:()=>Wn,plot:()=>On,size:()=>jn});var o={};n.r(o),n.d(o,{amove:()=>ur,ax:()=>or,ay:()=>ar,build:()=>hr,center:()=>sr,cx:()=>rr,cy:()=>ir,length:()=>Kn,move:()=>nr,plain:()=>Jn,x:()=>tr,y:()=>er});var a={};n.r(a),n.d(a,{dmove:()=>mr,dx:()=>vr,dy:()=>gr,height:()=>yr,move:()=>wr,size:()=>br,width:()=>xr,x:()=>_r,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),v=n(540),g=n.n(v),y=n(113),w=n.n(y),b=n(420),x={};x.styleTagTransform=w(),x.setAttributes=m(),x.insert=d().bind(null,"head"),x.domAPI=c(),x.insertStyleElement=g(),h()(b.Ay,x),b.Ay&&b.Ay.locals&&b.Ay.locals;var _=n(633),k={};k.styleTagTransform=w(),k.setAttributes=m(),k.insert=d().bind(null,"head"),k.domAPI=c(),k.insertStyleElement=g(),h()(_.Ay,k),_.Ay&&_.Ay.locals&&_.Ay.locals;var N=n(584),S={};S.styleTagTransform=w(),S.setAttributes=m(),S.insert=d().bind(null,"head"),S.domAPI=c(),S.insertStyleElement=g(),h()(N.Ay,S),N.Ay&&N.Ay.locals&&N.Ay.locals;var E,M=function(t,e,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!r:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(t):r?r.value:e.get(t)};class T{constructor(t,e){this.domNode=document.createElement("div"),this.caret=new C,E.set(this,document.createElement("p")),this.domNode.classList.add(N.kY),!e||(this.domNode.onclick=e),this.caret.domNode.style.marginRight="6px",this.caret.domNode.style.pointerEvents="auto",this.domNode.append(this.caret.domNode),M(this,E,"f").classList.add(N.Qq),!t||(this.textContent=t),this.domNode.append(M(this,E,"f"))}get textContent(){return M(this,E,"f").textContent}set textContent(t){M(this,E,"f").textContent=t}}E=new WeakMap;class C{constructor(){this.domNode=document.createElementNS("http://www.w3.org/2000/svg","svg"),this.domNode.classList.add(N.OW),this.domNode.setAttribute("viewBox","0 0 6 10"),this.domNode.setAttribute("width","6"),this.domNode.setAttribute("height","10"),this.domNode.innerHTML='\n <path\n d="M 1 1 L 5 5 L 1 9"\n stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"\n fill="none"\n ></path>\n '}pointRight(){this.domNode.classList.remove(N.Z7)}pointDown(){this.domNode.classList.add(N.Z7)}}var A=n(887),L={};L.styleTagTransform=w(),L.setAttributes=m(),L.insert=d().bind(null,"head"),L.domAPI=c(),L.insertStyleElement=g(),h()(A.Ay,L),A.Ay&&A.Ay.locals&&A.Ay.locals;var W,O=n(704),j=function(t,e,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!r:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(t):r?r.value:e.get(t)};class D{constructor(t,e){this.domNode=document.createElement("div"),W.set(this,document.createElement("p")),this.tooltip=new O.Tooltip(""),!e||(this.domNode.onclick=e),this.domNode.classList.add(A.lI),j(this,W,"f").classList.add(A.Qq),j(this,W,"f").textContent=null!=t?t:"",this.domNode.append(j(this,W,"f")),this.tooltip.owner=this.domNode}get textContent(){return j(this,W,"f").textContent}set textContent(t){j(this,W,"f").textContent=t}disable(){this.domNode.classList.add(A.r9)}enable(){this.domNode.classList.remove(A.r9)}}W=new WeakMap;var P=n(419),I={};I.styleTagTransform=w(),I.setAttributes=m(),I.insert=d().bind(null,"head"),I.domAPI=c(),I.insertStyleElement=g(),h()(P.A,I),P.A&&P.A.locals&&P.A.locals;var R,B;class z{constructor(t){R.add(this),this.props=t,this.domNode=document.createElement("input"),this.domNode.type="text",this.domNode.classList.add(P.P),this.domNode.addEventListener("blur",(()=>function(t,e,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!r:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(t):r?r.value:e.get(t)}(this,R,"m",B).call(this))),this.domNode.addEventListener("keydown",(t=>{"enter"==t.key.toLowerCase()&&this.domNode.blur()}))}}R=new WeakSet,B=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=g(),h()(F.Ay,q),F.Ay&&F.Ay.locals&&F.Ay.locals;var U,H,V=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},G=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),H.set(this,void 0),this.domNode.classList.add(F.ZZ),V(this,U,e,"f"),V(this,H,document.createElement("a"),"f"),G(this,H,"f").textContent=t,G(this,H,"f").target="_blank",G(this,H,"f").rel="noopener noreferrer",G(this,H,"f").style.marginLeft="8px",this.domNode.append(e,G(this,H,"f"))}get infoLink(){return G(this,H,"f").href}set infoLink(t){G(this,H,"f").href=t,t?G(this,H,"f").classList.add(F.o3):G(this,H,"f").classList.remove(F.o3)}}U=new WeakMap,H=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=g(),h()(Z.Ay,J),Z.Ay&&Z.Ay.locals&&Z.Ay.locals;class K{constructor(){this.domNode=document.createElement("input"),this.domNode.type="checkbox",this.domNode.classList.add(Z.kv)}}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=g(),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 vt(t){return t.charAt(0).toUpperCase()+t.slice(1)}function gt(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 yt(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 wt=new Set(["desc","metadata","title"]),bt=t=>wt.has(t.nodeName),xt=(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"))},_t="http://www.w3.org/2000/svg",kt="http://www.w3.org/2000/xmlns/",Nt="http://www.w3.org/1999/xlink",St={window:"undefined"==typeof window?null:window,document:"undefined"==typeof document?null:document};class Et{}const Mt={},Tt="___SYMBOL___ROOT___";function Ct(t,e=_t){return St.document.createElementNS(e,t)}function At(t,e=!1){if(t instanceof Et)return t;if("object"==typeof t)return Ot(t);if(null==t)return new Mt[Tt];if("string"==typeof t&&"<"!==t.charAt(0))return Ot(St.document.querySelector(t));const n=e?St.document.createElement("div"):Ct("svg");return n.innerHTML=t,t=Ot(n.firstChild),n.removeChild(n.firstChild),t}function Lt(t,e){return e&&(e instanceof St.window.Node||e.ownerDocument&&e instanceof e.ownerDocument.defaultView.Node)?e:Ct(t)}function Wt(t){if(!t)return null;if(t.instance instanceof Et)return t.instance;if("#document-fragment"===t.nodeName)return new Mt.Fragment(t);let e=vt(t.nodeName||"Dom");return"LinearGradient"===e||"RadialGradient"===e?e="Gradient":Mt[e]||(e="Dom"),new Mt[e](t)}let Ot=Wt;function jt(t,e=t.name,n=!1){return Mt[e]=t,n&&(Mt[Tt]=t),dt(Object.getOwnPropertyNames(t.prototype)),t}let Dt=1e3;function Pt(t){return"Svgjs"+vt(t)+Dt++}function It(t){for(let e=t.children.length-1;e>=0;e--)It(t.children[e]);return t.id?(t.id=Pt(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 Bt(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=At(t)).remove();const e=this.position();return this.parent().add(t,e),this},after:function(t){(t=At(t)).remove();const e=this.position();return this.parent().add(t,e+1),this},insertBefore:function(t){return(t=At(t)).before(this),this},insertAfter:function(t){return(t=At(t)).after(this),this}});const zt=/^([+-]?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?)([a-z%]*)$/i,Ft=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i,qt=/rgb\((\d+),(\d+),(\d+)\)/,Ut=/(#[a-z_][a-z0-9\-_]*)/i,Ht=/\)\s*,?\s*/,Vt=/\s/g,Gt=/^#[a-f0-9]{3}$|^#[a-f0-9]{6}$/i,Xt=/^rgb\(/,Yt=/^(\s+)?$/,$t=/^[+-]?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,Qt=/\.(jpg|jpeg|png|gif|svg)(\?[^=]+.*)?/i,Zt=/[\s,]+/,Jt=/[MLHVCSQTAZ]/i;function Kt(t){const e=Math.round(t),n=Math.max(0,Math.min(255,e)).toString(16);return 1===n.length?"0"+n:n}function te(t,e){for(let n=e.length;n--;)if(null==t[e[n]])return!1;return!0}function ee(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(Zt)},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]||Yt.test(t[e])?"":t[e])}return 2===arguments.length&&this.node.style.setProperty(t,null==e||Yt.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){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}}),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 ne{constructor(...t){this.init(...t)}static isColor(t){return t&&(t instanceof ne||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 ne(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 ne(t,o,a)}if("pastel"===t){const t=8*n()+86,e=17*n()+9,r=360*n();return new ne(t,e,r,"lch")}if("dark"===t){const t=10+10*n(),e=50*n()+86,r=360*n();return new ne(t,e,r,"lch")}if("rgb"===t){const t=255*n(),e=255*n(),r=255*n();return new ne(t,e,r)}if("lab"===t){const t=100*n(),e=256*n()-128,r=256*n()-128;return new ne(t,e,r,"lab")}if("grey"===t){const t=255*n();return new ne(t,t,t)}throw new Error("Unsupported random color mode")}static test(t){return"string"==typeof t&&(Gt.test(t)||Xt.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 ne(0,0,0,1,"cmyk"):new ne((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 ne(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=te(t,"rgb")?{_a:t.r,_b:t.g,_c:t.b,_d:0,space:"rgb"}:te(t,"xyz")?{_a:t.x,_b:t.y,_c:t.z,_d:0,space:"xyz"}:te(t,"hsl")?{_a:t.h,_b:t.s,_c:t.l,_d:0,space:"hsl"}:te(t,"lab")?{_a:t.l,_b:t.a,_c:t.b,_d:0,space:"lab"}:te(t,"lch")?{_a:t.l,_b:t.c,_c:t.h,_d:0,space:"lch"}:te(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(Xt.test(t)){const e=t.replace(Vt,""),[n,r,i]=qt.exec(e).slice(1,4).map((t=>parseInt(t)));Object.assign(this,{_a:n,_b:r,_c:i,_d:0,space:"rgb"})}else{if(!Gt.test(t))throw Error("Unsupported string format, can't construct Color");{const e=t=>parseInt(t,16),[,n,r,i]=Ft.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 ne(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 ne(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 ne(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 ne(n,n,n);const r=n<.5?n*(1+e):n+e-n*e,i=2*n-r,s=255*ee(i,r,t+1/3),o=255*ee(i,r,t),a=255*ee(i,r,t-1/3);return new ne(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 ne(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(Kt);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 ne(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 re{constructor(...t){this.init(...t)}clone(){return new re(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){se.isMatrixLike(t)||(t=new se(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 ie(t,e,n){return Math.abs(e-t)<(n||1e-6)}class se{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 re(t.origin||t.around||t.ox||t.originX,t.oy||t.originY),c=l.x,f=l.y,d=new re(t.position||t.px||t.positionX||NaN,t.py||t.positionY||NaN),p=d.x,m=d.y,v=new re(t.translate||t.tx||t.translateX,t.ty||t.translateY),g=v.x,y=v.y,w=new re(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:g,ty:y,ox:c,oy:f,px:p,py:m}}static fromArray(t){return{a:t[0],b:t[1],c:t[2],d:t[3],e:t[4],f:t[5]}}static isMatrixLike(t){return null!=t.a||null!=t.b||null!=t.c||null!=t.d||null!=t.e||null!=t.f}static matrixMultiply(t,e,n){const r=t.a*e.a+t.c*e.b,i=t.b*e.a+t.d*e.b,s=t.a*e.c+t.c*e.d,o=t.b*e.c+t.d*e.d,a=t.e+t.a*e.e+t.c*e.f,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 se(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,v=i*l/(m*n-r)||s*l/(m*r+n);return{scaleX:l,scaleY:v,shear:m,rotate:f,translateX:o-t+t*d*l+e*(m*d*l-p*v),translateY:a-e+t*p*l+e*(m*p*l+d*v),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 se(t);return ie(this.a,e.a)&&ie(this.b,e.b)&&ie(this.c,e.c)&&ie(this.d,e.d)&&ie(this.e,e.e)&&ie(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=se.fromArray([1,0,0,1,0,0]);return t=t instanceof Te?t.matrixify():"string"==typeof t?se.fromArray(t.split(Zt).map(parseFloat)):Array.isArray(t)?se.fromArray(t):"object"==typeof t&&se.isMatrixLike(t)?t:"object"==typeof t?(new se).transform(t):6===arguments.length?se.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 se?t:new se(t);return se.matrixMultiply(e,this,this)}multiply(t){return this.clone().multiplyO(t)}multiplyO(t){const e=t instanceof se?t:new se(t);return se.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(se.isMatrixLike(t))return new se(t).multiplyO(this);const e=se.formatTransforms(t),{x:n,y:r}=new re(e.ox,e.oy).transform(this),i=(new se).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 re(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 oe(){if(!oe.nodes){const t=At().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;oe.nodes={svg:t,path:e}}if(!oe.nodes.svg.node.parentNode){const t=St.document.body||St.document.documentElement;oe.nodes.svg.addTo(t)}return oe.nodes}function ae(t){return!(t.width||t.height||t.x||t.y)}jt(se,"Matrix");class ue{constructor(...t){this.init(...t)}addOffset(){return this.x+=St.window.pageXOffset,this.y+=St.window.pageYOffset,new ue(this)}init(t){return t="string"==typeof t?t.split(Zt).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 ae(this)}merge(t){const e=Math.min(this.x,t.x),n=Math.min(this.y,t.y),r=Math.max(this.x+this.width,t.x+t.width)-e,i=Math.max(this.y+this.height,t.y+t.height)-n;return new ue(e,n,r,i)}toArray(){return[this.x,this.y,this.width,this.height]}toString(){return this.x+" "+this.y+" "+this.width+" "+this.height}transform(t){t instanceof se||(t=new se(t));let e=1/0,n=-1/0,r=1/0,i=-1/0;return[new re(this.x,this.y),new re(this.x2,this.y),new re(this.x,this.y2),new re(this.x2,this.y2)].forEach((function(s){s=s.transform(t),e=Math.min(e,s.x),n=Math.max(n,s.x),r=Math.min(r,s.y),i=Math.max(i,s.y)})),new ue(e,r,n-e,i-r)}}function he(t,e,n){let r;try{if(r=e(t.node),ae(r)&&(i=t.node)!==St.document&&!(St.document.documentElement.contains||function(t){for(;t.parentNode;)t=t.parentNode;return t===St.document}).call(St.document.documentElement,i))throw new Error("Element not in the dom")}catch(e){r=n(t)}var i;return r}ct({viewbox:{viewbox(t,e,n,r){return null==t?new ue(this.attr("viewBox")):this.attr("viewBox",new ue(t,e,n,r))},zoom(t,e){let{width:n,height:r}=this.attr(["width","height"]);if((n||r)&&"string"!=typeof n&&"string"!=typeof r||(n=this.node.clientWidth,r=this.node.clientHeight),!n||!r)throw new Error("Impossible to get absolute width and height. Please provide an absolute width and height attribute on the zooming element");const i=this.viewbox(),s=n/i.width,o=r/i.height,a=Math.min(s,o);if(null==t)return a;let u=a/t;u===1/0&&(u=Number.MAX_SAFE_INTEGER/100),e=e||new re(n/2/s+i.x,r/2/o+i.y);const h=new ue(i).transform(new se({scale:u,origin:e}));return this.viewbox(h)}}}),jt(ue,"Box");class le extends Array{constructor(t=[],...e){if(super(t,...e),"number"==typeof t)return this;this.length=0,this.push(...t)}}const ce=le;Rt([le],{each(t,...e){return"function"==typeof t?this.map(((e,n,r)=>t.call(e,e,n,r))):this.map((n=>n[t](...e)))},toArray(){return Array.prototype.concat.apply([],this)}});const fe=["toArray","constructor","each"];function de(t,e){return new ce(pt((e||St.document).querySelectorAll(t),(function(t){return Wt(t)})))}le.extend=function(t){t=t.reduce(((t,e)=>(fe.includes(e)||"_"===e[0]||(e in Array.prototype&&(t["$"+e]=Array.prototype[e]),t[e]=function(...t){return this.each(e,...t)}),t)),{}),Rt([le],t)};let pe=0;const me={};function ve(t){let e=t.getEventHolder();return e===St.window&&(e=me),e.events||(e.events={}),e.events}function ge(t){return t.getEventTarget()}function ye(t,e,n,r,i){const s=n.bind(r||t),o=At(t),a=ve(o),u=ge(o);e=Array.isArray(e)?e:e.split(Zt),n._svgjsListenerId||(n._svgjsListenerId=++pe),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 we(t,e,n,r){const i=At(t),s=ve(i),o=ge(i);("function"!=typeof n||(n=n._svgjsListenerId))&&(e=Array.isArray(e)?e:(e||"").split(Zt)).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])we(o,[e,a].join("."),h);delete s[e][a]}}else if(a)for(t in s)for(u in s[t])a===u&&we(o,[t,a].join("."));else if(e){if(s[e]){for(u in s[e])we(o,[e,u].join("."));delete s[e]}}else{for(t in s)we(o,t);!function(t){let e=t.getEventHolder();e===St.window&&(e=me),e.events&&(e.events={})}(i)}}))}class be extends Et{addEventListener(){}dispatch(t,e,n){return function(t,e,n,r){const i=ge(t);return e instanceof St.window.Event||(e=new St.window.CustomEvent(e,{detail:n,cancelable:!0,...r})),i.dispatchEvent(e),e}(this,t,e,n)}dispatchEvent(t){const e=this.getEventHolder().events;if(!e)return!0;const n=e[t.type];for(const e in n)for(const r in n[e])n[e][r](t);return!t.defaultPrevented}fire(t,e,n){return this.dispatch(t,e,n),this}getEventHolder(){return this}getEventTarget(){return this}off(t,e,n){return we(this,t,e,n),this}on(t,e,n,r){return ye(this,t,e,n,r),this}removeEventListener(){}}function xe(){}jt(be,"EventTarget");const _e={"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(Zt).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 Ne{constructor(...t){this.init(...t)}convert(t){return new Ne(this.value,t)}divide(t){return t=new Ne(t),new Ne(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(zt))&&(this.value=parseFloat(e[1]),"%"===e[5]?this.value/=100:"s"===e[5]&&(this.value*=1e3),this.unit=e[5]):t instanceof Ne&&(this.value=t.valueOf(),this.unit=t.unit),this}minus(t){return t=new Ne(t),new Ne(this-t,this.unit||t.unit)}plus(t){return t=new Ne(t),new Ne(this+t,this.unit||t.unit)}times(t){return t=new Ne(t),new Ne(this*t,this.unit||t.unit)}toArray(){return[this.value,this.unit]}toJSON(){return this.toString()}toString(){return("%"===this.unit?~~(1e8*this.value)/1e6:"s"===this.unit?this.value/1e3:this.value)+this.unit}valueOf(){return this.value}}const Se=new Set(["fill","stroke","color","bgcolor","stop-color","flood-color","lighting-color"]),Ee=[];class Me extends be{constructor(t,e){super(),this.node=t,this.type=t.nodeName,e&&t!==e&&this.attr(e)}add(t,e){return(t=At(t)).removeNamespace&&this.node instanceof St.window.SVGElement&&t.removeNamespace(),null==e?this.node.appendChild(t.node):t.node!==this.node.childNodes[e]&&this.node.insertBefore(t.node,this.node.childNodes[e]),this}addTo(t,e){return At(t).put(this,e)}children(){return new ce(pt(this.node.children,(function(t){return Wt(t)})))}clear(){for(;this.node.hasChildNodes();)this.node.removeChild(this.node.lastChild);return this}clone(t=!0,e=!0){this.writeDataToDom();let n=this.node.cloneNode(t);return e&&(n=It(n)),new this.constructor(n)}each(t,e){const n=this.children();let r,i;for(r=0,i=n.length;r<i;r++)t.apply(n[r],[r,n]),e&&n[r].each(t,e);return this}element(t,e){return this.put(new Me(Ct(t),e))}first(){return Wt(this.node.firstChild)}get(t){return Wt(this.node.childNodes[t])}getEventHolder(){return this.node}getEventTarget(){return this.node}has(t){return this.index(t)>=0}html(t,e){return this.xml(t,e,"http://www.w3.org/1999/xhtml")}id(t){return void 0!==t||this.node.id||(this.node.id=Pt(this.type)),this.attr("id",t)}index(t){return[].slice.call(this.node.childNodes).indexOf(t.node)}last(){return Wt(this.node.lastChild)}matches(t){const e=this.node,n=e.matches||e.matchesSelector||e.msMatchesSelector||e.mozMatchesSelector||e.webkitMatchesSelector||e.oMatchesSelector||null;return n&&n.call(e,t)}parent(t){let e=this;if(!e.node.parentNode)return null;if(e=Wt(e.node.parentNode),!t)return e;do{if("string"==typeof t?e.matches(t):e instanceof t)return e}while(e=Wt(e.node.parentNode));return e}put(t,e){return t=At(t),this.add(t,e),t}putIn(t,e){return At(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=At(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,_t)}toString(){return this.id()}words(t){return this.node.textContent=t,this}wrap(t){const e=this.parent();if(!e)return this.addTo(t);const n=e.index(this);return e.put(t,n).put(this)}writeDataToDom(){return this.each((function(){this.writeDataToDom()})),this}xml(t,e,n){if("boolean"==typeof t&&(n=e,e=t,t=null),null==t||"function"==typeof t){e=null==e||e,this.writeDataToDom();let n=this;if(null!=t){if(n=Wt(n.node.cloneNode(!0)),e){const e=t(n);if(n=e||n,!1===e)return""}n.each((function(){const e=t(this),n=e||this;!1===e?this.remove():e&&this!==n&&this.replace(n)}),!0)}return e?n.node.outerHTML:n.node.innerHTML}e=null!=e&&e;const r=Ct("wrapper",n),i=St.document.createDocumentFragment();r.innerHTML=t;for(let t=r.children.length;t--;)i.appendChild(r.firstElementChild);const s=this.parent();return e?this.replace(i)&&s:this.add(i)}}Rt(Me,{attr:function(t,e,n){if(null==t){t={},e=this.node.attributes;for(const n of e)t[n.nodeName]=$t.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))?_e[t]:$t.test(e)?parseFloat(e):e;"number"==typeof(e=Ee.reduce(((e,n)=>n(t,e,this)),e))?e=new Ne(e):Se.has(t)&&ne.isColor(e)?e=new ne(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 de(t,this.node)},findOne:function(t){return Wt(this.node.querySelector(t))}}),jt(Me,"Dom");class Te extends Me{constructor(t,e){super(t,e),this.dom={},this.node.instance=this,(t.hasAttribute("data-svgjs")||t.hasAttribute("svgjs:data"))&&this.setData(JSON.parse(t.getAttribute("data-svgjs"))??JSON.parse(t.getAttribute("svgjs:data"))??{})}center(t,e){return this.cx(t).cy(e)}cx(t){return null==t?this.x()+this.width()/2:this.x(t-this.width()/2)}cy(t){return null==t?this.y()+this.height()/2:this.y(t-this.height()/2)}defs(){const t=this.root();return t&&t.defs()}dmove(t,e){return this.dx(t).dy(e)}dx(t=0){return this.x(new Ne(t).plus(this.x()))}dy(t=0){return this.y(new Ne(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=At(t));const n=new ce;let r=this;for(;(r=r.parent())&&r.node!==St.document&&"#document-fragment"!==r.nodeName&&(n.push(r),e||r.node!==t.node)&&(!e||!r.matches(t));)if(r.node===this.root().node)return null;return n}reference(t){if(!(t=this.attr(t)))return null;const e=(t+"").match(Ut);return e?At(e[1]):null}root(){const t=this.parent(Mt[Tt]);return t&&t.root()}setData(t){return this.dom=t,this}size(t,e){const n=gt(this,t,e);return this.width(new Ne(n.width)).height(new Ne(n.height))}width(t){return this.attr("width",t)}writeDataToDom(){return xt(this,this.dom),super.writeDataToDom()}x(t){return this.attr("x",t)}y(t){return this.attr("y",t)}}Rt(Te,{bbox:function(){const t=he(this,(t=>t.getBBox()),(t=>{try{const e=t.clone().addTo(oe().svg).show(),n=e.node.getBBox();return e.remove(),n}catch(e){throw new Error(`Getting bbox of element "${t.node.nodeName}" is not possible: ${e.toString()}`)}}));return new ue(t)},rbox:function(t){const e=he(this,(t=>t.getBoundingClientRect()),(t=>{throw new Error(`Getting rbox of element "${t.node.nodeName}" is not possible`)})),n=new ue(e);return t?n.transform(t.screenCTM().inverseO()):n.addOffset()},inside:function(t,e){const n=this.bbox();return t>n.x&&e>n.y&&t<n.x+n.width&&e<n.y+n.height},point:function(t,e){return new re(t,e).transformO(this.screenCTM().inverseO())},ctm:function(){return new se(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 se(e)}return new se(this.node.getScreenCTM())}catch(t){return console.warn(`Cannot get CTM from SVG node ${this.node.nodeName}. Is the element rendered?`),new se}}}),jt(Te,"Element");const Ce={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 ne||ne.isRgb(e)||e instanceof Te)this.attr(t,e);else for(n=Ce[t].length-1;n>=0;n--)null!=e[Ce[t][n]]&&this.attr(Ce.prefix(t,Ce[t][n]),e[Ce[t][n]]);return this},ct(["Element","Runner"],e)})),ct(["Element","Runner"],{matrix:function(t,e,n,r,i,s){return null==t?new se(this):this.attr("transform",new se(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 Ne(t)):this.rx(t).ry(e)}}),ct("Path",{length:function(){return this.node.getTotalLength()},pointAt:function(t){return new re(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(Ht).slice(0,-1).map((function(t){const e=t.trim().split("(");return[e[0],e[1].split(Zt).map((function(t){return parseFloat(t)}))]})).reverse().reduce((function(t,e){return"matrix"===e[0]?t.lmultiply(se.fromArray(e[1])):t[e[0]].apply(t,e[1])}),new se)},toParent:function(t,e){if(this===t)return this;if(bt(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 se(this).decompose();return null==t?e:e[t]}se.isMatrixLike(t)||(t={...t,origin:yt(t,this)});const n=new se(!0===e?this:e||!1).transform(t);return this.attr("transform",n)}});class Ae extends Te{flatten(){return this.each((function(){if(this instanceof Ae)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()}}jt(Ae,"Container");class Le extends Ae{constructor(t,e=t){super(Lt("defs",t),e)}flatten(){return this}ungroup(){return this}}jt(Le,"Defs");class We extends Te{}function Oe(t){return this.attr("rx",t)}function je(t){return this.attr("ry",t)}function De(t){return null==t?this.cx()-this.rx():this.cx(t+this.rx())}function Pe(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 Be(t){return null==t?2*this.rx():this.rx(new Ne(t).divide(2))}function ze(t){return null==t?2*this.ry():this.ry(new Ne(t).divide(2))}jt(We,"Shape");class Fe extends We{constructor(t,e=t){super(Lt("ellipse",t),e)}size(t,e){const n=gt(this,t,e);return this.rx(new Ne(n.width).divide(2)).ry(new Ne(n.height).divide(2))}}Rt(Fe,t),ct("Container",{ellipse:Bt((function(t=0,e=t){return this.put(new Fe).size(t,e).move(0,0)}))}),jt(Fe,"Ellipse");class qe extends Me{constructor(t=St.document.createDocumentFragment()){super(t)}xml(t,e,n){if("boolean"==typeof t&&(n=e,e=t,t=null),null==t||"function"==typeof t){const t=new Me(Ct("wrapper",n));return t.add(this.node.cloneNode(!0)),t.xml(!1,n)}return super.xml(t,!1,n)}}jt(qe,"Fragment");const Ue=qe;function He(t,e){return"radialGradient"===(this._element||this).type?this.attr({fx:new Ne(t),fy:new Ne(e)}):this.attr({x1:new Ne(t),y1:new Ne(e)})}function Ve(t,e){return"radialGradient"===(this._element||this).type?this.attr({cx:new Ne(t),cy:new Ne(e)}):this.attr({x2:new Ne(t),y2:new Ne(e)})}class Ge extends Ae{constructor(t,e){super(Lt(t+"Gradient","string"==typeof t?null:t),e)}attr(t,e,n){return"transform"===t&&(t="gradientTransform"),super.attr(t,e,n)}bbox(){return new ue}targets(){return de("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(Ge,e),ct({Container:{gradient(...t){return this.defs().gradient(...t)}},Defs:{gradient:Bt((function(t,e){return this.put(new Ge(t)).update(e)}))}}),jt(Ge,"Gradient");class Xe extends Ae{constructor(t,e=t){super(Lt("pattern",t),e)}attr(t,e,n){return"transform"===t&&(t="patternTransform"),super.attr(t,e,n)}bbox(){return new ue}targets(){return de("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:Bt((function(t,e,n){return this.put(new Xe).update(n).attr({x:0,y:0,width:t,height:e,patternUnits:"userSpaceOnUse"})}))}}),jt(Xe,"Pattern");class Ye extends We{constructor(t,e=t){super(Lt("image",t),e)}load(t,e){if(!t)return this;const n=new St.window.Image;return ye(n,"load",(function(t){const r=this.parent(Xe);0===this.width()&&0===this.height()&&this.size(n.width,n.height),r instanceof Xe&&0===r.width()&&0===r.height()&&r.size(this.width(),this.height()),"function"==typeof e&&e.call(this,t)}),this),ye(n,"load error",(function(){we(n)})),this.attr("href",n.src=t,Nt)}}var $e;$e=function(t,e,n){return"fill"!==t&&"stroke"!==t||Qt.test(e)&&(e=n.root().defs().image(e)),e instanceof Ye&&(e=n.root().defs().pattern(0,0,(t=>{t.add(e)}))),e},Ee.push($e),ct({Container:{image:Bt((function(t,e){return this.put(new Ye).size(0,0).load(t,e)}))}}),jt(Ye,"Image");class Qe extends ke{bbox(){let t=-1/0,e=-1/0,n=1/0,r=1/0;return this.forEach((function(i){t=Math.max(i[0],t),e=Math.max(i[1],e),n=Math.min(i[0],n),r=Math.min(i[1],r)})),new ue(n,r,t-n,e-r)}move(t,e){const n=this.bbox();if(t-=n.x,e-=n.y,!isNaN(t)&&!isNaN(e))for(let n=this.length-1;n>=0;n--)this[n]=[this[n][0]+t,this[n][1]+e];return this}parse(t=[0,0]){const e=[];(t=t instanceof Array?Array.prototype.concat.apply([],t):t.trim().split(Zt).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){se.isMatrixLike(t)||(t=new se(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 Ze=Qe;function Je(t){return null==t?this.bbox().x:this.move(t,this.bbox().y)}function Ke(t){return null==t?this.bbox().y:this.move(this.bbox().x,t)}function tn(t){const e=this.bbox();return null==t?e.width:this.size(t,e.height)}function en(t){const e=this.bbox();return null==t?e.height:this.size(e.width,t)}class nn extends We{constructor(t,e=t){super(Lt("line",t),e)}array(){return new Qe([[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 Qe(t).toLine(),this.attr(t))}size(t,e){const n=gt(this,t,e);return this.attr(this.array().size(n.width,n.height).toLine())}}Rt(nn,i),ct({Container:{line:Bt((function(...t){return nn.prototype.plot.apply(this.put(new nn),null!=t[0]?t:[0,0,0,0])}))}}),jt(nn,"Line");class rn extends Ae{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 sn(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:Bt((function(t,e,n){return this.put(new rn).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 rn?arguments[1]:this.defs().marker(e,n,r),this.attr(i,t)}}}),jt(rn,"Marker");const on={"-":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 an{done(){return!1}}class un extends an{constructor(t=">"){super(),this.ease=on[t]||t}step(t,e,n){return"number"!=typeof t?n<1?t:e:t+(e-t)*this.ease(n)}}class hn extends an{constructor(t){super(),this.stepper=t}done(t){return t.done}step(t,e,n,r){return this.stepper(t,e,n,r)}}function ln(){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 hn{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:sn("_duration",ln),overshoot:sn("_overshoot",ln)}),Rt(class extends hn{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:sn("_windup"),p:sn("P"),i:sn("I"),d:sn("D")});const cn={M:2,L:2,H:1,V:1,C:6,S:4,Q:4,T:2,A:7,Z:0},fn={M:function(t,e,n){return e.x=n.x=t[0],e.y=n.y=t[1],["M",e.x,e.y]},L:function(t,e){return e.x=t[0],e.y=t[1],["L",t[0],t[1]]},H:function(t,e){return e.x=t[0],["H",t[0]]},V:function(t,e){return e.y=t[0],["V",t[0]]},C:function(t,e){return e.x=t[4],e.y=t[5],["C",t[0],t[1],t[2],t[3],t[4],t[5]]},S:function(t,e){return e.x=t[2],e.y=t[3],["S",t[0],t[1],t[2],t[3]]},Q:function(t,e){return e.x=t[2],e.y=t[3],["Q",t[0],t[1],t[2],t[3]]},T:function(t,e){return e.x=t[0],e.y=t[1],["T",t[0],t[1]]},Z:function(t,e,n){return e.x=n.x,e.y=n.y,["Z"]},A:function(t,e){return e.x=t[5],e.y=t[6],["A",t[0],t[1],t[2],t[3],t[4],t[5],t[6]]}},dn="mlhvqtcsaz".split("");for(let t=0,e=dn.length;t<e;++t)fn[dn[t]]=function(t){return function(e,n,r){if("H"===t)e[0]=e[0]+n.x;else if("V"===t)e[0]=e[0]+n.y;else if("A"===t)e[5]=e[5]+n.x,e[6]=e[6]+n.y;else for(let t=0,r=e.length;t<r;++t)e[t]=e[t]+(t%2?n.y:n.x);return fn[t](e,n,r)}}(dn[t].toUpperCase());function pn(t){return t.segment.length&&t.segment.length-1===cn[t.segment[0].toUpperCase()]}function mn(t,e){t.inNumber&&vn(t,!1);const n=Jt.test(e);if(n)t.segment=[e];else{const e=t.lastCommand,n=e.toLowerCase(),r=e===n;t.segment=["m"===n?r?"l":"L":e]}return t.inSegment=!0,t.lastCommand=t.segment[0],n}function vn(t,e){if(!t.inNumber)throw new Error("Parser Error");t.number&&t.segment.push(parseFloat(t.number)),t.inNumber=e,t.number="",t.pointSeen=!1,t.hasExponent=!1,pn(t)&&gn(t)}function gn(t){t.inSegment=!1,t.absolute&&(t.segment=function(t){const e=t.segment[0];return fn[e](t.segment.slice(1),t.p,t.p0)}(t)),t.segments.push(t.segment)}function yn(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 wn(t){return"E"===t.lastToken.toUpperCase()}const bn=new Set([" ",",","\t","\n","\r","\f"]);class xn extends ke{bbox(){return oe().path.setAttribute("d",this.toString()),new ue(oe.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 re,p:new re};for(;i.lastToken=r,r=t.charAt(n++);)if(i.inSegment||!mn(i,r))if("."!==r)if(isNaN(parseInt(r)))if(bn.has(r))i.inNumber&&vn(i,!1);else if("-"!==r&&"+"!==r)if("E"!==r.toUpperCase()){if(Jt.test(r)){if(i.inNumber)vn(i,!1);else{if(!pn(i))throw new Error("parser Error");gn(i)}--n}}else i.number+=r,i.hasExponent=!0;else{if(i.inNumber&&!wn(i)){vn(i,!1),--n;continue}i.number+=r,i.inNumber=!0}else{if("0"===i.number||yn(i)){i.inNumber=!0,i.number=r,vn(i,!0);continue}i.inNumber=!0,i.number+=r}else{if(i.pointSeen||i.hasExponent){vn(i,!1),--n;continue}i.inNumber=!0,i.pointSeen=!0,i.number+=r}return i.inNumber&&vn(i,!1),i.inSegment&&pn(i)&&gn(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 _n=t=>{const e=typeof t;return"number"===e?Ne:"string"===e?ne.isColor(t)?ne:Zt.test(t)?Jt.test(t)?xn:ke:zt.test(t)?Ne:Nn:Tn.indexOf(t.constructor)>-1?t.constructor:Array.isArray(t)?ke:"object"===e?Mn:Nn};class kn{constructor(t){this._stepper=t||new un("-"),this._from=null,this._to=null,this._type=null,this._context=null,this._morphObj=null}at(t){return this._morphObj.morph(this._from,this._to,t,this._stepper,this._context)}done(){return this._context.map(this._stepper.done).reduce((function(t,e){return t&&e}),!0)}from(t){return null==t?this._from:(this._from=this._set(t),this)}stepper(t){return null==t?this._stepper:(this._stepper=t,this)}to(t){return null==t?this._to:(this._to=this._set(t),this)}type(t){return null==t?this._type:(this._type=t,this)}_set(t){this._type||this.type(_n(t));let e=new this._type(t);return this._type===ne&&(e=this._to?e[this._to[4]]():this._from?e[this._from[4]]():e),this._type===Mn&&(e=this._to?e.align(this._to):this._from?e.align(this._from):e),e=e.toConsumable(),this._morphObj=this._morphObj||new this._type,this._context=this._context||Array.apply(null,Array(e.length)).map(Object).map((function(t){return t.done=!0,t})),e}}class Nn{constructor(...t){this.init(...t)}init(t){return t=Array.isArray(t)?t[0]:t,this.value=t,this}toArray(){return[this.value]}valueOf(){return this.value}}class Sn{constructor(...t){this.init(...t)}init(t){return Array.isArray(t)&&(t={scaleX:t[0],scaleY:t[1],shear:t[2],rotate:t[3],translateX:t[4],translateY:t[5],originX:t[6],originY:t[7]}),Object.assign(this,Sn.defaults,t),this}toArray(){const t=this;return[t.scaleX,t.scaleY,t.shear,t.rotate,t.translateX,t.translateY,t.originX,t.originY]}}Sn.defaults={scaleX:1,scaleY:1,shear:0,rotate:0,translateX:0,translateY:0,originX:0,originY:0};const En=(t,e)=>t[0]<e[0]?-1:t[0]>e[0]?1:0;class Mn{constructor(...t){this.init(...t)}align(t){const e=this.values;for(let n=0,r=e.length;n<r;++n){if(e[n+1]===t[n+1]){if(e[n+1]===ne&&t[n+7]!==e[n+7]){const e=t[n+7],r=new ne(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=_n(t[n]),i=new r(t[n]).toArray();e.push([n,r,i.length,...i])}return e.sort(En),this.values=e.reduce(((t,e)=>t.concat(e)),[]),this}toArray(){return this.values}valueOf(){const t={},e=this.values;for(;e.length;){const n=e.shift(),r=e.shift(),i=e.shift(),s=e.splice(0,i);t[n]=new r(s)}return t}}const Tn=[Nn,Sn,Mn];class Cn extends We{constructor(t,e=t){super(Lt("path",t),e)}array(){return this._array||(this._array=new xn(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 xn(t))}size(t,e){const n=gt(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 An(){return this._array||(this._array=new Qe(this.attr("points")))}function Ln(){return delete this._array,this}function Wn(t,e){return this.attr("points",this.array().move(t,e))}function On(t){return null==t?this.array():this.clear().attr("points","string"==typeof t?t:this._array=new Qe(t))}function jn(t,e){const n=gt(this,t,e);return this.attr("points",this.array().size(n.width,n.height))}Cn.prototype.MorphArray=xn,ct({Container:{path:Bt((function(t){return this.put(new Cn).plot(t||new xn)}))}}),jt(Cn,"Path");class Dn extends We{constructor(t,e=t){super(Lt("polygon",t),e)}}ct({Container:{polygon:Bt((function(t){return this.put(new Dn).plot(t||new Qe)}))}}),Rt(Dn,i),Rt(Dn,s),jt(Dn,"Polygon");class Pn extends We{constructor(t,e=t){super(Lt("polyline",t),e)}}ct({Container:{polyline:Bt((function(t){return this.put(new Pn).plot(t||new Qe)}))}}),Rt(Pn,i),Rt(Pn,s),jt(Pn,"Polyline");class In extends We{constructor(t,e=t){super(Lt("rect",t),e)}}Rt(In,{rx:Oe,ry:je}),ct({Container:{rect:Bt((function(t,e){return this.put(new In).size(t,e)}))}}),jt(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 Bn={nextDraw:null,frames:new Rn,timeouts:new Rn,immediates:new Rn,timer:()=>St.window.performance||St.window.Date,transforms:[],frame(t){const e=Bn.frames.push({run:t});return null===Bn.nextDraw&&(Bn.nextDraw=St.window.requestAnimationFrame(Bn._draw)),e},timeout(t,e){e=e||0;const n=Bn.timer().now()+e,r=Bn.timeouts.push({run:t,time:n});return null===Bn.nextDraw&&(Bn.nextDraw=St.window.requestAnimationFrame(Bn._draw)),r},immediate(t){const e=Bn.immediates.push(t);return null===Bn.nextDraw&&(Bn.nextDraw=St.window.requestAnimationFrame(Bn._draw)),e},cancelFrame(t){null!=t&&Bn.frames.remove(t)},clearTimeout(t){null!=t&&Bn.timeouts.remove(t)},cancelImmediate(t){null!=t&&Bn.immediates.remove(t)},_draw(t){let e=null;const n=Bn.timeouts.last();for(;(e=Bn.timeouts.shift())&&(t>=e.time?e.run():Bn.timeouts.push(e),e!==n););let r=null;const i=Bn.frames.last();for(;r!==i&&(r=Bn.frames.shift());)r.run(t);let s=null;for(;s=Bn.immediates.shift();)s();Bn.nextDraw=Bn.timeouts.first()||Bn.frames.first()?St.window.requestAnimationFrame(Bn._draw):null}},zn=Bn,Fn=function(t){const e=t.start,n=t.runner.duration();return{start:e,duration:n,end:e+n,runner:t.runner}},qn=function(){const t=St.window;return(t.performance||t.Date).now()};class Un extends be{constructor(t=qn){super(),this._timeSource=t,this.terminate()}active(){return!!this._nextFrame}finish(){return this.time(this.getEndTimeOfTimeline()+1),this.pause()}getEndTime(){const t=this.getLastRunnerInfo(),e=t?t.runner.duration():0;return(t?t.start:this._time)+e}getEndTimeOfTimeline(){const t=this._runners.map((t=>t.start+t.runner.duration()));return Math.max(0,...t)}getLastRunnerInfo(){return this.getRunnerInfoById(this._lastRunnerId)}getRunnerInfoById(t){return this._runners[this._runnerIds.indexOf(t)]||null}pause(){return this._paused=!0,this._continue()}persist(t){return null==t?this._persist:(this._persist=t,this)}play(){return this._paused=!1,this.updateTime()._continue()}reverse(t){const e=this.speed();if(null==t)return this.speed(-e);const n=Math.abs(e);return this.speed(t?-n:n)}schedule(t,e,n){if(null==t)return this._runners.map(Fn);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 zn.cancelFrame(this._nextFrame),this._nextFrame=null,t?this._stepImmediate():(this._paused||(this._nextFrame=zn.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 Un,this._timeline):(this._timeline=t,this)}}});class Hn extends be{constructor(t){super(),this.id=Hn.id++,t="function"==typeof(t=null==t?400:t)?new hn(t):t,this._element=null,this._timeline=null,this.done=!1,this._queue=[],this._duration="number"==typeof t&&t,this._isDeclarative=t instanceof hn,this._stepper=this._isDeclarative?t:new un,this._history={},this.enabled=!0,this._time=0,this._lastTime=0,this._reseted=!0,this.transforms=new se,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 an||(e=t.delay??e,n=t.when??n,i=t.swing||i,r=t.times??r,s=t.wait??s,t=t.duration??400),{duration:t,delay:e,swing:i,times:r,wait:s,when:n}}active(t){return null==t?this.enabled:(this.enabled=t,this)}addTransform(t){return this.transforms.lmultiplyO(t),this}after(t){return this.on("finished",t)}animate(t,e,n){const r=Hn.sanitise(t,e,n),i=new Hn(r.duration);return this._timeline&&i.timeline(this._timeline),this._element&&i.element(this._element),i.loop(r).schedule(r.delay,r.when)}clearTransform(){return this.transforms=new se,this}clearTransformsFromQueue(){this.done&&this._timeline&&this._timeline._runnerIds.includes(this.id)||(this._queue=this._queue.filter((t=>!t.isTransform)))}delay(t){return this.animate(0,t)}duration(){return this._times*(this._wait+this._duration)-this._wait}during(t){return this.queue(null,t)}ease(t){return this._stepper=new un(t),this}element(t){return null==t?this._element:(this._element=t,t._prepareRunner(),this)}finish(){return this.step(1/0)}loop(t,e,n){return"object"==typeof t&&(e=t.swing,n=t.wait,t=t.times),this._times=t||1/0,this._swing=e||!1,this._wait=n||0,!0===this._times&&(this._times=1/0),this}loops(t){const e=this._duration+this._wait;if(null==t){const t=Math.floor(this._time/e),n=(this._time-t*e)/this._duration;return Math.min(t+n,this._times)}const n=t%1,r=e*Math.floor(t)+this._duration*n;return this.time(r)}persist(t){return null==t?this._persist:(this._persist=t,this)}position(t){const e=this._time,n=this._duration,r=this._wait,i=this._times,s=this._swing,o=this._reverse;let a;if(null==t){const t=function(t){const e=s*Math.floor(t%(2*(r+n))/(r+n)),i=e&&!o||!e&&o,a=Math.pow(-1,i)*(t%(r+n))/n+i;return Math.max(Math.min(a,1),0)},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||xe,runner:e||xe,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 Un||(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 se,a=this._run(o?t:e),this.fire("step",this)),this.done=this.done||a&&o,s&&this.fire("finished",this),this}time(t){if(null==t)return this._time;const e=t-this._time;return this.step(e),this}timeline(t){return void 0===t?this._timeline:(this._timeline=t,this)}unschedule(){const t=this.timeline();return t&&t.unschedule(this),this}_initialise(t){if(t||this._isDeclarative)for(let e=0,n=this._queue.length;e<n;++e){const n=this._queue[e],r=this._isDeclarative||!n.initialised&&t;t=!n.finished,r&&t&&(n.initialiser.call(this),n.initialised=!0)}}_rememberMorpher(t,e){if(this._history[t]={morpher:e,caller:this._queue[this._queue.length-1]},this._isDeclarative){const t=this.timeline();t&&t.play()}}_run(t){let e=!0;for(let n=0,r=this._queue.length;n<r;++n){const r=this._queue[n],i=r.runner.call(this,t);r.finished=r.finished||!0===i,e=e&&r.finished}return e}_tryRetarget(t,e,n){if(this._history[t]){if(!this._history[t].caller.initialised){const e=this._queue.indexOf(this._history[t].caller);return this._queue.splice(e,1),!1}this._history[t].caller.retarget?this._history[t].caller.retarget.call(this,e,n):this._history[t].morpher.to(e),this._history[t].caller.finished=!1;const r=this.timeline();return r&&r.play(),!0}return!1}}Hn.id=0;class Vn{constructor(t=new se,e=-1,n=!0){this.transforms=t,this.id=e,this.done=n}clearTransformsFromQueue(){}}Rt([Hn,Vn],{mergeWith(t){return new Vn(t.transforms.lmultiply(this.transforms),t.id)}});const Gn=(t,e)=>t.lmultiplyO(e),Xn=t=>t.transforms;function Yn(){const t=this._transformationRunners.runners.map(Xn).reduce(Gn,new se);this.transform(t),this._transformationRunners.merge(),1===this._transformationRunners.length()&&(this._frameId=null)}class $n{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 Vn).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=Hn.sanitise(t,e,n),i=this.timeline();return new Hn(r.duration).loop(r).element(this).timeline(i.play()).schedule(r.delay,r.when)},delay(t,e){return this.animate(0,t,e)},_clearTransformRunnersBefore(t){this._transformationRunners.clearBefore(t.id)},_currentTransform(t){return this._transformationRunners.runners.filter((e=>e.id<=t.id)).map(Xn).reduce(Gn,new se)},_addRunner(t){this._transformationRunners.add(t),zn.cancelImmediate(this._frameId),this._frameId=zn.immediate(Yn.bind(this))},_prepareRunner(){null==this._frameId&&(this._transformationRunners=(new $n).add(new Vn(new se(this))))}}}),Rt(Hn,{attr(t,e){return this.styleAttr("attr",t,e)},css(t,e){return this.styleAttr("css",t,e)},styleAttr(t,e,n){if("string"==typeof e)return this.styleAttr(t,{[e]:n});let r=e;if(this._tryRetarget(t,r))return this;let i=new kn(this._stepper).to(r),s=Object.keys(r);return this.queue((function(){i=i.from(this.element()[t](s))}),(function(e){return this.element()[t](i.at(e).valueOf()),i.done()}),(function(e){const n=Object.keys(e),o=(a=s,n.filter((t=>!a.includes(t))));var a;if(o.length){const e=this.element()[t](o),n=new Mn(i.from()).valueOf();Object.assign(n,e),i.from(n)}const u=new Mn(i.to()).valueOf();Object.assign(u,e),i.to(u),s=n,r=e})),this._rememberMorpher(t,i),this},zoom(t,e){if(this._tryRetarget("zoom",t,e))return this;let n=new kn(this._stepper).to(new Ne(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=se.isMatrixLike(t);n=null!=t.affine?t.affine:null!=n?n:!r;const i=new kn(this._stepper).type(n?Sn:se);let s,o,a,u,h;return this.queue((function(){o=o||this.element(),s=s||yt(t,o),h=new se(e?void 0:o),o._addRunner(this),e||o._clearTransformRunnersBefore(this)}),(function(l){e||this.clearTransform();const{x:c,y:f}=new re(s).transform(o._currentTransform(this));let d=new se({...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 se(m),this.addTransform(a),o._addRunner(this),i.done()}),(function(e){(e.origin||"center").toString()!==(t.origin||"center").toString()&&(s=yt(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 Ne(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 Ne(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 Ne(e))},cx(t){return this._queueNumber("cx",t)},cy(t){return this._queueNumber("cy",t)},move(t,e){return this.x(t).y(e)},amove(t,e){return this.ax(t).ay(e)},center(t,e){return this.cx(t).cy(e)},size(t,e){let n;return t&&e||(n=this._element.bbox()),t||(t=n.width/n.height*e),e||(e=n.height/n.width*t),this.width(t).height(e)},width(t){return this._queueNumber("width",t)},height(t){return this._queueNumber("height",t)},plot(t,e,n,r){if(4===arguments.length)return this.plot([t,e,n,r]);if(this._tryRetarget("plot",t))return this;const i=new kn(this._stepper).type(this._element.MorphArray).to(t);return this.queue((function(){i.from(this._element.array())}),(function(t){return this._element.plot(i.at(t)),i.done()})),this._rememberMorpher("plot",i),this},leading(t){return this._queueNumber("leading",t)},viewbox(t,e,n,r){return this._queueObject("viewbox",new ue(t,e,n,r))},update(t){return"object"!=typeof t?this.update({offset:arguments[0],color:arguments[1],opacity:arguments[2]}):(null!=t.opacity&&this.attr("stop-opacity",t.opacity),null!=t.color&&this.attr("stop-color",t.color),null!=t.offset&&this.attr("offset",t.offset),this)}}),Rt(Hn,{rx:Oe,ry:je,from:He,to:Ve}),jt(Hn,"Runner");class Qn extends Ae{constructor(t,e=t){super(Lt("svg",t),e),this.namespace()}defs(){return this.isRoot()?Wt(this.node.querySelector("defs"))||this.put(new Le):this.root().defs()}isRoot(){return!this.node.parentNode||!(this.node.parentNode instanceof St.window.SVGElement)&&"#document-fragment"!==this.node.parentNode.nodeName}namespace(){return this.isRoot()?this.attr({xmlns:_t,version:"1.1"}).attr("xmlns:xlink",Nt,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:Bt((function(){return this.put(new Qn)}))}}),jt(Qn,"Svg",!0);class Zn extends Ae{constructor(t,e=t){super(Lt("symbol",t),e)}}function Jn(t){return!1===this._build&&this.clear(),this.node.appendChild(St.document.createTextNode(t)),this}function Kn(){return this.node.getComputedTextLength()}function tr(t,e=this.bbox()){return null==t?e.x:this.attr("x",this.attr("x")+t-e.x)}function er(t,e=this.bbox()){return null==t?e.y:this.attr("y",this.attr("y")+t-e.y)}function nr(t,e,n=this.bbox()){return this.x(t,n).y(e,n)}function rr(t,e=this.bbox()){return null==t?e.cx:this.attr("x",this.attr("x")+t-e.cx)}function ir(t,e=this.bbox()){return null==t?e.cy:this.attr("y",this.attr("y")+t-e.cy)}function sr(t,e,n=this.bbox()){return this.cx(t,n).cy(e,n)}function or(t){return this.attr("x",t)}function ar(t){return this.attr("y",t)}function ur(t,e){return this.ax(t).ay(e)}function hr(t){return this._build=!!t,this}ct({Container:{symbol:Bt((function(){return this.put(new Zn)}))}}),jt(Zn,"Symbol");class lr extends We{constructor(t,e=t){super(Lt("text",t),e),this.dom.leading=this.dom.leading??new Ne(1.3),this._rebuild=!0,this._build=!1}leading(t){return null==t?this.dom.leading:(this.dom.leading=new Ne(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(bt(this.node))return;const i=St.window.getComputedStyle(this.node).getPropertyValue("font-size"),s=n*new Ne(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 Ne(t.leading||1.3),this}writeDataToDom(){return xt(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||bt(e[r])?0===r&&(n=r+1):(r!==n&&3!==e[r].nodeType&&!0===Wt(e[r]).dom.newLined&&(t+="\n"),t+=e[r].textContent);return t}if(this.clear().build(!0),"function"==typeof t)t.call(this,this);else for(let e=0,n=(t=(t+"").split("\n")).length;e<n;e++)this.newLine(t[e]);return this.build(!1).rebuild()}}Rt(lr,o),ct({Container:{text:Bt((function(t=""){return this.put(new lr).text(t)})),plain:Bt((function(t=""){return this.put(new lr).plain(t)}))}}),jt(lr,"Text");class cr extends We{constructor(t,e=t){super(Lt("tspan",t),e),this._build=!1}dx(t){return this.attr("dx",t)}dy(t){return this.attr("dy",t)}newLine(){this.dom.newLined=!0;const t=this.parent();if(!(t instanceof lr))return this;const e=t.index(this),n=St.window.getComputedStyle(this.node).getPropertyValue("font-size"),r=t.dom.leading*new Ne(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(cr,o),ct({Tspan:{tspan:Bt((function(t=""){const e=new cr;return this._build||this.clear(),this.put(e).text(t)}))},Text:{newLine:function(t=""){return this.tspan(t).newLine()}}}),jt(cr,"Tspan");class fr extends We{constructor(t,e=t){super(Lt("circle",t),e)}radius(t){return this.attr("r",t)}rx(t){return this.attr("r",t)}ry(t){return this.rx(t)}size(t){return this.radius(new Ne(t).divide(2))}}Rt(fr,{x:De,y:Pe,cx:Ie,cy:Re,width:Be,height:ze}),ct({Container:{circle:Bt((function(t=0){return this.put(new fr).size(t).move(0,0)}))}}),jt(fr,"Circle");class dr extends Ae{constructor(t,e=t){super(Lt("clipPath",t),e)}remove(){return this.targets().forEach((function(t){t.unclip()})),super.remove()}targets(){return de("svg [clip-path*="+this.id()+"]")}}ct({Container:{clip:Bt((function(){return this.defs().put(new dr)}))},Element:{clipper(){return this.reference("clip-path")},clipWith(t){const e=t instanceof dr?t:this.parent().clip().add(t);return this.attr("clip-path","url(#"+e.id()+")")},unclip(){return this.attr("clip-path",null)}}}),jt(dr,"ClipPath");class pr extends Te{constructor(t,e=t){super(Lt("foreignObject",t),e)}}function mr(t,e){return this.children().forEach((n=>{let r;try{r=n.node instanceof St.window.SVGSVGElement?new ue(n.attr(["x","y","width","height"])):n.bbox()}catch(t){return}const i=new se(n),s=i.translate(t,e).transform(i.inverse()),o=new re(r.x,r.y).transform(s);n.move(o.x,o.y)})),this}function vr(t){return this.dmove(t,0)}function gr(t){return this.dmove(0,t)}function yr(t,e=this.bbox()){return null==t?e.height:this.size(e.width,t,e)}function wr(t=0,e=0,n=this.bbox()){const r=t-n.x,i=e-n.y;return this.dmove(r,i)}function br(t,e,n=this.bbox()){const r=gt(this,t,e,n),i=r.width/n.width,s=r.height/n.height;return this.children().forEach((t=>{const e=new re(n).transform(new se(t).inverse());t.scale(i,s,e.x,e.y)})),this}function xr(t,e=this.bbox()){return null==t?e.width:this.size(t,e.height,e)}function _r(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:Bt((function(t,e){return this.put(new pr).size(t,e)}))}}),jt(pr,"ForeignObject");class Nr extends Ae{constructor(t,e=t){super(Lt("g",t),e)}}Rt(Nr,a),ct({Container:{group:Bt((function(){return this.put(new Nr)}))}}),jt(Nr,"G");class Sr extends Ae{constructor(t,e=t){super(Lt("a",t),e)}target(t){return this.attr("target",t)}to(t){return this.attr("href",t,Nt)}}Rt(Sr,a),ct({Container:{link:Bt((function(t){return this.put(new Sr).to(t)}))},Element:{unlink(){const t=this.linker();if(!t)return this;const e=t.parent();if(!e)return this.remove();const n=e.index(t);return e.add(this,n),t.remove(),this},linkTo(t){let e=this.linker();return e||(e=new Sr,this.wrap(e)),"function"==typeof t?t.call(e,e):e.to(t),this},linker(){const t=this.parent();return t&&"a"===t.node.nodeName.toLowerCase()?t:null}}}),jt(Sr,"A");class Er extends Ae{constructor(t,e=t){super(Lt("mask",t),e)}remove(){return this.targets().forEach((function(t){t.unmask()})),super.remove()}targets(){return de("svg [mask*="+this.id()+"]")}}ct({Container:{mask:Bt((function(){return this.defs().put(new Er)}))},Element:{masker(){return this.reference("mask")},maskWith(t){const e=t instanceof Er?t:this.parent().mask().add(t);return this.attr("mask","url(#"+e.id()+")")},unmask(){return this.attr("mask",null)}}}),jt(Er,"Mask");class Mr extends Te{constructor(t,e=t){super(Lt("stop",t),e)}update(t){return("number"==typeof t||t instanceof Ne)&&(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 Ne(t.offset)),this}}ct({Gradient:{stop:function(t,e,n){return this.put(new Mr).update(t,e,n)}}}),jt(Mr,"Stop");class Tr extends Te{constructor(t,e=t){super(Lt("style",t),e)}addText(t=""){return this.node.textContent+=t,this}font(t,e,n={}){return this.rule("@font-face",{fontFamily:t,src:e,...n})}rule(t,e){return this.addText(function(t,e){if(!t)return"";if(!e)return t;let n=t+"{";for(const t in e)n+=t.replace(/([A-Z])/g,(function(t,e){return"-"+e.toLowerCase()}))+":"+e[t]+";";return n+="}",n}(t,e))}}ct("Dom",{style(t,e){return this.put(new Tr).rule(t,e)},fontface(t,e,n){return this.put(new Tr).font(t,e,n)}}),jt(Tr,"Style");class Cr extends lr{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:Bt((function(t,e){return t instanceof lr||(t=this.text(t)),t.path(e)}))},Text:{path:Bt((function(t,e=!0){const n=new Cr;let r;if(t instanceof Cn||(t=this.defs().path(t)),n.attr("href","#"+t,Nt),e)for(;r=this.node.firstChild;)n.node.appendChild(r);return this.put(n)})),textPath(){return this.findOne("textPath")}},Path:{text:Bt((function(t){return t instanceof lr||(t=(new lr).addTo(this.parent()).text(t)),t.path(this)})),targets(){return de("svg textPath").filter((t=>(t.attr("href")||"").includes(this.id())))}}}),Cr.prototype.MorphArray=xn,jt(Cr,"TextPath");class Ar extends We{constructor(t,e=t){super(Lt("use",t),e)}use(t,e){return this.attr("href",(e||"")+"#"+t,Nt)}}ct({Container:{use:Bt((function(t,e){return this.put(new Ar).use(t,e)}))}}),jt(Ar,"Use"),Rt([Qn,Zn,Ye,Xe,rn],ft("viewbox")),Rt([nn,Pn,Dn,Cn],ft("marker")),Rt(lr,ft("Text")),Rt(Cn,ft("Path")),Rt(Le,ft("Defs")),Rt([lr,cr],ft("Tspan")),Rt([In,Fe,Ge,Hn],ft("radius")),Rt(be,ft("EventTarget")),Rt(Me,ft("Dom")),Rt(Te,ft("Element")),Rt(We,ft("Shape")),Rt([Ae,Ue],ft("Container")),Rt(Ge,ft("Gradient")),Rt(Hn,ft("Runner")),ce.extend([...new Set(lt)]),function(t=[]){Tn.push(...[].concat(t))}([Ne,ne,ue,se,ke,Qe,xn,re]),Rt(Tn,{to(t){return(new kn).type(this.constructor).from(this.toArray()).to(t)},fromArray(t){return this.init(t),this},toConsumable(){return this.toArray()},morph(t,e,n,r,i){return this.fromArray(t.map((function(t,s){return r.step(t,e[s],n,i[s],i)})))}});var Lr,Wr,Or,jr,Dr,Pr,Ir,Rr,Br,zr,Fr,qr,Ur,Hr,Vr,Gr,Xr,Yr,$r,Qr,Zr,Jr,Kr,ti,ei,ni,ri,ii,si,oi,ai,ui,hi,li,ci,fi,di,pi,mi,vi,gi,yi,wi,bi,xi,_i,ki,Ni,Si,Ei,Mi,Ti,Ci,Ai,Li,Wi,Oi,ji,Di,Pi,Ii,Ri,Bi,zi,Fi,qi,Ui,Hi,Vi,Gi,Xi,Yi,$i,Qi,Zi,Ji,Ki,ts,es,ns,rs,is,ss,os,as,us,hs,ls,cs,fs,ds,ps,ms,vs,gs,ys,ws,bs=n(169),xs=n(726),_s=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},Ns=function(t,e,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!r:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(t):r?r.value:e.get(t)};class Ss{constructor(t){Lr.add(this),Wr.set(this,void 0),this.domNode=document.createElement("div"),Or.set(this,new Es),jr.set(this,document.createElement("div")),Dr.set(this,void 0),Pr.set(this,void 0),Ir.set(this,document.createElement("div")),Rr.set(this,void 0),Br.set(this,void 0),zr.set(this,void 0),Fr.set(this,void 0),qr.set(this,void 0),Ur.set(this,void 0),Hr.set(this,void 0),Vr.set(this,void 0),Gr.set(this,void 0),Xr.set(this,void 0),Yr.set(this,void 0),$r.set(this,void 0),ks(this,Wr,t,"f"),this.domNode.classList.add(_.lf),Ns(this,Or,"f").domNode.addEventListener("click",(()=>this.domNode.classList.toggle(_.ho))),this.domNode.append(Ns(this,Or,"f").domNode),Ns(this,jr,"f").classList.add(_.Qs),this.domNode.append(Ns(this,jr,"f")),ks(this,Dr,new Ms(t),"f"),Ns(this,jr,"f").append(Ns(this,Dr,"f").domNode),ks(this,Pr,new Ts(t),"f"),Ns(this,jr,"f").append(Ns(this,Pr,"f").domNode),Ns(this,Ir,"f").classList.add(_.eB),Ns(this,jr,"f").append(Ns(this,Ir,"f")),t.selectedBases.addEventListener("change",(()=>{document.body.contains(this.domNode)&&([...t.selectedBases].length>0?Ns(this,Lr,"m",Zr).call(this):Ns(this,Lr,"m",Jr).call(this))})),ks(this,Rr,new Cs(t),"f"),Ns(this,Ir,"f").append(Ns(this,Rr,"f").domNode),ks(this,Br,new As(t),"f"),Ns(this,Ir,"f").append(Ns(this,Br,"f").domNode),ks(this,zr,new Ls(t),"f"),Ns(this,Ir,"f").append(Ns(this,zr,"f").domNode),ks(this,Fr,new Ws(t),"f"),Ns(this,Ir,"f").append(Ns(this,Fr,"f").domNode),ks(this,qr,new Os(t),"f"),Ns(this,Ir,"f").append(Ns(this,qr,"f").domNode),ks(this,Ur,new js(t),"f"),Ns(this,Ir,"f").append(Ns(this,Ur,"f").domNode),ks(this,Hr,new Ds(t),"f"),Ns(this,Ir,"f").append(Ns(this,Hr,"f").domNode),ks(this,Vr,new Ps(t),"f"),Ns(this,Ir,"f").append(Ns(this,Vr,"f").domNode),ks(this,Gr,new Is(t),"f"),Ns(this,Ir,"f").append(Ns(this,Gr,"f").domNode),ks(this,Xr,new zs(t),"f"),Ns(this,Ir,"f").append(Ns(this,Xr,"f").domNode),ks(this,Yr,new Fs(t),"f"),Ns(this,Ir,"f").append(Ns(this,Yr,"f").domNode),ks(this,$r,new qs(t),"f"),Ns(this,Ir,"f").append(Ns(this,$r,"f").domNode)}refresh(){Ns(this,Lr,"a",Qr).forEach((t=>t.refresh())),[...Ns(this,Wr,"f").selectedBases].length>0?Ns(this,Lr,"m",Zr).call(this):Ns(this,Lr,"m",Jr).call(this)}}Wr=new WeakMap,Or=new WeakMap,jr=new WeakMap,Dr=new WeakMap,Pr=new WeakMap,Ir=new WeakMap,Rr=new WeakMap,Br=new WeakMap,zr=new WeakMap,Fr=new WeakMap,qr=new WeakMap,Ur=new WeakMap,Hr=new WeakMap,Vr=new WeakMap,Gr=new WeakMap,Xr=new WeakMap,Yr=new WeakMap,$r=new WeakMap,Lr=new WeakSet,Qr=function(){return[Ns(this,Dr,"f"),Ns(this,Pr,"f"),Ns(this,Rr,"f"),Ns(this,Br,"f"),Ns(this,zr,"f"),Ns(this,Fr,"f"),Ns(this,qr,"f"),Ns(this,Ur,"f"),Ns(this,Hr,"f"),Ns(this,Vr,"f"),Ns(this,Gr,"f"),Ns(this,Xr,"f"),Ns(this,Yr,"f"),Ns(this,$r,"f")]},Zr=function(){Ns(this,Ir,"f").style.display="block"},Jr=function(){Ns(this,Ir,"f").style.display="none"};class Es{constructor(){this.domNode=document.createElement("div"),Kr.set(this,document.createElementNS("http://www.w3.org/2000/svg","svg")),ti.set(this,document.createElement("p")),this.domNode.classList.add(_.wx),Ns(this,Kr,"f").classList.add(_.m9),Ns(this,Kr,"f").setAttribute("viewBox","0 0 6 10"),Ns(this,Kr,"f").setAttribute("width","6"),Ns(this,Kr,"f").setAttribute("height","10"),Ns(this,Kr,"f").innerHTML='\n <path\n d="M 1 1 L 5 5 L 1 9"\n stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"\n fill="none"\n ></path>\n ',this.domNode.append(Ns(this,Kr,"f")),Ns(this,ti,"f").classList.add(_.aW),Ns(this,ti,"f").textContent="Bases",this.domNode.append(Ns(this,ti,"f"))}}Kr=new WeakMap,ti=new WeakMap;class Ms{constructor(t){ei.set(this,void 0),this.domNode=document.createElement("p"),ni.set(this,document.createElement("span")),ri.set(this,document.createElement("span")),ks(this,ei,t,"f"),this.domNode.classList.add(_.IU),Ns(this,ni,"f").style.fontWeight="700",this.domNode.append(Ns(this,ni,"f"),Ns(this,ri,"f")),Ns(this,ei,"f").selectedBases.addEventListener("change",(()=>document.body.contains(this.domNode)?this.refresh():{})),this.refresh()}refresh(){let t=[...Ns(this,ei,"f").selectedBases].length;Ns(this,ni,"f").textContent=`${t}`,Ns(this,ri,"f").textContent=1==t?" base is selected.":" bases are selected."}}ei=new WeakMap,ni=new WeakMap,ri=new WeakMap;class Ts{constructor(t){ii.add(this),si.set(this,void 0),this.domNode=document.createElement("div"),oi.set(this,new T),ai.set(this,document.createElement("div")),ui.set(this,{All:new D("All",(()=>Ns(this,ii,"m",ci).call(this))),None:new D("None",(()=>Ns(this,ii,"m",fi).call(this))),A:new D("A",(()=>Ns(this,ii,"m",di).call(this,"A"))),U:new D("U",(()=>Ns(this,ii,"m",di).call(this,"U"))),G:new D("G",(()=>Ns(this,ii,"m",di).call(this,"G"))),C:new D("C",(()=>Ns(this,ii,"m",di).call(this,"C"))),T:new D("T",(()=>Ns(this,ii,"m",di).call(this,"T"))),a:new D("a",(()=>Ns(this,ii,"m",di).call(this,"a"))),u:new D("u",(()=>Ns(this,ii,"m",di).call(this,"u"))),g:new D("g",(()=>Ns(this,ii,"m",di).call(this,"g"))),c:new D("c",(()=>Ns(this,ii,"m",di).call(this,"c"))),t:new D("t",(()=>Ns(this,ii,"m",di).call(this,"t"))),Outlined:new D("Outlined",(()=>Ns(this,ii,"m",pi).call(this))),Paired:new D("Paired",(()=>Ns(this,ii,"m",mi).call(this))),Unpaired:new D("Unpaired",(()=>Ns(this,ii,"m",vi).call(this)))}),hi.set(this,void 0),ks(this,si,t,"f"),this.domNode.classList.add(_.vw),Ns(this,oi,"f").textContent="Select:",Ns(this,oi,"f").domNode.addEventListener("click",(()=>Ns(this,ii,"m",li).call(this))),this.domNode.append(Ns(this,oi,"f").domNode);let e=document.createElement("div");_s(e).css({marginTop:"1.5px",display:"flex",flexDirection:"column",gap:"6px"}),this.domNode.append(e);let n=document.createElement("div");_s(n).css({display:"flex",flexDirection:"row",gap:"23px"}),n.append(...["All","None"].map((t=>Ns(this,ui,"f")[t].domNode))),e.append(n),_s(Ns(this,ai,"f")).css({display:"flex",flexDirection:"column",gap:"6px"}),e.append(Ns(this,ai,"f")),Ns(this,ai,"f").style.display="none",Ns(this,oi,"f").caret.pointRight();let r=document.createElement("div");_s(r).css({display:"flex",flexDirection:"row",gap:"17px"}),r.append(...["A","U","G","C","T"].map((t=>Ns(this,ui,"f")[t].domNode))),Ns(this,ai,"f").append(r);let i=document.createElement("div");_s(i).css({display:"flex",flexDirection:"row",gap:"18px"}),i.append(...["a","u","g","c","t"].map((t=>Ns(this,ui,"f")[t].domNode))),Ns(this,ai,"f").append(i),Ns(this,ai,"f").append(Ns(this,ui,"f").Outlined.domNode);let s=document.createElement("div");_s(s).css({display:"flex",flexDirection:"row",gap:"18px"}),s.append(...["Paired","Unpaired"].map((t=>Ns(this,ui,"f")[t].domNode))),Ns(this,ai,"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,hi,new MutationObserver((()=>document.body.contains(this.domNode)?this.refresh():{})),"f"),Ns(this,hi,"f").observe(t.drawing.domNode,{childList:!0,subtree:!0}),this.refresh()}refresh(){let t=[...Ns(this,si,"f").drawing.bases],e=new Set([...Ns(this,si,"f").drawing.secondaryBonds].flatMap((t=>[t.base1,t.base2]))),n=t.filter((t=>!e.has(t))),r=new Set(Ns(this,si,"f").selectedBases),i=[...Ns(this,si,"f").selectedOutlines];0==t.length?(Ns(this,ui,"f").All.disable(),Ns(this,ui,"f").All.tooltip.textContent="There are no bases in the drawing."):r.size==t.length?(Ns(this,ui,"f").All.disable(),Ns(this,ui,"f").All.tooltip.textContent="All bases are already selected."):(Ns(this,ui,"f").All.enable(),Ns(this,ui,"f").All.tooltip.textContent="Select all bases."),0==r.size?(Ns(this,ui,"f").None.disable(),Ns(this,ui,"f").None.tooltip.textContent="No bases are selected."):(Ns(this,ui,"f").None.enable(),Ns(this,ui,"f").None.tooltip.textContent="Deselect all bases."),["A","U","G","C","T","a","u","g","c","t"].forEach((e=>{let n=t.filter((t=>t.textContent==e)),i=Ns(this,ui,"f")[e];0==n.length?(i.disable(),i.tooltip.textContent=`No bases have the letter "${e}".`):n.every((t=>r.has(t)))?(i.disable(),i.tooltip.textContent=`All bases with the letter "${e}" are already selected.`):(i.enable(),i.tooltip.textContent=`Select all bases with the letter "${e}".`)})),0==i.length?(Ns(this,ui,"f").Outlined.disable(),Ns(this,ui,"f").Outlined.tooltip.textContent="No outlines are selected."):i.map((t=>t.owner)).every((t=>r.has(t)))?(Ns(this,ui,"f").Outlined.disable(),Ns(this,ui,"f").Outlined.tooltip.textContent="All bases outlined by the selected outlines are already selected."):(Ns(this,ui,"f").Outlined.enable(),Ns(this,ui,"f").Outlined.tooltip.textContent="Select bases outlined by the selected outlines."),0==e.size?(Ns(this,ui,"f").Paired.disable(),Ns(this,ui,"f").Paired.tooltip.textContent="There are no paired bases in the drawing."):[...e].every((t=>r.has(t)))?(Ns(this,ui,"f").Paired.disable(),Ns(this,ui,"f").Paired.tooltip.textContent="All paired bases are already selected."):(Ns(this,ui,"f").Paired.enable(),Ns(this,ui,"f").Paired.tooltip.textContent="Select all paired bases."),0==n.length?(Ns(this,ui,"f").Unpaired.disable(),Ns(this,ui,"f").Unpaired.tooltip.textContent="There are no unpaired bases in the drawing."):n.every((t=>r.has(t)))?(Ns(this,ui,"f").Unpaired.disable(),Ns(this,ui,"f").Unpaired.tooltip.textContent="All unpaired bases are already selected."):(Ns(this,ui,"f").Unpaired.enable(),Ns(this,ui,"f").Unpaired.tooltip.textContent="Select all unpaired bases.")}}si=new WeakMap,oi=new WeakMap,ai=new WeakMap,ui=new WeakMap,hi=new WeakMap,ii=new WeakSet,li=function(){let t="none"!=Ns(this,ai,"f").style.display;Ns(this,ai,"f").style.display=t?"none":"flex",t?Ns(this,oi,"f").caret.pointRight():Ns(this,oi,"f").caret.pointDown()},ci=function(){Ns(this,si,"f").addToSelected([...Ns(this,si,"f").drawing.bases])},fi=function(){Ns(this,si,"f").removeFromSelected([...Ns(this,si,"f").drawing.bases])},di=function(t){Ns(this,si,"f").addToSelected([...Ns(this,si,"f").drawing.bases].filter((e=>e.domNode.textContent==t)))},pi=function(){Ns(this,si,"f").addToSelected([...Ns(this,si,"f").selectedOutlines].map((t=>t.owner)))},mi=function(){Ns(this,si,"f").addToSelected([...Ns(this,si,"f").drawing.secondaryBonds].flatMap((t=>[t.base1,t.base2])))},vi=function(){let t=new Set([...Ns(this,si,"f").drawing.secondaryBonds].flatMap((t=>[t.base1,t.base2])));Ns(this,si,"f").addToSelected([...Ns(this,si,"f").drawing.bases].filter((e=>!t.has(e))))};class Cs{constructor(t){gi.add(this),yi.set(this,void 0),this.domNode=document.createElement("div"),wi.set(this,document.createElement("p")),bi.set(this,new D),xi.set(this,new D),ks(this,yi,t,"f"),this.domNode.classList.add(_.Te),Ns(this,wi,"f").classList.add(_.QB),Ns(this,wi,"f").textContent="Send to:",this.domNode.append(Ns(this,wi,"f")),Ns(this,bi,"f").domNode.addEventListener("click",(()=>Ns(this,gi,"m",_i).call(this))),Ns(this,bi,"f").textContent="Front",Ns(this,bi,"f").domNode.style.marginLeft="26px",this.domNode.append(Ns(this,bi,"f").domNode),Ns(this,xi,"f").domNode.addEventListener("click",(()=>Ns(this,gi,"m",ki).call(this))),Ns(this,xi,"f").textContent="Back",Ns(this,xi,"f").domNode.style.marginLeft="28px",this.domNode.append(Ns(this,xi,"f").domNode),t.selectedBases.addEventListener("change",(()=>document.body.contains(this.domNode)?this.refresh():{})),this.refresh()}refresh(){Ns(this,gi,"m",Ni).call(this),Ns(this,gi,"m",Si).call(this)}}yi=new WeakMap,wi=new WeakMap,bi=new WeakMap,xi=new WeakMap,gi=new WeakSet,_i=function(){let t=[...Ns(this,yi,"f").selectedBases];0!=t.length?(Ns(this,yi,"f").pushUndoStack(),t.forEach((t=>(0,xs.bringToFront)(t.domNode)))):this.refresh()},ki=function(){let t=[...Ns(this,yi,"f").selectedBases];0!=t.length?(Ns(this,yi,"f").pushUndoStack(),t.forEach((t=>(0,xs.sendToBack)(t.domNode)))):this.refresh()},Ni=function(){0==[...Ns(this,yi,"f").selectedBases].length?(Ns(this,bi,"f").disable(),Ns(this,bi,"f").tooltip.textContent="No bases are selected."):(Ns(this,bi,"f").enable(),Ns(this,bi,"f").tooltip.textContent="Bring the selected bases to the front.")},Si=function(){0==[...Ns(this,yi,"f").selectedBases].length?(Ns(this,xi,"f").disable(),Ns(this,xi,"f").tooltip.textContent="No bases are selected."):(Ns(this,xi,"f").enable(),Ns(this,xi,"f").tooltip.textContent="Send the selected bases to the back.")};class As{constructor(t){Ei.add(this),Mi.set(this,void 0),Ti.set(this,new z({onSubmit:()=>Ns(this,Ei,"m",Ai).call(this)})),Ci.set(this,void 0),ks(this,Mi,t,"f"),ks(this,Ci,new Q("Text Content",Ns(this,Ti,"f").domNode),"f"),Ns(this,Ci,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/API/Node/textContent",this.domNode.style.marginTop="22px",this.domNode.style.alignSelf="start",Ns(this,Mi,"f").selectedBases.addEventListener("change",(()=>document.body.contains(this.domNode)?this.refresh():{})),new MutationObserver((()=>document.body.contains(this.domNode)?this.refresh():{})).observe(Ns(this,Mi,"f").drawing.domNode,{characterData:!0,subtree:!0}),this.refresh()}get domNode(){return Ns(this,Ci,"f").domNode}refresh(){let t=[...Ns(this,Mi,"f").selectedBases];try{Ns(this,Ti,"f").domNode.value=(0,bs.consensusValue)(t.map((t=>{var e;return null!==(e=t.textContent)&&void 0!==e?e:""})))}catch(t){Ns(this,Ti,"f").domNode.value=""}}}Mi=new WeakMap,Ti=new WeakMap,Ci=new WeakMap,Ei=new WeakSet,Ai=function(){var t;let e=null!==(t=Ns(this,Ti,"f").domNode.value)&&void 0!==t?t:"";if(e=e.trim(),!e)return void this.refresh();let n=[...Ns(this,Mi,"f").selectedBases];0==n.length||n.every((t=>t.textContent===e))||(Ns(this,Mi,"f").pushUndoStack(),n.forEach((t=>t.maintainingCenterPoint((()=>t.textContent=e))))),this.refresh()};class Ls{constructor(t){Li.set(this,void 0),Wi.set(this,void 0),Oi.set(this,void 0),ks(this,Li,t,"f"),ks(this,Wi,new Vs(t,"fill"),"f"),ks(this,Oi,new Q("Fill",Ns(this,Wi,"f").domNode),"f"),Ns(this,Oi,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/fill",_s(this.domNode).css({marginTop:"10px",alignSelf:"start"}),this.refresh()}get domNode(){return Ns(this,Oi,"f").domNode}refresh(){Ns(this,Wi,"f").refresh()}}Li=new WeakMap,Wi=new WeakMap,Oi=new WeakMap;class Ws{constructor(t){ji.add(this),Di.set(this,void 0),Pi.set(this,new st),Ii.set(this,void 0),Ri.set(this,void 0),Bi.set(this,void 0),ks(this,Di,t,"f"),Ns(this,Pi,"f").domNode.addEventListener("input",(()=>Ns(this,ji,"m",zi).call(this))),ks(this,Ii,new ut("Fill Color",Ns(this,Pi,"f").domNode),"f"),_s(this.domNode).css({marginTop:"12px",alignSelf:"start"}),Ns(this,Di,"f").selectedBases.addEventListener("change",(()=>ks(this,Ri,void 0,"f"))),Ns(this,Pi,"f").domNode.addEventListener("focus",(()=>ks(this,Bi,Ns(this,Pi,"f").domNode.value,"f"))),Ns(this,Di,"f").selectedBases.addEventListener("change",(()=>document.body.contains(this.domNode)?this.refresh():{})),new MutationObserver((()=>document.body.contains(this.domNode)?this.refresh():{})).observe(Ns(this,Di,"f").drawing.domNode,{attributes:!0,attributeFilter:["fill"],subtree:!0}),this.refresh()}get domNode(){return Ns(this,Ii,"f").domNode}refresh(){let t=[...Ns(this,Di,"f").selectedBases];if(0!=t.length)try{let e=t.map((t=>window.getComputedStyle(t.domNode).fill)).map((t=>new ne(t)));Ns(this,Pi,"f").domNode.value=(0,bs.consensusValue)(e.map((t=>t.toHex().toLowerCase())))}catch(t){Ns(this,Pi,"f").domNode.value="#000000"}else Ns(this,Pi,"f").domNode.value="#000000"}}Di=new WeakMap,Pi=new WeakMap,Ii=new WeakMap,Ri=new WeakMap,Bi=new WeakMap,ji=new WeakSet,zi=function(){if(Ns(this,Pi,"f").domNode.value===Ns(this,Bi,"f"))return;let t=[...Ns(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())===Ns(this,Pi,"f").domNode.value.toLowerCase()}))||((Ns(this,Di,"f").undoStack.isEmpty()||Ns(this,Di,"f").undoStack.peek()!==Ns(this,Ri,"f"))&&(Ns(this,Di,"f").pushUndoStack(),ks(this,Ri,Ns(this,Di,"f").undoStack.peek(),"f")),t.forEach((t=>t.setAttribute("fill",Ns(this,Pi,"f").domNode.value.toLowerCase())))),this.refresh()):this.refresh()};class Os{constructor(t){Fi.set(this,void 0),qi.set(this,void 0),Ui.set(this,void 0),ks(this,Fi,t,"f"),ks(this,qi,new Vs(t,"fill-opacity"),"f"),ks(this,Ui,new Q("Fill Opacity",Ns(this,qi,"f").domNode),"f"),Ns(this,Ui,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/fill-opacity",_s(this.domNode).css({marginTop:"12px",alignSelf:"start"}),this.refresh()}get domNode(){return Ns(this,Ui,"f").domNode}refresh(){Ns(this,qi,"f").refresh()}}Fi=new WeakMap,qi=new WeakMap,Ui=new WeakMap;class js{constructor(t){Hi.set(this,void 0),Vi.set(this,void 0),Gi.set(this,void 0),ks(this,Hi,t,"f"),ks(this,Vi,new Vs(t,"font-family"),"f"),ks(this,Gi,new Q("Font Family",Ns(this,Vi,"f").domNode),"f"),Ns(this,Gi,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/font-family",_s(this.domNode).css({marginTop:"10px",alignSelf:"start"}),this.refresh()}get domNode(){return Ns(this,Gi,"f").domNode}refresh(){Ns(this,Vi,"f").refresh()}}Hi=new WeakMap,Vi=new WeakMap,Gi=new WeakMap;class Ds{constructor(t){Xi.set(this,void 0),Yi.set(this,void 0),$i.set(this,void 0),ks(this,Xi,t,"f"),ks(this,Yi,new Vs(t,"font-size"),"f"),ks(this,$i,new Q("Font Size",Ns(this,Yi,"f").domNode),"f"),Ns(this,$i,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/font-size",_s(this.domNode).css({marginTop:"10px",alignSelf:"start"}),this.refresh()}get domNode(){return Ns(this,$i,"f").domNode}refresh(){Ns(this,Yi,"f").refresh()}}Xi=new WeakMap,Yi=new WeakMap,$i=new WeakMap;class Ps{constructor(t){Qi.set(this,void 0),Zi.set(this,void 0),Ji.set(this,void 0),ks(this,Qi,t,"f"),ks(this,Zi,new Vs(t,"font-weight"),"f"),ks(this,Ji,new Q("Font Weight",Ns(this,Zi,"f").domNode),"f"),Ns(this,Ji,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/font-weight",_s(this.domNode).css({marginTop:"10px",alignSelf:"start"}),this.refresh()}get domNode(){return Ns(this,Ji,"f").domNode}refresh(){Ns(this,Zi,"f").refresh()}}Qi=new WeakMap,Zi=new WeakMap,Ji=new WeakMap;class Is{constructor(t){Ki.add(this),ts.set(this,void 0),es.set(this,new K),ns.set(this,void 0),ks(this,ts,t,"f"),Ns(this,es,"f").domNode.addEventListener("change",(()=>Ns(this,Ki,"m",rs).call(this))),ks(this,ns,new nt("Bold",Ns(this,es,"f").domNode),"f"),_s(this.domNode).css({marginTop:"12px",alignSelf:"start"}),Ns(this,ts,"f").selectedBases.addEventListener("change",(()=>document.body.contains(this.domNode)?this.refresh():{})),new MutationObserver((()=>document.body.contains(this.domNode)?this.refresh():{})).observe(Ns(this,ts,"f").drawing.domNode,{attributes:!0,attributeFilter:["font-weight"],subtree:!0}),this.refresh()}get domNode(){return Ns(this,ns,"f").domNode}refresh(){let t=[...Ns(this,ts,"f").selectedBases];0==t.length?Ns(this,es,"f").domNode.checked=!1:Ns(this,es,"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 Bs(t){return!Rs(t)}ts=new WeakMap,es=new WeakMap,ns=new WeakMap,Ki=new WeakSet,rs=function(){let t=[...Ns(this,ts,"f").selectedBases];0!=t.length?Ns(this,es,"f").domNode.checked&&t.every(Rs)?this.refresh():Ns(this,es,"f").domNode.checked||!t.every(Bs)?(Ns(this,ts,"f").pushUndoStack(),t.forEach((t=>{t.maintainingCenterPoint((()=>{Ns(this,es,"f").domNode.checked&&Bs(t)?t.setAttribute("font-weight","700"):!Ns(this,es,"f").domNode.checked&&Rs(t)&&t.setAttribute("font-weight","400")}))})),this.refresh(),Ns(this,es,"f").domNode.blur()):this.refresh():this.refresh()};class zs{constructor(t){is.set(this,void 0),ss.set(this,void 0),os.set(this,void 0),ks(this,is,t,"f"),ks(this,ss,new Vs(t,"font-style"),"f"),ks(this,os,new Q("Font Style",Ns(this,ss,"f").domNode),"f"),Ns(this,os,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/font-style",_s(this.domNode).css({marginTop:"12px",alignSelf:"start"}),this.refresh()}get domNode(){return Ns(this,os,"f").domNode}refresh(){Ns(this,ss,"f").refresh()}}is=new WeakMap,ss=new WeakMap,os=new WeakMap;class Fs{constructor(t){as.set(this,void 0),us.set(this,void 0),hs.set(this,void 0),ks(this,as,t,"f"),ks(this,us,new Vs(t,"text-decoration"),"f"),ks(this,hs,new Q("Text Decoration",Ns(this,us,"f").domNode),"f"),Ns(this,hs,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/text-decoration",_s(this.domNode).css({marginTop:"10px",alignSelf:"start"}),this.refresh()}get domNode(){return Ns(this,hs,"f").domNode}refresh(){Ns(this,us,"f").refresh()}}as=new WeakMap,us=new WeakMap,hs=new WeakMap;class qs{constructor(t){ls.add(this),cs.set(this,void 0),fs.set(this,new K),ds.set(this,void 0),ks(this,cs,t,"f"),Ns(this,fs,"f").domNode.addEventListener("change",(()=>Ns(this,ls,"m",ps).call(this))),ks(this,ds,new nt("Underlined",Ns(this,fs,"f").domNode),"f"),_s(this.domNode).css({marginTop:"12px",alignSelf:"start"}),Ns(this,cs,"f").selectedBases.addEventListener("change",(()=>document.body.contains(this.domNode)?this.refresh():{})),new MutationObserver((()=>document.body.contains(this.domNode)?this.refresh():{})).observe(Ns(this,cs,"f").drawing.domNode,{attributes:!0,attributeFilter:["text-decoration"],subtree:!0}),this.refresh()}get domNode(){return Ns(this,ds,"f").domNode}refresh(){let t=[...Ns(this,cs,"f").selectedBases];0==t.length?Ns(this,fs,"f").domNode.checked=!1:Ns(this,fs,"f").domNode.checked=t.every(Us)}}function Us(t){let e=t.getAttribute("text-decoration");return null!==e&&e.split(/\s/).map((t=>t.toLowerCase())).includes("underline")}function Hs(t){return!Us(t)}cs=new WeakMap,fs=new WeakMap,ds=new WeakMap,ls=new WeakSet,ps=function(){let t=[...Ns(this,cs,"f").selectedBases];0!=t.length?Ns(this,fs,"f").domNode.checked&&t.every(Us)?this.refresh():Ns(this,fs,"f").domNode.checked||!t.every(Hs)?(Ns(this,cs,"f").pushUndoStack(),t.forEach((t=>{t.maintainingCenterPoint((()=>{Ns(this,fs,"f").domNode.checked&&Hs(t)?t.setAttribute("text-decoration","underline"):!Ns(this,fs,"f").domNode.checked&&Us(t)&&t.setAttribute("text-decoration","")}))})),this.refresh(),Ns(this,fs,"f").domNode.blur()):this.refresh():this.refresh()};class Vs{constructor(t,e){ms.add(this),vs.set(this,void 0),gs.set(this,void 0),ys.set(this,new z({onSubmit:()=>Ns(this,ms,"m",ws).call(this)})),ks(this,vs,t,"f"),ks(this,gs,e,"f"),Ns(this,vs,"f").selectedBases.addEventListener("change",(()=>document.body.contains(this.domNode)?this.refresh():{})),new MutationObserver((()=>document.body.contains(this.domNode)?this.refresh():{})).observe(Ns(this,vs,"f").drawing.domNode,{attributes:!0,subtree:!0}),this.refresh()}get domNode(){return Ns(this,ys,"f").domNode}refresh(){let t=[...Ns(this,vs,"f").selectedBases];try{Ns(this,ys,"f").domNode.value=(0,bs.consensusValue)(t.map((t=>{var e;return null!==(e=t.getAttribute(Ns(this,gs,"f")))&&void 0!==e?e:""})))}catch(t){Ns(this,ys,"f").domNode.value=""}}}vs=new WeakMap,gs=new WeakMap,ys=new WeakMap,ms=new WeakSet,ws=function(){let t=Ns(this,ys,"f").domNode.value,e=[...Ns(this,vs,"f").selectedBases];0==e.length||e.every((e=>e.getAttribute(Ns(this,gs,"f"))===t))||(Ns(this,vs,"f").pushUndoStack(),e.forEach((e=>e.maintainingCenterPoint((()=>e.setAttribute(Ns(this,gs,"f"),t)))))),this.refresh()};var Gs=n(924),Xs={};Xs.styleTagTransform=w(),Xs.setAttributes=m(),Xs.insert=d().bind(null,"head"),Xs.domAPI=c(),Xs.insertStyleElement=g(),h()(Gs.Ay,Xs),Gs.Ay&&Gs.Ay.locals&&Gs.Ay.locals;var Ys=n(723),$s={};$s.styleTagTransform=w(),$s.setAttributes=m(),$s.insert=d().bind(null,"head"),$s.domAPI=c(),$s.insertStyleElement=g(),h()(Ys.Ay,$s),Ys.Ay&&Ys.Ay.locals&&Ys.Ay.locals;var Qs,Zs=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 Js{constructor(t,e){this.domNode=document.createElement("div"),Qs.set(this,document.createElement("p")),this.tooltip=new O.Tooltip(""),this.domNode.classList.add(Ys.kL),Zs(this,Qs,"f").classList.add(Ys.Wu),!t||(this.textContent=t),!e||(this.onClick=e),this.domNode.append(Zs(this,Qs,"f")),this.tooltip.owner=this.domNode}get textContent(){return Zs(this,Qs,"f").textContent}set textContent(t){Zs(this,Qs,"f").textContent=t}get onClick(){return Zs(this,Qs,"f").onclick}set onClick(t){Zs(this,Qs,"f").onclick=t}click(){Zs(this,Qs,"f").click()}disable(){Zs(this,Qs,"f").classList.add(Ys.r9)}enable(){Zs(this,Qs,"f").classList.remove(Ys.r9)}isDisabled(){return Zs(this,Qs,"f").classList.contains(Ys.r9)}isEnabled(){return!this.isDisabled()}}Qs=new WeakMap;var Ks,to,eo,no,ro,io,so,oo,ao,uo,ho,lo,co,fo,po,mo,vo,go,yo,wo,bo,xo,_o,ko,No,So,Eo,Mo,To,Co,Ao,Lo,Wo,Oo,jo,Do,Po,Io,Ro,Bo,zo,Fo,qo,Uo,Ho,Vo,Go,Xo,Yo,$o,Qo,Zo,Jo,Ko,ta,ea,na,ra,ia,sa,oa,aa,ua,ha,la,ca,fa,da,pa,ma,va,ga,ya,wa,ba,xa,_a,ka,Na,Sa,Ea,Ma,Ta,Ca,Aa,La,Wa,Oa,ja,Da,Pa,Ia,Ra,Ba,za,Fa,qa,Ua,Ha,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 Xa{constructor(t){Ks.add(this),to.set(this,void 0),this.domNode=document.createElement("div"),eo.set(this,new T),no.set(this,document.createElement("div")),ro.set(this,void 0),io.set(this,document.createElement("div")),so.set(this,void 0),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),vo.set(this,void 0),go.set(this,void 0),Va(this,to,t,"f"),this.domNode.classList.add(Gs.qM),Ga(this,eo,"f").textContent="Outlines",Ga(this,eo,"f").domNode.addEventListener("click",(()=>this.toggle())),this.domNode.append(Ga(this,eo,"f").domNode),Ga(this,no,"f").classList.add(Gs.Qs),this.domNode.append(Ga(this,no,"f")),Va(this,ro,new Ya(t),"f"),Ga(this,no,"f").append(Ga(this,ro,"f").domNode),Va(this,so,new $a(t),"f"),Ga(this,no,"f").append(Ga(this,so,"f").domNode),Va(this,oo,new Qa(t),"f"),Ga(this,no,"f").append(Ga(this,oo,"f").domNode),Ga(this,io,"f").classList.add(Gs.eB),Ga(this,no,"f").append(Ga(this,io,"f")),t.selectedOutlines.addEventListener("change",(()=>{document.body.contains(this.domNode)&&([...t.selectedOutlines].length>0?Ga(this,Ks,"m",wo).call(this):Ga(this,Ks,"m",bo).call(this))})),Va(this,ao,new Ja(t),"f"),Ga(this,io,"f").append(Ga(this,ao,"f").domNode),Va(this,uo,new Ka(t),"f"),Ga(this,io,"f").append(Ga(this,uo,"f").domNode),Va(this,ho,new tu(t),"f"),Ga(this,io,"f").append(Ga(this,ho,"f").domNode),Va(this,lo,new eu(t),"f"),Ga(this,io,"f").append(Ga(this,lo,"f").domNode),Va(this,co,new nu(t),"f"),Ga(this,io,"f").append(Ga(this,co,"f").domNode),Va(this,fo,new ru(t),"f"),Ga(this,io,"f").append(Ga(this,fo,"f").domNode),Va(this,po,new iu(t),"f"),Ga(this,io,"f").append(Ga(this,po,"f").domNode),Va(this,mo,new su(t),"f"),Ga(this,io,"f").append(Ga(this,mo,"f").domNode),Va(this,vo,new ou(t),"f"),Ga(this,io,"f").append(Ga(this,vo,"f").domNode),Va(this,go,new au(t),"f"),Ga(this,io,"f").append(Ga(this,go,"f").domNode)}isOpen(){return this.domNode.classList.contains(Gs.ho)}toggle(){this.isOpen()?(this.domNode.classList.remove(Gs.ho),Ga(this,eo,"f").caret.pointRight()):(this.domNode.classList.add(Gs.ho),Ga(this,eo,"f").caret.pointDown())}refresh(){Ga(this,Ks,"a",yo).forEach((t=>t.refresh())),[...Ga(this,to,"f").selectedOutlines].length>0?Ga(this,Ks,"m",wo).call(this):Ga(this,Ks,"m",bo).call(this)}}to=new WeakMap,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,vo=new WeakMap,go=new WeakMap,Ks=new WeakSet,yo=function(){return[Ga(this,ro,"f"),Ga(this,so,"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,vo,"f"),Ga(this,go,"f")]},wo=function(){Ga(this,io,"f").style.display="flex"},bo=function(){Ga(this,io,"f").style.display="none"};class Ya{constructor(t){xo.set(this,void 0),this.domNode=document.createElement("p"),_o.set(this,document.createElement("span")),ko.set(this,document.createElement("span")),Va(this,xo,t,"f"),this.domNode.classList.add(Gs.vM),Ga(this,_o,"f").style.fontWeight="700",this.domNode.append(Ga(this,_o,"f"),Ga(this,ko,"f")),Ga(this,xo,"f").selectedOutlines.addEventListener("change",(()=>document.body.contains(this.domNode)?this.refresh():{})),this.refresh()}refresh(){let t=[...Ga(this,xo,"f").selectedOutlines].length;Ga(this,_o,"f").textContent=`${t}`,Ga(this,ko,"f").textContent=1==t?" outline is selected.":" outlines are selected."}}xo=new WeakMap,_o=new WeakMap,ko=new WeakMap;class $a{constructor(t){No.add(this),So.set(this,void 0),this.domNode=document.createElement("div"),Eo.set(this,document.createElement("p")),Mo.set(this,new D),To.set(this,new D),Co.set(this,new D),Ao.set(this,void 0),Va(this,So,t,"f"),this.domNode.classList.add(Gs.VX),Ga(this,Eo,"f").classList.add(Gs.iE),Ga(this,Eo,"f").textContent="Select:",this.domNode.append(Ga(this,Eo,"f")),Ga(this,Mo,"f").domNode.addEventListener("click",(()=>Ga(this,No,"m",Lo).call(this))),Ga(this,Mo,"f").textContent="All",Ga(this,Mo,"f").domNode.style.marginLeft="20px",this.domNode.append(Ga(this,Mo,"f").domNode),Ga(this,To,"f").domNode.addEventListener("click",(()=>Ga(this,No,"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,Co,"f").domNode.addEventListener("click",(()=>Ga(this,No,"m",Oo).call(this))),Ga(this,Co,"f").textContent="None",Ga(this,Co,"f").domNode.style.marginLeft="17px",this.domNode.append(Ga(this,Co,"f").domNode),t.selectedOutlines.addEventListener("change",(()=>document.body.contains(this.domNode)?this.refresh():{})),Va(this,Ao,new MutationObserver((()=>document.body.contains(this.domNode)?this.refresh():{})),"f"),Ga(this,Ao,"f").observe(t.drawing.domNode,{childList:!0,subtree:!0}),this.refresh()}refresh(){Ga(this,No,"m",jo).call(this),Ga(this,No,"m",Do).call(this),Ga(this,No,"m",Po).call(this)}}So=new WeakMap,Eo=new WeakMap,Mo=new WeakMap,To=new WeakMap,Co=new WeakMap,Ao=new WeakMap,No=new WeakSet,Lo=function(){let t=[...Ga(this,So,"f").drawing.outlines];Ga(this,So,"f").addToSelected(t)},Wo=function(){let t=new Set(Ga(this,So,"f").selectedBases),e=[...Ga(this,So,"f").drawing.outlines];Ga(this,So,"f").addToSelected(e.filter((e=>t.has(e.owner))))},Oo=function(){let t=[...Ga(this,So,"f").drawing.outlines];Ga(this,So,"f").removeFromSelected(t)},jo=function(){let t=[...Ga(this,So,"f").drawing.outlines],e=[...Ga(this,So,"f").selectedOutlines];0==t.length?(Ga(this,Mo,"f").disable(),Ga(this,Mo,"f").tooltip.textContent="There are no outlines in the drawing."):e.length==t.length?(Ga(this,Mo,"f").disable(),Ga(this,Mo,"f").tooltip.textContent="All outlines are already selected."):(Ga(this,Mo,"f").enable(),Ga(this,Mo,"f").tooltip.textContent="Select all outlines.")},Do=function(){let t=[...Ga(this,So,"f").drawing.outlines],e=new Set(Ga(this,So,"f").selectedBases),n=t.filter((t=>e.has(t.owner))),r=new Set(Ga(this,So,"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.")},Po=function(){0==[...Ga(this,So,"f").selectedOutlines].length?(Ga(this,Co,"f").disable(),Ga(this,Co,"f").tooltip.textContent="No outlines are selected."):(Ga(this,Co,"f").enable(),Ga(this,Co,"f").tooltip.textContent="Deselect all outlines.")};class Qa{constructor(t){Io.add(this),Ro.set(this,void 0),this.domNode=document.createElement("div"),Bo.set(this,document.createElement("div")),zo.set(this,new Js("Add",(()=>Ga(this,Io,"m",Xo).call(this)))),Fo.set(this,new K),qo.set(this,new nt("Only add missing outlines",Ga(this,Fo,"f").domNode)),Uo.set(this,void 0),Ho.set(this,void 0),Va(this,Ro,t,"f"),this.domNode.style.marginTop="25px",this.domNode.style.display="flex",this.domNode.style.flexDirection="column",Ga(this,Bo,"f").style.display="flex",Ga(this,Bo,"f").style.flexDirection="row",Ga(this,Bo,"f").style.gap="15px",this.domNode.append(Ga(this,Bo,"f")),Va(this,Uo,new Za(t),"f"),Ga(this,Bo,"f").append(Ga(this,zo,"f").domNode,Ga(this,Uo,"f").domNode),Ga(this,Fo,"f").domNode.checked=!0,Ga(this,qo,"f").domNode.style.marginTop="11px",Ga(this,qo,"f").domNode.style.alignSelf="start",this.domNode.append(Ga(this,qo,"f").domNode),t.selectedBases.addEventListener("change",(()=>document.body.contains(this.domNode)?this.refresh():{})),Va(this,Ho,new MutationObserver((()=>document.body.contains(this.domNode)?this.refresh():{})),"f"),Ga(this,Ho,"f").observe(t.drawing.domNode,{childList:!0,subtree:!0}),Ga(this,Fo,"f").domNode.addEventListener("change",(()=>this.refresh())),this.refresh()}refresh(){Ga(this,Io,"m",Go).call(this),Ga(this,Uo,"f").refresh()}}Ro=new WeakMap,Bo=new WeakMap,zo=new WeakMap,Fo=new WeakMap,qo=new WeakMap,Uo=new WeakMap,Ho=new WeakMap,Io=new WeakSet,Vo=function(){return Ga(this,Fo,"f").domNode.checked},Go=function(){let t=[...Ga(this,Ro,"f").selectedBases],e=[...Ga(this,Ro,"f").drawing.outlines],n=new Set(e.map((t=>t.owner))),r=t.filter((t=>!n.has(t)));0==t.length?(Ga(this,zo,"f").disable(),Ga(this,zo,"f").tooltip.textContent="No bases are selected."):Ga(this,Io,"a",Vo)&&0==r.length?(Ga(this,zo,"f").disable(),Ga(this,zo,"f").tooltip.textContent="The selected bases are already outlined."):(Ga(this,zo,"f").enable(),Ga(this,zo,"f").tooltip.textContent="Outline the selected bases.")},Xo=function(){let t=[...Ga(this,Ro,"f").selectedBases];if(0==t.length)return;let e=[...Ga(this,Ro,"f").drawing.outlines],n=new Set(e.map((t=>t.owner))),r=t.filter((t=>!n.has(t))),i=Ga(this,Io,"a",Vo)?r:t;if(0==i.length)return;Ga(this,Ro,"f").pushUndoStack();let s=i.map((t=>Ga(this,Ro,"f").drawing.outline(t)));Ga(this,Ro,"f").addToSelected(s),this.refresh()};class Za{constructor(t){Yo.set(this,void 0),$o.set(this,new Js("Remove",(()=>this.press()))),Va(this,Yo,t,"f"),Ga(this,Yo,"f").selectedOutlines.addEventListener("change",(()=>document.body.contains(this.domNode)?this.refresh():{})),this.refresh()}get domNode(){return Ga(this,$o,"f").domNode}press(){let t=[...Ga(this,Yo,"f").selectedOutlines];0!=t.length?(Ga(this,Yo,"f").pushUndoStack(),t.forEach((t=>t.domNode.remove())),this.refresh()):this.refresh()}refresh(){0==[...Ga(this,Yo,"f").selectedOutlines].length?(Ga(this,$o,"f").disable(),Ga(this,$o,"f").tooltip.textContent="No outlines are selected."):(Ga(this,$o,"f").enable(),Ga(this,$o,"f").tooltip.textContent="Remove the selected outlines from the drawing.")}}Yo=new WeakMap,$o=new WeakMap;class Ja{constructor(t){Qo.add(this),Zo.set(this,void 0),this.domNode=document.createElement("div"),Jo.set(this,document.createElement("p")),Ko.set(this,new D),ta.set(this,new D),Va(this,Zo,t,"f"),this.domNode.classList.add(Gs.Te),Ga(this,Jo,"f").classList.add(Gs.QB),Ga(this,Jo,"f").textContent="Send to:",this.domNode.append(Ga(this,Jo,"f")),Ga(this,Ko,"f").domNode.addEventListener("click",(()=>Ga(this,Qo,"m",ea).call(this))),Ga(this,Ko,"f").textContent="Front",Ga(this,Ko,"f").domNode.style.marginLeft="24px",this.domNode.append(Ga(this,Ko,"f").domNode),Ga(this,ta,"f").domNode.addEventListener("click",(()=>Ga(this,Qo,"m",na).call(this))),Ga(this,ta,"f").textContent="Back",Ga(this,ta,"f").domNode.style.marginLeft="28px",this.domNode.append(Ga(this,ta,"f").domNode),t.selectedOutlines.addEventListener("change",(()=>document.body.contains(this.domNode)?this.refresh():{})),this.refresh()}refresh(){Ga(this,Qo,"m",ra).call(this),Ga(this,Qo,"m",ia).call(this)}}Zo=new WeakMap,Jo=new WeakMap,Ko=new WeakMap,ta=new WeakMap,Qo=new WeakSet,ea=function(){let t=[...Ga(this,Zo,"f").selectedOutlines];0!=t.length?(Ga(this,Zo,"f").pushUndoStack(),t.forEach((t=>(0,xs.bringToFront)(t.domNode))),this.refresh()):this.refresh()},na=function(){let t=[...Ga(this,Zo,"f").selectedOutlines];0!=t.length?(Ga(this,Zo,"f").pushUndoStack(),t.forEach((t=>(0,xs.sendToBack)(t.domNode))),this.refresh()):this.refresh()},ra=function(){0==[...Ga(this,Zo,"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="Bring the selected outlines to the front.")},ia=function(){0==[...Ga(this,Zo,"f").selectedOutlines].length?(Ga(this,ta,"f").disable(),Ga(this,ta,"f").tooltip.textContent="No outlines are selected."):(Ga(this,ta,"f").enable(),Ga(this,ta,"f").tooltip.textContent="Send selected outlines to the back.")};class Ka{constructor(t){sa.set(this,void 0),oa.set(this,void 0),aa.set(this,void 0),Va(this,sa,t,"f"),Va(this,oa,new uu(t,"r"),"f"),Va(this,aa,new Q("Radius",Ga(this,oa,"f").domNode),"f"),Ga(this,aa,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Attribute/r",_s(this.domNode).css({marginTop:"22px",alignSelf:"start"}),this.refresh()}get domNode(){return Ga(this,aa,"f").domNode}refresh(){Ga(this,oa,"f").refresh()}}sa=new WeakMap,oa=new WeakMap,aa=new WeakMap;class tu{constructor(t){ua.set(this,void 0),ha.set(this,void 0),la.set(this,void 0),Va(this,ua,t,"f"),Va(this,ha,new uu(t,"fill"),"f"),Va(this,la,new Q("Fill",Ga(this,ha,"f").domNode),"f"),Ga(this,la,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Attribute/fill",_s(this.domNode).css({marginTop:"10px",alignSelf:"start"}),this.refresh()}get domNode(){return Ga(this,la,"f").domNode}refresh(){Ga(this,ha,"f").refresh()}}ua=new WeakMap,ha=new WeakMap,la=new WeakMap;class eu{constructor(t){ca.add(this),fa.set(this,void 0),da.set(this,new st),pa.set(this,void 0),ma.set(this,void 0),va.set(this,void 0),Va(this,fa,t,"f"),Ga(this,da,"f").domNode.addEventListener("input",(()=>Ga(this,ca,"m",ga).call(this))),Va(this,pa,new ut("Fill Color",Ga(this,da,"f").domNode),"f"),_s(this.domNode).css({marginTop:"12px",alignSelf:"start"}),Ga(this,fa,"f").selectedOutlines.addEventListener("change",(()=>Va(this,ma,void 0,"f"))),Ga(this,da,"f").domNode.addEventListener("focus",(()=>Va(this,va,Ga(this,da,"f").domNode.value,"f"))),Ga(this,fa,"f").selectedOutlines.addEventListener("change",(()=>document.body.contains(this.domNode)?this.refresh():{})),new MutationObserver((()=>document.body.contains(this.domNode)?this.refresh():{})).observe(Ga(this,fa,"f").drawing.domNode,{attributes:!0,attributeFilter:["fill"],subtree:!0}),this.refresh()}get domNode(){return Ga(this,pa,"f").domNode}refresh(){let t=[...Ga(this,fa,"f").selectedOutlines];if(0!=t.length)try{let e=t.map((t=>window.getComputedStyle(t.domNode).fill)).map((t=>new ne(t)));Ga(this,da,"f").domNode.value=(0,bs.consensusValue)(e.map((t=>t.toHex().toLowerCase())))}catch(t){Ga(this,da,"f").domNode.value="#000000"}else Ga(this,da,"f").domNode.value="#000000"}}fa=new WeakMap,da=new WeakMap,pa=new WeakMap,ma=new WeakMap,va=new WeakMap,ca=new WeakSet,ga=function(){if(Ga(this,da,"f").domNode.value===Ga(this,va,"f"))return;let t=[...Ga(this,fa,"f").selectedOutlines];0!=t.length?(t.every((t=>{var e;return(null===(e=t.domNode.getAttribute("fill"))||void 0===e?void 0:e.toLowerCase())===Ga(this,da,"f").domNode.value.toLowerCase()}))||((Ga(this,fa,"f").undoStack.isEmpty()||Ga(this,fa,"f").undoStack.peek()!==Ga(this,ma,"f"))&&(Ga(this,fa,"f").pushUndoStack(),Va(this,ma,Ga(this,fa,"f").undoStack.peek(),"f")),t.forEach((t=>t.domNode.setAttribute("fill",Ga(this,da,"f").domNode.value.toLowerCase())))),this.refresh()):this.refresh()};class nu{constructor(t){ya.set(this,void 0),wa.set(this,void 0),ba.set(this,void 0),Va(this,ya,t,"f"),Va(this,wa,new uu(t,"fill-opacity"),"f"),Va(this,ba,new Q("Fill Opacity",Ga(this,wa,"f").domNode),"f"),Ga(this,ba,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Attribute/fill-opacity",_s(this.domNode).css({marginTop:"12px",alignSelf:"start"}),this.refresh()}get domNode(){return Ga(this,ba,"f").domNode}refresh(){Ga(this,wa,"f").refresh()}}ya=new WeakMap,wa=new WeakMap,ba=new WeakMap;class ru{constructor(t){xa.set(this,void 0),_a.set(this,void 0),ka.set(this,void 0),Va(this,xa,t,"f"),Va(this,_a,new uu(t,"stroke"),"f"),Va(this,ka,new Q("Stroke",Ga(this,_a,"f").domNode),"f"),Ga(this,ka,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Attribute/stroke",_s(this.domNode).css({marginTop:"10px",alignSelf:"start"}),this.refresh()}get domNode(){return Ga(this,ka,"f").domNode}refresh(){Ga(this,_a,"f").refresh()}}xa=new WeakMap,_a=new WeakMap,ka=new WeakMap;class iu{constructor(t){Na.add(this),Sa.set(this,void 0),Ea.set(this,new st),Ma.set(this,void 0),Ta.set(this,void 0),Ca.set(this,void 0),Va(this,Sa,t,"f"),Ga(this,Ea,"f").domNode.addEventListener("input",(()=>Ga(this,Na,"m",Aa).call(this))),Va(this,Ma,new ut("Stroke Color",Ga(this,Ea,"f").domNode),"f"),_s(this.domNode).css({marginTop:"12px",alignSelf:"start"}),Ga(this,Sa,"f").selectedOutlines.addEventListener("change",(()=>Va(this,Ta,void 0,"f"))),Ga(this,Ea,"f").domNode.addEventListener("focus",(()=>Va(this,Ca,Ga(this,Ea,"f").domNode.value,"f"))),Ga(this,Sa,"f").selectedOutlines.addEventListener("change",(()=>document.body.contains(this.domNode)?this.refresh():{})),new MutationObserver((()=>document.body.contains(this.domNode)?this.refresh():{})).observe(Ga(this,Sa,"f").drawing.domNode,{attributes:!0,attributeFilter:["stroke"],subtree:!0}),this.refresh()}get domNode(){return Ga(this,Ma,"f").domNode}refresh(){let t=[...Ga(this,Sa,"f").selectedOutlines];if(0!=t.length)try{let e=t.map((t=>window.getComputedStyle(t.domNode).stroke)).map((t=>new ne(t)));Ga(this,Ea,"f").domNode.value=(0,bs.consensusValue)(e.map((t=>t.toHex().toLowerCase())))}catch(t){Ga(this,Ea,"f").domNode.value="#000000"}else Ga(this,Ea,"f").domNode.value="#000000"}}Sa=new WeakMap,Ea=new WeakMap,Ma=new WeakMap,Ta=new WeakMap,Ca=new WeakMap,Na=new WeakSet,Aa=function(){if(Ga(this,Ea,"f").domNode.value===Ga(this,Ca,"f"))return;let t=[...Ga(this,Sa,"f").selectedOutlines];0!=t.length?(t.every((t=>{var e;return(null===(e=t.domNode.getAttribute("stroke"))||void 0===e?void 0:e.toLowerCase())===Ga(this,Ea,"f").domNode.value.toLowerCase()}))||((Ga(this,Sa,"f").undoStack.isEmpty()||Ga(this,Sa,"f").undoStack.peek()!==Ga(this,Ta,"f"))&&(Ga(this,Sa,"f").pushUndoStack(),Va(this,Ta,Ga(this,Sa,"f").undoStack.peek(),"f")),t.forEach((t=>t.domNode.setAttribute("stroke",Ga(this,Ea,"f").domNode.value.toLowerCase())))),this.refresh()):this.refresh()};class su{constructor(t){La.set(this,void 0),Wa.set(this,void 0),Oa.set(this,void 0),Va(this,La,t,"f"),Va(this,Wa,new uu(t,"stroke-opacity"),"f"),Va(this,Oa,new Q("Stroke Opacity",Ga(this,Wa,"f").domNode),"f"),Ga(this,Oa,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Attribute/stroke-opacity",_s(this.domNode).css({marginTop:"12px",alignSelf:"start"}),this.refresh()}get domNode(){return Ga(this,Oa,"f").domNode}refresh(){Ga(this,Wa,"f").refresh()}}La=new WeakMap,Wa=new WeakMap,Oa=new WeakMap;class ou{constructor(t){ja.set(this,void 0),Da.set(this,void 0),Pa.set(this,void 0),Va(this,ja,t,"f"),Va(this,Da,new uu(t,"stroke-width"),"f"),Va(this,Pa,new Q("Stroke Width",Ga(this,Da,"f").domNode),"f"),Ga(this,Pa,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Attribute/stroke-width",_s(this.domNode).css({marginTop:"10px",alignSelf:"start"}),this.refresh()}get domNode(){return Ga(this,Pa,"f").domNode}refresh(){Ga(this,Da,"f").refresh()}}ja=new WeakMap,Da=new WeakMap,Pa=new WeakMap;class au{constructor(t){Ia.set(this,void 0),Ra.set(this,void 0),Ba.set(this,void 0),Va(this,Ia,t,"f"),Va(this,Ra,new uu(t,"stroke-dasharray"),"f"),Va(this,Ba,new Q("Stroke Dash-Array",Ga(this,Ra,"f").domNode),"f"),Ga(this,Ba,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Attribute/stroke-dasharray",_s(this.domNode).css({marginTop:"10px",alignSelf:"start"}),this.refresh()}get domNode(){return Ga(this,Ba,"f").domNode}refresh(){Ga(this,Ra,"f").refresh()}}Ia=new WeakMap,Ra=new WeakMap,Ba=new WeakMap;class uu{constructor(t,e){za.add(this),Fa.set(this,void 0),qa.set(this,void 0),Ua.set(this,new z({onSubmit:()=>Ga(this,za,"m",Ha).call(this)})),Va(this,Fa,t,"f"),Va(this,qa,e,"f"),Ga(this,Fa,"f").selectedOutlines.addEventListener("change",(()=>document.body.contains(this.domNode)?this.refresh():{})),new MutationObserver((()=>document.body.contains(this.domNode)?this.refresh():{})).observe(Ga(this,Fa,"f").drawing.domNode,{attributes:!0,subtree:!0}),this.refresh()}get domNode(){return Ga(this,Ua,"f").domNode}refresh(){let t=[...Ga(this,Fa,"f").selectedOutlines];try{Ga(this,Ua,"f").domNode.value=(0,bs.consensusValue)(t.map((t=>{var e;return null!==(e=t.domNode.getAttribute(Ga(this,qa,"f")))&&void 0!==e?e:""})))}catch(t){Ga(this,Ua,"f").domNode.value=""}}}Fa=new WeakMap,qa=new WeakMap,Ua=new WeakMap,za=new WeakSet,Ha=function(){let t=Ga(this,Ua,"f").domNode.value,e=[...Ga(this,Fa,"f").selectedOutlines];0==e.length||e.every((e=>e.domNode.getAttribute(Ga(this,qa,"f"))===t))||(Ga(this,Fa,"f").pushUndoStack(),e.forEach((e=>e.domNode.setAttribute(Ga(this,qa,"f"),t)))),this.refresh()};var hu=n(401),lu={};lu.styleTagTransform=w(),lu.setAttributes=m(),lu.insert=d().bind(null,"head"),lu.domAPI=c(),lu.insertStyleElement=g(),h()(hu.Ay,lu),hu.Ay&&hu.Ay.locals&&hu.Ay.locals;var cu=n(933),fu={};fu.styleTagTransform=w(),fu.setAttributes=m(),fu.insert=d().bind(null,"head"),fu.domAPI=c(),fu.insertStyleElement=g(),h()(cu.Ay,fu),cu.Ay&&cu.Ay.locals&&cu.Ay.locals;var du,pu,mu,vu,gu,yu,wu,bu,xu=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 ku{constructor(t,e){du.add(this),pu.set(this,void 0),mu.set(this,void 0),this.domNode=document.createElement("div"),vu.set(this,document.createElement("p")),this.buttons={Front:new D("Front",(()=>_u(this,du,"m",gu).call(this))),Back:new D("Back",(()=>_u(this,du,"m",yu).call(this)))},wu.set(this,{refresh:[]}),xu(this,pu,t,"f"),xu(this,mu,e,"f"),this.domNode.classList.add(cu.Te),_u(this,vu,"f").classList.add(cu.Pf),_u(this,vu,"f").textContent="Send to:",this.domNode.append(_u(this,vu,"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=[..._u(this,pu,"f")];0==t.length?this.buttons.Front.disable():this.buttons.Front.enable(),0==t.length?this.buttons.Back.disable():this.buttons.Back.enable(),_u(this,du,"m",bu).call(this,"refresh")}addEventListener(t,e){_u(this,wu,"f")[t].push(e)}removeEventListener(t,e){_u(this,wu,"f")[t]=_u(this,wu,"f")[t].filter((t=>t!==e))}}pu=new WeakMap,mu=new WeakMap,vu=new WeakMap,wu=new WeakMap,du=new WeakSet,gu=function(){let t=[..._u(this,pu,"f")];0!=t.length?(_u(this,mu,"f").pushUndoStack(),t.forEach((t=>(0,xs.bringToFront)(t.domNode))),this.refresh()):this.refresh()},yu=function(){let t=[..._u(this,pu,"f")];0!=t.length?(_u(this,mu,"f").pushUndoStack(),t.forEach((t=>(0,xs.sendToBack)(t.domNode))),this.refresh()):this.refresh()},bu=function(t){_u(this,wu,"f")[t].forEach((t=>t()))};var Nu,Su,Eu,Mu,Tu,Cu,Au=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 Wu{constructor(t,e,n){Nu.add(this),Su.set(this,void 0),Eu.set(this,void 0),Mu.set(this,void 0),Tu.set(this,new z({onSubmit:()=>Lu(this,Nu,"m",Cu).call(this)})),Au(this,Su,t,"f"),Au(this,Eu,e,"f"),Au(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,Tu,"f").domNode}refresh(){try{Lu(this,Tu,"f").domNode.value=(0,bs.consensusValue)([...Lu(this,Eu,"f")].map((t=>{var e;return null!==(e=t.domNode.getAttribute(Lu(this,Su,"f")))&&void 0!==e?e:""})))}catch(t){Lu(this,Tu,"f").domNode.value=""}}}Su=new WeakMap,Eu=new WeakMap,Mu=new WeakMap,Tu=new WeakMap,Nu=new WeakSet,Cu=function(){let t=Lu(this,Tu,"f").domNode.value,e=[...Lu(this,Eu,"f")];0==e.length||e.every((e=>e.domNode.getAttribute(Lu(this,Su,"f"))===t))?this.refresh():(Lu(this,Mu,"f").pushUndoStack(),e.forEach((e=>e.domNode.setAttribute(Lu(this,Su,"f"),t))))};var Ou,ju,Du,Pu,Iu,Ru,Bu,zu,Fu=n(543),qu=function(t,e,n,r,i){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?i.call(t,n):i?i.value=n:e.set(t,n),n},Uu=function(t,e,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!r:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(t):r?r.value:e.get(t)};class Hu{constructor(t,e,n){Ou.add(this),ju.set(this,void 0),Du.set(this,void 0),Pu.set(this,void 0),Iu.set(this,new st),Ru.set(this,void 0),Bu.set(this,void 0),qu(this,ju,t,"f"),qu(this,Du,e,"f"),qu(this,Pu,n,"f"),Uu(this,Iu,"f").domNode.addEventListener("input",(()=>Uu(this,Ou,"m",zu).call(this))),e.addEventListener("change",(()=>qu(this,Ru,void 0,"f"))),Uu(this,Iu,"f").domNode.addEventListener("focus",(()=>qu(this,Bu,Uu(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 Uu(this,Iu,"f").domNode}refresh(){let t=[...Uu(this,Du,"f")];if(0!=t.length)try{let e=Fu.camelCase(Uu(this,ju,"f")),n=t.map((t=>window.getComputedStyle(t.domNode)[e])).map((t=>new ne(t)));Uu(this,Iu,"f").domNode.value=(0,bs.consensusValue)(n.map((t=>t.toHex().toLowerCase())))}catch(t){Uu(this,Iu,"f").domNode.value="#000000"}else Uu(this,Iu,"f").domNode.value="#000000"}}ju=new WeakMap,Du=new WeakMap,Pu=new WeakMap,Iu=new WeakMap,Ru=new WeakMap,Bu=new WeakMap,Ou=new WeakSet,zu=function(){if(Uu(this,Iu,"f").domNode.value===Uu(this,Bu,"f"))return;let t=[...Uu(this,Du,"f")];0!=t.length?t.every((t=>{var e;return(null===(e=t.domNode.getAttribute(Uu(this,ju,"f")))||void 0===e?void 0:e.toLowerCase())===Uu(this,Iu,"f").domNode.value.toLowerCase()}))?this.refresh():((Uu(this,Pu,"f").undoStack.isEmpty()||Uu(this,Pu,"f").undoStack.peek()!==Uu(this,Ru,"f"))&&(Uu(this,Pu,"f").pushUndoStack(),qu(this,Ru,Uu(this,Pu,"f").undoStack.peek(),"f")),t.forEach((t=>t.domNode.setAttribute(Uu(this,ju,"f"),Uu(this,Iu,"f").domNode.value.toLowerCase())))):this.refresh()};var Vu,Gu,Xu,Yu,$u,Qu,Zu,Ju,Ku,th,eh,nh,rh,ih,sh,oh,ah,uh,hh,lh,ch,fh,dh,ph,mh,vh,gh,yh,wh,bh,xh,_h,kh,Nh,Sh,Eh,Mh,Th,Ch,Ah,Lh,Wh=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},Oh=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 jh{constructor(t){Vu.add(this),Gu.set(this,void 0),this.domNode=document.createElement("div"),Xu.set(this,new T("Primary Bonds",(()=>this.toggle()))),Yu.set(this,document.createElement("div")),$u.set(this,void 0),Qu.set(this,document.createElement("div")),Zu.set(this,void 0),Ju.set(this,void 0),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),Wh(this,Gu,t,"f"),this.domNode.classList.add(hu.gP),this.domNode.append(Oh(this,Xu,"f").domNode),Oh(this,Yu,"f").classList.add(hu.Qs),this.domNode.append(Oh(this,Yu,"f")),Wh(this,$u,new Dh(t),"f"),Oh(this,Yu,"f").append(Oh(this,$u,"f").domNode),Oh(this,Qu,"f").classList.add(hu.eB),Oh(this,Yu,"f").append(Oh(this,Qu,"f")),t.selectedPrimaryBonds.addEventListener("change",(()=>{document.body.contains(this.domNode)&&(0==[...t.selectedPrimaryBonds].length?Oh(this,Vu,"m",sh).call(this):Oh(this,Vu,"m",oh).call(this))})),Wh(this,Zu,new Ph(t),"f"),Oh(this,Qu,"f").append(Oh(this,Zu,"f").domNode),Wh(this,Ju,new Ih(t),"f"),Oh(this,Qu,"f").append(Oh(this,Ju,"f").domNode),Wh(this,Ku,new Rh(t),"f"),Oh(this,Qu,"f").append(Oh(this,Ku,"f").domNode),Wh(this,th,new Bh(t),"f"),Oh(this,Qu,"f").append(Oh(this,th,"f").domNode),Wh(this,eh,new zh(t),"f"),Oh(this,Qu,"f").append(Oh(this,eh,"f").domNode),Wh(this,nh,new Fh(t),"f"),Oh(this,Qu,"f").append(Oh(this,nh,"f").domNode),Wh(this,rh,new qh(t),"f"),Oh(this,Qu,"f").append(Oh(this,rh,"f").domNode),this.collapse(),this.refresh()}isCollapsed(){return this.domNode.classList.contains(hu.yZ)}collapse(){this.domNode.classList.add(hu.yZ),Oh(this,Xu,"f").caret.pointRight()}expand(){this.domNode.classList.remove(hu.yZ),Oh(this,Xu,"f").caret.pointDown()}toggle(){this.isCollapsed()?this.expand():this.collapse()}refresh(){Oh(this,Vu,"a",ih).forEach((t=>t.refresh())),0==[...Oh(this,Gu,"f").selectedPrimaryBonds].length?Oh(this,Vu,"m",sh).call(this):Oh(this,Vu,"m",oh).call(this)}}Gu=new WeakMap,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,Vu=new WeakSet,ih=function(){return[Oh(this,$u,"f"),Oh(this,Zu,"f"),Oh(this,Ju,"f"),Oh(this,Ku,"f"),Oh(this,th,"f"),Oh(this,eh,"f"),Oh(this,nh,"f"),Oh(this,rh,"f")]},sh=function(){Oh(this,Qu,"f").style.display="none"},oh=function(){Oh(this,Qu,"f").style.display="flex"};class Dh{constructor(t){ah.set(this,void 0),this.domNode=document.createElement("p"),uh.set(this,document.createElement("span")),hh.set(this,document.createElement("span")),Wh(this,ah,t,"f"),this.domNode.classList.add(hu.vM),Oh(this,uh,"f").style.fontWeight="700",this.domNode.append(Oh(this,uh,"f"),Oh(this,hh,"f")),Oh(this,ah,"f").selectedPrimaryBonds.addEventListener("change",(()=>{!document.body.contains(this.domNode)||this.refresh()})),this.refresh()}refresh(){let t=[...Oh(this,ah,"f").selectedPrimaryBonds].length;Oh(this,uh,"f").textContent=`${t}`,Oh(this,hh,"f").textContent=1==t?" primary bond is selected.":" primary bonds are selected."}}ah=new WeakMap,uh=new WeakMap,hh=new WeakMap;class Ph{constructor(t){lh.add(this),ch.set(this,void 0),fh.set(this,void 0),Wh(this,ch,t,"f");let e=t.selectedPrimaryBonds;Wh(this,fh,new ku(e,t),"f"),this.domNode.style.marginTop="23px",Oh(this,fh,"f").addEventListener("refresh",(()=>Oh(this,lh,"m",dh).call(this))),this.refresh()}get domNode(){return Oh(this,fh,"f").domNode}refresh(){Oh(this,fh,"f").refresh()}}ch=new WeakMap,fh=new WeakMap,lh=new WeakSet,dh=function(){let t=[...Oh(this,ch,"f").selectedPrimaryBonds];Oh(this,fh,"f").buttons.Front.tooltip.textContent=0==t.length?"No primary bonds are selected.":"Bring the selected primary bonds to the front.",Oh(this,fh,"f").buttons.Back.tooltip.textContent=0==t.length?"No primary bonds are selected.":"Send the selected primary bonds to the back."};class Ih{constructor(t){ph.set(this,void 0),mh.set(this,void 0),vh.set(this,void 0),Wh(this,ph,t,"f");let e=t.selectedPrimaryBonds;Wh(this,mh,new Wu("stroke",e,t),"f"),Wh(this,vh,new Q("Stroke",Oh(this,mh,"f").domNode),"f"),Oh(this,vh,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Attribute/stroke",this.domNode.style.marginTop="10px",this.domNode.style.alignSelf="start",this.refresh()}get domNode(){return Oh(this,vh,"f").domNode}refresh(){Oh(this,mh,"f").refresh()}}ph=new WeakMap,mh=new WeakMap,vh=new WeakMap;class Rh{constructor(t){gh.set(this,void 0),yh.set(this,void 0),wh.set(this,void 0),Wh(this,gh,t,"f");let e=t.selectedPrimaryBonds;Wh(this,yh,new Hu("stroke",e,t),"f"),Wh(this,wh,new ut("Stroke Color",Oh(this,yh,"f").domNode),"f"),Oh(this,wh,"f").domNode.style.marginTop="12px",Oh(this,wh,"f").domNode.style.alignSelf="start",this.refresh()}get domNode(){return Oh(this,wh,"f").domNode}refresh(){Oh(this,yh,"f").refresh()}}gh=new WeakMap,yh=new WeakMap,wh=new WeakMap;class Bh{constructor(t){bh.set(this,void 0),xh.set(this,void 0),_h.set(this,void 0),Wh(this,bh,t,"f");let e=t.selectedPrimaryBonds;Wh(this,xh,new Wu("stroke-opacity",e,t),"f"),Wh(this,_h,new Q("Stroke Opacity",Oh(this,xh,"f").domNode),"f"),Oh(this,_h,"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 Oh(this,_h,"f").domNode}refresh(){Oh(this,xh,"f").refresh()}}bh=new WeakMap,xh=new WeakMap,_h=new WeakMap;class zh{constructor(t){kh.set(this,void 0),Nh.set(this,void 0),Sh.set(this,void 0),Wh(this,kh,t,"f");let e=t.selectedPrimaryBonds;Wh(this,Nh,new Wu("stroke-width",e,t),"f"),Wh(this,Sh,new Q("Stroke Width",Oh(this,Nh,"f").domNode),"f"),Oh(this,Sh,"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 Oh(this,Sh,"f").domNode}refresh(){Oh(this,Nh,"f").refresh()}}kh=new WeakMap,Nh=new WeakMap,Sh=new WeakMap;class Fh{constructor(t){Eh.set(this,void 0),Mh.set(this,void 0),Th.set(this,void 0),Wh(this,Eh,t,"f");let e=t.selectedPrimaryBonds;Wh(this,Mh,new Wu("stroke-linecap",e,t),"f"),Wh(this,Th,new Q("Stroke Line-Cap",Oh(this,Mh,"f").domNode),"f"),Oh(this,Th,"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 Oh(this,Th,"f").domNode}refresh(){Oh(this,Mh,"f").refresh()}}Eh=new WeakMap,Mh=new WeakMap,Th=new WeakMap;class qh{constructor(t){Ch.set(this,void 0),Ah.set(this,void 0),Lh.set(this,void 0),Wh(this,Ch,t,"f");let e=t.selectedPrimaryBonds;Wh(this,Ah,new Wu("stroke-dasharray",e,t),"f"),Wh(this,Lh,new Q("Stroke Dash-Array",Oh(this,Ah,"f").domNode),"f"),Oh(this,Lh,"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 Oh(this,Lh,"f").domNode}refresh(){Oh(this,Ah,"f").refresh()}}Ch=new WeakMap,Ah=new WeakMap,Lh=new WeakMap;var Uh=n(705),Hh={};Hh.styleTagTransform=w(),Hh.setAttributes=m(),Hh.insert=d().bind(null,"head"),Hh.domAPI=c(),Hh.insertStyleElement=g(),h()(Uh.Ay,Hh),Uh.Ay&&Uh.Ay.locals&&Uh.Ay.locals;var Vh,Gh,Xh,Yh,$h,Qh,Zh,Jh,Kh,tl,el,nl,rl,il,sl,ol,al,ul,hl,ll,cl,fl,dl,pl,ml,vl,gl,yl,wl,bl,xl,_l,kl,Nl,Sl,El,Ml,Tl,Cl,Al,Ll,Wl=function(t,e,n,r,i){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?i.call(t,n):i?i.value=n:e.set(t,n),n},Ol=function(t,e,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!r:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(t):r?r.value:e.get(t)};class jl{constructor(t){Vh.add(this),Gh.set(this,void 0),this.domNode=document.createElement("div"),Xh.set(this,new T("Secondary Bonds",(()=>this.toggle()))),Yh.set(this,document.createElement("div")),$h.set(this,void 0),Qh.set(this,document.createElement("div")),Zh.set(this,void 0),Jh.set(this,void 0),Kh.set(this,void 0),tl.set(this,void 0),el.set(this,void 0),nl.set(this,void 0),rl.set(this,void 0),Wl(this,Gh,t,"f"),this.domNode.classList.add(Uh.Se),this.domNode.append(Ol(this,Xh,"f").domNode),Ol(this,Yh,"f").classList.add(Uh.Qs),this.domNode.append(Ol(this,Yh,"f")),Wl(this,$h,new Dl(t),"f"),Ol(this,Yh,"f").append(Ol(this,$h,"f").domNode),Ol(this,Qh,"f").classList.add(Uh.eB),Ol(this,Yh,"f").append(Ol(this,Qh,"f")),t.selectedSecondaryBonds.addEventListener("change",(()=>{document.body.contains(this.domNode)&&(0==[...t.selectedSecondaryBonds].length?Ol(this,Vh,"m",ol).call(this):Ol(this,Vh,"m",sl).call(this))})),Wl(this,Zh,new Pl(t),"f"),Ol(this,Qh,"f").append(Ol(this,Zh,"f").domNode),Wl(this,Jh,new Il(t),"f"),Ol(this,Qh,"f").append(Ol(this,Jh,"f").domNode),Wl(this,Kh,new Rl(t),"f"),Ol(this,Qh,"f").append(Ol(this,Kh,"f").domNode),Wl(this,tl,new Bl(t),"f"),Ol(this,Qh,"f").append(Ol(this,tl,"f").domNode),Wl(this,el,new zl(t),"f"),Ol(this,Qh,"f").append(Ol(this,el,"f").domNode),Wl(this,nl,new Fl(t),"f"),Ol(this,Qh,"f").append(Ol(this,nl,"f").domNode),Wl(this,rl,new ql(t),"f"),Ol(this,Qh,"f").append(Ol(this,rl,"f").domNode),this.collapse(),this.refresh()}isCollapsed(){return this.domNode.classList.contains(Uh.yZ)}collapse(){this.domNode.classList.add(Uh.yZ),Ol(this,Xh,"f").caret.pointRight()}expand(){this.domNode.classList.remove(Uh.yZ),Ol(this,Xh,"f").caret.pointDown()}toggle(){this.isCollapsed()?this.expand():this.collapse()}refresh(){Ol(this,Vh,"a",il).forEach((t=>t.refresh())),0==[...Ol(this,Gh,"f").selectedSecondaryBonds].length?Ol(this,Vh,"m",ol).call(this):Ol(this,Vh,"m",sl).call(this)}}Gh=new WeakMap,Xh=new WeakMap,Yh=new WeakMap,$h=new WeakMap,Qh=new WeakMap,Zh=new WeakMap,Jh=new WeakMap,Kh=new WeakMap,tl=new WeakMap,el=new WeakMap,nl=new WeakMap,rl=new WeakMap,Vh=new WeakSet,il=function(){return[Ol(this,$h,"f"),Ol(this,Zh,"f"),Ol(this,Jh,"f"),Ol(this,Kh,"f"),Ol(this,tl,"f"),Ol(this,el,"f"),Ol(this,nl,"f"),Ol(this,rl,"f")]},sl=function(){Ol(this,Qh,"f").style.display="flex"},ol=function(){Ol(this,Qh,"f").style.display="none"};class Dl{constructor(t){al.set(this,void 0),this.domNode=document.createElement("p"),ul.set(this,document.createElement("span")),hl.set(this,document.createElement("span")),Wl(this,al,t,"f"),this.domNode.classList.add(Uh.vM),Ol(this,ul,"f").style.fontWeight="700",this.domNode.append(Ol(this,ul,"f"),Ol(this,hl,"f")),Ol(this,al,"f").selectedSecondaryBonds.addEventListener("change",(()=>{!document.body.contains(this.domNode)||this.refresh()})),this.refresh()}refresh(){let t=[...Ol(this,al,"f").selectedSecondaryBonds].length;Ol(this,ul,"f").textContent=`${t}`,Ol(this,hl,"f").textContent=1==t?" secondary bond is selected.":" secondary bonds are selected."}}al=new WeakMap,ul=new WeakMap,hl=new WeakMap;class Pl{constructor(t){ll.add(this),cl.set(this,void 0),fl.set(this,void 0),Wl(this,cl,t,"f");let e=t.selectedSecondaryBonds;Wl(this,fl,new ku(e,t),"f"),this.domNode.style.marginTop="23px",Ol(this,fl,"f").addEventListener("refresh",(()=>Ol(this,ll,"m",dl).call(this))),this.refresh()}get domNode(){return Ol(this,fl,"f").domNode}refresh(){Ol(this,fl,"f").refresh()}}cl=new WeakMap,fl=new WeakMap,ll=new WeakSet,dl=function(){let t=[...Ol(this,cl,"f").selectedSecondaryBonds];Ol(this,fl,"f").buttons.Front.tooltip.textContent=0==t.length?"No secondary bonds are selected.":"Bring the selected secondary bonds to the front.",Ol(this,fl,"f").buttons.Back.tooltip.textContent=0==t.length?"No secondary bonds are selected.":"Send the selected secondary bonds to the back."};class Il{constructor(t){pl.set(this,void 0),ml.set(this,void 0),vl.set(this,void 0),Wl(this,pl,t,"f");let e=t.selectedSecondaryBonds;Wl(this,ml,new Wu("stroke",e,t),"f"),Wl(this,vl,new Q("Stroke",Ol(this,ml,"f").domNode),"f"),Ol(this,vl,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Attribute/stroke",this.domNode.style.marginTop="10px",this.domNode.style.alignSelf="start",this.refresh()}get domNode(){return Ol(this,vl,"f").domNode}refresh(){Ol(this,ml,"f").refresh()}}pl=new WeakMap,ml=new WeakMap,vl=new WeakMap;class Rl{constructor(t){gl.set(this,void 0),yl.set(this,void 0),wl.set(this,void 0),Wl(this,gl,t,"f");let e=t.selectedSecondaryBonds;Wl(this,yl,new Hu("stroke",e,t),"f"),Wl(this,wl,new ut("Stroke Color",Ol(this,yl,"f").domNode),"f"),Ol(this,wl,"f").domNode.style.marginTop="12px",Ol(this,wl,"f").domNode.style.alignSelf="start",this.refresh()}get domNode(){return Ol(this,wl,"f").domNode}refresh(){Ol(this,yl,"f").refresh()}}gl=new WeakMap,yl=new WeakMap,wl=new WeakMap;class Bl{constructor(t){bl.set(this,void 0),xl.set(this,void 0),_l.set(this,void 0),Wl(this,bl,t,"f");let e=t.selectedSecondaryBonds;Wl(this,xl,new Wu("stroke-opacity",e,t),"f"),Wl(this,_l,new Q("Stroke Opacity",Ol(this,xl,"f").domNode),"f"),Ol(this,_l,"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 Ol(this,_l,"f").domNode}refresh(){Ol(this,xl,"f").refresh()}}bl=new WeakMap,xl=new WeakMap,_l=new WeakMap;class zl{constructor(t){kl.set(this,void 0),Nl.set(this,void 0),Sl.set(this,void 0),Wl(this,kl,t,"f");let e=t.selectedSecondaryBonds;Wl(this,Nl,new Wu("stroke-width",e,t),"f"),Wl(this,Sl,new Q("Stroke Width",Ol(this,Nl,"f").domNode),"f"),Ol(this,Sl,"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 Ol(this,Sl,"f").domNode}refresh(){Ol(this,Nl,"f").refresh()}}kl=new WeakMap,Nl=new WeakMap,Sl=new WeakMap;class Fl{constructor(t){El.set(this,void 0),Ml.set(this,void 0),Tl.set(this,void 0),Wl(this,El,t,"f");let e=t.selectedSecondaryBonds;Wl(this,Ml,new Wu("stroke-linecap",e,t),"f"),Wl(this,Tl,new Q("Stroke Line-Cap",Ol(this,Ml,"f").domNode),"f"),Ol(this,Tl,"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 Ol(this,Tl,"f").domNode}refresh(){Ol(this,Ml,"f").refresh()}}El=new WeakMap,Ml=new WeakMap,Tl=new WeakMap;class ql{constructor(t){Cl.set(this,void 0),Al.set(this,void 0),Ll.set(this,void 0),Wl(this,Cl,t,"f");let e=t.selectedSecondaryBonds;Wl(this,Al,new Wu("stroke-dasharray",e,t),"f"),Wl(this,Ll,new Q("Stroke Dash-Array",Ol(this,Al,"f").domNode),"f"),Ol(this,Ll,"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 Ol(this,Ll,"f").domNode}refresh(){Ol(this,Al,"f").refresh()}}Cl=new WeakMap,Al=new WeakMap,Ll=new WeakMap;var Ul=n(290),Hl={};Hl.styleTagTransform=w(),Hl.setAttributes=m(),Hl.insert=d().bind(null,"head"),Hl.domAPI=c(),Hl.insertStyleElement=g(),h()(Ul.A,Hl),Ul.A&&Ul.A.locals&&Ul.A.locals;var Vl,Gl,Xl,Yl,$l,Ql,Zl,Jl,Kl=n(139),tc=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},ec=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 nc{constructor(t){Vl.add(this),Gl.set(this,void 0),this.domNode=document.createElement("div"),Xl.set(this,void 0),Yl.set(this,void 0),$l.set(this,void 0),Ql.set(this,void 0),Zl.set(this,void 0),tc(this,Gl,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),tc(this,Xl,new Ss(t),"f"),n.append(ec(this,Xl,"f").domNode),tc(this,Yl,new Xa(t),"f"),n.append(ec(this,Yl,"f").domNode),tc(this,$l,new jh(t),"f"),n.append(ec(this,$l,"f").domNode),tc(this,Ql,new jl(t),"f"),n.append(ec(this,Ql,"f").domNode);let r=function(){let t=document.createElement("p");return t.classList.add(Ul._),t.textContent="Close",t}();r.addEventListener("click",(()=>this.close())),this.domNode.append(r),tc(this,Zl,new Kl.DragTranslater(this.domNode),"f")}appendTo(t){this.refresh(),this.reposition(),t.appendChild(this.domNode)}close(){this.domNode.remove()}refresh(){ec(this,Vl,"a",Jl).forEach((t=>t.refresh()))}reposition(){ec(this,Zl,"f").untranslate()}}Gl=new WeakMap,Xl=new WeakMap,Yl=new WeakMap,$l=new WeakMap,Ql=new WeakMap,Zl=new WeakMap,Vl=new WeakSet,Jl=function(){return[ec(this,Xl,"f"),ec(this,Yl,"f"),ec(this,$l,"f"),ec(this,Ql,"f")]}})(),r})()));
|
|
2
|
+
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports["forms.edit"]=e():t["forms.edit"]=e()}(this,(()=>(()=>{var t={51:t=>{"use strict";t.exports="data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgOTYgOTYiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIGlkPSJJY29uc19DaGVja21hcmsiIG92ZXJmbG93PSJoaWRkZW4iPjxwYXRoIGQ9Ik04Ni4xIDE1LjggMzQuOSA2NC4yIDEwLjMgMzkgMS44IDQ3LjEgMzQuNSA4MC43IDQzLjEgNzIuNyA5NC4yIDI0LjJaIiBzdHJva2U9IiNGRkZGRkYiIHN0cm9rZS13aWR0aD0iMy42NjY2NyIgZmlsbD0iI0ZGRkZGRiIvPjwvc3ZnPg=="},56:(t,e,n)=>{"use strict";t.exports=function(t){var e=n.nc;e&&t.setAttribute("nonce",e)}},72:t=>{"use strict";var e=[];function n(t){for(var n=-1,r=0;r<e.length;r++)if(e[r].identifier===t){n=r;break}return n}function r(t,r){for(var s={},o=[],a=0;a<t.length;a++){var u=t[a],h=r.base?u[0]+r.base:u[0],l=s[h]||0,c="".concat(h," ").concat(l);s[h]=l+1;var 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))}}},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:()=>y});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),v=n(826),g={};g.styleTagTransform=m(),g.setAttributes=c(),g.insert=h().bind(null,"head"),g.domAPI=a(),g.insertStyleElement=d(),s()(v.A,g),v.A&&v.A.locals&&v.A.locals;class y{constructor(t){this.targetForm=t,this.mouseIsDown=!1,this.interactionDepth="shallow",window.addEventListener("mousedown",(t=>this.handleMouseDown(t))),window.addEventListener("mousemove",(t=>this.handleMouseMove(t))),window.addEventListener("mouseup",(t=>this.handleMouseUp(t))),t.addEventListener("mouseover",(e=>{e.target!==t||t.classList.add(v.y)})),t.addEventListener("mouseout",(e=>{e.target!==t||t.classList.remove(v.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:()=>f,average:()=>r,isBetweenExclusive:()=>c,isBetweenInclusive:()=>l,max:()=>h,mean:()=>r,median:()=>a,min:()=>u,sortNumbers:()=>i,sortNumbersAscending:()=>i,sortNumbersDescending:()=>d,sortedNumbers:()=>o,sortedNumbersAscending:()=>o,sortedNumbersDescending:()=>p,sum:()=>n});var s=function(t,e,n){if(n||2===arguments.length)for(var r,i=0,s=e.length;i<s;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))};function o(t){var e=s([],t,!0);return i(e),e}function a(t){if(0==t.length)return NaN;var e=o(t);if(e.length%2!=0)return e[Math.floor(e.length/2)];var n=e.length/2,i=n-1;return r([e[n],e[i]])}function u(t){if(0==t.length)return 1/0;var e=t[0];return t.slice(1).forEach((function(t){e=Math.min(e,t)})),e}function h(t){if(0==t.length)return-1/0;var e=t[0];return t.slice(1).forEach((function(t){e=Math.max(e,t)})),e}function l(t,e,n){return t>=e&&t<=n}function c(t,e,n){return t>e&&t<n}function f(t,e,n){return Math.abs(t-e)<=n}function d(t){i(t),t.reverse()}function p(t){var e=o(t);return e.reverse(),e}return e})()}},e={};function n(r){var i=e[r];if(void 0!==i)return i.exports;var s=e[r]={exports:{}};return t[r].call(s.exports,s,s.exports,n),s.exports}n.d=(t,e)=>{for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var r={};return(()=>{"use strict";function t(t){if(0==t.length)throw new Error("The array of values is empty.");if(1==new Set(t).size)return t[0];throw new Error("Not all values are the same.")}n.r(r),n.d(r,{consensusValue:()=>t,mostCommonValue:()=>s});var e=n(986);class i{static of(t){return{in:e=>{let n=new Set([t]);return e.filter((t=>n.has(t)))}}}}function s(t){if(0==t.length)throw new Error("The array of values is empty.");let n=[...new Set(t)],r=n.map((e=>i.of(e).in(t).length)),s=(0,e.max)(r),o=n.findIndex((e=>i.of(e).in(t).length==s));if(o<0)throw new Error("Unable to find the most common value.");return n[o]}})(),r})()},290:(t,e,n)=>{"use strict";n.d(e,{A:()=>u,_:()=>a});var r=n(601),i=n.n(r),s=n(314),o=n.n(s)()(i());o.push([t.id,'.kcto2iumhdvv3MluNmLw {\n position: absolute;\n top: 13px;\n right: 17px;\n\n margin: 0px;\n\n border: none;\n outline: none;\n\n padding: 3px 12px;\n border-radius: 3px;\n\n font-family: "Open Sans", sans-serif;\n font-size: 16px;\n font-weight: 600;\n font-style: normal;\n color: #871414;\n\n pointer-events: auto;\n\n cursor: pointer;\n\n user-select: none;\n -webkit-user-select: none;\n\n background-color: transparent;\n}\n\n.kcto2iumhdvv3MluNmLw:hover {\n background-color: #cab8d99c;\n}\n\n.kcto2iumhdvv3MluNmLw:active {\n background-color: #aa8eba9e;\n}\n',""]);var a="kcto2iumhdvv3MluNmLw";const u=o},314:t=>{"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var n="",r=void 0!==e[5];return e[4]&&(n+="@supports (".concat(e[4],") {")),e[2]&&(n+="@media ".concat(e[2]," {")),r&&(n+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),n+=t(e),r&&(n+="}"),e[2]&&(n+="}"),e[4]&&(n+="}"),n})).join("")},e.i=function(t,n,r,i,s){"string"==typeof t&&(t=[[null,t,void 0]]);var o={};if(r)for(var a=0;a<this.length;a++){var u=this[a][0];null!=u&&(o[u]=!0)}for(var h=0;h<t.length;h++){var l=[].concat(t[h]);r&&o[l[0]]||(void 0!==s&&(void 0===l[5]||(l[1]="@layer".concat(l[5].length>0?" ".concat(l[5]):""," {").concat(l[1],"}")),l[5]=s),n&&(l[2]?(l[1]="@media ".concat(l[2]," {").concat(l[1],"}"),l[2]=n):l[2]=n),i&&(l[4]?(l[1]="@supports (".concat(l[4],") {").concat(l[1],"}"),l[4]=i):l[4]="".concat(i)),e.push(l))}},e}},401:(t,e,n)=>{"use strict";n.d(e,{Ay:()=>f,Qs:()=>u,eB:()=>c,gP:()=>a,vM:()=>l,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: 37px;\n\n display: flex;\n flex-direction: column;\n}\n\n.RAWN5K2ehadscPWlBK_9 {\n margin: 10px 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: black;\n\n user-select: none;\n -webkit-user-select: none;\n\n pointer-events: none;\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="nJxPkvauzUEG66FC0ZAb";const f=o},417:t=>{"use strict";t.exports=function(t,e){return e||(e={}),t?(t=String(t.__esModule?t.default:t),/^['"].*['"]$/.test(t)&&(t=t.slice(1,-1)),e.hash&&(t+=e.hash),/["'() \t\n]|(%20)/.test(t)||e.needQuotes?'"'.concat(t.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):t):t}},419:(t,e,n)=>{"use strict";n.d(e,{A:()=>u,P:()=>a});var r=n(601),i=n.n(r),s=n(314),o=n.n(s)()(i());o.push([t.id,'.cstoj4QoATbKp66WQrBA {\n border: 1px solid #75758c;\n border-radius: 2px;\n\n outline: none;\n\n width: 90px;\n\n padding: 3px 6px;\n\n font-family: "Open Sans", sans-serif;\n font-size: 12px;\n font-weight: 700;\n font-style: normal;\n color: black;\n\n pointer-events: auto;\n}\n\n.cstoj4QoATbKp66WQrBA:hover {\n border-color: #0a0a0b;\n}\n\n.cstoj4QoATbKp66WQrBA:focus {\n border-color: #0a0a0b;\n\n outline: none;\n}\n',""]);var a="cstoj4QoATbKp66WQrBA";const u=o},420:(t,e,n)=>{"use strict";n.d(e,{Ay:()=>l,KQ:()=>a,UJ:()=>h,wx:()=>u});var r=n(601),i=n.n(r),s=n(314),o=n.n(s)()(i());o.push([t.id,'.wkp2L4HpJzRg7XSLEG0O {\n width: 268px;\n height: 524px;\n\n overflow: auto;\n\n border-radius: 16px;\n\n border: 1px solid #220536;\n\n padding: 23px 32px 50px 36px;\n\n background-color: rgba(227, 229, 255, 0.37);\n\n backdrop-filter: blur(20px);\n -webkit-backdrop-filter: blur(20px);\n\n box-shadow: 0 0 14px rgba(219, 219, 238, 0.09);\n}\n\n.Y7tezdMOsnQfs2CQtMUR {\n margin: 0px;\n padding: 0px;\n\n font-family: "Open Sans", sans-serif;\n font-size: 34px;\n font-weight: 700;\n font-style: normal;\n color: black;\n\n user-select: none;\n -webkit-user-select: none;\n\n pointer-events: none;\n}\n\n.blLx0TnwxHwlX8qvUigb {\n margin: 27px 0px 0px 24px;\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]",v="[object Array]",g="[object Boolean]",y="[object Date]",w="[object Error]",b="[object Function]",x="[object GeneratorFunction]",_="[object Map]",k="[object Number]",N="[object Object]",S="[object Promise]",E="[object RegExp]",M="[object Set]",T="[object String]",C="[object Symbol]",A="[object WeakMap]",L="[object ArrayBuffer]",W="[object DataView]",O="[object Float32Array]",j="[object Float64Array]",D="[object Int8Array]",P="[object Int16Array]",I="[object Int32Array]",R="[object Uint8Array]",B="[object Uint8ClampedArray]",z="[object Uint16Array]",F="[object Uint32Array]",q=/\b__p \+= '';/g,U=/\b(__p \+=) '' \+/g,H=/(__e\(.*?\)|\b__t\)) \+\n'';/g,V=/&(?:amp|lt|gt|quot|#39);/g,G=/[&<>"']/g,X=RegExp(V.source),Y=RegExp(G.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\]$/,vt=/^0o[0-7]+$/i,gt=/^(?:0|[1-9]\d*)$/,yt=/[\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",kt="\\u2700-\\u27bf",Nt="a-z\\xdf-\\xf6\\xf8-\\xff",St="A-Z\\xc0-\\xd6\\xd8-\\xde",Et="\\ufe0e\\ufe0f",Mt="\\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",Tt="["+xt+"]",Ct="["+Mt+"]",At="["+_t+"]",Lt="\\d+",Wt="["+kt+"]",Ot="["+Nt+"]",jt="[^"+xt+Mt+Lt+kt+Nt+St+"]",Dt="\\ud83c[\\udffb-\\udfff]",Pt="[^"+xt+"]",It="(?:\\ud83c[\\udde6-\\uddff]){2}",Rt="[\\ud800-\\udbff][\\udc00-\\udfff]",Bt="["+St+"]",zt="\\u200d",Ft="(?:"+Ot+"|"+jt+")",qt="(?:"+Bt+"|"+jt+")",Ut="(?:['’](?:d|ll|m|re|s|t|ve))?",Ht="(?:['’](?:D|LL|M|RE|S|T|VE))?",Vt="(?:"+At+"|"+Dt+")?",Gt="["+Et+"]?",Xt=Gt+Vt+"(?:"+zt+"(?:"+[Pt,It,Rt].join("|")+")"+Gt+Vt+")*",Yt="(?:"+[Wt,It,Rt].join("|")+")"+Xt,$t="(?:"+[Pt+At+"?",At,It,Rt,Tt].join("|")+")",Qt=RegExp("['’]","g"),Zt=RegExp(At,"g"),Jt=RegExp(Dt+"(?="+Dt+")|"+$t+Xt,"g"),Kt=RegExp([Bt+"?"+Ot+"+"+Ut+"(?="+[Ct,Bt,"$"].join("|")+")",qt+"+"+Ht+"(?="+[Ct,Bt+Ft,"$"].join("|")+")",Bt+"?"+Ft+"+"+Ut,Bt+"+"+Ht,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Lt,Yt].join("|"),"g"),te=RegExp("["+zt+xt+_t+Et+"]"),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[O]=ie[j]=ie[D]=ie[P]=ie[I]=ie[R]=ie[B]=ie[z]=ie[F]=!0,ie[m]=ie[v]=ie[L]=ie[g]=ie[W]=ie[y]=ie[w]=ie[b]=ie[_]=ie[k]=ie[N]=ie[E]=ie[M]=ie[T]=ie[A]=!1;var se={};se[m]=se[v]=se[L]=se[W]=se[g]=se[y]=se[O]=se[j]=se[D]=se[P]=se[I]=se[_]=se[k]=se[N]=se[E]=se[M]=se[T]=se[C]=se[R]=se[B]=se[z]=se[F]=!0,se[w]=se[b]=se[A]=!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,ve=function(){try{return de&&de.require&&de.require("util").types||me&&me.binding&&me.binding("util")}catch(t){}}(),ge=ve&&ve.isArrayBuffer,ye=ve&&ve.isDate,we=ve&&ve.isMap,be=ve&&ve.isRegExp,xe=ve&&ve.isSet,_e=ve&&ve.isTypedArray;function ke(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 Ne(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 Ee(t,e){for(var n=null==t?0:t.length;n--&&!1!==e(t[n],n,t););return t}function Me(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 Te(t,e){for(var n=-1,r=null==t?0:t.length,i=0,s=[];++n<r;){var o=t[n];e(o,n,t)&&(s[i++]=o)}return s}function Ce(t,e){return!(null==t||!t.length)&&Be(t,e,0)>-1}function Ae(t,e,n){for(var r=-1,i=null==t?0:t.length;++r<i;)if(n(e,t[r]))return!0;return!1}function Le(t,e){for(var n=-1,r=null==t?0:t.length,i=Array(r);++n<r;)i[n]=e(t[n],n,t);return i}function We(t,e){for(var n=-1,r=e.length,i=t.length;++n<r;)t[i+n]=e[n];return t}function Oe(t,e,n,r){var i=-1,s=null==t?0:t.length;for(r&&s&&(n=t[++i]);++i<s;)n=e(n,t[i],i,t);return n}function je(t,e,n,r){var i=null==t?0:t.length;for(r&&i&&(n=t[--i]);i--;)n=e(n,t[i],i,t);return n}function De(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 Pe=Ue("length");function Ie(t,e,n){var r;return n(t,(function(t,n,i){if(e(t,n,i))return r=n,!1})),r}function Re(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 Be(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):Re(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?Ge(t,e)/n:f}function Ue(t){return function(e){return null==e?i:e[t]}}function He(t){return function(e){return null==t?i:t[e]}}function Ve(t,e,n,r,i){return i(t,(function(t,i,s){n=r?(r=!1,t):e(n,t,i,s)})),n}function Ge(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 Le(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&&Be(e,t[n],0)>-1;);return n}function Ke(t,e){for(var n=t.length;n--&&Be(e,t[n],0)>-1;);return n}var tn=He({À:"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=He({"&":"&","<":"<",">":">",'"':""","'":"'"});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):Pe(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=He({"&":"&","<":"<",">":">",""":'"',"'":"'"}),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,kt=e.Math,Nt=e.Object,St=e.RegExp,Et=e.String,Mt=e.TypeError,Tt=r.prototype,Ct=_t.prototype,At=Nt.prototype,Lt=e["__core-js_shared__"],Wt=Ct.toString,Ot=At.hasOwnProperty,jt=0,Dt=(n=/[^.]+$/.exec(Lt&&Lt.keys&&Lt.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",Pt=At.toString,It=Wt.call(Nt),Rt=ce._,Bt=St("^"+Wt.call(Ot).replace(et,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),zt=pe?e.Buffer:i,Ft=e.Symbol,qt=e.Uint8Array,Ut=zt?zt.allocUnsafe:i,Ht=on(Nt.getPrototypeOf,Nt),Vt=Nt.create,Gt=At.propertyIsEnumerable,Xt=Tt.splice,Yt=Ft?Ft.isConcatSpreadable:i,$t=Ft?Ft.iterator:i,Jt=Ft?Ft.toStringTag:i,te=function(){try{var t=us(Nt,"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=kt.ceil,de=kt.floor,me=Nt.getOwnPropertySymbols,ve=zt?zt.isBuffer:i,Pe=e.isFinite,He=Tt.join,mn=on(Nt.keys,Nt),vn=kt.max,gn=kt.min,yn=it.now,wn=e.parseInt,bn=kt.random,xn=Tt.reverse,_n=us(e,"DataView"),kn=us(e,"Map"),Nn=us(e,"Promise"),Sn=us(e,"Set"),En=us(e,"WeakMap"),Mn=us(Nt,"create"),Tn=En&&new En,Cn={},An=Ps(_n),Ln=Ps(kn),Wn=Ps(Nn),On=Ps(Sn),jn=Ps(En),Dn=Ft?Ft.prototype:i,Pn=Dn?Dn.valueOf:i,In=Dn?Dn.toString:i;function Rn(t){if(ta(t)&&!Uo(t)&&!(t instanceof qn)){if(t instanceof Fn)return t;if(Ot.call(t,"__wrapped__"))return Is(t)}return new Fn(t)}var Bn=function(){function t(){}return function(e){if(!Ko(e))return{};if(Vt)return Vt(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 Hn(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.__data__=new Vn;++e<n;)this.add(t[e])}function Xn(t){var e=this.__data__=new Hn(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,Et):[],u=a.length;for(var h in t)!e&&!Ot.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[Vr(0,e-1)]:i}function Qn(t,e){return Ls(Ei(t),sr(e,0,t.length))}function Zn(t){return Ls(Ei(t))}function Jn(t,e,n){(n!==i&&!Bo(t[e],n)||n===i&&!(e in t))&&rr(t,e,n)}function Kn(t,e,n){var r=t[e];Ot.call(t,e)&&Bo(r,n)&&(n!==i||e in t)||rr(t,e,n)}function tr(t,e){for(var n=t.length;n--;)if(Bo(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&&Mi(e,Aa(e),t)}function rr(t,e,n){"__proto__"==e&&te?te(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}function ir(t,e){for(var n=-1,s=e.length,o=r(s),a=null==t;++n<s;)o[n]=a?i: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]&&Ot.call(t,"index")&&(n.index=t.index,n.input=t.input),n}(t),!u)return Ei(t,a)}else{var f=cs(t),d=f==b||f==x;if(Xo(t))return bi(t,u);if(f==N||f==m||d&&!s){if(a=h||d?{}:ds(t),!u)return h?function(t,e){return Mi(t,ls(t),e)}(t,function(t,e){return t&&Mi(e,La(e),t)}(a,t)):function(t,e){return Mi(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 L:return xi(t);case g:case y:return new i(+t);case W:return function(t,e){var n=e?xi(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}(t,n);case O:case j:case D:case P:case I:case R:case B:case z:case F:return _i(t,n);case _:return new i;case k:case T:return new i(t);case E:return function(t){var e=new t.constructor(t.source,ft.exec(t));return e.lastIndex=t.lastIndex,e}(t);case M:return new i;case C:return r=t,Pn?Nt(Pn.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 v=c?i:(l?h?es:ts:h?La:Aa)(t);return Se(v||t,(function(r,i){v&&(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=Nt(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 Mt(s);return Ms((function(){t.apply(i,n)}),e)}function hr(t,e,n,r){var i=-1,s=Ce,o=!0,a=t.length,u=[],h=e.length;if(!a)return u;n&&(e=Le(e,$e(n))),r?(s=Ae,o=!1):e.length>=200&&(s=Ze,o=!1,e=new Gn(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}Rn.templateSettings={escape:$,evaluate:Q,interpolate:Z,variable:"",imports:{_:Rn}},Rn.prototype=zn.prototype,Rn.prototype.constructor=Rn,Fn.prototype=Bn(zn.prototype),Fn.prototype.constructor=Fn,qn.prototype=Bn(zn.prototype),qn.prototype.constructor=qn,Un.prototype.clear=function(){this.__data__=Mn?Mn(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(Mn){var n=e[t];return n===o?i:n}return Ot.call(e,t)?e[t]:i},Un.prototype.has=function(t){var e=this.__data__;return Mn?e[t]!==i:Ot.call(e,t)},Un.prototype.set=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=Mn&&e===i?o:e,this},Hn.prototype.clear=function(){this.__data__=[],this.size=0},Hn.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))},Hn.prototype.get=function(t){var e=this.__data__,n=tr(e,t);return n<0?i:e[n][1]},Hn.prototype.has=function(t){return tr(this.__data__,t)>-1},Hn.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},Vn.prototype.clear=function(){this.size=0,this.__data__={hash:new Un,map:new(kn||Hn),string:new Un}},Vn.prototype.delete=function(t){var e=os(this,t).delete(t);return this.size-=e?1:0,e},Vn.prototype.get=function(t){return os(this,t).get(t)},Vn.prototype.has=function(t){return os(this,t).has(t)},Vn.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},Gn.prototype.add=Gn.prototype.push=function(t){return this.__data__.set(t,o),this},Gn.prototype.has=function(t){return this.__data__.has(t)},Xn.prototype.clear=function(){this.__data__=new Hn,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 Hn){var r=n.__data__;if(!kn||r.length<199)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new Vn(r)}return n.set(t,e),this.size=n.size,this};var lr=Ai(yr),cr=Ai(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):We(i,a):r||(i[i.length]=a)}return i}var vr=Li(),gr=Li(!0);function yr(t,e){return t&&vr(t,e,Aa)}function wr(t,e){return t&&gr(t,e,Aa)}function br(t,e){return Te(e,(function(e){return Qo(t[e])}))}function xr(t,e){for(var n=0,r=(e=vi(e,t)).length;null!=t&&n<r;)t=t[Ds(e[n++])];return n&&n==r?t:i}function _r(t,e,n){var r=e(t);return Uo(t)?r:We(r,n(t))}function kr(t){return null==t?t===i?"[object Undefined]":"[object Null]":Jt&&Jt in Nt(t)?function(t){var e=Ot.call(t,Jt),n=t[Jt];try{t[Jt]=i;var r=!0}catch(t){}var s=Pt.call(t);return r&&(e?t[Jt]=n:delete t[Jt]),s}(t):function(t){return Pt.call(t)}(t)}function Nr(t,e){return t>e}function Sr(t,e){return null!=t&&Ot.call(t,e)}function Er(t,e){return null!=t&&e in Nt(t)}function Mr(t,e,n){for(var s=n?Ae:Ce,o=t[0].length,a=t.length,u=a,h=r(a),l=1/0,c=[];u--;){var f=t[u];u&&e&&(f=Le(f,$e(e))),l=gn(f.length,l),h[u]=!n&&(e||o>=120&&f.length>=120)?new Gn(u&&f):i}f=t[0];var d=-1,p=h[0];t:for(;++d<o&&c.length<l;){var m=f[d],v=e?e(m):m;if(m=n||0!==m?m:0,!(p?Ze(p,v):s(c,v,n))){for(u=a;--u;){var g=h[u];if(!(g?Ze(g,v):s(t[u],v,n)))continue t}p&&p.push(v),c.push(m)}}return c}function Tr(t,e,n){var r=null==(t=Ns(t,e=vi(e,t)))?t:t[Ds(Ys(e))];return null==r?i:ke(r,t,n)}function Cr(t){return ta(t)&&kr(t)==m}function Ar(t,e,n,r,s){return t===e||(null==t||null==e||!ta(t)&&!ta(e)?t!=t&&e!=e:function(t,e,n,r,s,o){var a=Uo(t),u=Uo(e),h=a?v:cs(t),l=u?v:cs(e),c=(h=h==m?N:h)==N,f=(l=l==m?N:l)==N,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 W:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case L:return!(t.byteLength!=e.byteLength||!s(new qt(t),new qt(e)));case g:case y:case k:return Bo(+t,+e);case w:return t.name==e.name&&t.message==e.message;case E:case T:return t==e+"";case _:var a=sn;case M: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 C:if(Pn)return Pn.call(t)==Pn.call(e)}return!1}(t,e,h,n,r,s,o);if(!(1&n)){var p=c&&Ot.call(t,"__wrapped__"),b=f&&Ot.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:Ot.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 v=t[c=u[l]],g=e[c];if(r)var y=a?r(g,v,c,e,t,o):r(v,g,c,t,e,o);if(!(y===i?v===g||s(v,g,n,r,o):y)){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,Ar,s))}function Lr(t,e,n,r){var s=n.length,o=s,a=!r;if(null==t)return!o;for(t=Nt(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?Ar(c,l,3,r,f):d))return!1}}return!0}function Wr(t){return!(!Ko(t)||(e=t,Dt&&Dt in e))&&(Qo(t)?Bt:mt).test(Ps(t));var e}function Or(t){return"function"==typeof t?t:null==t?nu:"object"==typeof t?Uo(t)?Rr(t[0],t[1]):Ir(t):cu(t)}function jr(t){if(!bs(t))return mn(t);var e=[];for(var n in Nt(t))Ot.call(t,n)&&"constructor"!=n&&e.push(n);return e}function Dr(t,e){return t<e}function Pr(t,e){var n=-1,i=Vo(t)?r(t.length):[];return lr(t,(function(t,r,s){i[++n]=e(t,r,s)})),i}function Ir(t){var e=as(t);return 1==e.length&&e[0][2]?_s(e[0][0],e[0][1]):function(n){return n===t||Lr(n,t,e)}}function Rr(t,e){return gs(t)&&xs(e)?_s(Ds(t),e):function(n){var r=Sa(n,t);return r===i&&r===e?Ea(n,t):Ar(e,r,3)}}function Br(t,e,n,r,s){t!==e&&vr(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:Go(u)?c=Ei(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=va(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,Br,r,s);else{var u=r?r(Ss(t,a),o,a+"",t,e,s):i;u===i&&(u=o),Jn(t,a,u)}}),La)}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?Le(e,(function(t){return Uo(t)?function(e){return xr(e,1===t.length?t[0]:t)}:t})):[nu];var r=-1;e=Le(e,$e(ss()));var i=Pr(t,(function(t,n,i){var s=Le(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=ki(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,vi(o,t),a)}return s}function Ur(t,e,n,r){var i=r?ze:Be,s=-1,o=e.length,a=t;for(t===e&&(e=Ei(e)),n&&(a=Le(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 Hr(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 Vr(t,e){return t+de(bn()*(e-t+1))}function Gr(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 Ts(ks(t,e,nu),t+"")}function Yr(t){return $n(Ba(t))}function $r(t,e){var n=Ba(t);return Ls(n,sr(e,0,n.length))}function Qr(t,e,n,r){if(!Ko(t))return t;for(var s=-1,o=(e=vi(e,t)).length,a=o-1,u=t;null!=u&&++s<o;){var h=Ds(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=Tn?function(t,e){return Tn.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 Ls(Ba(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,v=aa(f);if(a)var g=r||m;else g=l?m&&(r||d):u?m&&d&&(r||!p):h?m&&d&&!p&&(r||!v):!p&&!v&&(r?f<=e:f<e);g?s=c+1:o=c}return gn(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||!Bo(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 Le(t,oi)+"";if(aa(t))return In?In.call(t):"";var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}function ai(t,e,n){var r=-1,i=Ce,s=t.length,o=!0,a=[],u=a;if(n)o=!1,i=Ae;else if(s>=200){var h=e?null:Gi(t);if(h)return un(h);o=!1,i=Ze,u=new Gn}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=Ns(t,e=vi(e,t)))||delete t[Ds(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()),Oe(e,(function(t,e){return e.func.apply(e.thisArg,We([t],e.args))}),n)}function fi(t,e,n){var i=t.length;if(i<2)return i?ai(t[0]):[];for(var s=-1,o=r(i);++s<i;)for(var a=t[s],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 Go(t)?t:[]}function mi(t){return"function"==typeof t?t:nu}function vi(t,e){return Uo(t)?t:gs(t,e)?[t]:js(ga(t))}var gi=Xr;function yi(t,e,n){var r=t.length;return n=n===i?r:n,!e&&n>=r?t:ti(t,e,n)}var 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 ki(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 Ni(t,e,n,i){for(var s=-1,o=t.length,a=n.length,u=-1,h=e.length,l=vn(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=vn(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 Ei(t,e){var n=-1,i=t.length;for(e||(e=r(i));++n<i;)e[n]=t[n];return e}function Mi(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 Ti(t,e){return function(n,r){var i=Uo(n)?Ne:er,s=e?e():{};return i(n,t,ss(r,2),s)}}function Ci(t){return Xr((function(e,n){var r=-1,s=n.length,o=s>1?n[s-1]:i,a=s>2?n[2]:i;for(o=t.length>3&&"function"==typeof o?(s--,o):i,a&&vs(n[0],n[1],a)&&(o=s<3?i:o,s=1),e=Nt(e);++r<s;){var u=n[r];u&&t(e,u,r,o)}return e}))}function Ai(t,e){return function(n,r){if(null==n)return n;if(!Vo(n))return t(n,r);for(var i=n.length,s=e?i:-1,o=Nt(n);(e?s--:++s<i)&&!1!==r(o[s],s,o););return n}}function Li(t){return function(e,n,r){for(var i=-1,s=Nt(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 Wi(t){return function(e){var n=rn(e=ga(e))?cn(e):i,r=n?n[0]:e.charAt(0),s=n?yi(n,1).join(""):e.slice(1);return r[t]()+s}}function Oi(t){return function(e){return Oe(Qa(qa(e).replace(Qt,"")),t,"")}}function ji(t){return function(){var e=arguments;switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3]);case 5:return new t(e[0],e[1],e[2],e[3],e[4]);case 6:return new t(e[0],e[1],e[2],e[3],e[4],e[5]);case 7:return new t(e[0],e[1],e[2],e[3],e[4],e[5],e[6])}var n=Bn(t.prototype),r=t.apply(n,e);return Ko(r)?r:n}}function Di(t){return function(e,n,r){var s=Nt(e);if(!Vo(e)){var o=ss(n,3);e=Aa(e),n=function(t){return o(s[t],t,s)}}var a=t(e,n,r);return a>-1?s[o?e[a]:a]:i}}function Pi(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 Mt(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&&ys(l[0])&&424==l[1]&&!l[4].length&&1==l[9]?u[rs(l[0])].apply(u,l[3]):1==a.length&&ys(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 Ii(t,e,n,s,o,a,u,l,c,f){var d=e&h,p=1&e,m=2&e,v=24&e,g=512&e,y=m?i:ji(t);return function h(){for(var w=arguments.length,b=r(w),x=w;x--;)b[x]=arguments[x];if(v)var _=is(h),k=function(t,e){for(var n=t.length,r=0;n--;)t[n]===e&&++r;return r}(b,_);if(s&&(b=Ni(b,s,o,v)),a&&(b=Si(b,a,u,v)),w-=k,v&&w<f){var N=an(b,_);return Hi(t,e,Ii,h.placeholder,n,b,N,l,c,f-w)}var S=p?n:this,E=m?S[t]:t;return w=b.length,l?b=function(t,e){for(var n=t.length,r=gn(e.length,n),s=Ei(t);r--;){var o=e[r];t[r]=ms(o,n)?s[o]:i}return t}(b,l):g&&w>1&&b.reverse(),d&&c<w&&(b.length=c),this&&this!==ce&&this instanceof h&&(E=y||ji(E)),E.apply(S,b)}}function Ri(t,e){return function(n,r){return function(t,e,n,r){return yr(t,(function(t,i,s){e(r,n(t),i,s)})),r}(n,t,e(r),{})}}function Bi(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=Le(e,$e(ss())),Xr((function(n){var r=this;return t(e,(function(t){return ke(t,r,n)}))}))}))}function Fi(t,e){var n=(e=e===i?" ":oi(e)).length;if(n<2)return n?Gr(e,t):e;var r=Gr(e,fe(t/ln(e)));return rn(e)?yi(cn(r),0,t).join(""):r.slice(0,t)}function qi(t){return function(e,n,s){return s&&"number"!=typeof s&&vs(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=vn(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 Hi(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 ys(t)&&Es(p,d),p.placeholder=r,Cs(p,t,e)}function Vi(t){var e=kt[t];return function(t,n){if(t=ma(t),(n=null==n?0:gn(da(n),292))&&Pe(t)){var r=(ga(t)+"e").split("e");return+((r=(ga(e(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return e(t)}}var Gi=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==M?hn(e):function(t,e){return Le(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 Mt(s);var m=o?o.length:0;if(m||(e&=-97,o=l=i),f=f===i?f:vn(da(f),0),d=d===i?d:da(d),m-=l?l.length:0,64&e){var v=o,g=l;o=l=i}var y=p?i:ns(t),w=[t,e,n,o,l,v,g,c,f,d];if(y&&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?Ni(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]:gn(t[8],e[8])),null==t[9]&&(t[9]=e[9]),t[0]=e[0],t[1]=i}(w,y),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:vn(w[9]-m,0))&&24&e&&(e&=-25),e&&1!=e)b=8==e||16==e?function(t,e,n){var s=ji(t);return function o(){for(var a=arguments.length,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?Hi(t,e,Ii,o.placeholder,i,u,c,i,i,n-a):ke(this&&this!==ce&&this instanceof o?s:t,this,u)}}(t,e,d):e!=u&&33!=e||l.length?Ii.apply(i,w):function(t,e,n,i){var s=1&e,o=ji(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 ke(f,s?n:this,c)}}(t,e,n,o);else var b=function(t,e,n){var r=1&e,i=ji(t);return function e(){return(this&&this!==ce&&this instanceof e?i:t).apply(r?n:this,arguments)}}(t,e,n);return Cs((y?Zr:Es)(b,w),t,e)}function $i(t,e,n,r){return t===i||Bo(t,At[n])&&!Ot.call(r,n)?e:t}function Qi(t,e,n,r,s,o){return Ko(t)&&Ko(e)&&(o.set(e,t),Br(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 Gn:i;for(o.set(t,e),o.set(e,t);++f<u;){var m=t[f],v=e[f];if(r)var g=a?r(v,m,f,e,t,o):r(m,v,f,t,e,o);if(g!==i){if(g)continue;d=!1;break}if(p){if(!De(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!==v&&!s(m,v,n,r,o)){d=!1;break}}return o.delete(t),o.delete(e),d}function Ki(t){return Ts(ks(t,i,Us),t+"")}function ts(t){return _r(t,Aa,hs)}function es(t){return _r(t,La,ls)}var ns=Tn?function(t){return Tn.get(t)}:au;function rs(t){for(var e=t.name+"",n=Cn[e],r=Ot.call(Cn,e)?n.length:0;r--;){var i=n[r],s=i.func;if(null==s||s==t)return i.name}return e}function is(t){return(Ot.call(Rn,"placeholder")?Rn:t).placeholder}function ss(){var t=Rn.iteratee||ru;return t=t===ru?Or:t,arguments.length?t(arguments[0],arguments[1]):t}function os(t,e){var n,r,i=t.__data__;return("string"==(r=typeof(n=e))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?i["string"==typeof e?"string":"hash"]:i.map}function as(t){for(var e=Aa(t),n=e.length;n--;){var r=e[n],i=t[r];e[n]=[r,i,xs(i)]}return e}function us(t,e){var n=function(t,e){return null==t?i:t[e]}(t,e);return Wr(n)?n:i}var hs=me?function(t){return null==t?[]:(t=Nt(t),Te(me(t),(function(e){return Gt.call(t,e)})))}:pu,ls=me?function(t){for(var e=[];t;)We(e,hs(t)),t=Ht(t);return e}:pu,cs=kr;function fs(t,e,n){for(var r=-1,i=(e=vi(e,t)).length,s=!1;++r<i;){var o=Ds(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)?{}:Bn(Ht(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&>.test(t))&&t>-1&&t%1==0&&t<e}function vs(t,e,n){if(!Ko(n))return!1;var r=typeof e;return!!("number"==r?Vo(n)&&ms(e,n.length):"string"==r&&e in n)&&Bo(n[e],t)}function gs(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 Nt(e)}function ys(t){var e=rs(t),n=Rn[e];if("function"!=typeof n||!(e in qn.prototype))return!1;if(t===n)return!0;var r=ns(n);return!!r&&t===r[0]}(_n&&cs(new _n(new ArrayBuffer(1)))!=W||kn&&cs(new kn)!=_||Nn&&cs(Nn.resolve())!=S||Sn&&cs(new Sn)!=M||En&&cs(new En)!=A)&&(cs=function(t){var e=kr(t),n=e==N?t.constructor:i,r=n?Ps(n):"";if(r)switch(r){case An:return W;case Ln:return _;case Wn:return S;case On:return M;case jn:return A}return e});var ws=Lt?Qo:mu;function bs(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||At)}function xs(t){return t==t&&!Ko(t)}function _s(t,e){return function(n){return null!=n&&n[t]===e&&(e!==i||t in Nt(n))}}function ks(t,e,n){return e=vn(e===i?t.length-1:e,0),function(){for(var i=arguments,s=-1,o=vn(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),ke(t,this,u)}}function Ns(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 Es=As(Zr),Ms=le||function(t,e){return ce.setTimeout(t,e)},Ts=As(Jr);function Cs(t,e,n){var r=e+"";return Ts(t,function(t,e){var n=e.length;if(!n)return t;var r=n-1;return e[r]=(n>1?"& ":"")+e[r],e=e.join(n>2?", ":" "),t.replace(st,"{\n/* [wrapped with "+e+"] */\n")}(r,function(t,e){return Se(p,(function(n){var r="_."+n[0];e&n[1]&&!Ce(t,r)&&t.push(r)})),t.sort()}(function(t){var e=t.match(ot);return e?e[1].split(at):[]}(r),n)))}function As(t){var e=0,n=0;return function(){var r=yn(),s=16-(r-n);if(n=r,s>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(i,arguments)}}function Ls(t,e){var n=-1,r=t.length,s=r-1;for(e=e===i?r:e;++n<e;){var o=Vr(n,s),a=t[o];t[o]=t[n],t[n]=a}return t.length=e,t}var Ws,Os,js=(Ws=Oo((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===Os.size&&Os.clear(),t})),Os=Ws.cache,Ws);function Ds(t){if("string"==typeof t||aa(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}function Ps(t){if(null!=t){try{return Wt.call(t)}catch(t){}try{return t+""}catch(t){}}return""}function Is(t){if(t instanceof qn)return t.clone();var e=new Fn(t.__wrapped__,t.__chain__);return e.__actions__=Ei(t.__actions__),e.__index__=t.__index__,e.__values__=t.__values__,e}var Rs=Xr((function(t,e){return Go(t)?hr(t,mr(e,1,Go,!0)):[]})),Bs=Xr((function(t,e){var n=Ys(e);return Go(n)&&(n=i),Go(t)?hr(t,mr(e,1,Go,!0),ss(n,2)):[]})),zs=Xr((function(t,e){var n=Ys(e);return Go(n)&&(n=i),Go(t)?hr(t,mr(e,1,Go,!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=vn(r+i,0)),Re(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?vn(r+s,0):gn(s,r-1)),Re(t,ss(e,3),s,!0)}function Us(t){return null!=t&&t.length?mr(t,1):[]}function Hs(t){return t&&t.length?t[0]:i}var Vs=Xr((function(t){var e=Le(t,pi);return e.length&&e[0]===t[0]?Mr(e):[]})),Gs=Xr((function(t){var e=Ys(t),n=Le(t,pi);return e===Ys(n)?e=i:n.pop(),n.length&&n[0]===t[0]?Mr(n,ss(e,2)):[]})),Xs=Xr((function(t){var e=Ys(t),n=Le(t,pi);return(e="function"==typeof e?e:i)&&n.pop(),n.length&&n[0]===t[0]?Mr(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 Hr(t,Le(e,(function(t){return ms(t,n)?+t:t})).sort(ki)),r}));function Js(t){return null==t?t:xn.call(t)}var Ks=Xr((function(t){return ai(mr(t,1,Go,!0))})),to=Xr((function(t){var e=Ys(t);return Go(e)&&(e=i),ai(mr(t,1,Go,!0),ss(e,2))})),eo=Xr((function(t){var e=Ys(t);return e="function"==typeof e?e:i,ai(mr(t,1,Go,!0),i,e)}));function no(t){if(!t||!t.length)return[];var e=0;return t=Te(t,(function(t){if(Go(t))return e=vn(t.length,e),!0})),Xe(e,(function(e){return Le(t,Ue(e))}))}function ro(t,e){if(!t||!t.length)return[];var n=no(t);return null==e?n:Le(n,(function(t){return ke(e,i,t)}))}var io=Xr((function(t,e){return Go(t)?hr(t,e):[]})),so=Xr((function(t){return fi(Te(t,Go))})),oo=Xr((function(t){var e=Ys(t);return Go(e)&&(e=i),fi(Te(t,Go),ss(e,2))})),ao=Xr((function(t){var e=Ys(t);return e="function"==typeof e?e:i,fi(Te(t,Go),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=Rn(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=Ti((function(t,e,n){Ot.call(t,n)?++t[n]:rr(t,n,1)})),mo=Di(Fs),vo=Di(qs);function go(t,e){return(Uo(t)?Se:lr)(t,ss(e,3))}function yo(t,e){return(Uo(t)?Ee:cr)(t,ss(e,3))}var wo=Ti((function(t,e,n){Ot.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=Vo(t)?r(t.length):[];return lr(t,(function(t){o[++i]=s?ke(e,t,n):Tr(t,e,n)})),o})),xo=Ti((function(t,e,n){rr(t,n,e)}));function _o(t,e){return(Uo(t)?Le:Pr)(t,ss(e,3))}var ko=Ti((function(t,e,n){t[n?0:1].push(e)}),(function(){return[[],[]]})),No=Xr((function(t,e){if(null==t)return[];var n=e.length;return n>1&&vs(t,e[0],e[1])?e=[]:n>2&&vs(e[0],e[1],e[2])&&(e=[e[0]]),Fr(t,mr(e,1),[])})),So=he||function(){return ce.Date.now()};function Eo(t,e,n){return e=n?i:e,e=t&&null==e?t.length:e,Yi(t,h,i,i,i,i,e)}function Mo(t,e){var n;if("function"!=typeof e)throw new Mt(s);return t=da(t),function(){return--t>0&&(n=e.apply(this,arguments)),t<=1&&(e=i),n}}var To=Xr((function(t,e,n){var r=1;if(n.length){var i=an(n,is(To));r|=u}return Yi(t,r,e,n,i)})),Co=Xr((function(t,e,n){var r=3;if(n.length){var i=an(n,is(Co));r|=u}return Yi(e,r,t,n,i)}));function Ao(t,e,n){var r,o,a,u,h,l,c=0,f=!1,d=!1,p=!0;if("function"!=typeof t)throw new Mt(s);function m(e){var n=r,s=o;return r=o=i,c=e,u=t.apply(s,n)}function v(t){var n=t-l;return l===i||n>=e||n<0||d&&t-c>=a}function g(){var t=So();if(v(t))return y(t);h=Ms(g,function(t){var n=e-(t-l);return d?gn(n,a-(t-c)):n}(t))}function y(t){return h=i,p&&r?m(t):(r=o=i,u)}function w(){var t=So(),n=v(t);if(r=arguments,o=this,l=t,n){if(h===i)return function(t){return c=t,h=Ms(g,e),f?m(t):u}(l);if(d)return wi(h),h=Ms(g,e),m(l)}return h===i&&(h=Ms(g,e)),u}return e=ma(e)||0,Ko(n)&&(f=!!n.leading,a=(d="maxWait"in n)?vn(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:y(So())},w}var Lo=Xr((function(t,e){return ur(t,1,e)})),Wo=Xr((function(t,e,n){return ur(t,ma(e)||0,n)}));function Oo(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new Mt(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(Oo.Cache||Vn),n}function jo(t){if("function"!=typeof t)throw new Mt(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)}}Oo.Cache=Vn;var Do=gi((function(t,e){var n=(e=1==e.length&&Uo(e[0])?Le(e[0],$e(ss())):Le(mr(e,1),$e(ss()))).length;return Xr((function(r){for(var i=-1,s=gn(r.length,n);++i<s;)r[i]=e[i].call(this,r[i]);return ke(t,this,r)}))})),Po=Xr((function(t,e){var n=an(e,is(Po));return Yi(t,u,i,e,n)})),Io=Xr((function(t,e){var n=an(e,is(Io));return Yi(t,64,i,e,n)})),Ro=Ki((function(t,e){return Yi(t,256,i,i,i,e)}));function Bo(t,e){return t===e||t!=t&&e!=e}var zo=Ui(Nr),Fo=Ui((function(t,e){return t>=e})),qo=Cr(function(){return arguments}())?Cr:function(t){return ta(t)&&Ot.call(t,"callee")&&!Gt.call(t,"callee")},Uo=r.isArray,Ho=ge?$e(ge):function(t){return ta(t)&&kr(t)==L};function Vo(t){return null!=t&&Jo(t.length)&&!Qo(t)}function Go(t){return ta(t)&&Vo(t)}var Xo=ve||mu,Yo=ye?$e(ye):function(t){return ta(t)&&kr(t)==y};function $o(t){if(!ta(t))return!1;var e=kr(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=kr(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)&&kr(t)==k}function ra(t){if(!ta(t)||kr(t)!=N)return!1;var e=Ht(t);if(null===e)return!0;var n=Ot.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&Wt.call(n)==It}var ia=be?$e(be):function(t){return ta(t)&&kr(t)==E},sa=xe?$e(xe):function(t){return ta(t)&&cs(t)==M};function oa(t){return"string"==typeof t||!Uo(t)&&ta(t)&&kr(t)==T}function aa(t){return"symbol"==typeof t||ta(t)&&kr(t)==C}var ua=_e?$e(_e):function(t){return ta(t)&&Jo(t.length)&&!!ie[kr(t)]},ha=Ui(Dr),la=Ui((function(t,e){return t<=e}));function ca(t){if(!t)return[];if(Vo(t))return oa(t)?cn(t):Ei(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==M?un:Ba)(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||vt.test(t)?ue(t.slice(2),n?2:8):dt.test(t)?f:+t}function va(t){return Mi(t,La(t))}function ga(t){return null==t?"":oi(t)}var ya=Ci((function(t,e){if(bs(e)||Vo(e))Mi(e,Aa(e),t);else for(var n in e)Ot.call(e,n)&&Kn(t,n,e[n])})),wa=Ci((function(t,e){Mi(e,La(e),t)})),ba=Ci((function(t,e,n,r){Mi(e,La(e),t,r)})),xa=Ci((function(t,e,n,r){Mi(e,Aa(e),t,r)})),_a=Ki(ir),ka=Xr((function(t,e){t=Nt(t);var n=-1,r=e.length,s=r>2?e[2]:i;for(s&&vs(e[0],e[1],s)&&(r=1);++n<r;)for(var o=e[n],a=La(o),u=-1,h=a.length;++u<h;){var l=a[u],c=t[l];(c===i||Bo(c,At[l])&&!Ot.call(t,l))&&(t[l]=o[l])}return t})),Na=Xr((function(t){return t.push(i,Qi),ke(Oa,i,t)}));function Sa(t,e,n){var r=null==t?i:xr(t,e);return r===i?n:r}function Ea(t,e){return null!=t&&fs(t,e,Er)}var Ma=Ri((function(t,e,n){null!=e&&"function"!=typeof e.toString&&(e=Pt.call(e)),t[e]=n}),Ka(nu)),Ta=Ri((function(t,e,n){null!=e&&"function"!=typeof e.toString&&(e=Pt.call(e)),Ot.call(t,e)?t[e].push(n):t[e]=[n]}),ss),Ca=Xr(Tr);function Aa(t){return Vo(t)?Yn(t):jr(t)}function La(t){return Vo(t)?Yn(t,!0):function(t){if(!Ko(t))return function(t){var e=[];if(null!=t)for(var n in Nt(t))e.push(n);return e}(t);var e=bs(t),n=[];for(var r in t)("constructor"!=r||!e&&Ot.call(t,r))&&n.push(r);return n}(t)}var Wa=Ci((function(t,e,n){Br(t,e,n)})),Oa=Ci((function(t,e,n,r){Br(t,e,n,r)})),ja=Ki((function(t,e){var n={};if(null==t)return n;var r=!1;e=Le(e,(function(e){return e=vi(e,t),r||(r=e.length>1),e})),Mi(t,es(t),n),r&&(n=or(n,7,Zi));for(var i=e.length;i--;)ui(n,e[i]);return n})),Da=Ki((function(t,e){return null==t?{}:function(t,e){return qr(t,e,(function(e,n){return Ea(t,n)}))}(t,e)}));function Pa(t,e){if(null==t)return{};var n=Le(es(t),(function(t){return[t]}));return e=ss(e),qr(t,n,(function(t,n){return e(t,n[0])}))}var Ia=Xi(Aa),Ra=Xi(La);function Ba(t){return null==t?[]:Qe(t,Aa(t))}var za=Oi((function(t,e,n){return e=e.toLowerCase(),t+(n?Fa(e):e)}));function Fa(t){return $a(ga(t).toLowerCase())}function qa(t){return(t=ga(t))&&t.replace(yt,tn).replace(Zt,"")}var Ua=Oi((function(t,e,n){return t+(n?"-":"")+e.toLowerCase()})),Ha=Oi((function(t,e,n){return t+(n?" ":"")+e.toLowerCase()})),Va=Wi("toLowerCase"),Ga=Oi((function(t,e,n){return t+(n?"_":"")+e.toLowerCase()})),Xa=Oi((function(t,e,n){return t+(n?" ":"")+$a(e)})),Ya=Oi((function(t,e,n){return t+(n?" ":"")+e.toUpperCase()})),$a=Wi("toUpperCase");function Qa(t,e,n){return t=ga(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 ke(t,i,e)}catch(t){return $o(t)?t:new xt(t)}})),Ja=Ki((function(t,e){return Se(e,(function(e){e=Ds(e),rr(t,e,To(t[e],t))})),t}));function Ka(t){return function(){return t}}var tu=Pi(),eu=Pi(!0);function nu(t){return t}function ru(t){return Or("function"==typeof t?t:or(t,1))}var iu=Xr((function(t,e){return function(n){return Tr(n,t,e)}})),su=Xr((function(t,e){return function(n){return Tr(t,n,e)}}));function ou(t,e,n){var r=Aa(e),i=br(e,r);null!=n||Ko(e)&&(i.length||!r.length)||(n=e,e=t,t=this,i=br(e,Aa(e)));var s=!(Ko(n)&&"chain"in n&&!n.chain),o=Qo(t);return 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__=Ei(this.__actions__)).push({func:r,args:arguments,thisArg:t}),n.__chain__=e,n}return r.apply(t,We([this.value()],arguments))})})),t}function au(){}var uu=zi(Le),hu=zi(Me),lu=zi(De);function cu(t){return gs(t)?Ue(Ds(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 vu,gu=Bi((function(t,e){return t+e}),0),yu=Vi("ceil"),wu=Bi((function(t,e){return t/e}),1),bu=Vi("floor"),xu=Bi((function(t,e){return t*e}),1),_u=Vi("round"),ku=Bi((function(t,e){return t-e}),0);return Rn.after=function(t,e){if("function"!=typeof e)throw new Mt(s);return t=da(t),function(){if(--t<1)return e.apply(this,arguments)}},Rn.ary=Eo,Rn.assign=ya,Rn.assignIn=wa,Rn.assignInWith=ba,Rn.assignWith=xa,Rn.at=_a,Rn.before=Mo,Rn.bind=To,Rn.bindAll=Ja,Rn.bindKey=Co,Rn.castArray=function(){if(!arguments.length)return[];var t=arguments[0];return Uo(t)?t:[t]},Rn.chain=lo,Rn.chunk=function(t,e,n){e=(n?vs(t,e,n):e===i)?1:vn(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},Rn.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},Rn.concat=function(){var t=arguments.length;if(!t)return[];for(var e=r(t-1),n=arguments[0],i=t;i--;)e[i-1]=arguments[i];return We(Uo(n)?Ei(n):[n],mr(e,1))},Rn.cond=function(t){var e=null==t?0:t.length,n=ss();return t=e?Le(t,(function(t){if("function"!=typeof t[1])throw new Mt(s);return[n(t[0]),t[1]]})):[],Xr((function(n){for(var r=-1;++r<e;){var i=t[r];if(ke(i[0],this,n))return ke(i[1],this,n)}}))},Rn.conforms=function(t){return function(t){var e=Aa(t);return function(n){return ar(n,t,e)}}(or(t,1))},Rn.constant=Ka,Rn.countBy=po,Rn.create=function(t,e){var n=Bn(t);return null==e?n:nr(n,e)},Rn.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},Rn.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},Rn.debounce=Ao,Rn.defaults=ka,Rn.defaultsDeep=Na,Rn.defer=Lo,Rn.delay=Wo,Rn.difference=Rs,Rn.differenceBy=Bs,Rn.differenceWith=zs,Rn.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):[]},Rn.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):[]},Rn.dropRightWhile=function(t,e){return t&&t.length?li(t,ss(e,3),!0,!0):[]},Rn.dropWhile=function(t,e){return t&&t.length?li(t,ss(e,3),!0):[]},Rn.fill=function(t,e,n,r){var s=null==t?0:t.length;return s?(n&&"number"!=typeof n&&vs(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)):[]},Rn.filter=function(t,e){return(Uo(t)?Te:pr)(t,ss(e,3))},Rn.flatMap=function(t,e){return mr(_o(t,e),1)},Rn.flatMapDeep=function(t,e){return mr(_o(t,e),l)},Rn.flatMapDepth=function(t,e,n){return n=n===i?1:da(n),mr(_o(t,e),n)},Rn.flatten=Us,Rn.flattenDeep=function(t){return null!=t&&t.length?mr(t,l):[]},Rn.flattenDepth=function(t,e){return null!=t&&t.length?mr(t,e=e===i?1:da(e)):[]},Rn.flip=function(t){return Yi(t,512)},Rn.flow=tu,Rn.flowRight=eu,Rn.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},Rn.functions=function(t){return null==t?[]:br(t,Aa(t))},Rn.functionsIn=function(t){return null==t?[]:br(t,La(t))},Rn.groupBy=wo,Rn.initial=function(t){return null!=t&&t.length?ti(t,0,-1):[]},Rn.intersection=Vs,Rn.intersectionBy=Gs,Rn.intersectionWith=Xs,Rn.invert=Ma,Rn.invertBy=Ta,Rn.invokeMap=bo,Rn.iteratee=ru,Rn.keyBy=xo,Rn.keys=Aa,Rn.keysIn=La,Rn.map=_o,Rn.mapKeys=function(t,e){var n={};return e=ss(e,3),yr(t,(function(t,r,i){rr(n,e(t,r,i),t)})),n},Rn.mapValues=function(t,e){var n={};return e=ss(e,3),yr(t,(function(t,r,i){rr(n,r,e(t,r,i))})),n},Rn.matches=function(t){return Ir(or(t,1))},Rn.matchesProperty=function(t,e){return Rr(t,or(e,1))},Rn.memoize=Oo,Rn.merge=Wa,Rn.mergeWith=Oa,Rn.method=iu,Rn.methodOf=su,Rn.mixin=ou,Rn.negate=jo,Rn.nthArg=function(t){return t=da(t),Xr((function(e){return zr(e,t)}))},Rn.omit=ja,Rn.omitBy=function(t,e){return Pa(t,jo(ss(e)))},Rn.once=function(t){return Mo(2,t)},Rn.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))},Rn.over=uu,Rn.overArgs=Do,Rn.overEvery=hu,Rn.overSome=lu,Rn.partial=Po,Rn.partialRight=Io,Rn.partition=ko,Rn.pick=Da,Rn.pickBy=Pa,Rn.property=cu,Rn.propertyOf=function(t){return function(e){return null==t?i:xr(t,e)}},Rn.pull=$s,Rn.pullAll=Qs,Rn.pullAllBy=function(t,e,n){return t&&t.length&&e&&e.length?Ur(t,e,ss(n,2)):t},Rn.pullAllWith=function(t,e,n){return t&&t.length&&e&&e.length?Ur(t,e,i,n):t},Rn.pullAt=Zs,Rn.range=fu,Rn.rangeRight=du,Rn.rearg=Ro,Rn.reject=function(t,e){return(Uo(t)?Te:pr)(t,jo(ss(e,3)))},Rn.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 Hr(t,i),n},Rn.rest=function(t,e){if("function"!=typeof t)throw new Mt(s);return Xr(t,e=e===i?e:da(e))},Rn.reverse=Js,Rn.sampleSize=function(t,e,n){return e=(n?vs(t,e,n):e===i)?1:da(e),(Uo(t)?Qn:$r)(t,e)},Rn.set=function(t,e,n){return null==t?t:Qr(t,e,n)},Rn.setWith=function(t,e,n,r){return r="function"==typeof r?r:i,null==t?t:Qr(t,e,n,r)},Rn.shuffle=function(t){return(Uo(t)?Zn:Kr)(t)},Rn.slice=function(t,e,n){var r=null==t?0:t.length;return r?(n&&"number"!=typeof n&&vs(t,e,n)?(e=0,n=r):(e=null==e?0:da(e),n=n===i?r:da(n)),ti(t,e,n)):[]},Rn.sortBy=No,Rn.sortedUniq=function(t){return t&&t.length?ii(t):[]},Rn.sortedUniqBy=function(t,e){return t&&t.length?ii(t,ss(e,2)):[]},Rn.split=function(t,e,n){return n&&"number"!=typeof n&&vs(t,e,n)&&(e=n=i),(n=n===i?d:n>>>0)?(t=ga(t))&&("string"==typeof e||null!=e&&!ia(e))&&!(e=oi(e))&&rn(t)?yi(cn(t),0,n):t.split(e,n):[]},Rn.spread=function(t,e){if("function"!=typeof t)throw new Mt(s);return e=null==e?0:vn(da(e),0),Xr((function(n){var r=n[e],i=yi(n,0,e);return r&&We(i,r),ke(t,this,i)}))},Rn.tail=function(t){var e=null==t?0:t.length;return e?ti(t,1,e):[]},Rn.take=function(t,e,n){return t&&t.length?ti(t,0,(e=n||e===i?1:da(e))<0?0:e):[]},Rn.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):[]},Rn.takeRightWhile=function(t,e){return t&&t.length?li(t,ss(e,3),!1,!0):[]},Rn.takeWhile=function(t,e){return t&&t.length?li(t,ss(e,3)):[]},Rn.tap=function(t,e){return e(t),t},Rn.throttle=function(t,e,n){var r=!0,i=!0;if("function"!=typeof t)throw new Mt(s);return Ko(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),Ao(t,e,{leading:r,maxWait:e,trailing:i})},Rn.thru=co,Rn.toArray=ca,Rn.toPairs=Ia,Rn.toPairsIn=Ra,Rn.toPath=function(t){return Uo(t)?Le(t,Ds):aa(t)?[t]:Ei(js(ga(t)))},Rn.toPlainObject=va,Rn.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)?Bn(Ht(t)):{}}return(i?Se:yr)(t,(function(t,r,i){return e(n,t,r,i)})),n},Rn.unary=function(t){return Eo(t,1)},Rn.union=Ks,Rn.unionBy=to,Rn.unionWith=eo,Rn.uniq=function(t){return t&&t.length?ai(t):[]},Rn.uniqBy=function(t,e){return t&&t.length?ai(t,ss(e,2)):[]},Rn.uniqWith=function(t,e){return e="function"==typeof e?e:i,t&&t.length?ai(t,i,e):[]},Rn.unset=function(t,e){return null==t||ui(t,e)},Rn.unzip=no,Rn.unzipWith=ro,Rn.update=function(t,e,n){return null==t?t:hi(t,e,mi(n))},Rn.updateWith=function(t,e,n,r){return r="function"==typeof r?r:i,null==t?t:hi(t,e,mi(n),r)},Rn.values=Ba,Rn.valuesIn=function(t){return null==t?[]:Qe(t,La(t))},Rn.without=io,Rn.words=Qa,Rn.wrap=function(t,e){return Po(mi(e),t)},Rn.xor=so,Rn.xorBy=oo,Rn.xorWith=ao,Rn.zip=uo,Rn.zipObject=function(t,e){return di(t||[],e||[],Kn)},Rn.zipObjectDeep=function(t,e){return di(t||[],e||[],Qr)},Rn.zipWith=ho,Rn.entries=Ia,Rn.entriesIn=Ra,Rn.extend=wa,Rn.extendWith=ba,ou(Rn,Rn),Rn.add=gu,Rn.attempt=Za,Rn.camelCase=za,Rn.capitalize=Fa,Rn.ceil=yu,Rn.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)},Rn.clone=function(t){return or(t,4)},Rn.cloneDeep=function(t){return or(t,5)},Rn.cloneDeepWith=function(t,e){return or(t,5,e="function"==typeof e?e:i)},Rn.cloneWith=function(t,e){return or(t,4,e="function"==typeof e?e:i)},Rn.conformsTo=function(t,e){return null==e||ar(t,e,Aa(e))},Rn.deburr=qa,Rn.defaultTo=function(t,e){return null==t||t!=t?e:t},Rn.divide=wu,Rn.endsWith=function(t,e,n){t=ga(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},Rn.eq=Bo,Rn.escape=function(t){return(t=ga(t))&&Y.test(t)?t.replace(G,en):t},Rn.escapeRegExp=function(t){return(t=ga(t))&&nt.test(t)?t.replace(et,"\\$&"):t},Rn.every=function(t,e,n){var r=Uo(t)?Me:fr;return n&&vs(t,e,n)&&(e=i),r(t,ss(e,3))},Rn.find=mo,Rn.findIndex=Fs,Rn.findKey=function(t,e){return Ie(t,ss(e,3),yr)},Rn.findLast=vo,Rn.findLastIndex=qs,Rn.findLastKey=function(t,e){return Ie(t,ss(e,3),wr)},Rn.floor=bu,Rn.forEach=go,Rn.forEachRight=yo,Rn.forIn=function(t,e){return null==t?t:vr(t,ss(e,3),La)},Rn.forInRight=function(t,e){return null==t?t:gr(t,ss(e,3),La)},Rn.forOwn=function(t,e){return t&&yr(t,ss(e,3))},Rn.forOwnRight=function(t,e){return t&&wr(t,ss(e,3))},Rn.get=Sa,Rn.gt=zo,Rn.gte=Fo,Rn.has=function(t,e){return null!=t&&fs(t,e,Sr)},Rn.hasIn=Ea,Rn.head=Hs,Rn.identity=nu,Rn.includes=function(t,e,n,r){t=Vo(t)?t:Ba(t),n=n&&!r?da(n):0;var i=t.length;return n<0&&(n=vn(i+n,0)),oa(t)?n<=i&&t.indexOf(e,n)>-1:!!i&&Be(t,e,n)>-1},Rn.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=vn(r+i,0)),Be(t,e,i)},Rn.inRange=function(t,e,n){return e=fa(e),n===i?(n=e,e=0):n=fa(n),function(t,e,n){return t>=gn(e,n)&&t<vn(e,n)}(t=ma(t),e,n)},Rn.invoke=Ca,Rn.isArguments=qo,Rn.isArray=Uo,Rn.isArrayBuffer=Ho,Rn.isArrayLike=Vo,Rn.isArrayLikeObject=Go,Rn.isBoolean=function(t){return!0===t||!1===t||ta(t)&&kr(t)==g},Rn.isBuffer=Xo,Rn.isDate=Yo,Rn.isElement=function(t){return ta(t)&&1===t.nodeType&&!ra(t)},Rn.isEmpty=function(t){if(null==t)return!0;if(Vo(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==M)return!t.size;if(bs(t))return!jr(t).length;for(var n in t)if(Ot.call(t,n))return!1;return!0},Rn.isEqual=function(t,e){return Ar(t,e)},Rn.isEqualWith=function(t,e,n){var r=(n="function"==typeof n?n:i)?n(t,e):i;return r===i?Ar(t,e,i,n):!!r},Rn.isError=$o,Rn.isFinite=function(t){return"number"==typeof t&&Pe(t)},Rn.isFunction=Qo,Rn.isInteger=Zo,Rn.isLength=Jo,Rn.isMap=ea,Rn.isMatch=function(t,e){return t===e||Lr(t,e,as(e))},Rn.isMatchWith=function(t,e,n){return n="function"==typeof n?n:i,Lr(t,e,as(e),n)},Rn.isNaN=function(t){return na(t)&&t!=+t},Rn.isNative=function(t){if(ws(t))throw new xt("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Wr(t)},Rn.isNil=function(t){return null==t},Rn.isNull=function(t){return null===t},Rn.isNumber=na,Rn.isObject=Ko,Rn.isObjectLike=ta,Rn.isPlainObject=ra,Rn.isRegExp=ia,Rn.isSafeInteger=function(t){return Zo(t)&&t>=-9007199254740991&&t<=c},Rn.isSet=sa,Rn.isString=oa,Rn.isSymbol=aa,Rn.isTypedArray=ua,Rn.isUndefined=function(t){return t===i},Rn.isWeakMap=function(t){return ta(t)&&cs(t)==A},Rn.isWeakSet=function(t){return ta(t)&&"[object WeakSet]"==kr(t)},Rn.join=function(t,e){return null==t?"":He.call(t,e)},Rn.kebabCase=Ua,Rn.last=Ys,Rn.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?vn(r+s,0):gn(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):Re(t,Fe,s,!0)},Rn.lowerCase=Ha,Rn.lowerFirst=Va,Rn.lt=ha,Rn.lte=la,Rn.max=function(t){return t&&t.length?dr(t,nu,Nr):i},Rn.maxBy=function(t,e){return t&&t.length?dr(t,ss(e,2),Nr):i},Rn.mean=function(t){return qe(t,nu)},Rn.meanBy=function(t,e){return qe(t,ss(e,2))},Rn.min=function(t){return t&&t.length?dr(t,nu,Dr):i},Rn.minBy=function(t,e){return t&&t.length?dr(t,ss(e,2),Dr):i},Rn.stubArray=pu,Rn.stubFalse=mu,Rn.stubObject=function(){return{}},Rn.stubString=function(){return""},Rn.stubTrue=function(){return!0},Rn.multiply=xu,Rn.nth=function(t,e){return t&&t.length?zr(t,da(e)):i},Rn.noConflict=function(){return ce._===this&&(ce._=Rt),this},Rn.noop=au,Rn.now=So,Rn.pad=function(t,e,n){t=ga(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)},Rn.padEnd=function(t,e,n){t=ga(t);var r=(e=da(e))?ln(t):0;return e&&r<e?t+Fi(e-r,n):t},Rn.padStart=function(t,e,n){t=ga(t);var r=(e=da(e))?ln(t):0;return e&&r<e?Fi(e-r,n)+t:t},Rn.parseInt=function(t,e,n){return n||null==e?e=0:e&&(e=+e),wn(ga(t).replace(rt,""),e||0)},Rn.random=function(t,e,n){if(n&&"boolean"!=typeof n&&vs(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 gn(t+s*(e-t+ae("1e-"+((s+"").length-1))),e)}return Vr(t,e)},Rn.reduce=function(t,e,n){var r=Uo(t)?Oe:Ve,i=arguments.length<3;return r(t,ss(e,4),n,i,lr)},Rn.reduceRight=function(t,e,n){var r=Uo(t)?je:Ve,i=arguments.length<3;return r(t,ss(e,4),n,i,cr)},Rn.repeat=function(t,e,n){return e=(n?vs(t,e,n):e===i)?1:da(e),Gr(ga(t),e)},Rn.replace=function(){var t=arguments,e=ga(t[0]);return t.length<3?e:e.replace(t[1],t[2])},Rn.result=function(t,e,n){var r=-1,s=(e=vi(e,t)).length;for(s||(s=1,t=i);++r<s;){var o=null==t?i:t[Ds(e[r])];o===i&&(r=s,o=n),t=Qo(o)?o.call(t):o}return t},Rn.round=_u,Rn.runInContext=t,Rn.sample=function(t){return(Uo(t)?$n:Yr)(t)},Rn.size=function(t){if(null==t)return 0;if(Vo(t))return oa(t)?ln(t):t.length;var e=cs(t);return e==_||e==M?t.size:jr(t).length},Rn.snakeCase=Ga,Rn.some=function(t,e,n){var r=Uo(t)?De:ei;return n&&vs(t,e,n)&&(e=i),r(t,ss(e,3))},Rn.sortedIndex=function(t,e){return ni(t,e)},Rn.sortedIndexBy=function(t,e,n){return ri(t,e,ss(n,2))},Rn.sortedIndexOf=function(t,e){var n=null==t?0:t.length;if(n){var r=ni(t,e);if(r<n&&Bo(t[r],e))return r}return-1},Rn.sortedLastIndex=function(t,e){return ni(t,e,!0)},Rn.sortedLastIndexBy=function(t,e,n){return ri(t,e,ss(n,2),!0)},Rn.sortedLastIndexOf=function(t,e){if(null!=t&&t.length){var n=ni(t,e,!0)-1;if(Bo(t[n],e))return n}return-1},Rn.startCase=Xa,Rn.startsWith=function(t,e,n){return t=ga(t),n=null==n?0:sr(da(n),0,t.length),e=oi(e),t.slice(n,n+e.length)==e},Rn.subtract=ku,Rn.sum=function(t){return t&&t.length?Ge(t,nu):0},Rn.sumBy=function(t,e){return t&&t.length?Ge(t,ss(e,2)):0},Rn.template=function(t,e,n){var r=Rn.templateSettings;n&&vs(t,e,n)&&(e=i),t=ga(t),e=ba({},e,r,$i);var s,o,a=ba({},e.imports,r.imports,$i),u=Aa(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="+(Ot.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=Ot.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(H,"$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 v=Za((function(){return _t(u,p+"return "+f).apply(i,h)}));if(v.source=f,$o(v))throw v;return v},Rn.times=function(t,e){if((t=da(t))<1||t>c)return[];var n=d,r=gn(t,d);e=ss(e),t-=d;for(var i=Xe(r,e);++n<t;)e(n);return i},Rn.toFinite=fa,Rn.toInteger=da,Rn.toLength=pa,Rn.toLower=function(t){return ga(t).toLowerCase()},Rn.toNumber=ma,Rn.toSafeInteger=function(t){return t?sr(da(t),-9007199254740991,c):0===t?t:0},Rn.toString=ga,Rn.toUpper=function(t){return ga(t).toUpperCase()},Rn.trim=function(t,e,n){if((t=ga(t))&&(n||e===i))return Ye(t);if(!t||!(e=oi(e)))return t;var r=cn(t),s=cn(e);return yi(r,Je(r,s),Ke(r,s)+1).join("")},Rn.trimEnd=function(t,e,n){if((t=ga(t))&&(n||e===i))return t.slice(0,fn(t)+1);if(!t||!(e=oi(e)))return t;var r=cn(t);return yi(r,0,Ke(r,cn(e))+1).join("")},Rn.trimStart=function(t,e,n){if((t=ga(t))&&(n||e===i))return t.replace(rt,"");if(!t||!(e=oi(e)))return t;var r=cn(t);return yi(r,Je(r,cn(e))).join("")},Rn.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=ga(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?yi(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,ga(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},Rn.unescape=function(t){return(t=ga(t))&&X.test(t)?t.replace(V,dn):t},Rn.uniqueId=function(t){var e=++jt;return ga(t)+e},Rn.upperCase=Ya,Rn.upperFirst=$a,Rn.each=go,Rn.eachRight=yo,Rn.first=Hs,ou(Rn,(vu={},yr(Rn,(function(t,e){Ot.call(Rn.prototype,e)||(vu[e]=t)})),vu),{chain:!1}),Rn.VERSION="4.17.21",Se(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(t){Rn[t].placeholder=Rn})),Se(["drop","take"],(function(t,e){qn.prototype[t]=function(n){n=n===i?1:vn(da(n),0);var r=this.__filtered__&&!e?new qn(this):this.clone();return r.__filtered__?r.__takeCount__=gn(n,r.__takeCount__):r.__views__.push({size:gn(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 Tr(n,t,e)}))})),qn.prototype.reject=function(t){return this.filter(jo(ss(t)))},qn.prototype.slice=function(t,e){t=da(t);var n=this;return n.__filtered__&&(t>0||e<0)?new qn(n):(t<0?n=n.takeRight(-t):t&&(n=n.drop(t)),e!==i&&(n=(e=da(e))<0?n.dropRight(-e):n.take(e-t)),n)},qn.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},qn.prototype.toArray=function(){return this.take(d)},yr(qn.prototype,(function(t,e){var n=/^(?:filter|find|map|reject)|While$/.test(e),r=/^(?:head|last)$/.test(e),s=Rn[r?"take"+("last"==e?"Right":""):e],o=r||/^find/.test(e);s&&(Rn.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(Rn,We([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 v=t.apply(e,a);return v.__actions__.push({func:co,args:[c],thisArg:i}),new Fn(v,f)}return p&&m?t.apply(this,a):(v=this.thru(c),p?r?v.value()[0]:v.value():v)})})),Se(["pop","push","shift","sort","splice","unshift"],(function(t){var e=Tt[t],n=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",r=/^(?:pop|shift)$/.test(t);Rn.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)}))}})),yr(qn.prototype,(function(t,e){var n=Rn[e];if(n){var r=n.name+"";Ot.call(Cn,r)||(Cn[r]=[]),Cn[r].push({name:e,func:n})}})),Cn[Ii(i,2).name]=[{name:"wrapper",func:i}],qn.prototype.clone=function(){var t=new qn(this.__wrapped__);return t.__actions__=Ei(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=Ei(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=Ei(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=gn(e,t+o);break;case"takeRight":t=vn(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=gn(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,v=t[h+=e];++m<c;){var g=l[m],y=g.iteratee,w=g.type,b=y(v);if(2==w)v=b;else if(!b){if(1==w)continue t;break t}}p[f++]=v}return p},Rn.prototype.at=fo,Rn.prototype.chain=function(){return lo(this)},Rn.prototype.commit=function(){return new Fn(this.value(),this.__chain__)},Rn.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__++]}},Rn.prototype.plant=function(t){for(var e,n=this;n instanceof zn;){var r=Is(n);r.__index__=0,r.__values__=i,e?s.__wrapped__=r:e=r;var s=r;n=n.__wrapped__}return s.__wrapped__=t,e},Rn.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)},Rn.prototype.toJSON=Rn.prototype.valueOf=Rn.prototype.value=function(){return ci(this.__wrapped__,this.__actions__)},Rn.prototype.first=Rn.prototype.head,$t&&(Rn.prototype[$t]=function(){return this}),Rn}();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: black;\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:()=>y,IU:()=>d,QB:()=>g,Qs:()=>f,Te:()=>v,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: black;\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: 10px 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: black;\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: black;\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",v="vXdbsaENeFcx9uTlNetr",g="a5Wi7rcTlB2tWpGwD8zf";const y=o},659:t=>{"use strict";var e={};t.exports=function(t,n){var r=function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(t){n=null}e[t]=n}return e[t]}(t);if(!r)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");r.appendChild(n)}},678:(t,e,n)=>{"use strict";n.d(e,{Ay:()=>h,ZZ:()=>a,o3:()=>u});var r=n(601),i=n.n(r),s=n(314),o=n.n(s)()(i());o.push([t.id,'.rIHrsark1WbeRGC9M1ZY {\n display: flex;\n flex-direction: row;\n align-items: center;\n\n font-family: "Open Sans", sans-serif;\n font-size: 12px;\n font-weight: 700;\n font-style: normal;\n color: black;\n\n user-select: none;\n -webkit-user-select: none;\n\n pointer-events: auto;\n}\n\n.P5PJGaHxnhsEaezm8Nhg {\n color: black;\n\n cursor: pointer;\n\n text-decoration: none;\n}\n\n.P5PJGaHxnhsEaezm8Nhg:hover {\n text-decoration: underline;\n}\n',""]);var a="rIHrsark1WbeRGC9M1ZY",u="P5PJGaHxnhsEaezm8Nhg";const h=o},692:function(t,e){var n;!function(e,n){"use strict";"object"==typeof t.exports?t.exports=e.document?n(e,!0):function(t){if(!t.document)throw new Error("jQuery requires a window with a document");return n(t)}:n(e)}("undefined"!=typeof window?window:this,(function(r,i){"use strict";var s=[],o=Object.getPrototypeOf,a=s.slice,u=s.flat?function(t){return s.flat.call(t)}:function(t){return s.concat.apply([],t)},h=s.push,l=s.indexOf,c={},f=c.toString,d=c.hasOwnProperty,p=d.toString,m=p.call(Object),v={},g=function(t){return"function"==typeof t&&"number"!=typeof t.nodeType&&"function"!=typeof t.item},y=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 k="3.7.1",N=/HTML$/i,S=function(t,e){return new S.fn.init(t,e)};function E(t){var e=!!t&&"length"in t&&t.length,n=_(t);return!g(t)&&!y(t)&&("array"===n||0===e||"number"==typeof e&&e>0&&e-1 in t)}function M(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()}S.fn=S.prototype={jquery:k,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||g(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"+(k+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(E(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&&(E(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!N.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(E(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:v}),"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 T=s.pop,C=s.sort,A=s.splice,L="[\\x20\\t\\r\\n\\f]",W=new RegExp("^"+L+"+|((?:^|[^\\\\])(?:\\\\.)*)"+L+"+$","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 O=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g;function j(t,e){return e?"\0"===t?"�":t.slice(0,-1)+"\\"+t.charCodeAt(t.length-1).toString(16)+" ":"\\"+t}S.escapeSelector=function(t){return(t+"").replace(O,j)};var D=w,P=h;!function(){var t,e,n,i,o,u,h,c,f,p,m=P,g=S.expando,y=0,w=0,b=tt(),x=tt(),_=tt(),k=tt(),N=function(t,e){return t===e&&(o=!0),0},E="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",O="(?:\\\\[\\da-fA-F]{1,6}"+L+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",j="\\["+L+"*("+O+")(?:"+L+"*([*^$|!~]?=)"+L+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+O+"))|)"+L+"*\\]",I=":("+O+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+j+")*)|.*)\\)|)",R=new RegExp(L+"+","g"),B=new RegExp("^"+L+"*,"+L+"*"),z=new RegExp("^"+L+"*([>+~]|"+L+")"+L+"*"),F=new RegExp(L+"|>"),q=new RegExp(I),U=new RegExp("^"+O+"$"),H={ID:new RegExp("^#("+O+")"),CLASS:new RegExp("^\\.("+O+")"),TAG:new RegExp("^("+O+"|[*])"),ATTR:new RegExp("^"+j),PSEUDO:new RegExp("^"+I),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+L+"*(even|odd|(([+-]|)(\\d*)n|)"+L+"*(?:([+-]|)"+L+"*(\\d+)|))"+L+"*\\)|)","i"),bool:new RegExp("^(?:"+E+")$","i"),needsContext:new RegExp("^"+L+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+L+"*((?:-\\d)?\\d*)"+L+"*\\)|)(?=[^-]|$)","i")},V=/^(?:input|select|textarea|button)$/i,G=/^h\d$/i,X=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,Y=/[+~]/,$=new RegExp("\\\\[\\da-fA-F]{1,6}"+L+"?|\\\\([^\\r\\n\\f])","g"),Q=function(t,e){var n="0x"+t.slice(1)-65536;return e||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320))},Z=function(){ut()},J=ft((function(t){return!0===t.disabled&&M(t,"fieldset")}),{dir:"parentNode",next:"legend"});try{m.apply(s=a.call(D.childNodes),D.childNodes),s[D.childNodes.length].nodeType}catch(t){m={apply:function(t,e){P.apply(t,a.call(e))},call:function(t){P.apply(t,a.call(arguments,1))}}}function K(t,e,n,r){var i,s,o,a,h,l,d,p=e&&e.ownerDocument,y=e?e.nodeType:9;if(n=n||[],"string"!=typeof t||!t||1!==y&&9!==y&&11!==y)return n;if(!r&&(ut(e),e=e||u,c)){if(11!==y&&(h=X.exec(t)))if(i=h[1]){if(9===y){if(!(o=e.getElementById(i)))return n;if(o.id===i)return m.call(n,o),n}else if(p&&(o=p.getElementById(i))&&K.contains(e,o)&&o.id===i)return m.call(n,o),n}else{if(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(!(k[t+" "]||f&&f.test(t))){if(d=t,p=e,1===y&&(F.test(t)||z.test(t))){for((p=Y.test(t)&&at(e.parentNode)||e)==e&&v.scope||((a=e.getAttribute("id"))?a=S.escapeSelector(a):e.setAttribute("id",a=g)),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){k(t,!0)}finally{a===g&&e.removeAttribute("id")}}}return yt(t.replace(W,"$1"),e,n,r)}function tt(){var t=[];return function n(r,i){return t.push(r+" ")>e.cacheLength&&delete n[t.shift()],n[r+" "]=i}}function et(t){return t[g]=!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 M(e,"input")&&e.type===t}}function it(t){return function(e){return(M(e,"input")||M(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:D;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&&D!=u&&(n=u.defaultView)&&n.top!==n&&n.addEventListener("unload",Z),v.getById=nt((function(t){return h.appendChild(t).id=S.expando,!u.getElementsByName||!u.getElementsByName(S.expando).length})),v.disconnectedMatch=nt((function(t){return p.call(t,"*")})),v.scope=nt((function(){return u.querySelectorAll(":scope")})),v.cssHas=nt((function(){try{return u.querySelector(":has(*,:jqfake)"),!1}catch(t){return!0}})),v.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='"+g+"' href='' disabled='disabled'></a><select id='"+g+"-\r\\' disabled='disabled'><option selected=''></option></select>",t.querySelectorAll("[selected]").length||f.push("\\["+L+"*(?:value|"+E+")"),t.querySelectorAll("[id~="+g+"-]").length||f.push("~="),t.querySelectorAll("a#"+g+"+*").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("\\["+L+"*name"+L+"*="+L+"*(?:''|\"\")")})),v.cssHas||f.push(":has"),f=f.length&&new RegExp(f.join("|")),N=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)||!v.sortDetached&&e.compareDocumentPosition(t)===n?t===u||t.ownerDocument==D&&K.contains(D,t)?-1:e===u||e.ownerDocument==D&&K.contains(D,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&&!k[e+" "]&&(!f||!f.test(e)))try{var n=p.call(t,e);if(n||v.disconnectedMatch||t.document&&11!==t.document.nodeType)return n}catch(t){k(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=!v.sortStable,i=!v.sortStable&&a.call(t,0),C.call(t,N),o){for(;e=t[s++];)e===t[s]&&(r=n.push(s));for(;r--;)A.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:H,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 H.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 M(t,e)}},CLASS:function(t){var e=b[t+" "];return e||(e=new RegExp("(^|"+L+")"+t+"("+L+"|$)"))&&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(R," ")+" ").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,v=a&&e.nodeName.toLowerCase(),w=!u&&!a,b=!1;if(m){if(s){for(;p;){for(c=e;c=c[p];)if(a?M(c,v):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[g]||(m[g]={}))[t]||[])[0]===y&&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]=[y,f,b];break}}else if(w&&(b=f=(h=(l=e[g]||(e[g]={}))[t]||[])[0]===y&&h[1]),!1===b)for(;(c=++f&&c&&c[p]||(b=f=0)||d.pop())&&(!(a?M(c,v):1===c.nodeType)||!++b||(w&&((l=c[g]||(c[g]={}))[t]=[y,b]),c!==e)););return(b-=i)===r||b%r===0&&b/r>=0}}},PSEUDO:function(t,n){var r,i=e.pseudos[t]||e.setFilters[t.toLowerCase()]||K.error("unsupported pseudo: "+t);return i[g]?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=gt(t.replace(W,"$1"));return r[g]?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 M(t,"input")&&!!t.checked||M(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 G.test(t.nodeName)},input:function(t){return V.test(t.nodeName)},button:function(t){return M(t,"input")&&"button"===t.type||M(t,"button")},text:function(t){var e;return M(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=B.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(W," ")}),a=a.slice(r.length)),e.filter)!(i=H[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=[y,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[g]||(e[g]={}),i&&M(e,i))e=e[r]||e;else{if((h=l[s])&&h[0]===y&&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[g]&&(r=mt(r)),i&&!i[g]&&(i=mt(i,s)),et((function(s,o,a,u){var h,c,f,d,p=[],v=[],g=o.length,y=s||function(t,e,n){for(var r=0,i=e.length;r<i;r++)K(t,e[r],n);return n}(e||"*",a.nodeType?[a]:a,[]),w=!t||!s&&e?y:pt(y,p,t,a,u);if(n?n(w,d=i||(s?t:g||r)?[]:o,a,u):d=w,r)for(h=pt(d,v),r(h,[],a,u),c=h.length;c--;)(f=h[c])&&(d[v[c]]=!(w[v[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(g,d.length):d),i?i(null,o,d,u):m.apply(o,d)}))}function vt(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))[g]){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(W,"$1"),i,h<s&&vt(t.slice(h,s)),s<o&&vt(t=t.slice(s)),s<o&&ct(t))}d.push(i)}return dt(d)}function gt(t,r){var i,s=[],o=[],a=_[t+" "];if(!a){for(r||(r=lt(t)),i=r.length;i--;)(a=vt(r[i]))[g]?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,v,g=0,w="0",b=o&&[],x=[],_=n,k=o||s&&e.find.TAG("*",f),N=y+=null==_?1:Math.random()||.1,E=k.length;for(f&&(n=a==u||a||f);w!==E&&null!=(d=k[w]);w++){if(s&&d){for(p=0,a||d.ownerDocument==u||(ut(d),h=!c);v=t[p++];)if(v(d,a||u,h)){m.call(l,d);break}f&&(y=N)}i&&((d=!v&&d)&&g--,o&&b.push(d))}if(g+=w,i&&w!==g){for(p=0;v=r[p++];)v(b,x,a,h);if(o){if(g>0)for(;w--;)b[w]||x[w]||(x[w]=T.call(l));x=pt(x)}m.apply(l,x),f&&!o&&x.length>0&&g+r.length>1&&S.uniqueSort(l)}return f&&(y=N,n=_),b};return i?et(o):o}(o,s)),a.selector=t}return a}function yt(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=H.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||gt(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,v.sortStable=g.split("").sort(N).join("")===g,ut(),v.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=gt,K.select=yt,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 I=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},R=function(t,e){for(var n=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&n.push(t);return n},B=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 g(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&&B.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)g(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):g(t)?void 0!==n.ready?n.ready(t):t(S):S.makeArray(t,this)}).prototype=S.fn,q=S(w);var H=/^(?:parents|prev(?:Until|All))/,V={children:!0,contents:!0,next:!0,prev:!0};function G(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(!B.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 I(t,"parentNode")},parentsUntil:function(t,e,n){return I(t,"parentNode",n)},next:function(t){return G(t,"nextSibling")},prev:function(t){return G(t,"previousSibling")},nextAll:function(t){return I(t,"nextSibling")},prevAll:function(t){return I(t,"previousSibling")},nextUntil:function(t,e,n){return I(t,"nextSibling",n)},prevUntil:function(t,e,n){return I(t,"previousSibling",n)},siblings:function(t){return R((t.parentNode||{}).firstChild,t)},children:function(t){return R(t.firstChild)},contents:function(t){return null!=t.contentDocument&&o(t.contentDocument)?t.contentDocument:(M(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&&(V[t]||S.uniqueSort(i),H.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&&g(i=t.promise)?i.call(t).done(e).fail(n):t&&g(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){g(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=g(t[r[4]])&&t[r[4]];s[r[1]]((function(){var t=i&&i.apply(this,arguments);t&&g(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,g(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,g(i)?i:Y,r.notifyWith)),e[1][3].add(o(0,r,g(t)?t:Y)),e[2][3].add(o(0,r,g(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()||g(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,g(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,vt=function(t){return S.contains(t.ownerDocument,t)},gt={composed:!0};mt.getRootNode&&(vt=function(t){return S.contains(t.ownerDocument,t)||t.getRootNode(gt)===t.ownerDocument});var yt=function(t,e){return"none"===(t=e||t).style.display||""===t.style.display&&vt(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&&yt(r)&&(i[s]=xt(r))):"none"!==n&&(i[s]="none",at.set(r,"display",n)));for(s=0;s<o;s++)null!=i[s]&&(t[s].style.display=i[s]);return t}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(){yt(this)?S(this).show():S(this).hide()}))}});var kt,Nt,St=/^(?:checkbox|radio)$/i,Et=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,Mt=/^$|^module$|\/(?:java|ecma)script/i;kt=w.createDocumentFragment().appendChild(w.createElement("div")),(Nt=w.createElement("input")).setAttribute("type","radio"),Nt.setAttribute("checked","checked"),Nt.setAttribute("name","t"),kt.appendChild(Nt),v.checkClone=kt.cloneNode(!0).cloneNode(!0).lastChild.checked,kt.innerHTML="<textarea>x</textarea>",v.noCloneChecked=!!kt.cloneNode(!0).lastChild.defaultValue,kt.innerHTML="<option></option>",v.option=!!kt.lastChild;var Tt={thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function Ct(t,e){var n;return n=void 0!==t.getElementsByTagName?t.getElementsByTagName(e||"*"):void 0!==t.querySelectorAll?t.querySelectorAll(e||"*"):[],void 0===e||e&&M(t,e)?S.merge([t],n):n}function At(t,e){for(var n=0,r=t.length;n<r;n++)at.set(t[n],"globalEval",!e||at.get(e[n],"globalEval"))}Tt.tbody=Tt.tfoot=Tt.colgroup=Tt.caption=Tt.thead,Tt.th=Tt.td,v.option||(Tt.optgroup=Tt.option=[1,"<select multiple='multiple'>","</select>"]);var Lt=/<|&#?\w+;/;function Wt(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(Lt.test(s)){for(o=o||c.appendChild(e.createElement("div")),a=(Et.exec(s)||["",""])[1].toLowerCase(),u=Tt[a]||Tt._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=vt(s),o=Ct(c.appendChild(s),"script"),h&&At(o),n)for(l=0;s=o[l++];)Mt.test(s.type||"")&&n.push(s);return c}var Ot=/^([^.]*)(?:\.(.+)|)/;function jt(){return!0}function Dt(){return!1}function Pt(t,e,n,r,i,s){var o,a;if("object"==typeof e){for(a in"string"!=typeof n&&(r=r||n,n=void 0),e)Pt(t,a,n,r,e[a],s);return t}if(null==r&&null==i?(i=n,r=n=void 0):null==i&&("string"==typeof n?(i=r,r=void 0):(i=r,r=n,n=void 0)),!1===i)i=Dt;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 It(t,e,n){n?(at.set(t,e,!1),S.event.add(t,e,{namespace:!1,handler:function(t){var n,r=at.get(this,e);if(1&t.isTrigger&&this[e]){if(r)(S.event.special[e]||{}).delegateType&&t.stopPropagation();else if(r=a.call(arguments),at.set(this,e,r),this[e](),n=at.get(this,e),at.set(this,e,!1),r!==n)return t.stopImmediatePropagation(),t.preventDefault(),n}else r&&(at.set(this,e,S.event.trigger(r[0],r.slice(1),this)),t.stopPropagation(),t.isImmediatePropagationStopped=jt)}})):void 0===at.get(t,e)&&S.event.add(t,e,jt)}S.event={global:{},add:function(t,e,n,r,i){var s,o,a,u,h,l,c,f,d,p,m,v=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=v.events)||(u=v.events=Object.create(null)),(o=v.handle)||(o=v.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=Ot.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,v=at.hasData(t)&&at.get(t);if(v&&(u=v.events)){for(h=(e=(e||"").match(X)||[""]).length;h--;)if(d=m=(a=Ot.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,v.handle)||S.removeEvent(t,d,v.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:g(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&&M(e,"input")&&It(e,"click",!0),!1},trigger:function(t){var e=this||t;return St.test(e.type)&&e.click&&M(e,"input")&&It(e,"click"),!0},_default:function(t){var e=t.target;return St.test(e.type)&&e.click&&M(e,"input")&&at.get(e,"click")||M(e,"a")}},beforeunload:{postDispatch:function(t){void 0!==t.result&&t.originalEvent&&(t.originalEvent.returnValue=t.result)}}}},S.removeEvent=function(t,e,n){t.removeEventListener&&t.removeEventListener(e,n)},S.Event=function(t,e){if(!(this instanceof S.Event))return new S.Event(t,e);t&&t.type?(this.originalEvent=t,this.type=t.type,this.isDefaultPrevented=t.defaultPrevented||void 0===t.defaultPrevented&&!1===t.returnValue?jt:Dt,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:Dt,isPropagationStopped:Dt,isImmediatePropagationStopped:Dt,isSimulated:!1,preventDefault:function(){var t=this.originalEvent;this.isDefaultPrevented=jt,t&&!this.isSimulated&&t.preventDefault()},stopPropagation:function(){var t=this.originalEvent;this.isPropagationStopped=jt,t&&!this.isSimulated&&t.stopPropagation()},stopImmediatePropagation:function(){var t=this.originalEvent;this.isImmediatePropagationStopped=jt,t&&!this.isSimulated&&t.stopImmediatePropagation(),this.stopPropagation()}},S.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:!0},S.event.addProp),S.each({focus:"focusin",blur:"focusout"},(function(t,e){function n(t){if(w.documentMode){var n=at.get(this,"handle"),r=S.event.fix(t);r.type="focusin"===t.type?"focus":"blur",r.isSimulated=!0,n(t),r.target===r.currentTarget&&n(r)}else S.event.simulate(e,t.target,S.event.fix(t))}S.event.special[t]={setup:function(){var r;if(It(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 It(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 Pt(this,t,e,n,r)},one:function(t,e,n,r){return Pt(this,t,e,n,r,1)},off:function(t,e,n){var r,i;if(t&&t.preventDefault&&t.handleObj)return r=t.handleObj,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=Dt),this.each((function(){S.event.remove(this,t,n,e)}))}});var Rt=/<script|<style|<link/i,Bt=/checked\s*(?:[^=]|=\s*.checked.)/i,zt=/^\s*<!\[CDATA\[|\]\]>\s*$/g;function Ft(t,e){return M(t,"table")&&M(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 Ht(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 Vt(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 Gt(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=g(p);if(m||f>1&&"string"==typeof p&&!v.checkClone&&Bt.test(p))return t.each((function(i){var s=t.eq(i);m&&(e[0]=p.call(this,i,s.html())),Gt(s,e,n,r)}));if(f&&(s=(i=Wt(e,t[0].ownerDocument,!1,t,r)).firstChild,1===i.childNodes.length&&(i=s),s||r)){for(a=(o=S.map(Ct(i,"script"),qt)).length;c<f;c++)h=i,c!==d&&(h=S.clone(h,!0,!0),a&&S.merge(o,Ct(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],Mt.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(Ct(r)),r.parentNode&&(n&&vt(r)&&At(Ct(r,"script")),r.parentNode.removeChild(r));return t}S.extend({htmlPrefilter:function(t){return t},clone:function(t,e,n){var r,i,s,o,a=t.cloneNode(!0),u=vt(t);if(!(v.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||S.isXMLDoc(t)))for(o=Ct(a),r=0,i=(s=Ct(t)).length;r<i;r++)Vt(s[r],o[r]);if(e)if(n)for(s=s||Ct(t),o=o||Ct(a),r=0,i=s.length;r<i;r++)Ht(s[r],o[r]);else Ht(t,a);return(o=Ct(a,"script")).length>0&&At(o,!u&&Ct(t,"script")),a},cleanData:function(t){for(var e,n,r,i=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 Gt(this,arguments,(function(t){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Ft(this,t).appendChild(t)}))},prepend:function(){return Gt(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 Gt(this,arguments,(function(t){this.parentNode&&this.parentNode.insertBefore(t,this)}))},after:function(){return Gt(this,arguments,(function(t){this.parentNode&&this.parentNode.insertBefore(t,this.nextSibling)}))},empty:function(){for(var t,e=0;null!=(t=this[e]);e++)1===t.nodeType&&(S.cleanData(Ct(t,!1)),t.textContent="");return this},clone:function(t,e){return t=null!=t&&t,e=null==e?t:e,this.map((function(){return S.clone(this,t,e)}))},html:function(t){return tt(this,(function(t){var e=this[0]||{},n=0,r=this.length;if(void 0===t&&1===e.nodeType)return e.innerHTML;if("string"==typeof t&&!Rt.test(t)&&!Tt[(Et.exec(t)||["",""])[1].toLowerCase()]){t=S.htmlPrefilter(t);try{for(;n<r;n++)1===(e=this[n]||{}).nodeType&&(S.cleanData(Ct(e,!1)),e.innerHTML=t);e=0}catch(t){}}e&&this.empty().append(t)}),null,t,arguments.length)},replaceWith:function(){var t=[];return Gt(this,arguments,(function(e){var n=this.parentNode;S.inArray(this,t)<0&&(S.cleanData(Ct(this)),n&&n.replaceChild(e,this))}),t)}}),S.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},(function(t,e){S.fn[t]=function(t){for(var n,r=[],i=S(t),s=i.length-1,o=0;o<=s;o++)n=o===s?this:this.clone(!0),S(i[o])[e](n),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(W,"$1")||void 0),""!==o||vt(t)||(o=S.style(t,e)),!v.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="",v.clearCloneStyle="content-box"===l.style.backgroundClip,S.extend(v,{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=(!v.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(!v.boxSizingReliable()&&i||!v.reliableTrDimensions()&&M(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")),v.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=!v.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(v.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 ve(){de&&(!1===w.hidden&&r.requestAnimationFrame?r.requestAnimationFrame(ve):r.setTimeout(ve,S.fx.interval),S.fx.tick())}function ge(){return r.setTimeout((function(){fe=void 0})),fe=Date.now()}function ye(t,e){var n,r=0,i={height:t};for(e=e?1:0;r<4;r+=2-e)i["margin"+(n=pt[r])]=i["padding"+n]=t;return e&&(i.opacity=i.width=t),i}function 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||ge(),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||ge(),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 g(r.stop)&&(S._queueHooks(h.elem,h.opts.queue).stop=r.stop.bind(r)),r;return S.map(l,we,h),g(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){g(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&&yt(t),v=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||!v||void 0===v[r])continue;m=!0}d[r]=v&&v[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=v&&v.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||(v?"hidden"in v&&(m=v.hidden):v=at.access(t,"fxshow",{display:h}),s&&(v.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?v[r]:0,r,f),r in v||(v[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||g(t)&&t,duration:t,easing:n&&e||e&&!g(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(){g(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(yt).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(ye(e,!0),t,r,i)}})),S.each({slideDown:ye("show"),slideUp:ye("hide"),slideToggle:ye("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,ve())},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",v.checkOn=""!==t.value,v.optSelected=e.selected,(t=w.createElement("input")).value="t",t.type="radio",v.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(!v.radioValue&&"radio"===e&&M(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 ke=/^(?:input|select|textarea|button)$/i,Ne=/^(?:a|area)$/i;function Se(t){return(t.match(X)||[]).join(" ")}function Ee(t){return t.getAttribute&&t.getAttribute("class")||""}function Me(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):ke.test(t.nodeName)||Ne.test(t.nodeName)&&t.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),v.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 g(t)?this.each((function(e){S(this).addClass(t.call(this,e,Ee(this)))})):(e=Me(t)).length?this.each((function(){if(r=Ee(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 g(t)?this.each((function(e){S(this).removeClass(t.call(this,e,Ee(this)))})):arguments.length?(e=Me(t)).length?this.each((function(){if(r=Ee(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 g(t)?this.each((function(n){S(this).toggleClass(t.call(this,n,Ee(this),e),e)})):"boolean"==typeof e&&a?e?this.addClass(t):this.removeClass(t):(n=Me(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=Ee(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(Ee(n))+" ").indexOf(e)>-1)return!0;return!1}});var Te=/\r/g;S.fn.extend({val:function(t){var e,n,r,i=this[0];return arguments.length?(r=g(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(Te,""):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||!M(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}},v.checkOn||(S.valHooks[this].get=function(t){return null===t.getAttribute("value")?"on":t.value})}));var Ce=r.location,Ae={guid:Date.now()},Le=/\?/;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 We=/^(?:focusinfocus|focusoutblur)$/,Oe=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,v=d.call(t,"namespace")?t.namespace.split("."):[];if(o=f=a=n=n||w,3!==n.nodeType&&8!==n.nodeType&&!We.test(m+S.event.triggered)&&(m.indexOf(".")>-1&&(v=m.split("."),m=v.shift(),v.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=v.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+v.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&&!y(n)){for(u=c.delegateType||m,We.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&&g(n[m])&&!y(n)&&((a=n[h])&&(n[h]=null),S.event.triggered=m,t.isPropagationStopped()&&f.addEventListener(m,Oe),n[m](),t.isPropagationStopped()&&f.removeEventListener(m,Oe),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 je=/\[\]$/,De=/\r?\n/g,Pe=/^(?:submit|button|image|reset|file)$/i,Ie=/^(?:input|select|textarea|keygen)/i;function Re(t,e,n,r){var i;if(Array.isArray(e))S.each(e,(function(e,i){n||je.test(t)?r(t,i):Re(t+"["+("object"==typeof i&&null!=i?e:"")+"]",i,n,r)}));else if(n||"object"!==_(e))r(t,e);else for(i in e)Re(t+"["+i+"]",e[i],n,r)}S.param=function(t,e){var n,r=[],i=function(t,e){var n=g(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)Re(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")&&Ie.test(this.nodeName)&&!Pe.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(De,"\r\n")}})):{name:e.name,value:n.replace(De,"\r\n")}})).get()}});var Be=/%20/g,ze=/#.*$/,Fe=/([?&])_=[^&]*/,qe=/^(.*?):[ \t]*([^\r\n]*)$/gm,Ue=/^(?:GET|HEAD)$/,He=/^\/\//,Ve={},Ge={},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(g(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===Ge;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=Ce.href,S.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Ce.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(Ce.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Xe,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":S.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(t,e){return e?Ze(Ze(t,S.ajaxSettings),e):Ze(S.ajaxSettings,t)},ajaxPrefilter:$e(Ve),ajaxTransport:$e(Ge),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,v=S.Deferred(),g=S.Callbacks("once memory"),y=d.statusCode||{},b={},x={},_="canceled",k={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)k.always(t[k.status]);else for(e in t)y[e]=[y[e],t[e]];return this},abort:function(t){var e=t||_;return n&&n.abort(e),N(0,e),this}};if(v.promise(k),d.url=((t||d.url||Ce.href)+"").replace(He,Ce.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(Ve,d,e,k),h)return k;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(Be,"+")):(f=d.url.slice(i.length),d.data&&(d.processData||"string"==typeof d.data)&&(i+=(Le.test(i)?"&":"?")+d.data,delete d.data),!1===d.cache&&(i=i.replace(Fe,"$1"),f=(Le.test(i)?"&":"?")+"_="+Ae.guid+++f),d.url=i+f),d.ifModified&&(S.lastModified[i]&&k.setRequestHeader("If-Modified-Since",S.lastModified[i]),S.etag[i]&&k.setRequestHeader("If-None-Match",S.etag[i])),(d.data&&d.hasContent&&!1!==d.contentType||e.contentType)&&k.setRequestHeader("Content-Type",d.contentType),k.setRequestHeader("Accept",d.dataTypes[0]&&d.accepts[d.dataTypes[0]]?d.accepts[d.dataTypes[0]]+("*"!==d.dataTypes[0]?", "+Xe+"; q=0.01":""):d.accepts["*"]),d.headers)k.setRequestHeader(c,d.headers[c]);if(d.beforeSend&&(!1===d.beforeSend.call(p,k,d)||h))return k.abort();if(_="abort",g.add(d.complete),k.done(d.success),k.fail(d.error),n=Qe(Ge,d,e,k)){if(k.readyState=1,l&&m.trigger("ajaxSend",[k,d]),h)return k;d.async&&d.timeout>0&&(a=r.setTimeout((function(){k.abort("timeout")}),d.timeout));try{h=!1,n.send(b,N)}catch(t){if(h)throw t;N(-1,t)}}else N(-1,"No Transport");function N(t,e,o,u){var c,f,w,b,x,_=e;h||(h=!0,a&&r.clearTimeout(a),n=void 0,s=u||"",k.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,k,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,k,c),c?(d.ifModified&&((x=k.getResponseHeader("Last-Modified"))&&(S.lastModified[i]=x),(x=k.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))),k.status=t,k.statusText=(e||_)+"",c?v.resolveWith(p,[f,_,k]):v.rejectWith(p,[k,_,w]),k.statusCode(y),y=void 0,l&&m.trigger(c?"ajaxSuccess":"ajaxError",[k,d,c?f:w]),g.fireWith(p,[k,_]),l&&(m.trigger("ajaxComplete",[k,d]),--S.active||S.event.trigger("ajaxStop")))}return k},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 g(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]&&(g(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 g(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=g(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();v.cors=!!Ke&&"withCredentials"in Ke,v.ajax=Ke=!!Ke,S.ajaxTransport((function(t){var e,n;if(v.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+"_"+Ae.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=g(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,a?t[a]=t[a].replace(nn,"$1"+i):!1!==t.jsonp&&(t.url+=(Le.test(t.url)?"&":"?")+t.jsonp+"="+i),t.converters["script json"]=function(){return o||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&&g(s)&&s(o[0]),o=s=void 0})),"script"})),v.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||(v.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=Wt([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)),g(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),g(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(y(t)?s=t:9===t.nodeType&&(s=t.defaultView),void 0===i)return s?s[e]:t[r];s?s.scrollTo(n?s.pageXOffset:i,n?i:s.pageYOffset):t[r]=i}),t,r,arguments.length)}})),S.each(["top","left"],(function(t,e){S.cssHooks[e]=te(v.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 y(e)?0===r.indexOf("outer")?e["inner"+t]:e.document.documentElement["client"+t]:9===e.nodeType?(s=e.documentElement,Math.max(e.body["scroll"+t],s["scroll"+t],e.body["offset"+t],s["offset"+t],s["client"+t])):void 0===i?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),g(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=M,S.isFunction=g,S.isWindow=y,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:()=>v,flipAway:()=>w,isBetween:()=>l,isBetweenExclusive:()=>c,isBetweenInclusive:()=>l,max:()=>h,mean:()=>r,median:()=>a,min:()=>u,normalizeAngle:()=>y,radians:()=>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 v(t){return t*(180/Math.PI)}function g(t){return t*(Math.PI/180)}function y(t,e){void 0===e&&(e=-Math.PI);var n=t-e;return e+((n%=2*Math.PI)>=0?n:n+2*Math.PI)}function w(t,e){var n=(e=y(e,t))-t;return(n<Math.PI/2||n>3*Math.PI/2)&&(t+=Math.PI),t}return e})()}},e={};function n(r){var i=e[r];if(void 0!==i)return i.exports;var s=e[r]={exports:{}};return t[r].call(s.exports,s,s.exports,n),s.exports}n.d=(t,e)=>{for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var r={};return(()=>{"use strict";n.r(r),n.d(r,{Box:()=>e});var t=n(986);class e{static bounding(n){let r=n.map((t=>e.matching(t))),i=(0,t.min)(r.map((t=>t.left))),s=(0,t.min)(r.map((t=>t.top))),o=(0,t.max)(r.map((t=>t.right)))-i,a=(0,t.max)(r.map((t=>t.bottom)))-s;return new e(i,s,o,a)}static matching(t){let{x:n,y:r,width:i,height:s}=t;return new e(n,r,i,s)}constructor(t,e,n,r){this.x=t,this.y=e,this.width=n,this.height=r}get centerX(){return this.minX+this.width/2}get centerY(){return this.minY+this.height/2}get minX(){return this.x}get minY(){return this.y}get maxX(){return this.minX+this.width}get maxY(){return this.minY+this.height}get top(){return this.minY}get right(){return this.maxX}get bottom(){return this.maxY}get left(){return this.minX}isBoundedBy(t){let n=e.matching(t);return this.minX>=n.minX&&this.minY>=n.minY&&this.maxX<=n.maxX&&this.maxY<=n.maxY}padded(t,n){return"number"!=typeof n&&(n=t),new e(this.x-t,this.y-n,this.width+2*t,this.height+2*n)}peripheralPoint(t){let e=this.width/2,n=this.height/2,r=Math.pow(Math.pow(e,2)+Math.pow(n,2),.5),i=this.centerX+r*Math.cos(t),s=this.centerY+r*Math.sin(t),o=r;return Math.abs(this.centerX-i)>e&&(o=Math.abs(e/Math.cos(t)),o=Number.isFinite(o)?o:n),Math.abs(this.centerY-s)>n&&(o=Math.abs(n/Math.sin(t)),o=Number.isFinite(o)?o:e),{x:this.centerX+o*Math.cos(t),y:this.centerY+o*Math.sin(t)}}}})(),r})(),t.exports=e()},659:t=>{"use strict";var e={};t.exports=function(t,n){var r=function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(t){n=null}e[t]=n}return e[t]}(t);if(!r)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");r.appendChild(n)}},825:t=>{"use strict";t.exports=function(t){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var e=t.insertStyleElement(t);return{update:function(n){!function(t,e,n){var r="";n.supports&&(r+="@supports (".concat(n.supports,") {")),n.media&&(r+="@media ".concat(n.media," {"));var i=void 0!==n.layer;i&&(r+="@layer".concat(n.layer.length>0?" ".concat(n.layer):""," {")),r+=n.css,i&&(r+="}"),n.media&&(r+="}"),n.supports&&(r+="}");var s=n.sourceMap;s&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(s))))," */")),e.styleTagTransform(r,t,e.options)}(e,t,n)},remove:function(){!function(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t)}(e)}}}},865:(t,e,n)=>{"use strict";n.d(e,{Ay:()=>l,Qq:()=>u,YL:()=>a,zX:()=>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-radius: 5px;\n\n background-color: black;\n box-shadow: 0px 0px 6px #d9d9e724;\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.Z0ghuBmvyXYH9uep6VTd {\n border-style: solid;\n border-color: black transparent transparent transparent;\n border-width: 18px 9px;\n}\n',""]);var a="DKvRm2Iz8xnCJ3FyFRDv",u="p5_D557pe0GpEcfAZAWo",h="Z0ghuBmvyXYH9uep6VTd";const l=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:()=>C});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 v,g,y,w,b,x,_,k,N,S,E,M=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)};class C{constructor(t){v.add(this),g.set(this,document.createElement("div")),y.set(this,document.createElement("p")),w.set(this,document.createElement("div")),b.set(this,5),x.set(this,void 0),_.set(this,(()=>{})),k.set(this,(()=>{})),T(this,g,"f").classList.add(p.YL),T(this,y,"f").classList.add(p.Qq),T(this,y,"f").textContent=t,T(this,g,"f").append(T(this,y,"f")),T(this,w,"f").classList.add(p.zX),T(this,g,"f").append(T(this,w,"f"))}get textContent(){return T(this,y,"f").textContent}set textContent(t){let e=!T(this,v,"m",E).call(this);T(this,v,"m",S).call(this),T(this,y,"f").textContent=t,e&&T(this,v,"m",N).call(this)}get owner(){return T(this,x,"f")}set owner(t){T(this,x,"f")&&(T(this,x,"f").removeEventListener("mouseover",T(this,_,"f")),T(this,x,"f").removeEventListener("mouseout",T(this,k,"f"))),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,x,t),t&&(t.addEventListener("mouseover",(()=>T(this,v,"m",N).call(this))),t.addEventListener("mouseout",(()=>T(this,v,"m",S).call(this))))}}g=new WeakMap,y=new WeakMap,w=new WeakMap,b=new WeakMap,x=new WeakMap,_=new WeakMap,k=new WeakMap,v=new WeakSet,N=function(){if(T(this,g,"f").style.left="0px",T(this,g,"f").style.top="0px",document.body.append(T(this,g,"f")),!T(this,x,"f"))return;let t=T(this,g,"f").getBoundingClientRect().width,e=T(this,y,"f").getBoundingClientRect().height+T(this,w,"f").getBoundingClientRect().height/2,n=M.Box.matching(T(this,x,"f").getBoundingClientRect()).padded(T(this,b,"f"));T(this,g,"f").style.left=n.peripheralPoint(3*Math.PI/2).x-t/2+"px",T(this,g,"f").style.top=n.peripheralPoint(3*Math.PI/2).y-e+"px"},S=function(){T(this,g,"f").remove()},E=function(){return!document.body.contains(T(this,g,"f"))}})(),r})(),t.exports=e()},705:(t,e,n)=>{"use strict";n.d(e,{Ay:()=>f,Qs:()=>u,Se:()=>a,eB:()=>c,vM:()=>l,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: 37px;\n\n display: flex;\n flex-direction: column;\n}\n\n.Nc_rMplF2zhIq3zYlKFl {\n margin: 10px 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: black;\n\n user-select: none;\n -webkit-user-select: none;\n\n pointer-events: none;\n}\n\n.IhPX3q3sGT4fPIlgUdp1 {\n display: none;\n flex-direction: column;\n}\n',""]);var a="LtjvWfQ5DEgLE0jZ1VYc",u="Nc_rMplF2zhIq3zYlKFl",h="UArJtlXrClYUqKvYzpXe",l="rgGEAvKvdVba2DrspkU6",c="IhPX3q3sGT4fPIlgUdp1";const f=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 pointer-events: auto;\n}\n\n.vDAwbQmWCc39SmNMFRtv {\n margin: 0px;\n\n border: none;\n\n padding: 4px 14px;\n border-radius: 3px;\n\n font-family: "Open Sans", sans-serif;\n font-size: 11px;\n font-weight: 700;\n font-style: normal;\n color: #06064a;\n\n background-color: rgba(219, 219, 255, 0.9);\n\n cursor: pointer;\n\n user-select: none;\n -webkit-user-select: none;\n\n pointer-events: auto;\n}\n\n.BAlKKbk1BfHF_fPz1gpc {\n color: #9797cb;\n\n pointer-events: none;\n}\n\n.vDAwbQmWCc39SmNMFRtv:hover {\n background-color: rgba(175, 175, 255, 0.92);\n}\n\n.vDAwbQmWCc39SmNMFRtv:active {\n background-color: rgba(147, 147, 255, 0.92);\n}\n\n.vDAwbQmWCc39SmNMFRtv:focus {\n outline: none;\n}\n',""]);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 v(t){return l(t)&&t.every(i)}function g(t){return l(t)&&t.every(a)}function y(t){return g(t)&&t.length>0}return t.r(e),t.d(e,{isArray:()=>l,isEmptyArray:()=>c,isFiniteNumber:()=>r,isFiniteNumbersArray:()=>m,isNonEmptyArray:()=>f,isNonEmptyNumbersArray:()=>p,isNonEmptyStringsArray:()=>y,isNonFiniteNumber:()=>i,isNonFiniteNumbersArray:()=>v,isNonNegativeFiniteNumber:()=>o,isNonNullObject:()=>h,isNullish:()=>u,isNumber:()=>n,isNumbersArray:()=>d,isPositiveFiniteNumber:()=>s,isString:()=>a,isStringsArray:()=>g}),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:()=>k,isSVGGraphicsElementsArray:()=>S,sendToBack:()=>v,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 v(t){let e=t.parentNode;e&&e.prepend(t)}var g,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 w{constructor(t){g.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,g,t)}toString(){return y(this,g,"f").innerHTML}set(t){y(this,g,"f").innerHTML=t}}g=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 k(t){return t instanceof SVGGraphicsElement}b=new WeakMap;var N=n(854);function S(t){return(0,N.isArray)(t)&&t.every(k)}})(),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,{Ay:()=>d,kv:()=>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(51),n.b),l=o()(i()),c=u()(h);l.push([t.id,`.pMUxgRC_f4NzkoelkDpX {\n appearance: none;\n\n margin: 0px;\n padding: 0px;\n\n border: 2px solid hsl(240, 6.6%, 70.2%);\n border-radius: 2px;\n\n width: 14px;\n height: 14px;\n\n background-color: white;\n\n cursor: pointer;\n}\n\n.pMUxgRC_f4NzkoelkDpX:checked {\n border-color: #2b2b2f;\n\n background-color: #2b2b2f;\n\n background-image: url(${c});\n}\n\n.pMUxgRC_f4NzkoelkDpX:hover {\n transform: scale(1.1);\n transition: transform 0.1s;\n}\n\n.vYZXo8oaWpWVgqUCMYTb:active {\n transform: scale(1);\n transition: transform 0s;\n}\n`,""]);var 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: blue;\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: #a9a9ff;\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},924:(t,e,n)=>{"use strict";n.d(e,{Ay:()=>v,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: 37px;\n\n display: flex;\n flex-direction: column;\n}\n\n.VFDUY2z_WgJp1fVc8TCw {\n margin: 10px 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: black;\n\n user-select: none;\n -webkit-user-select: none;\n\n pointer-events: none;\n}\n\n.GZP6NKFkjkjlFVlDU6AZ {\n margin-top: 18px;\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: black;\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: 23px;\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: black;\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 v=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: black;\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}},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=document.baseURI||self.location.href,n.nc=void 0;var r={};return(()=>{"use strict";n.r(r),n.d(r,{EditingForm:()=>nc});var t={};n.r(t),n.d(t,{cx:()=>Ie,cy:()=>Re,height:()=>ze,rx:()=>Oe,ry:()=>je,width:()=>Be,x:()=>De,y:()=>Pe});var e={};n.r(e),n.d(e,{from:()=>He,to:()=>Ve});var i={};n.r(i),n.d(i,{MorphArray:()=>Ze,height:()=>en,width:()=>tn,x:()=>Je,y:()=>Ke});var s={};n.r(s),n.d(s,{array:()=>An,clear:()=>Ln,move:()=>Wn,plot:()=>On,size:()=>jn});var o={};n.r(o),n.d(o,{amove:()=>ur,ax:()=>or,ay:()=>ar,build:()=>hr,center:()=>sr,cx:()=>rr,cy:()=>ir,length:()=>Kn,move:()=>nr,plain:()=>Jn,x:()=>tr,y:()=>er});var a={};n.r(a),n.d(a,{dmove:()=>mr,dx:()=>vr,dy:()=>gr,height:()=>yr,move:()=>wr,size:()=>br,width:()=>xr,x:()=>_r,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),v=n(540),g=n.n(v),y=n(113),w=n.n(y),b=n(420),x={};x.styleTagTransform=w(),x.setAttributes=m(),x.insert=d().bind(null,"head"),x.domAPI=c(),x.insertStyleElement=g(),h()(b.Ay,x),b.Ay&&b.Ay.locals&&b.Ay.locals;var _=n(633),k={};k.styleTagTransform=w(),k.setAttributes=m(),k.insert=d().bind(null,"head"),k.domAPI=c(),k.insertStyleElement=g(),h()(_.Ay,k),_.Ay&&_.Ay.locals&&_.Ay.locals;var N=n(584),S={};S.styleTagTransform=w(),S.setAttributes=m(),S.insert=d().bind(null,"head"),S.domAPI=c(),S.insertStyleElement=g(),h()(N.Ay,S),N.Ay&&N.Ay.locals&&N.Ay.locals;var E,M=function(t,e,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!r:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(t):r?r.value:e.get(t)};class T{constructor(t,e){this.domNode=document.createElement("div"),this.caret=new C,E.set(this,document.createElement("p")),this.domNode.classList.add(N.kY),!e||(this.domNode.onclick=e),this.caret.domNode.style.marginRight="6px",this.caret.domNode.style.pointerEvents="auto",this.domNode.append(this.caret.domNode),M(this,E,"f").classList.add(N.Qq),!t||(this.textContent=t),this.domNode.append(M(this,E,"f"))}get textContent(){return M(this,E,"f").textContent}set textContent(t){M(this,E,"f").textContent=t}}E=new WeakMap;class C{constructor(){this.domNode=document.createElementNS("http://www.w3.org/2000/svg","svg"),this.domNode.classList.add(N.OW),this.domNode.setAttribute("viewBox","0 0 6 10"),this.domNode.setAttribute("width","6"),this.domNode.setAttribute("height","10"),this.domNode.innerHTML='\n <path\n d="M 1 1 L 5 5 L 1 9"\n stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"\n fill="none"\n ></path>\n '}pointRight(){this.domNode.classList.remove(N.Z7)}pointDown(){this.domNode.classList.add(N.Z7)}}var A=n(887),L={};L.styleTagTransform=w(),L.setAttributes=m(),L.insert=d().bind(null,"head"),L.domAPI=c(),L.insertStyleElement=g(),h()(A.Ay,L),A.Ay&&A.Ay.locals&&A.Ay.locals;var W,O=n(704),j=function(t,e,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!r:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(t):r?r.value:e.get(t)};class D{constructor(t,e){this.domNode=document.createElement("div"),W.set(this,document.createElement("p")),this.tooltip=new O.Tooltip(""),!e||(this.domNode.onclick=e),this.domNode.classList.add(A.lI),j(this,W,"f").classList.add(A.Qq),j(this,W,"f").textContent=null!=t?t:"",this.domNode.append(j(this,W,"f")),this.tooltip.owner=this.domNode}get textContent(){return j(this,W,"f").textContent}set textContent(t){j(this,W,"f").textContent=t}disable(){this.domNode.classList.add(A.r9)}enable(){this.domNode.classList.remove(A.r9)}}W=new WeakMap;var P=n(419),I={};I.styleTagTransform=w(),I.setAttributes=m(),I.insert=d().bind(null,"head"),I.domAPI=c(),I.insertStyleElement=g(),h()(P.A,I),P.A&&P.A.locals&&P.A.locals;var R,B;class z{constructor(t){R.add(this),this.props=t,this.domNode=document.createElement("input"),this.domNode.type="text",this.domNode.classList.add(P.P),this.domNode.addEventListener("blur",(()=>function(t,e,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!r:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(t):r?r.value:e.get(t)}(this,R,"m",B).call(this))),this.domNode.addEventListener("keydown",(t=>{"enter"==t.key.toLowerCase()&&this.domNode.blur()}))}}R=new WeakSet,B=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=g(),h()(F.Ay,q),F.Ay&&F.Ay.locals&&F.Ay.locals;var U,H,V=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},G=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),H.set(this,void 0),this.domNode.classList.add(F.ZZ),V(this,U,e,"f"),V(this,H,document.createElement("a"),"f"),G(this,H,"f").textContent=t,G(this,H,"f").target="_blank",G(this,H,"f").rel="noopener noreferrer",G(this,H,"f").style.marginLeft="8px",this.domNode.append(e,G(this,H,"f"))}get infoLink(){return G(this,H,"f").href}set infoLink(t){G(this,H,"f").href=t,t?G(this,H,"f").classList.add(F.o3):G(this,H,"f").classList.remove(F.o3)}}U=new WeakMap,H=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=g(),h()(Z.Ay,J),Z.Ay&&Z.Ay.locals&&Z.Ay.locals;class K{constructor(){this.domNode=document.createElement("input"),this.domNode.type="checkbox",this.domNode.classList.add(Z.kv)}}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=g(),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 vt(t){return t.charAt(0).toUpperCase()+t.slice(1)}function gt(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 yt(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 wt=new Set(["desc","metadata","title"]),bt=t=>wt.has(t.nodeName),xt=(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"))},_t="http://www.w3.org/2000/svg",kt="http://www.w3.org/2000/xmlns/",Nt="http://www.w3.org/1999/xlink",St={window:"undefined"==typeof window?null:window,document:"undefined"==typeof document?null:document};class Et{}const Mt={},Tt="___SYMBOL___ROOT___";function Ct(t,e=_t){return St.document.createElementNS(e,t)}function At(t,e=!1){if(t instanceof Et)return t;if("object"==typeof t)return Ot(t);if(null==t)return new Mt[Tt];if("string"==typeof t&&"<"!==t.charAt(0))return Ot(St.document.querySelector(t));const n=e?St.document.createElement("div"):Ct("svg");return n.innerHTML=t,t=Ot(n.firstChild),n.removeChild(n.firstChild),t}function Lt(t,e){return e&&(e instanceof St.window.Node||e.ownerDocument&&e instanceof e.ownerDocument.defaultView.Node)?e:Ct(t)}function Wt(t){if(!t)return null;if(t.instance instanceof Et)return t.instance;if("#document-fragment"===t.nodeName)return new Mt.Fragment(t);let e=vt(t.nodeName||"Dom");return"LinearGradient"===e||"RadialGradient"===e?e="Gradient":Mt[e]||(e="Dom"),new Mt[e](t)}let Ot=Wt;function jt(t,e=t.name,n=!1){return Mt[e]=t,n&&(Mt[Tt]=t),dt(Object.getOwnPropertyNames(t.prototype)),t}let Dt=1e3;function Pt(t){return"Svgjs"+vt(t)+Dt++}function It(t){for(let e=t.children.length-1;e>=0;e--)It(t.children[e]);return t.id?(t.id=Pt(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 Bt(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=At(t)).remove();const e=this.position();return this.parent().add(t,e),this},after:function(t){(t=At(t)).remove();const e=this.position();return this.parent().add(t,e+1),this},insertBefore:function(t){return(t=At(t)).before(this),this},insertAfter:function(t){return(t=At(t)).after(this),this}});const zt=/^([+-]?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?)([a-z%]*)$/i,Ft=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i,qt=/rgb\((\d+),(\d+),(\d+)\)/,Ut=/(#[a-z_][a-z0-9\-_]*)/i,Ht=/\)\s*,?\s*/,Vt=/\s/g,Gt=/^#[a-f0-9]{3}$|^#[a-f0-9]{6}$/i,Xt=/^rgb\(/,Yt=/^(\s+)?$/,$t=/^[+-]?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,Qt=/\.(jpg|jpeg|png|gif|svg)(\?[^=]+.*)?/i,Zt=/[\s,]+/,Jt=/[MLHVCSQTAZ]/i;function Kt(t){const e=Math.round(t),n=Math.max(0,Math.min(255,e)).toString(16);return 1===n.length?"0"+n:n}function te(t,e){for(let n=e.length;n--;)if(null==t[e[n]])return!1;return!0}function ee(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(Zt)},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]||Yt.test(t[e])?"":t[e])}return 2===arguments.length&&this.node.style.setProperty(t,null==e||Yt.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){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}}),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 ne{constructor(...t){this.init(...t)}static isColor(t){return t&&(t instanceof ne||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 ne(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 ne(t,o,a)}if("pastel"===t){const t=8*n()+86,e=17*n()+9,r=360*n();return new ne(t,e,r,"lch")}if("dark"===t){const t=10+10*n(),e=50*n()+86,r=360*n();return new ne(t,e,r,"lch")}if("rgb"===t){const t=255*n(),e=255*n(),r=255*n();return new ne(t,e,r)}if("lab"===t){const t=100*n(),e=256*n()-128,r=256*n()-128;return new ne(t,e,r,"lab")}if("grey"===t){const t=255*n();return new ne(t,t,t)}throw new Error("Unsupported random color mode")}static test(t){return"string"==typeof t&&(Gt.test(t)||Xt.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 ne(0,0,0,1,"cmyk"):new ne((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 ne(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=te(t,"rgb")?{_a:t.r,_b:t.g,_c:t.b,_d:0,space:"rgb"}:te(t,"xyz")?{_a:t.x,_b:t.y,_c:t.z,_d:0,space:"xyz"}:te(t,"hsl")?{_a:t.h,_b:t.s,_c:t.l,_d:0,space:"hsl"}:te(t,"lab")?{_a:t.l,_b:t.a,_c:t.b,_d:0,space:"lab"}:te(t,"lch")?{_a:t.l,_b:t.c,_c:t.h,_d:0,space:"lch"}:te(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(Xt.test(t)){const e=t.replace(Vt,""),[n,r,i]=qt.exec(e).slice(1,4).map((t=>parseInt(t)));Object.assign(this,{_a:n,_b:r,_c:i,_d:0,space:"rgb"})}else{if(!Gt.test(t))throw Error("Unsupported string format, can't construct Color");{const e=t=>parseInt(t,16),[,n,r,i]=Ft.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 ne(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 ne(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 ne(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 ne(n,n,n);const r=n<.5?n*(1+e):n+e-n*e,i=2*n-r,s=255*ee(i,r,t+1/3),o=255*ee(i,r,t),a=255*ee(i,r,t-1/3);return new ne(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 ne(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(Kt);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 ne(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 re{constructor(...t){this.init(...t)}clone(){return new re(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){se.isMatrixLike(t)||(t=new se(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 ie(t,e,n){return Math.abs(e-t)<(n||1e-6)}class se{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 re(t.origin||t.around||t.ox||t.originX,t.oy||t.originY),c=l.x,f=l.y,d=new re(t.position||t.px||t.positionX||NaN,t.py||t.positionY||NaN),p=d.x,m=d.y,v=new re(t.translate||t.tx||t.translateX,t.ty||t.translateY),g=v.x,y=v.y,w=new re(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:g,ty:y,ox:c,oy:f,px:p,py:m}}static fromArray(t){return{a:t[0],b:t[1],c:t[2],d:t[3],e:t[4],f:t[5]}}static isMatrixLike(t){return null!=t.a||null!=t.b||null!=t.c||null!=t.d||null!=t.e||null!=t.f}static matrixMultiply(t,e,n){const r=t.a*e.a+t.c*e.b,i=t.b*e.a+t.d*e.b,s=t.a*e.c+t.c*e.d,o=t.b*e.c+t.d*e.d,a=t.e+t.a*e.e+t.c*e.f,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 se(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,v=i*l/(m*n-r)||s*l/(m*r+n);return{scaleX:l,scaleY:v,shear:m,rotate:f,translateX:o-t+t*d*l+e*(m*d*l-p*v),translateY:a-e+t*p*l+e*(m*p*l+d*v),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 se(t);return ie(this.a,e.a)&&ie(this.b,e.b)&&ie(this.c,e.c)&&ie(this.d,e.d)&&ie(this.e,e.e)&&ie(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=se.fromArray([1,0,0,1,0,0]);return t=t instanceof Te?t.matrixify():"string"==typeof t?se.fromArray(t.split(Zt).map(parseFloat)):Array.isArray(t)?se.fromArray(t):"object"==typeof t&&se.isMatrixLike(t)?t:"object"==typeof t?(new se).transform(t):6===arguments.length?se.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 se?t:new se(t);return se.matrixMultiply(e,this,this)}multiply(t){return this.clone().multiplyO(t)}multiplyO(t){const e=t instanceof se?t:new se(t);return se.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(se.isMatrixLike(t))return new se(t).multiplyO(this);const e=se.formatTransforms(t),{x:n,y:r}=new re(e.ox,e.oy).transform(this),i=(new se).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 re(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 oe(){if(!oe.nodes){const t=At().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;oe.nodes={svg:t,path:e}}if(!oe.nodes.svg.node.parentNode){const t=St.document.body||St.document.documentElement;oe.nodes.svg.addTo(t)}return oe.nodes}function ae(t){return!(t.width||t.height||t.x||t.y)}jt(se,"Matrix");class ue{constructor(...t){this.init(...t)}addOffset(){return this.x+=St.window.pageXOffset,this.y+=St.window.pageYOffset,new ue(this)}init(t){return t="string"==typeof t?t.split(Zt).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 ae(this)}merge(t){const e=Math.min(this.x,t.x),n=Math.min(this.y,t.y),r=Math.max(this.x+this.width,t.x+t.width)-e,i=Math.max(this.y+this.height,t.y+t.height)-n;return new ue(e,n,r,i)}toArray(){return[this.x,this.y,this.width,this.height]}toString(){return this.x+" "+this.y+" "+this.width+" "+this.height}transform(t){t instanceof se||(t=new se(t));let e=1/0,n=-1/0,r=1/0,i=-1/0;return[new re(this.x,this.y),new re(this.x2,this.y),new re(this.x,this.y2),new re(this.x2,this.y2)].forEach((function(s){s=s.transform(t),e=Math.min(e,s.x),n=Math.max(n,s.x),r=Math.min(r,s.y),i=Math.max(i,s.y)})),new ue(e,r,n-e,i-r)}}function he(t,e,n){let r;try{if(r=e(t.node),ae(r)&&(i=t.node)!==St.document&&!(St.document.documentElement.contains||function(t){for(;t.parentNode;)t=t.parentNode;return t===St.document}).call(St.document.documentElement,i))throw new Error("Element not in the dom")}catch(e){r=n(t)}var i;return r}ct({viewbox:{viewbox(t,e,n,r){return null==t?new ue(this.attr("viewBox")):this.attr("viewBox",new ue(t,e,n,r))},zoom(t,e){let{width:n,height:r}=this.attr(["width","height"]);if((n||r)&&"string"!=typeof n&&"string"!=typeof r||(n=this.node.clientWidth,r=this.node.clientHeight),!n||!r)throw new Error("Impossible to get absolute width and height. Please provide an absolute width and height attribute on the zooming element");const i=this.viewbox(),s=n/i.width,o=r/i.height,a=Math.min(s,o);if(null==t)return a;let u=a/t;u===1/0&&(u=Number.MAX_SAFE_INTEGER/100),e=e||new re(n/2/s+i.x,r/2/o+i.y);const h=new ue(i).transform(new se({scale:u,origin:e}));return this.viewbox(h)}}}),jt(ue,"Box");class le extends Array{constructor(t=[],...e){if(super(t,...e),"number"==typeof t)return this;this.length=0,this.push(...t)}}const ce=le;Rt([le],{each(t,...e){return"function"==typeof t?this.map(((e,n,r)=>t.call(e,e,n,r))):this.map((n=>n[t](...e)))},toArray(){return Array.prototype.concat.apply([],this)}});const fe=["toArray","constructor","each"];function de(t,e){return new ce(pt((e||St.document).querySelectorAll(t),(function(t){return Wt(t)})))}le.extend=function(t){t=t.reduce(((t,e)=>(fe.includes(e)||"_"===e[0]||(e in Array.prototype&&(t["$"+e]=Array.prototype[e]),t[e]=function(...t){return this.each(e,...t)}),t)),{}),Rt([le],t)};let pe=0;const me={};function ve(t){let e=t.getEventHolder();return e===St.window&&(e=me),e.events||(e.events={}),e.events}function ge(t){return t.getEventTarget()}function ye(t,e,n,r,i){const s=n.bind(r||t),o=At(t),a=ve(o),u=ge(o);e=Array.isArray(e)?e:e.split(Zt),n._svgjsListenerId||(n._svgjsListenerId=++pe),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 we(t,e,n,r){const i=At(t),s=ve(i),o=ge(i);("function"!=typeof n||(n=n._svgjsListenerId))&&(e=Array.isArray(e)?e:(e||"").split(Zt)).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])we(o,[e,a].join("."),h);delete s[e][a]}}else if(a)for(t in s)for(u in s[t])a===u&&we(o,[t,a].join("."));else if(e){if(s[e]){for(u in s[e])we(o,[e,u].join("."));delete s[e]}}else{for(t in s)we(o,t);!function(t){let e=t.getEventHolder();e===St.window&&(e=me),e.events&&(e.events={})}(i)}}))}class be extends Et{addEventListener(){}dispatch(t,e,n){return function(t,e,n,r){const i=ge(t);return e instanceof St.window.Event||(e=new St.window.CustomEvent(e,{detail:n,cancelable:!0,...r})),i.dispatchEvent(e),e}(this,t,e,n)}dispatchEvent(t){const e=this.getEventHolder().events;if(!e)return!0;const n=e[t.type];for(const e in n)for(const r in n[e])n[e][r](t);return!t.defaultPrevented}fire(t,e,n){return this.dispatch(t,e,n),this}getEventHolder(){return this}getEventTarget(){return this}off(t,e,n){return we(this,t,e,n),this}on(t,e,n,r){return ye(this,t,e,n,r),this}removeEventListener(){}}function xe(){}jt(be,"EventTarget");const _e={"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(Zt).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 Ne{constructor(...t){this.init(...t)}convert(t){return new Ne(this.value,t)}divide(t){return t=new Ne(t),new Ne(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(zt))&&(this.value=parseFloat(e[1]),"%"===e[5]?this.value/=100:"s"===e[5]&&(this.value*=1e3),this.unit=e[5]):t instanceof Ne&&(this.value=t.valueOf(),this.unit=t.unit),this}minus(t){return t=new Ne(t),new Ne(this-t,this.unit||t.unit)}plus(t){return t=new Ne(t),new Ne(this+t,this.unit||t.unit)}times(t){return t=new Ne(t),new Ne(this*t,this.unit||t.unit)}toArray(){return[this.value,this.unit]}toJSON(){return this.toString()}toString(){return("%"===this.unit?~~(1e8*this.value)/1e6:"s"===this.unit?this.value/1e3:this.value)+this.unit}valueOf(){return this.value}}const Se=new Set(["fill","stroke","color","bgcolor","stop-color","flood-color","lighting-color"]),Ee=[];class Me extends be{constructor(t,e){super(),this.node=t,this.type=t.nodeName,e&&t!==e&&this.attr(e)}add(t,e){return(t=At(t)).removeNamespace&&this.node instanceof St.window.SVGElement&&t.removeNamespace(),null==e?this.node.appendChild(t.node):t.node!==this.node.childNodes[e]&&this.node.insertBefore(t.node,this.node.childNodes[e]),this}addTo(t,e){return At(t).put(this,e)}children(){return new ce(pt(this.node.children,(function(t){return Wt(t)})))}clear(){for(;this.node.hasChildNodes();)this.node.removeChild(this.node.lastChild);return this}clone(t=!0,e=!0){this.writeDataToDom();let n=this.node.cloneNode(t);return e&&(n=It(n)),new this.constructor(n)}each(t,e){const n=this.children();let r,i;for(r=0,i=n.length;r<i;r++)t.apply(n[r],[r,n]),e&&n[r].each(t,e);return this}element(t,e){return this.put(new Me(Ct(t),e))}first(){return Wt(this.node.firstChild)}get(t){return Wt(this.node.childNodes[t])}getEventHolder(){return this.node}getEventTarget(){return this.node}has(t){return this.index(t)>=0}html(t,e){return this.xml(t,e,"http://www.w3.org/1999/xhtml")}id(t){return void 0!==t||this.node.id||(this.node.id=Pt(this.type)),this.attr("id",t)}index(t){return[].slice.call(this.node.childNodes).indexOf(t.node)}last(){return Wt(this.node.lastChild)}matches(t){const e=this.node,n=e.matches||e.matchesSelector||e.msMatchesSelector||e.mozMatchesSelector||e.webkitMatchesSelector||e.oMatchesSelector||null;return n&&n.call(e,t)}parent(t){let e=this;if(!e.node.parentNode)return null;if(e=Wt(e.node.parentNode),!t)return e;do{if("string"==typeof t?e.matches(t):e instanceof t)return e}while(e=Wt(e.node.parentNode));return e}put(t,e){return t=At(t),this.add(t,e),t}putIn(t,e){return At(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=At(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,_t)}toString(){return this.id()}words(t){return this.node.textContent=t,this}wrap(t){const e=this.parent();if(!e)return this.addTo(t);const n=e.index(this);return e.put(t,n).put(this)}writeDataToDom(){return this.each((function(){this.writeDataToDom()})),this}xml(t,e,n){if("boolean"==typeof t&&(n=e,e=t,t=null),null==t||"function"==typeof t){e=null==e||e,this.writeDataToDom();let n=this;if(null!=t){if(n=Wt(n.node.cloneNode(!0)),e){const e=t(n);if(n=e||n,!1===e)return""}n.each((function(){const e=t(this),n=e||this;!1===e?this.remove():e&&this!==n&&this.replace(n)}),!0)}return e?n.node.outerHTML:n.node.innerHTML}e=null!=e&&e;const r=Ct("wrapper",n),i=St.document.createDocumentFragment();r.innerHTML=t;for(let t=r.children.length;t--;)i.appendChild(r.firstElementChild);const s=this.parent();return e?this.replace(i)&&s:this.add(i)}}Rt(Me,{attr:function(t,e,n){if(null==t){t={},e=this.node.attributes;for(const n of e)t[n.nodeName]=$t.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))?_e[t]:$t.test(e)?parseFloat(e):e;"number"==typeof(e=Ee.reduce(((e,n)=>n(t,e,this)),e))?e=new Ne(e):Se.has(t)&&ne.isColor(e)?e=new ne(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 de(t,this.node)},findOne:function(t){return Wt(this.node.querySelector(t))}}),jt(Me,"Dom");class Te extends Me{constructor(t,e){super(t,e),this.dom={},this.node.instance=this,(t.hasAttribute("data-svgjs")||t.hasAttribute("svgjs:data"))&&this.setData(JSON.parse(t.getAttribute("data-svgjs"))??JSON.parse(t.getAttribute("svgjs:data"))??{})}center(t,e){return this.cx(t).cy(e)}cx(t){return null==t?this.x()+this.width()/2:this.x(t-this.width()/2)}cy(t){return null==t?this.y()+this.height()/2:this.y(t-this.height()/2)}defs(){const t=this.root();return t&&t.defs()}dmove(t,e){return this.dx(t).dy(e)}dx(t=0){return this.x(new Ne(t).plus(this.x()))}dy(t=0){return this.y(new Ne(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=At(t));const n=new ce;let r=this;for(;(r=r.parent())&&r.node!==St.document&&"#document-fragment"!==r.nodeName&&(n.push(r),e||r.node!==t.node)&&(!e||!r.matches(t));)if(r.node===this.root().node)return null;return n}reference(t){if(!(t=this.attr(t)))return null;const e=(t+"").match(Ut);return e?At(e[1]):null}root(){const t=this.parent(Mt[Tt]);return t&&t.root()}setData(t){return this.dom=t,this}size(t,e){const n=gt(this,t,e);return this.width(new Ne(n.width)).height(new Ne(n.height))}width(t){return this.attr("width",t)}writeDataToDom(){return xt(this,this.dom),super.writeDataToDom()}x(t){return this.attr("x",t)}y(t){return this.attr("y",t)}}Rt(Te,{bbox:function(){const t=he(this,(t=>t.getBBox()),(t=>{try{const e=t.clone().addTo(oe().svg).show(),n=e.node.getBBox();return e.remove(),n}catch(e){throw new Error(`Getting bbox of element "${t.node.nodeName}" is not possible: ${e.toString()}`)}}));return new ue(t)},rbox:function(t){const e=he(this,(t=>t.getBoundingClientRect()),(t=>{throw new Error(`Getting rbox of element "${t.node.nodeName}" is not possible`)})),n=new ue(e);return t?n.transform(t.screenCTM().inverseO()):n.addOffset()},inside:function(t,e){const n=this.bbox();return t>n.x&&e>n.y&&t<n.x+n.width&&e<n.y+n.height},point:function(t,e){return new re(t,e).transformO(this.screenCTM().inverseO())},ctm:function(){return new se(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 se(e)}return new se(this.node.getScreenCTM())}catch(t){return console.warn(`Cannot get CTM from SVG node ${this.node.nodeName}. Is the element rendered?`),new se}}}),jt(Te,"Element");const Ce={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 ne||ne.isRgb(e)||e instanceof Te)this.attr(t,e);else for(n=Ce[t].length-1;n>=0;n--)null!=e[Ce[t][n]]&&this.attr(Ce.prefix(t,Ce[t][n]),e[Ce[t][n]]);return this},ct(["Element","Runner"],e)})),ct(["Element","Runner"],{matrix:function(t,e,n,r,i,s){return null==t?new se(this):this.attr("transform",new se(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 Ne(t)):this.rx(t).ry(e)}}),ct("Path",{length:function(){return this.node.getTotalLength()},pointAt:function(t){return new re(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(Ht).slice(0,-1).map((function(t){const e=t.trim().split("(");return[e[0],e[1].split(Zt).map((function(t){return parseFloat(t)}))]})).reverse().reduce((function(t,e){return"matrix"===e[0]?t.lmultiply(se.fromArray(e[1])):t[e[0]].apply(t,e[1])}),new se)},toParent:function(t,e){if(this===t)return this;if(bt(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 se(this).decompose();return null==t?e:e[t]}se.isMatrixLike(t)||(t={...t,origin:yt(t,this)});const n=new se(!0===e?this:e||!1).transform(t);return this.attr("transform",n)}});class Ae extends Te{flatten(){return this.each((function(){if(this instanceof Ae)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()}}jt(Ae,"Container");class Le extends Ae{constructor(t,e=t){super(Lt("defs",t),e)}flatten(){return this}ungroup(){return this}}jt(Le,"Defs");class We extends Te{}function Oe(t){return this.attr("rx",t)}function je(t){return this.attr("ry",t)}function De(t){return null==t?this.cx()-this.rx():this.cx(t+this.rx())}function Pe(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 Be(t){return null==t?2*this.rx():this.rx(new Ne(t).divide(2))}function ze(t){return null==t?2*this.ry():this.ry(new Ne(t).divide(2))}jt(We,"Shape");class Fe extends We{constructor(t,e=t){super(Lt("ellipse",t),e)}size(t,e){const n=gt(this,t,e);return this.rx(new Ne(n.width).divide(2)).ry(new Ne(n.height).divide(2))}}Rt(Fe,t),ct("Container",{ellipse:Bt((function(t=0,e=t){return this.put(new Fe).size(t,e).move(0,0)}))}),jt(Fe,"Ellipse");class qe extends Me{constructor(t=St.document.createDocumentFragment()){super(t)}xml(t,e,n){if("boolean"==typeof t&&(n=e,e=t,t=null),null==t||"function"==typeof t){const t=new Me(Ct("wrapper",n));return t.add(this.node.cloneNode(!0)),t.xml(!1,n)}return super.xml(t,!1,n)}}jt(qe,"Fragment");const Ue=qe;function He(t,e){return"radialGradient"===(this._element||this).type?this.attr({fx:new Ne(t),fy:new Ne(e)}):this.attr({x1:new Ne(t),y1:new Ne(e)})}function Ve(t,e){return"radialGradient"===(this._element||this).type?this.attr({cx:new Ne(t),cy:new Ne(e)}):this.attr({x2:new Ne(t),y2:new Ne(e)})}class Ge extends Ae{constructor(t,e){super(Lt(t+"Gradient","string"==typeof t?null:t),e)}attr(t,e,n){return"transform"===t&&(t="gradientTransform"),super.attr(t,e,n)}bbox(){return new ue}targets(){return de("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(Ge,e),ct({Container:{gradient(...t){return this.defs().gradient(...t)}},Defs:{gradient:Bt((function(t,e){return this.put(new Ge(t)).update(e)}))}}),jt(Ge,"Gradient");class Xe extends Ae{constructor(t,e=t){super(Lt("pattern",t),e)}attr(t,e,n){return"transform"===t&&(t="patternTransform"),super.attr(t,e,n)}bbox(){return new ue}targets(){return de("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:Bt((function(t,e,n){return this.put(new Xe).update(n).attr({x:0,y:0,width:t,height:e,patternUnits:"userSpaceOnUse"})}))}}),jt(Xe,"Pattern");class Ye extends We{constructor(t,e=t){super(Lt("image",t),e)}load(t,e){if(!t)return this;const n=new St.window.Image;return ye(n,"load",(function(t){const r=this.parent(Xe);0===this.width()&&0===this.height()&&this.size(n.width,n.height),r instanceof Xe&&0===r.width()&&0===r.height()&&r.size(this.width(),this.height()),"function"==typeof e&&e.call(this,t)}),this),ye(n,"load error",(function(){we(n)})),this.attr("href",n.src=t,Nt)}}var $e;$e=function(t,e,n){return"fill"!==t&&"stroke"!==t||Qt.test(e)&&(e=n.root().defs().image(e)),e instanceof Ye&&(e=n.root().defs().pattern(0,0,(t=>{t.add(e)}))),e},Ee.push($e),ct({Container:{image:Bt((function(t,e){return this.put(new Ye).size(0,0).load(t,e)}))}}),jt(Ye,"Image");class Qe extends ke{bbox(){let t=-1/0,e=-1/0,n=1/0,r=1/0;return this.forEach((function(i){t=Math.max(i[0],t),e=Math.max(i[1],e),n=Math.min(i[0],n),r=Math.min(i[1],r)})),new ue(n,r,t-n,e-r)}move(t,e){const n=this.bbox();if(t-=n.x,e-=n.y,!isNaN(t)&&!isNaN(e))for(let n=this.length-1;n>=0;n--)this[n]=[this[n][0]+t,this[n][1]+e];return this}parse(t=[0,0]){const e=[];(t=t instanceof Array?Array.prototype.concat.apply([],t):t.trim().split(Zt).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){se.isMatrixLike(t)||(t=new se(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 Ze=Qe;function Je(t){return null==t?this.bbox().x:this.move(t,this.bbox().y)}function Ke(t){return null==t?this.bbox().y:this.move(this.bbox().x,t)}function tn(t){const e=this.bbox();return null==t?e.width:this.size(t,e.height)}function en(t){const e=this.bbox();return null==t?e.height:this.size(e.width,t)}class nn extends We{constructor(t,e=t){super(Lt("line",t),e)}array(){return new Qe([[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 Qe(t).toLine(),this.attr(t))}size(t,e){const n=gt(this,t,e);return this.attr(this.array().size(n.width,n.height).toLine())}}Rt(nn,i),ct({Container:{line:Bt((function(...t){return nn.prototype.plot.apply(this.put(new nn),null!=t[0]?t:[0,0,0,0])}))}}),jt(nn,"Line");class rn extends Ae{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 sn(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:Bt((function(t,e,n){return this.put(new rn).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 rn?arguments[1]:this.defs().marker(e,n,r),this.attr(i,t)}}}),jt(rn,"Marker");const on={"-":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 an{done(){return!1}}class un extends an{constructor(t=">"){super(),this.ease=on[t]||t}step(t,e,n){return"number"!=typeof t?n<1?t:e:t+(e-t)*this.ease(n)}}class hn extends an{constructor(t){super(),this.stepper=t}done(t){return t.done}step(t,e,n,r){return this.stepper(t,e,n,r)}}function ln(){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 hn{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:sn("_duration",ln),overshoot:sn("_overshoot",ln)}),Rt(class extends hn{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:sn("_windup"),p:sn("P"),i:sn("I"),d:sn("D")});const cn={M:2,L:2,H:1,V:1,C:6,S:4,Q:4,T:2,A:7,Z:0},fn={M:function(t,e,n){return e.x=n.x=t[0],e.y=n.y=t[1],["M",e.x,e.y]},L:function(t,e){return e.x=t[0],e.y=t[1],["L",t[0],t[1]]},H:function(t,e){return e.x=t[0],["H",t[0]]},V:function(t,e){return e.y=t[0],["V",t[0]]},C:function(t,e){return e.x=t[4],e.y=t[5],["C",t[0],t[1],t[2],t[3],t[4],t[5]]},S:function(t,e){return e.x=t[2],e.y=t[3],["S",t[0],t[1],t[2],t[3]]},Q:function(t,e){return e.x=t[2],e.y=t[3],["Q",t[0],t[1],t[2],t[3]]},T:function(t,e){return e.x=t[0],e.y=t[1],["T",t[0],t[1]]},Z:function(t,e,n){return e.x=n.x,e.y=n.y,["Z"]},A:function(t,e){return e.x=t[5],e.y=t[6],["A",t[0],t[1],t[2],t[3],t[4],t[5],t[6]]}},dn="mlhvqtcsaz".split("");for(let t=0,e=dn.length;t<e;++t)fn[dn[t]]=function(t){return function(e,n,r){if("H"===t)e[0]=e[0]+n.x;else if("V"===t)e[0]=e[0]+n.y;else if("A"===t)e[5]=e[5]+n.x,e[6]=e[6]+n.y;else for(let t=0,r=e.length;t<r;++t)e[t]=e[t]+(t%2?n.y:n.x);return fn[t](e,n,r)}}(dn[t].toUpperCase());function pn(t){return t.segment.length&&t.segment.length-1===cn[t.segment[0].toUpperCase()]}function mn(t,e){t.inNumber&&vn(t,!1);const n=Jt.test(e);if(n)t.segment=[e];else{const e=t.lastCommand,n=e.toLowerCase(),r=e===n;t.segment=["m"===n?r?"l":"L":e]}return t.inSegment=!0,t.lastCommand=t.segment[0],n}function vn(t,e){if(!t.inNumber)throw new Error("Parser Error");t.number&&t.segment.push(parseFloat(t.number)),t.inNumber=e,t.number="",t.pointSeen=!1,t.hasExponent=!1,pn(t)&&gn(t)}function gn(t){t.inSegment=!1,t.absolute&&(t.segment=function(t){const e=t.segment[0];return fn[e](t.segment.slice(1),t.p,t.p0)}(t)),t.segments.push(t.segment)}function yn(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 wn(t){return"E"===t.lastToken.toUpperCase()}const bn=new Set([" ",",","\t","\n","\r","\f"]);class xn extends ke{bbox(){return oe().path.setAttribute("d",this.toString()),new ue(oe.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 re,p:new re};for(;i.lastToken=r,r=t.charAt(n++);)if(i.inSegment||!mn(i,r))if("."!==r)if(isNaN(parseInt(r)))if(bn.has(r))i.inNumber&&vn(i,!1);else if("-"!==r&&"+"!==r)if("E"!==r.toUpperCase()){if(Jt.test(r)){if(i.inNumber)vn(i,!1);else{if(!pn(i))throw new Error("parser Error");gn(i)}--n}}else i.number+=r,i.hasExponent=!0;else{if(i.inNumber&&!wn(i)){vn(i,!1),--n;continue}i.number+=r,i.inNumber=!0}else{if("0"===i.number||yn(i)){i.inNumber=!0,i.number=r,vn(i,!0);continue}i.inNumber=!0,i.number+=r}else{if(i.pointSeen||i.hasExponent){vn(i,!1),--n;continue}i.inNumber=!0,i.pointSeen=!0,i.number+=r}return i.inNumber&&vn(i,!1),i.inSegment&&pn(i)&&gn(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 _n=t=>{const e=typeof t;return"number"===e?Ne:"string"===e?ne.isColor(t)?ne:Zt.test(t)?Jt.test(t)?xn:ke:zt.test(t)?Ne:Nn:Tn.indexOf(t.constructor)>-1?t.constructor:Array.isArray(t)?ke:"object"===e?Mn:Nn};class kn{constructor(t){this._stepper=t||new un("-"),this._from=null,this._to=null,this._type=null,this._context=null,this._morphObj=null}at(t){return this._morphObj.morph(this._from,this._to,t,this._stepper,this._context)}done(){return this._context.map(this._stepper.done).reduce((function(t,e){return t&&e}),!0)}from(t){return null==t?this._from:(this._from=this._set(t),this)}stepper(t){return null==t?this._stepper:(this._stepper=t,this)}to(t){return null==t?this._to:(this._to=this._set(t),this)}type(t){return null==t?this._type:(this._type=t,this)}_set(t){this._type||this.type(_n(t));let e=new this._type(t);return this._type===ne&&(e=this._to?e[this._to[4]]():this._from?e[this._from[4]]():e),this._type===Mn&&(e=this._to?e.align(this._to):this._from?e.align(this._from):e),e=e.toConsumable(),this._morphObj=this._morphObj||new this._type,this._context=this._context||Array.apply(null,Array(e.length)).map(Object).map((function(t){return t.done=!0,t})),e}}class Nn{constructor(...t){this.init(...t)}init(t){return t=Array.isArray(t)?t[0]:t,this.value=t,this}toArray(){return[this.value]}valueOf(){return this.value}}class Sn{constructor(...t){this.init(...t)}init(t){return Array.isArray(t)&&(t={scaleX:t[0],scaleY:t[1],shear:t[2],rotate:t[3],translateX:t[4],translateY:t[5],originX:t[6],originY:t[7]}),Object.assign(this,Sn.defaults,t),this}toArray(){const t=this;return[t.scaleX,t.scaleY,t.shear,t.rotate,t.translateX,t.translateY,t.originX,t.originY]}}Sn.defaults={scaleX:1,scaleY:1,shear:0,rotate:0,translateX:0,translateY:0,originX:0,originY:0};const En=(t,e)=>t[0]<e[0]?-1:t[0]>e[0]?1:0;class Mn{constructor(...t){this.init(...t)}align(t){const e=this.values;for(let n=0,r=e.length;n<r;++n){if(e[n+1]===t[n+1]){if(e[n+1]===ne&&t[n+7]!==e[n+7]){const e=t[n+7],r=new ne(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=_n(t[n]),i=new r(t[n]).toArray();e.push([n,r,i.length,...i])}return e.sort(En),this.values=e.reduce(((t,e)=>t.concat(e)),[]),this}toArray(){return this.values}valueOf(){const t={},e=this.values;for(;e.length;){const n=e.shift(),r=e.shift(),i=e.shift(),s=e.splice(0,i);t[n]=new r(s)}return t}}const Tn=[Nn,Sn,Mn];class Cn extends We{constructor(t,e=t){super(Lt("path",t),e)}array(){return this._array||(this._array=new xn(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 xn(t))}size(t,e){const n=gt(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 An(){return this._array||(this._array=new Qe(this.attr("points")))}function Ln(){return delete this._array,this}function Wn(t,e){return this.attr("points",this.array().move(t,e))}function On(t){return null==t?this.array():this.clear().attr("points","string"==typeof t?t:this._array=new Qe(t))}function jn(t,e){const n=gt(this,t,e);return this.attr("points",this.array().size(n.width,n.height))}Cn.prototype.MorphArray=xn,ct({Container:{path:Bt((function(t){return this.put(new Cn).plot(t||new xn)}))}}),jt(Cn,"Path");class Dn extends We{constructor(t,e=t){super(Lt("polygon",t),e)}}ct({Container:{polygon:Bt((function(t){return this.put(new Dn).plot(t||new Qe)}))}}),Rt(Dn,i),Rt(Dn,s),jt(Dn,"Polygon");class Pn extends We{constructor(t,e=t){super(Lt("polyline",t),e)}}ct({Container:{polyline:Bt((function(t){return this.put(new Pn).plot(t||new Qe)}))}}),Rt(Pn,i),Rt(Pn,s),jt(Pn,"Polyline");class In extends We{constructor(t,e=t){super(Lt("rect",t),e)}}Rt(In,{rx:Oe,ry:je}),ct({Container:{rect:Bt((function(t,e){return this.put(new In).size(t,e)}))}}),jt(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 Bn={nextDraw:null,frames:new Rn,timeouts:new Rn,immediates:new Rn,timer:()=>St.window.performance||St.window.Date,transforms:[],frame(t){const e=Bn.frames.push({run:t});return null===Bn.nextDraw&&(Bn.nextDraw=St.window.requestAnimationFrame(Bn._draw)),e},timeout(t,e){e=e||0;const n=Bn.timer().now()+e,r=Bn.timeouts.push({run:t,time:n});return null===Bn.nextDraw&&(Bn.nextDraw=St.window.requestAnimationFrame(Bn._draw)),r},immediate(t){const e=Bn.immediates.push(t);return null===Bn.nextDraw&&(Bn.nextDraw=St.window.requestAnimationFrame(Bn._draw)),e},cancelFrame(t){null!=t&&Bn.frames.remove(t)},clearTimeout(t){null!=t&&Bn.timeouts.remove(t)},cancelImmediate(t){null!=t&&Bn.immediates.remove(t)},_draw(t){let e=null;const n=Bn.timeouts.last();for(;(e=Bn.timeouts.shift())&&(t>=e.time?e.run():Bn.timeouts.push(e),e!==n););let r=null;const i=Bn.frames.last();for(;r!==i&&(r=Bn.frames.shift());)r.run(t);let s=null;for(;s=Bn.immediates.shift();)s();Bn.nextDraw=Bn.timeouts.first()||Bn.frames.first()?St.window.requestAnimationFrame(Bn._draw):null}},zn=Bn,Fn=function(t){const e=t.start,n=t.runner.duration();return{start:e,duration:n,end:e+n,runner:t.runner}},qn=function(){const t=St.window;return(t.performance||t.Date).now()};class Un extends be{constructor(t=qn){super(),this._timeSource=t,this.terminate()}active(){return!!this._nextFrame}finish(){return this.time(this.getEndTimeOfTimeline()+1),this.pause()}getEndTime(){const t=this.getLastRunnerInfo(),e=t?t.runner.duration():0;return(t?t.start:this._time)+e}getEndTimeOfTimeline(){const t=this._runners.map((t=>t.start+t.runner.duration()));return Math.max(0,...t)}getLastRunnerInfo(){return this.getRunnerInfoById(this._lastRunnerId)}getRunnerInfoById(t){return this._runners[this._runnerIds.indexOf(t)]||null}pause(){return this._paused=!0,this._continue()}persist(t){return null==t?this._persist:(this._persist=t,this)}play(){return this._paused=!1,this.updateTime()._continue()}reverse(t){const e=this.speed();if(null==t)return this.speed(-e);const n=Math.abs(e);return this.speed(t?-n:n)}schedule(t,e,n){if(null==t)return this._runners.map(Fn);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 zn.cancelFrame(this._nextFrame),this._nextFrame=null,t?this._stepImmediate():(this._paused||(this._nextFrame=zn.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 Un,this._timeline):(this._timeline=t,this)}}});class Hn extends be{constructor(t){super(),this.id=Hn.id++,t="function"==typeof(t=null==t?400:t)?new hn(t):t,this._element=null,this._timeline=null,this.done=!1,this._queue=[],this._duration="number"==typeof t&&t,this._isDeclarative=t instanceof hn,this._stepper=this._isDeclarative?t:new un,this._history={},this.enabled=!0,this._time=0,this._lastTime=0,this._reseted=!0,this.transforms=new se,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 an||(e=t.delay??e,n=t.when??n,i=t.swing||i,r=t.times??r,s=t.wait??s,t=t.duration??400),{duration:t,delay:e,swing:i,times:r,wait:s,when:n}}active(t){return null==t?this.enabled:(this.enabled=t,this)}addTransform(t){return this.transforms.lmultiplyO(t),this}after(t){return this.on("finished",t)}animate(t,e,n){const r=Hn.sanitise(t,e,n),i=new Hn(r.duration);return this._timeline&&i.timeline(this._timeline),this._element&&i.element(this._element),i.loop(r).schedule(r.delay,r.when)}clearTransform(){return this.transforms=new se,this}clearTransformsFromQueue(){this.done&&this._timeline&&this._timeline._runnerIds.includes(this.id)||(this._queue=this._queue.filter((t=>!t.isTransform)))}delay(t){return this.animate(0,t)}duration(){return this._times*(this._wait+this._duration)-this._wait}during(t){return this.queue(null,t)}ease(t){return this._stepper=new un(t),this}element(t){return null==t?this._element:(this._element=t,t._prepareRunner(),this)}finish(){return this.step(1/0)}loop(t,e,n){return"object"==typeof t&&(e=t.swing,n=t.wait,t=t.times),this._times=t||1/0,this._swing=e||!1,this._wait=n||0,!0===this._times&&(this._times=1/0),this}loops(t){const e=this._duration+this._wait;if(null==t){const t=Math.floor(this._time/e),n=(this._time-t*e)/this._duration;return Math.min(t+n,this._times)}const n=t%1,r=e*Math.floor(t)+this._duration*n;return this.time(r)}persist(t){return null==t?this._persist:(this._persist=t,this)}position(t){const e=this._time,n=this._duration,r=this._wait,i=this._times,s=this._swing,o=this._reverse;let a;if(null==t){const t=function(t){const e=s*Math.floor(t%(2*(r+n))/(r+n)),i=e&&!o||!e&&o,a=Math.pow(-1,i)*(t%(r+n))/n+i;return Math.max(Math.min(a,1),0)},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||xe,runner:e||xe,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 Un||(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 se,a=this._run(o?t:e),this.fire("step",this)),this.done=this.done||a&&o,s&&this.fire("finished",this),this}time(t){if(null==t)return this._time;const e=t-this._time;return this.step(e),this}timeline(t){return void 0===t?this._timeline:(this._timeline=t,this)}unschedule(){const t=this.timeline();return t&&t.unschedule(this),this}_initialise(t){if(t||this._isDeclarative)for(let e=0,n=this._queue.length;e<n;++e){const n=this._queue[e],r=this._isDeclarative||!n.initialised&&t;t=!n.finished,r&&t&&(n.initialiser.call(this),n.initialised=!0)}}_rememberMorpher(t,e){if(this._history[t]={morpher:e,caller:this._queue[this._queue.length-1]},this._isDeclarative){const t=this.timeline();t&&t.play()}}_run(t){let e=!0;for(let n=0,r=this._queue.length;n<r;++n){const r=this._queue[n],i=r.runner.call(this,t);r.finished=r.finished||!0===i,e=e&&r.finished}return e}_tryRetarget(t,e,n){if(this._history[t]){if(!this._history[t].caller.initialised){const e=this._queue.indexOf(this._history[t].caller);return this._queue.splice(e,1),!1}this._history[t].caller.retarget?this._history[t].caller.retarget.call(this,e,n):this._history[t].morpher.to(e),this._history[t].caller.finished=!1;const r=this.timeline();return r&&r.play(),!0}return!1}}Hn.id=0;class Vn{constructor(t=new se,e=-1,n=!0){this.transforms=t,this.id=e,this.done=n}clearTransformsFromQueue(){}}Rt([Hn,Vn],{mergeWith(t){return new Vn(t.transforms.lmultiply(this.transforms),t.id)}});const Gn=(t,e)=>t.lmultiplyO(e),Xn=t=>t.transforms;function Yn(){const t=this._transformationRunners.runners.map(Xn).reduce(Gn,new se);this.transform(t),this._transformationRunners.merge(),1===this._transformationRunners.length()&&(this._frameId=null)}class $n{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 Vn).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=Hn.sanitise(t,e,n),i=this.timeline();return new Hn(r.duration).loop(r).element(this).timeline(i.play()).schedule(r.delay,r.when)},delay(t,e){return this.animate(0,t,e)},_clearTransformRunnersBefore(t){this._transformationRunners.clearBefore(t.id)},_currentTransform(t){return this._transformationRunners.runners.filter((e=>e.id<=t.id)).map(Xn).reduce(Gn,new se)},_addRunner(t){this._transformationRunners.add(t),zn.cancelImmediate(this._frameId),this._frameId=zn.immediate(Yn.bind(this))},_prepareRunner(){null==this._frameId&&(this._transformationRunners=(new $n).add(new Vn(new se(this))))}}}),Rt(Hn,{attr(t,e){return this.styleAttr("attr",t,e)},css(t,e){return this.styleAttr("css",t,e)},styleAttr(t,e,n){if("string"==typeof e)return this.styleAttr(t,{[e]:n});let r=e;if(this._tryRetarget(t,r))return this;let i=new kn(this._stepper).to(r),s=Object.keys(r);return this.queue((function(){i=i.from(this.element()[t](s))}),(function(e){return this.element()[t](i.at(e).valueOf()),i.done()}),(function(e){const n=Object.keys(e),o=(a=s,n.filter((t=>!a.includes(t))));var a;if(o.length){const e=this.element()[t](o),n=new Mn(i.from()).valueOf();Object.assign(n,e),i.from(n)}const u=new Mn(i.to()).valueOf();Object.assign(u,e),i.to(u),s=n,r=e})),this._rememberMorpher(t,i),this},zoom(t,e){if(this._tryRetarget("zoom",t,e))return this;let n=new kn(this._stepper).to(new Ne(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=se.isMatrixLike(t);n=null!=t.affine?t.affine:null!=n?n:!r;const i=new kn(this._stepper).type(n?Sn:se);let s,o,a,u,h;return this.queue((function(){o=o||this.element(),s=s||yt(t,o),h=new se(e?void 0:o),o._addRunner(this),e||o._clearTransformRunnersBefore(this)}),(function(l){e||this.clearTransform();const{x:c,y:f}=new re(s).transform(o._currentTransform(this));let d=new se({...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 se(m),this.addTransform(a),o._addRunner(this),i.done()}),(function(e){(e.origin||"center").toString()!==(t.origin||"center").toString()&&(s=yt(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 Ne(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 Ne(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 Ne(e))},cx(t){return this._queueNumber("cx",t)},cy(t){return this._queueNumber("cy",t)},move(t,e){return this.x(t).y(e)},amove(t,e){return this.ax(t).ay(e)},center(t,e){return this.cx(t).cy(e)},size(t,e){let n;return t&&e||(n=this._element.bbox()),t||(t=n.width/n.height*e),e||(e=n.height/n.width*t),this.width(t).height(e)},width(t){return this._queueNumber("width",t)},height(t){return this._queueNumber("height",t)},plot(t,e,n,r){if(4===arguments.length)return this.plot([t,e,n,r]);if(this._tryRetarget("plot",t))return this;const i=new kn(this._stepper).type(this._element.MorphArray).to(t);return this.queue((function(){i.from(this._element.array())}),(function(t){return this._element.plot(i.at(t)),i.done()})),this._rememberMorpher("plot",i),this},leading(t){return this._queueNumber("leading",t)},viewbox(t,e,n,r){return this._queueObject("viewbox",new ue(t,e,n,r))},update(t){return"object"!=typeof t?this.update({offset:arguments[0],color:arguments[1],opacity:arguments[2]}):(null!=t.opacity&&this.attr("stop-opacity",t.opacity),null!=t.color&&this.attr("stop-color",t.color),null!=t.offset&&this.attr("offset",t.offset),this)}}),Rt(Hn,{rx:Oe,ry:je,from:He,to:Ve}),jt(Hn,"Runner");class Qn extends Ae{constructor(t,e=t){super(Lt("svg",t),e),this.namespace()}defs(){return this.isRoot()?Wt(this.node.querySelector("defs"))||this.put(new Le):this.root().defs()}isRoot(){return!this.node.parentNode||!(this.node.parentNode instanceof St.window.SVGElement)&&"#document-fragment"!==this.node.parentNode.nodeName}namespace(){return this.isRoot()?this.attr({xmlns:_t,version:"1.1"}).attr("xmlns:xlink",Nt,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:Bt((function(){return this.put(new Qn)}))}}),jt(Qn,"Svg",!0);class Zn extends Ae{constructor(t,e=t){super(Lt("symbol",t),e)}}function Jn(t){return!1===this._build&&this.clear(),this.node.appendChild(St.document.createTextNode(t)),this}function Kn(){return this.node.getComputedTextLength()}function tr(t,e=this.bbox()){return null==t?e.x:this.attr("x",this.attr("x")+t-e.x)}function er(t,e=this.bbox()){return null==t?e.y:this.attr("y",this.attr("y")+t-e.y)}function nr(t,e,n=this.bbox()){return this.x(t,n).y(e,n)}function rr(t,e=this.bbox()){return null==t?e.cx:this.attr("x",this.attr("x")+t-e.cx)}function ir(t,e=this.bbox()){return null==t?e.cy:this.attr("y",this.attr("y")+t-e.cy)}function sr(t,e,n=this.bbox()){return this.cx(t,n).cy(e,n)}function or(t){return this.attr("x",t)}function ar(t){return this.attr("y",t)}function ur(t,e){return this.ax(t).ay(e)}function hr(t){return this._build=!!t,this}ct({Container:{symbol:Bt((function(){return this.put(new Zn)}))}}),jt(Zn,"Symbol");class lr extends We{constructor(t,e=t){super(Lt("text",t),e),this.dom.leading=this.dom.leading??new Ne(1.3),this._rebuild=!0,this._build=!1}leading(t){return null==t?this.dom.leading:(this.dom.leading=new Ne(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(bt(this.node))return;const i=St.window.getComputedStyle(this.node).getPropertyValue("font-size"),s=n*new Ne(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 Ne(t.leading||1.3),this}writeDataToDom(){return xt(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||bt(e[r])?0===r&&(n=r+1):(r!==n&&3!==e[r].nodeType&&!0===Wt(e[r]).dom.newLined&&(t+="\n"),t+=e[r].textContent);return t}if(this.clear().build(!0),"function"==typeof t)t.call(this,this);else for(let e=0,n=(t=(t+"").split("\n")).length;e<n;e++)this.newLine(t[e]);return this.build(!1).rebuild()}}Rt(lr,o),ct({Container:{text:Bt((function(t=""){return this.put(new lr).text(t)})),plain:Bt((function(t=""){return this.put(new lr).plain(t)}))}}),jt(lr,"Text");class cr extends We{constructor(t,e=t){super(Lt("tspan",t),e),this._build=!1}dx(t){return this.attr("dx",t)}dy(t){return this.attr("dy",t)}newLine(){this.dom.newLined=!0;const t=this.parent();if(!(t instanceof lr))return this;const e=t.index(this),n=St.window.getComputedStyle(this.node).getPropertyValue("font-size"),r=t.dom.leading*new Ne(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(cr,o),ct({Tspan:{tspan:Bt((function(t=""){const e=new cr;return this._build||this.clear(),this.put(e).text(t)}))},Text:{newLine:function(t=""){return this.tspan(t).newLine()}}}),jt(cr,"Tspan");class fr extends We{constructor(t,e=t){super(Lt("circle",t),e)}radius(t){return this.attr("r",t)}rx(t){return this.attr("r",t)}ry(t){return this.rx(t)}size(t){return this.radius(new Ne(t).divide(2))}}Rt(fr,{x:De,y:Pe,cx:Ie,cy:Re,width:Be,height:ze}),ct({Container:{circle:Bt((function(t=0){return this.put(new fr).size(t).move(0,0)}))}}),jt(fr,"Circle");class dr extends Ae{constructor(t,e=t){super(Lt("clipPath",t),e)}remove(){return this.targets().forEach((function(t){t.unclip()})),super.remove()}targets(){return de("svg [clip-path*="+this.id()+"]")}}ct({Container:{clip:Bt((function(){return this.defs().put(new dr)}))},Element:{clipper(){return this.reference("clip-path")},clipWith(t){const e=t instanceof dr?t:this.parent().clip().add(t);return this.attr("clip-path","url(#"+e.id()+")")},unclip(){return this.attr("clip-path",null)}}}),jt(dr,"ClipPath");class pr extends Te{constructor(t,e=t){super(Lt("foreignObject",t),e)}}function mr(t,e){return this.children().forEach((n=>{let r;try{r=n.node instanceof St.window.SVGSVGElement?new ue(n.attr(["x","y","width","height"])):n.bbox()}catch(t){return}const i=new se(n),s=i.translate(t,e).transform(i.inverse()),o=new re(r.x,r.y).transform(s);n.move(o.x,o.y)})),this}function vr(t){return this.dmove(t,0)}function gr(t){return this.dmove(0,t)}function yr(t,e=this.bbox()){return null==t?e.height:this.size(e.width,t,e)}function wr(t=0,e=0,n=this.bbox()){const r=t-n.x,i=e-n.y;return this.dmove(r,i)}function br(t,e,n=this.bbox()){const r=gt(this,t,e,n),i=r.width/n.width,s=r.height/n.height;return this.children().forEach((t=>{const e=new re(n).transform(new se(t).inverse());t.scale(i,s,e.x,e.y)})),this}function xr(t,e=this.bbox()){return null==t?e.width:this.size(t,e.height,e)}function _r(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:Bt((function(t,e){return this.put(new pr).size(t,e)}))}}),jt(pr,"ForeignObject");class Nr extends Ae{constructor(t,e=t){super(Lt("g",t),e)}}Rt(Nr,a),ct({Container:{group:Bt((function(){return this.put(new Nr)}))}}),jt(Nr,"G");class Sr extends Ae{constructor(t,e=t){super(Lt("a",t),e)}target(t){return this.attr("target",t)}to(t){return this.attr("href",t,Nt)}}Rt(Sr,a),ct({Container:{link:Bt((function(t){return this.put(new Sr).to(t)}))},Element:{unlink(){const t=this.linker();if(!t)return this;const e=t.parent();if(!e)return this.remove();const n=e.index(t);return e.add(this,n),t.remove(),this},linkTo(t){let e=this.linker();return e||(e=new Sr,this.wrap(e)),"function"==typeof t?t.call(e,e):e.to(t),this},linker(){const t=this.parent();return t&&"a"===t.node.nodeName.toLowerCase()?t:null}}}),jt(Sr,"A");class Er extends Ae{constructor(t,e=t){super(Lt("mask",t),e)}remove(){return this.targets().forEach((function(t){t.unmask()})),super.remove()}targets(){return de("svg [mask*="+this.id()+"]")}}ct({Container:{mask:Bt((function(){return this.defs().put(new Er)}))},Element:{masker(){return this.reference("mask")},maskWith(t){const e=t instanceof Er?t:this.parent().mask().add(t);return this.attr("mask","url(#"+e.id()+")")},unmask(){return this.attr("mask",null)}}}),jt(Er,"Mask");class Mr extends Te{constructor(t,e=t){super(Lt("stop",t),e)}update(t){return("number"==typeof t||t instanceof Ne)&&(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 Ne(t.offset)),this}}ct({Gradient:{stop:function(t,e,n){return this.put(new Mr).update(t,e,n)}}}),jt(Mr,"Stop");class Tr extends Te{constructor(t,e=t){super(Lt("style",t),e)}addText(t=""){return this.node.textContent+=t,this}font(t,e,n={}){return this.rule("@font-face",{fontFamily:t,src:e,...n})}rule(t,e){return this.addText(function(t,e){if(!t)return"";if(!e)return t;let n=t+"{";for(const t in e)n+=t.replace(/([A-Z])/g,(function(t,e){return"-"+e.toLowerCase()}))+":"+e[t]+";";return n+="}",n}(t,e))}}ct("Dom",{style(t,e){return this.put(new Tr).rule(t,e)},fontface(t,e,n){return this.put(new Tr).font(t,e,n)}}),jt(Tr,"Style");class Cr extends lr{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:Bt((function(t,e){return t instanceof lr||(t=this.text(t)),t.path(e)}))},Text:{path:Bt((function(t,e=!0){const n=new Cr;let r;if(t instanceof Cn||(t=this.defs().path(t)),n.attr("href","#"+t,Nt),e)for(;r=this.node.firstChild;)n.node.appendChild(r);return this.put(n)})),textPath(){return this.findOne("textPath")}},Path:{text:Bt((function(t){return t instanceof lr||(t=(new lr).addTo(this.parent()).text(t)),t.path(this)})),targets(){return de("svg textPath").filter((t=>(t.attr("href")||"").includes(this.id())))}}}),Cr.prototype.MorphArray=xn,jt(Cr,"TextPath");class Ar extends We{constructor(t,e=t){super(Lt("use",t),e)}use(t,e){return this.attr("href",(e||"")+"#"+t,Nt)}}ct({Container:{use:Bt((function(t,e){return this.put(new Ar).use(t,e)}))}}),jt(Ar,"Use"),Rt([Qn,Zn,Ye,Xe,rn],ft("viewbox")),Rt([nn,Pn,Dn,Cn],ft("marker")),Rt(lr,ft("Text")),Rt(Cn,ft("Path")),Rt(Le,ft("Defs")),Rt([lr,cr],ft("Tspan")),Rt([In,Fe,Ge,Hn],ft("radius")),Rt(be,ft("EventTarget")),Rt(Me,ft("Dom")),Rt(Te,ft("Element")),Rt(We,ft("Shape")),Rt([Ae,Ue],ft("Container")),Rt(Ge,ft("Gradient")),Rt(Hn,ft("Runner")),ce.extend([...new Set(lt)]),function(t=[]){Tn.push(...[].concat(t))}([Ne,ne,ue,se,ke,Qe,xn,re]),Rt(Tn,{to(t){return(new kn).type(this.constructor).from(this.toArray()).to(t)},fromArray(t){return this.init(t),this},toConsumable(){return this.toArray()},morph(t,e,n,r,i){return this.fromArray(t.map((function(t,s){return r.step(t,e[s],n,i[s],i)})))}});var Lr,Wr,Or,jr,Dr,Pr,Ir,Rr,Br,zr,Fr,qr,Ur,Hr,Vr,Gr,Xr,Yr,$r,Qr,Zr,Jr,Kr,ti,ei,ni,ri,ii,si,oi,ai,ui,hi,li,ci,fi,di,pi,mi,vi,gi,yi,wi,bi,xi,_i,ki,Ni,Si,Ei,Mi,Ti,Ci,Ai,Li,Wi,Oi,ji,Di,Pi,Ii,Ri,Bi,zi,Fi,qi,Ui,Hi,Vi,Gi,Xi,Yi,$i,Qi,Zi,Ji,Ki,ts,es,ns,rs,is,ss,os,as,us,hs,ls,cs,fs,ds,ps,ms,vs,gs,ys,ws,bs=n(169),xs=n(726),_s=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},Ns=function(t,e,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!r:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(t):r?r.value:e.get(t)};class Ss{constructor(t){Lr.add(this),Wr.set(this,void 0),this.domNode=document.createElement("div"),Or.set(this,new Es),jr.set(this,document.createElement("div")),Dr.set(this,void 0),Pr.set(this,void 0),Ir.set(this,document.createElement("div")),Rr.set(this,void 0),Br.set(this,void 0),zr.set(this,void 0),Fr.set(this,void 0),qr.set(this,void 0),Ur.set(this,void 0),Hr.set(this,void 0),Vr.set(this,void 0),Gr.set(this,void 0),Xr.set(this,void 0),Yr.set(this,void 0),$r.set(this,void 0),ks(this,Wr,t,"f"),this.domNode.classList.add(_.lf),Ns(this,Or,"f").domNode.addEventListener("click",(()=>this.domNode.classList.toggle(_.ho))),this.domNode.append(Ns(this,Or,"f").domNode),Ns(this,jr,"f").classList.add(_.Qs),this.domNode.append(Ns(this,jr,"f")),ks(this,Dr,new Ms(t),"f"),Ns(this,jr,"f").append(Ns(this,Dr,"f").domNode),ks(this,Pr,new Ts(t),"f"),Ns(this,jr,"f").append(Ns(this,Pr,"f").domNode),Ns(this,Ir,"f").classList.add(_.eB),Ns(this,jr,"f").append(Ns(this,Ir,"f")),t.selectedBases.addEventListener("change",(()=>{document.body.contains(this.domNode)&&([...t.selectedBases].length>0?Ns(this,Lr,"m",Zr).call(this):Ns(this,Lr,"m",Jr).call(this))})),ks(this,Rr,new Cs(t),"f"),Ns(this,Ir,"f").append(Ns(this,Rr,"f").domNode),ks(this,Br,new As(t),"f"),Ns(this,Ir,"f").append(Ns(this,Br,"f").domNode),ks(this,zr,new Ls(t),"f"),Ns(this,Ir,"f").append(Ns(this,zr,"f").domNode),ks(this,Fr,new Ws(t),"f"),Ns(this,Ir,"f").append(Ns(this,Fr,"f").domNode),ks(this,qr,new Os(t),"f"),Ns(this,Ir,"f").append(Ns(this,qr,"f").domNode),ks(this,Ur,new js(t),"f"),Ns(this,Ir,"f").append(Ns(this,Ur,"f").domNode),ks(this,Hr,new Ds(t),"f"),Ns(this,Ir,"f").append(Ns(this,Hr,"f").domNode),ks(this,Vr,new Ps(t),"f"),Ns(this,Ir,"f").append(Ns(this,Vr,"f").domNode),ks(this,Gr,new Is(t),"f"),Ns(this,Ir,"f").append(Ns(this,Gr,"f").domNode),ks(this,Xr,new zs(t),"f"),Ns(this,Ir,"f").append(Ns(this,Xr,"f").domNode),ks(this,Yr,new Fs(t),"f"),Ns(this,Ir,"f").append(Ns(this,Yr,"f").domNode),ks(this,$r,new qs(t),"f"),Ns(this,Ir,"f").append(Ns(this,$r,"f").domNode)}refresh(){Ns(this,Lr,"a",Qr).forEach((t=>t.refresh())),[...Ns(this,Wr,"f").selectedBases].length>0?Ns(this,Lr,"m",Zr).call(this):Ns(this,Lr,"m",Jr).call(this)}}Wr=new WeakMap,Or=new WeakMap,jr=new WeakMap,Dr=new WeakMap,Pr=new WeakMap,Ir=new WeakMap,Rr=new WeakMap,Br=new WeakMap,zr=new WeakMap,Fr=new WeakMap,qr=new WeakMap,Ur=new WeakMap,Hr=new WeakMap,Vr=new WeakMap,Gr=new WeakMap,Xr=new WeakMap,Yr=new WeakMap,$r=new WeakMap,Lr=new WeakSet,Qr=function(){return[Ns(this,Dr,"f"),Ns(this,Pr,"f"),Ns(this,Rr,"f"),Ns(this,Br,"f"),Ns(this,zr,"f"),Ns(this,Fr,"f"),Ns(this,qr,"f"),Ns(this,Ur,"f"),Ns(this,Hr,"f"),Ns(this,Vr,"f"),Ns(this,Gr,"f"),Ns(this,Xr,"f"),Ns(this,Yr,"f"),Ns(this,$r,"f")]},Zr=function(){Ns(this,Ir,"f").style.display="block"},Jr=function(){Ns(this,Ir,"f").style.display="none"};class Es{constructor(){this.domNode=document.createElement("div"),Kr.set(this,document.createElementNS("http://www.w3.org/2000/svg","svg")),ti.set(this,document.createElement("p")),this.domNode.classList.add(_.wx),Ns(this,Kr,"f").classList.add(_.m9),Ns(this,Kr,"f").setAttribute("viewBox","0 0 6 10"),Ns(this,Kr,"f").setAttribute("width","6"),Ns(this,Kr,"f").setAttribute("height","10"),Ns(this,Kr,"f").innerHTML='\n <path\n d="M 1 1 L 5 5 L 1 9"\n stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"\n fill="none"\n ></path>\n ',this.domNode.append(Ns(this,Kr,"f")),Ns(this,ti,"f").classList.add(_.aW),Ns(this,ti,"f").textContent="Bases",this.domNode.append(Ns(this,ti,"f"))}}Kr=new WeakMap,ti=new WeakMap;class Ms{constructor(t){ei.set(this,void 0),this.domNode=document.createElement("p"),ni.set(this,document.createElement("span")),ri.set(this,document.createElement("span")),ks(this,ei,t,"f"),this.domNode.classList.add(_.IU),Ns(this,ni,"f").style.fontWeight="700",this.domNode.append(Ns(this,ni,"f"),Ns(this,ri,"f")),Ns(this,ei,"f").selectedBases.addEventListener("change",(()=>document.body.contains(this.domNode)?this.refresh():{})),this.refresh()}refresh(){let t=[...Ns(this,ei,"f").selectedBases].length;Ns(this,ni,"f").textContent=`${t}`,Ns(this,ri,"f").textContent=1==t?" base is selected.":" bases are selected."}}ei=new WeakMap,ni=new WeakMap,ri=new WeakMap;class Ts{constructor(t){ii.add(this),si.set(this,void 0),this.domNode=document.createElement("div"),oi.set(this,new T),ai.set(this,document.createElement("div")),ui.set(this,{All:new D("All",(()=>Ns(this,ii,"m",ci).call(this))),None:new D("None",(()=>Ns(this,ii,"m",fi).call(this))),A:new D("A",(()=>Ns(this,ii,"m",di).call(this,"A"))),U:new D("U",(()=>Ns(this,ii,"m",di).call(this,"U"))),G:new D("G",(()=>Ns(this,ii,"m",di).call(this,"G"))),C:new D("C",(()=>Ns(this,ii,"m",di).call(this,"C"))),T:new D("T",(()=>Ns(this,ii,"m",di).call(this,"T"))),a:new D("a",(()=>Ns(this,ii,"m",di).call(this,"a"))),u:new D("u",(()=>Ns(this,ii,"m",di).call(this,"u"))),g:new D("g",(()=>Ns(this,ii,"m",di).call(this,"g"))),c:new D("c",(()=>Ns(this,ii,"m",di).call(this,"c"))),t:new D("t",(()=>Ns(this,ii,"m",di).call(this,"t"))),Outlined:new D("Outlined",(()=>Ns(this,ii,"m",pi).call(this))),Paired:new D("Paired",(()=>Ns(this,ii,"m",mi).call(this))),Unpaired:new D("Unpaired",(()=>Ns(this,ii,"m",vi).call(this)))}),hi.set(this,void 0),ks(this,si,t,"f"),this.domNode.classList.add(_.vw),Ns(this,oi,"f").textContent="Select:",Ns(this,oi,"f").domNode.addEventListener("click",(()=>Ns(this,ii,"m",li).call(this))),this.domNode.append(Ns(this,oi,"f").domNode);let e=document.createElement("div");_s(e).css({marginTop:"1.5px",display:"flex",flexDirection:"column",gap:"6px"}),this.domNode.append(e);let n=document.createElement("div");_s(n).css({display:"flex",flexDirection:"row",gap:"23px"}),n.append(...["All","None"].map((t=>Ns(this,ui,"f")[t].domNode))),e.append(n),_s(Ns(this,ai,"f")).css({display:"flex",flexDirection:"column",gap:"6px"}),e.append(Ns(this,ai,"f")),Ns(this,ai,"f").style.display="none",Ns(this,oi,"f").caret.pointRight();let r=document.createElement("div");_s(r).css({display:"flex",flexDirection:"row",gap:"17px"}),r.append(...["A","U","G","C","T"].map((t=>Ns(this,ui,"f")[t].domNode))),Ns(this,ai,"f").append(r);let i=document.createElement("div");_s(i).css({display:"flex",flexDirection:"row",gap:"18px"}),i.append(...["a","u","g","c","t"].map((t=>Ns(this,ui,"f")[t].domNode))),Ns(this,ai,"f").append(i),Ns(this,ai,"f").append(Ns(this,ui,"f").Outlined.domNode);let s=document.createElement("div");_s(s).css({display:"flex",flexDirection:"row",gap:"18px"}),s.append(...["Paired","Unpaired"].map((t=>Ns(this,ui,"f")[t].domNode))),Ns(this,ai,"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,hi,new MutationObserver((()=>document.body.contains(this.domNode)?this.refresh():{})),"f"),Ns(this,hi,"f").observe(t.drawing.domNode,{childList:!0,subtree:!0}),this.refresh()}refresh(){let t=[...Ns(this,si,"f").drawing.bases],e=new Set([...Ns(this,si,"f").drawing.secondaryBonds].flatMap((t=>[t.base1,t.base2]))),n=t.filter((t=>!e.has(t))),r=new Set(Ns(this,si,"f").selectedBases),i=[...Ns(this,si,"f").selectedOutlines];0==t.length?(Ns(this,ui,"f").All.disable(),Ns(this,ui,"f").All.tooltip.textContent="There are no bases in the drawing."):r.size==t.length?(Ns(this,ui,"f").All.disable(),Ns(this,ui,"f").All.tooltip.textContent="All bases are already selected."):(Ns(this,ui,"f").All.enable(),Ns(this,ui,"f").All.tooltip.textContent="Select all bases."),0==r.size?(Ns(this,ui,"f").None.disable(),Ns(this,ui,"f").None.tooltip.textContent="No bases are selected."):(Ns(this,ui,"f").None.enable(),Ns(this,ui,"f").None.tooltip.textContent="Deselect all bases."),["A","U","G","C","T","a","u","g","c","t"].forEach((e=>{let n=t.filter((t=>t.textContent==e)),i=Ns(this,ui,"f")[e];0==n.length?(i.disable(),i.tooltip.textContent=`No bases have the letter "${e}".`):n.every((t=>r.has(t)))?(i.disable(),i.tooltip.textContent=`All bases with the letter "${e}" are already selected.`):(i.enable(),i.tooltip.textContent=`Select all bases with the letter "${e}".`)})),0==i.length?(Ns(this,ui,"f").Outlined.disable(),Ns(this,ui,"f").Outlined.tooltip.textContent="No outlines are selected."):i.map((t=>t.owner)).every((t=>r.has(t)))?(Ns(this,ui,"f").Outlined.disable(),Ns(this,ui,"f").Outlined.tooltip.textContent="All bases outlined by the selected outlines are already selected."):(Ns(this,ui,"f").Outlined.enable(),Ns(this,ui,"f").Outlined.tooltip.textContent="Select bases outlined by the selected outlines."),0==e.size?(Ns(this,ui,"f").Paired.disable(),Ns(this,ui,"f").Paired.tooltip.textContent="There are no paired bases in the drawing."):[...e].every((t=>r.has(t)))?(Ns(this,ui,"f").Paired.disable(),Ns(this,ui,"f").Paired.tooltip.textContent="All paired bases are already selected."):(Ns(this,ui,"f").Paired.enable(),Ns(this,ui,"f").Paired.tooltip.textContent="Select all paired bases."),0==n.length?(Ns(this,ui,"f").Unpaired.disable(),Ns(this,ui,"f").Unpaired.tooltip.textContent="There are no unpaired bases in the drawing."):n.every((t=>r.has(t)))?(Ns(this,ui,"f").Unpaired.disable(),Ns(this,ui,"f").Unpaired.tooltip.textContent="All unpaired bases are already selected."):(Ns(this,ui,"f").Unpaired.enable(),Ns(this,ui,"f").Unpaired.tooltip.textContent="Select all unpaired bases.")}}si=new WeakMap,oi=new WeakMap,ai=new WeakMap,ui=new WeakMap,hi=new WeakMap,ii=new WeakSet,li=function(){let t="none"!=Ns(this,ai,"f").style.display;Ns(this,ai,"f").style.display=t?"none":"flex",t?Ns(this,oi,"f").caret.pointRight():Ns(this,oi,"f").caret.pointDown()},ci=function(){Ns(this,si,"f").addToSelected([...Ns(this,si,"f").drawing.bases])},fi=function(){Ns(this,si,"f").removeFromSelected([...Ns(this,si,"f").drawing.bases])},di=function(t){Ns(this,si,"f").addToSelected([...Ns(this,si,"f").drawing.bases].filter((e=>e.domNode.textContent==t)))},pi=function(){Ns(this,si,"f").addToSelected([...Ns(this,si,"f").selectedOutlines].map((t=>t.owner)))},mi=function(){Ns(this,si,"f").addToSelected([...Ns(this,si,"f").drawing.secondaryBonds].flatMap((t=>[t.base1,t.base2])))},vi=function(){let t=new Set([...Ns(this,si,"f").drawing.secondaryBonds].flatMap((t=>[t.base1,t.base2])));Ns(this,si,"f").addToSelected([...Ns(this,si,"f").drawing.bases].filter((e=>!t.has(e))))};class Cs{constructor(t){gi.add(this),yi.set(this,void 0),this.domNode=document.createElement("div"),wi.set(this,document.createElement("p")),bi.set(this,new D),xi.set(this,new D),ks(this,yi,t,"f"),this.domNode.classList.add(_.Te),Ns(this,wi,"f").classList.add(_.QB),Ns(this,wi,"f").textContent="Send to:",this.domNode.append(Ns(this,wi,"f")),Ns(this,bi,"f").domNode.addEventListener("click",(()=>Ns(this,gi,"m",_i).call(this))),Ns(this,bi,"f").textContent="Front",Ns(this,bi,"f").domNode.style.marginLeft="26px",this.domNode.append(Ns(this,bi,"f").domNode),Ns(this,xi,"f").domNode.addEventListener("click",(()=>Ns(this,gi,"m",ki).call(this))),Ns(this,xi,"f").textContent="Back",Ns(this,xi,"f").domNode.style.marginLeft="28px",this.domNode.append(Ns(this,xi,"f").domNode),t.selectedBases.addEventListener("change",(()=>document.body.contains(this.domNode)?this.refresh():{})),this.refresh()}refresh(){Ns(this,gi,"m",Ni).call(this),Ns(this,gi,"m",Si).call(this)}}yi=new WeakMap,wi=new WeakMap,bi=new WeakMap,xi=new WeakMap,gi=new WeakSet,_i=function(){let t=[...Ns(this,yi,"f").selectedBases];0!=t.length?(Ns(this,yi,"f").pushUndoStack(),t.forEach((t=>(0,xs.bringToFront)(t.domNode)))):this.refresh()},ki=function(){let t=[...Ns(this,yi,"f").selectedBases];0!=t.length?(Ns(this,yi,"f").pushUndoStack(),t.forEach((t=>(0,xs.sendToBack)(t.domNode)))):this.refresh()},Ni=function(){0==[...Ns(this,yi,"f").selectedBases].length?(Ns(this,bi,"f").disable(),Ns(this,bi,"f").tooltip.textContent="No bases are selected."):(Ns(this,bi,"f").enable(),Ns(this,bi,"f").tooltip.textContent="Bring the selected bases to the front.")},Si=function(){0==[...Ns(this,yi,"f").selectedBases].length?(Ns(this,xi,"f").disable(),Ns(this,xi,"f").tooltip.textContent="No bases are selected."):(Ns(this,xi,"f").enable(),Ns(this,xi,"f").tooltip.textContent="Send the selected bases to the back.")};class As{constructor(t){Ei.add(this),Mi.set(this,void 0),Ti.set(this,new z({onSubmit:()=>Ns(this,Ei,"m",Ai).call(this)})),Ci.set(this,void 0),ks(this,Mi,t,"f"),ks(this,Ci,new Q("Text Content",Ns(this,Ti,"f").domNode),"f"),Ns(this,Ci,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/API/Node/textContent",this.domNode.style.marginTop="22px",this.domNode.style.alignSelf="start",Ns(this,Mi,"f").selectedBases.addEventListener("change",(()=>document.body.contains(this.domNode)?this.refresh():{})),new MutationObserver((()=>document.body.contains(this.domNode)?this.refresh():{})).observe(Ns(this,Mi,"f").drawing.domNode,{characterData:!0,subtree:!0}),this.refresh()}get domNode(){return Ns(this,Ci,"f").domNode}refresh(){let t=[...Ns(this,Mi,"f").selectedBases];try{Ns(this,Ti,"f").domNode.value=(0,bs.consensusValue)(t.map((t=>{var e;return null!==(e=t.textContent)&&void 0!==e?e:""})))}catch(t){Ns(this,Ti,"f").domNode.value=""}}}Mi=new WeakMap,Ti=new WeakMap,Ci=new WeakMap,Ei=new WeakSet,Ai=function(){var t;let e=null!==(t=Ns(this,Ti,"f").domNode.value)&&void 0!==t?t:"";if(e=e.trim(),!e)return void this.refresh();let n=[...Ns(this,Mi,"f").selectedBases];0==n.length||n.every((t=>t.textContent===e))||(Ns(this,Mi,"f").pushUndoStack(),n.forEach((t=>t.maintainingCenterPoint((()=>t.textContent=e))))),this.refresh()};class Ls{constructor(t){Li.set(this,void 0),Wi.set(this,void 0),Oi.set(this,void 0),ks(this,Li,t,"f"),ks(this,Wi,new Vs(t,"fill"),"f"),ks(this,Oi,new Q("Fill",Ns(this,Wi,"f").domNode),"f"),Ns(this,Oi,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/fill",_s(this.domNode).css({marginTop:"10px",alignSelf:"start"}),this.refresh()}get domNode(){return Ns(this,Oi,"f").domNode}refresh(){Ns(this,Wi,"f").refresh()}}Li=new WeakMap,Wi=new WeakMap,Oi=new WeakMap;class Ws{constructor(t){ji.add(this),Di.set(this,void 0),Pi.set(this,new st),Ii.set(this,void 0),Ri.set(this,void 0),Bi.set(this,void 0),ks(this,Di,t,"f"),Ns(this,Pi,"f").domNode.addEventListener("input",(()=>Ns(this,ji,"m",zi).call(this))),ks(this,Ii,new ut("Fill Color",Ns(this,Pi,"f").domNode),"f"),_s(this.domNode).css({marginTop:"12px",alignSelf:"start"}),Ns(this,Di,"f").selectedBases.addEventListener("change",(()=>ks(this,Ri,void 0,"f"))),Ns(this,Pi,"f").domNode.addEventListener("focus",(()=>ks(this,Bi,Ns(this,Pi,"f").domNode.value,"f"))),Ns(this,Di,"f").selectedBases.addEventListener("change",(()=>document.body.contains(this.domNode)?this.refresh():{})),new MutationObserver((()=>document.body.contains(this.domNode)?this.refresh():{})).observe(Ns(this,Di,"f").drawing.domNode,{attributes:!0,attributeFilter:["fill"],subtree:!0}),this.refresh()}get domNode(){return Ns(this,Ii,"f").domNode}refresh(){let t=[...Ns(this,Di,"f").selectedBases];if(0!=t.length)try{let e=t.map((t=>window.getComputedStyle(t.domNode).fill)).map((t=>new ne(t)));Ns(this,Pi,"f").domNode.value=(0,bs.consensusValue)(e.map((t=>t.toHex().toLowerCase())))}catch(t){Ns(this,Pi,"f").domNode.value="#000000"}else Ns(this,Pi,"f").domNode.value="#000000"}}Di=new WeakMap,Pi=new WeakMap,Ii=new WeakMap,Ri=new WeakMap,Bi=new WeakMap,ji=new WeakSet,zi=function(){if(Ns(this,Pi,"f").domNode.value===Ns(this,Bi,"f"))return;let t=[...Ns(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())===Ns(this,Pi,"f").domNode.value.toLowerCase()}))||((Ns(this,Di,"f").undoStack.isEmpty()||Ns(this,Di,"f").undoStack.peek()!==Ns(this,Ri,"f"))&&(Ns(this,Di,"f").pushUndoStack(),ks(this,Ri,Ns(this,Di,"f").undoStack.peek(),"f")),t.forEach((t=>t.setAttribute("fill",Ns(this,Pi,"f").domNode.value.toLowerCase())))),this.refresh()):this.refresh()};class Os{constructor(t){Fi.set(this,void 0),qi.set(this,void 0),Ui.set(this,void 0),ks(this,Fi,t,"f"),ks(this,qi,new Vs(t,"fill-opacity"),"f"),ks(this,Ui,new Q("Fill Opacity",Ns(this,qi,"f").domNode),"f"),Ns(this,Ui,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/fill-opacity",_s(this.domNode).css({marginTop:"12px",alignSelf:"start"}),this.refresh()}get domNode(){return Ns(this,Ui,"f").domNode}refresh(){Ns(this,qi,"f").refresh()}}Fi=new WeakMap,qi=new WeakMap,Ui=new WeakMap;class js{constructor(t){Hi.set(this,void 0),Vi.set(this,void 0),Gi.set(this,void 0),ks(this,Hi,t,"f"),ks(this,Vi,new Vs(t,"font-family"),"f"),ks(this,Gi,new Q("Font Family",Ns(this,Vi,"f").domNode),"f"),Ns(this,Gi,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/font-family",_s(this.domNode).css({marginTop:"10px",alignSelf:"start"}),this.refresh()}get domNode(){return Ns(this,Gi,"f").domNode}refresh(){Ns(this,Vi,"f").refresh()}}Hi=new WeakMap,Vi=new WeakMap,Gi=new WeakMap;class Ds{constructor(t){Xi.set(this,void 0),Yi.set(this,void 0),$i.set(this,void 0),ks(this,Xi,t,"f"),ks(this,Yi,new Vs(t,"font-size"),"f"),ks(this,$i,new Q("Font Size",Ns(this,Yi,"f").domNode),"f"),Ns(this,$i,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/font-size",_s(this.domNode).css({marginTop:"10px",alignSelf:"start"}),this.refresh()}get domNode(){return Ns(this,$i,"f").domNode}refresh(){Ns(this,Yi,"f").refresh()}}Xi=new WeakMap,Yi=new WeakMap,$i=new WeakMap;class Ps{constructor(t){Qi.set(this,void 0),Zi.set(this,void 0),Ji.set(this,void 0),ks(this,Qi,t,"f"),ks(this,Zi,new Vs(t,"font-weight"),"f"),ks(this,Ji,new Q("Font Weight",Ns(this,Zi,"f").domNode),"f"),Ns(this,Ji,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/font-weight",_s(this.domNode).css({marginTop:"10px",alignSelf:"start"}),this.refresh()}get domNode(){return Ns(this,Ji,"f").domNode}refresh(){Ns(this,Zi,"f").refresh()}}Qi=new WeakMap,Zi=new WeakMap,Ji=new WeakMap;class Is{constructor(t){Ki.add(this),ts.set(this,void 0),es.set(this,new K),ns.set(this,void 0),ks(this,ts,t,"f"),Ns(this,es,"f").domNode.addEventListener("change",(()=>Ns(this,Ki,"m",rs).call(this))),ks(this,ns,new nt("Bold",Ns(this,es,"f").domNode),"f"),_s(this.domNode).css({marginTop:"12px",alignSelf:"start"}),Ns(this,ts,"f").selectedBases.addEventListener("change",(()=>document.body.contains(this.domNode)?this.refresh():{})),new MutationObserver((()=>document.body.contains(this.domNode)?this.refresh():{})).observe(Ns(this,ts,"f").drawing.domNode,{attributes:!0,attributeFilter:["font-weight"],subtree:!0}),this.refresh()}get domNode(){return Ns(this,ns,"f").domNode}refresh(){let t=[...Ns(this,ts,"f").selectedBases];0==t.length?Ns(this,es,"f").domNode.checked=!1:Ns(this,es,"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 Bs(t){return!Rs(t)}ts=new WeakMap,es=new WeakMap,ns=new WeakMap,Ki=new WeakSet,rs=function(){let t=[...Ns(this,ts,"f").selectedBases];0!=t.length?Ns(this,es,"f").domNode.checked&&t.every(Rs)?this.refresh():Ns(this,es,"f").domNode.checked||!t.every(Bs)?(Ns(this,ts,"f").pushUndoStack(),t.forEach((t=>{t.maintainingCenterPoint((()=>{Ns(this,es,"f").domNode.checked&&Bs(t)?t.setAttribute("font-weight","700"):!Ns(this,es,"f").domNode.checked&&Rs(t)&&t.setAttribute("font-weight","400")}))})),this.refresh(),Ns(this,es,"f").domNode.blur()):this.refresh():this.refresh()};class zs{constructor(t){is.set(this,void 0),ss.set(this,void 0),os.set(this,void 0),ks(this,is,t,"f"),ks(this,ss,new Vs(t,"font-style"),"f"),ks(this,os,new Q("Font Style",Ns(this,ss,"f").domNode),"f"),Ns(this,os,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/font-style",_s(this.domNode).css({marginTop:"12px",alignSelf:"start"}),this.refresh()}get domNode(){return Ns(this,os,"f").domNode}refresh(){Ns(this,ss,"f").refresh()}}is=new WeakMap,ss=new WeakMap,os=new WeakMap;class Fs{constructor(t){as.set(this,void 0),us.set(this,void 0),hs.set(this,void 0),ks(this,as,t,"f"),ks(this,us,new Vs(t,"text-decoration"),"f"),ks(this,hs,new Q("Text Decoration",Ns(this,us,"f").domNode),"f"),Ns(this,hs,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/text-decoration",_s(this.domNode).css({marginTop:"10px",alignSelf:"start"}),this.refresh()}get domNode(){return Ns(this,hs,"f").domNode}refresh(){Ns(this,us,"f").refresh()}}as=new WeakMap,us=new WeakMap,hs=new WeakMap;class qs{constructor(t){ls.add(this),cs.set(this,void 0),fs.set(this,new K),ds.set(this,void 0),ks(this,cs,t,"f"),Ns(this,fs,"f").domNode.addEventListener("change",(()=>Ns(this,ls,"m",ps).call(this))),ks(this,ds,new nt("Underlined",Ns(this,fs,"f").domNode),"f"),_s(this.domNode).css({marginTop:"12px",alignSelf:"start"}),Ns(this,cs,"f").selectedBases.addEventListener("change",(()=>document.body.contains(this.domNode)?this.refresh():{})),new MutationObserver((()=>document.body.contains(this.domNode)?this.refresh():{})).observe(Ns(this,cs,"f").drawing.domNode,{attributes:!0,attributeFilter:["text-decoration"],subtree:!0}),this.refresh()}get domNode(){return Ns(this,ds,"f").domNode}refresh(){let t=[...Ns(this,cs,"f").selectedBases];0==t.length?Ns(this,fs,"f").domNode.checked=!1:Ns(this,fs,"f").domNode.checked=t.every(Us)}}function Us(t){let e=t.getAttribute("text-decoration");return null!==e&&e.split(/\s/).map((t=>t.toLowerCase())).includes("underline")}function Hs(t){return!Us(t)}cs=new WeakMap,fs=new WeakMap,ds=new WeakMap,ls=new WeakSet,ps=function(){let t=[...Ns(this,cs,"f").selectedBases];0!=t.length?Ns(this,fs,"f").domNode.checked&&t.every(Us)?this.refresh():Ns(this,fs,"f").domNode.checked||!t.every(Hs)?(Ns(this,cs,"f").pushUndoStack(),t.forEach((t=>{t.maintainingCenterPoint((()=>{Ns(this,fs,"f").domNode.checked&&Hs(t)?t.setAttribute("text-decoration","underline"):!Ns(this,fs,"f").domNode.checked&&Us(t)&&t.setAttribute("text-decoration","")}))})),this.refresh(),Ns(this,fs,"f").domNode.blur()):this.refresh():this.refresh()};class Vs{constructor(t,e){ms.add(this),vs.set(this,void 0),gs.set(this,void 0),ys.set(this,new z({onSubmit:()=>Ns(this,ms,"m",ws).call(this)})),ks(this,vs,t,"f"),ks(this,gs,e,"f"),Ns(this,vs,"f").selectedBases.addEventListener("change",(()=>document.body.contains(this.domNode)?this.refresh():{})),new MutationObserver((()=>document.body.contains(this.domNode)?this.refresh():{})).observe(Ns(this,vs,"f").drawing.domNode,{attributes:!0,subtree:!0}),this.refresh()}get domNode(){return Ns(this,ys,"f").domNode}refresh(){let t=[...Ns(this,vs,"f").selectedBases];try{Ns(this,ys,"f").domNode.value=(0,bs.consensusValue)(t.map((t=>{var e;return null!==(e=t.getAttribute(Ns(this,gs,"f")))&&void 0!==e?e:""})))}catch(t){Ns(this,ys,"f").domNode.value=""}}}vs=new WeakMap,gs=new WeakMap,ys=new WeakMap,ms=new WeakSet,ws=function(){let t=Ns(this,ys,"f").domNode.value,e=[...Ns(this,vs,"f").selectedBases];0==e.length||e.every((e=>e.getAttribute(Ns(this,gs,"f"))===t))||(Ns(this,vs,"f").pushUndoStack(),e.forEach((e=>e.maintainingCenterPoint((()=>e.setAttribute(Ns(this,gs,"f"),t)))))),this.refresh()};var Gs=n(924),Xs={};Xs.styleTagTransform=w(),Xs.setAttributes=m(),Xs.insert=d().bind(null,"head"),Xs.domAPI=c(),Xs.insertStyleElement=g(),h()(Gs.Ay,Xs),Gs.Ay&&Gs.Ay.locals&&Gs.Ay.locals;var Ys=n(723),$s={};$s.styleTagTransform=w(),$s.setAttributes=m(),$s.insert=d().bind(null,"head"),$s.domAPI=c(),$s.insertStyleElement=g(),h()(Ys.Ay,$s),Ys.Ay&&Ys.Ay.locals&&Ys.Ay.locals;var Qs,Zs=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 Js{constructor(t,e){this.domNode=document.createElement("div"),Qs.set(this,document.createElement("p")),this.tooltip=new O.Tooltip(""),this.domNode.classList.add(Ys.kL),Zs(this,Qs,"f").classList.add(Ys.Wu),!t||(this.textContent=t),!e||(this.onClick=e),this.domNode.append(Zs(this,Qs,"f")),this.tooltip.owner=this.domNode}get textContent(){return Zs(this,Qs,"f").textContent}set textContent(t){Zs(this,Qs,"f").textContent=t}get onClick(){return Zs(this,Qs,"f").onclick}set onClick(t){Zs(this,Qs,"f").onclick=t}click(){Zs(this,Qs,"f").click()}disable(){Zs(this,Qs,"f").classList.add(Ys.r9)}enable(){Zs(this,Qs,"f").classList.remove(Ys.r9)}isDisabled(){return Zs(this,Qs,"f").classList.contains(Ys.r9)}isEnabled(){return!this.isDisabled()}}Qs=new WeakMap;var Ks,to,eo,no,ro,io,so,oo,ao,uo,ho,lo,co,fo,po,mo,vo,go,yo,wo,bo,xo,_o,ko,No,So,Eo,Mo,To,Co,Ao,Lo,Wo,Oo,jo,Do,Po,Io,Ro,Bo,zo,Fo,qo,Uo,Ho,Vo,Go,Xo,Yo,$o,Qo,Zo,Jo,Ko,ta,ea,na,ra,ia,sa,oa,aa,ua,ha,la,ca,fa,da,pa,ma,va,ga,ya,wa,ba,xa,_a,ka,Na,Sa,Ea,Ma,Ta,Ca,Aa,La,Wa,Oa,ja,Da,Pa,Ia,Ra,Ba,za,Fa,qa,Ua,Ha,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 Xa{constructor(t){Ks.add(this),to.set(this,void 0),this.domNode=document.createElement("div"),eo.set(this,new T),no.set(this,document.createElement("div")),ro.set(this,void 0),io.set(this,document.createElement("div")),so.set(this,void 0),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),vo.set(this,void 0),go.set(this,void 0),Va(this,to,t,"f"),this.domNode.classList.add(Gs.qM),Ga(this,eo,"f").textContent="Outlines",Ga(this,eo,"f").domNode.addEventListener("click",(()=>this.toggle())),this.domNode.append(Ga(this,eo,"f").domNode),Ga(this,no,"f").classList.add(Gs.Qs),this.domNode.append(Ga(this,no,"f")),Va(this,ro,new Ya(t),"f"),Ga(this,no,"f").append(Ga(this,ro,"f").domNode),Va(this,so,new $a(t),"f"),Ga(this,no,"f").append(Ga(this,so,"f").domNode),Va(this,oo,new Qa(t),"f"),Ga(this,no,"f").append(Ga(this,oo,"f").domNode),Ga(this,io,"f").classList.add(Gs.eB),Ga(this,no,"f").append(Ga(this,io,"f")),t.selectedOutlines.addEventListener("change",(()=>{document.body.contains(this.domNode)&&([...t.selectedOutlines].length>0?Ga(this,Ks,"m",wo).call(this):Ga(this,Ks,"m",bo).call(this))})),Va(this,ao,new Ja(t),"f"),Ga(this,io,"f").append(Ga(this,ao,"f").domNode),Va(this,uo,new Ka(t),"f"),Ga(this,io,"f").append(Ga(this,uo,"f").domNode),Va(this,ho,new tu(t),"f"),Ga(this,io,"f").append(Ga(this,ho,"f").domNode),Va(this,lo,new eu(t),"f"),Ga(this,io,"f").append(Ga(this,lo,"f").domNode),Va(this,co,new nu(t),"f"),Ga(this,io,"f").append(Ga(this,co,"f").domNode),Va(this,fo,new ru(t),"f"),Ga(this,io,"f").append(Ga(this,fo,"f").domNode),Va(this,po,new iu(t),"f"),Ga(this,io,"f").append(Ga(this,po,"f").domNode),Va(this,mo,new su(t),"f"),Ga(this,io,"f").append(Ga(this,mo,"f").domNode),Va(this,vo,new ou(t),"f"),Ga(this,io,"f").append(Ga(this,vo,"f").domNode),Va(this,go,new au(t),"f"),Ga(this,io,"f").append(Ga(this,go,"f").domNode)}isOpen(){return this.domNode.classList.contains(Gs.ho)}toggle(){this.isOpen()?(this.domNode.classList.remove(Gs.ho),Ga(this,eo,"f").caret.pointRight()):(this.domNode.classList.add(Gs.ho),Ga(this,eo,"f").caret.pointDown())}refresh(){Ga(this,Ks,"a",yo).forEach((t=>t.refresh())),[...Ga(this,to,"f").selectedOutlines].length>0?Ga(this,Ks,"m",wo).call(this):Ga(this,Ks,"m",bo).call(this)}}to=new WeakMap,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,vo=new WeakMap,go=new WeakMap,Ks=new WeakSet,yo=function(){return[Ga(this,ro,"f"),Ga(this,so,"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,vo,"f"),Ga(this,go,"f")]},wo=function(){Ga(this,io,"f").style.display="flex"},bo=function(){Ga(this,io,"f").style.display="none"};class Ya{constructor(t){xo.set(this,void 0),this.domNode=document.createElement("p"),_o.set(this,document.createElement("span")),ko.set(this,document.createElement("span")),Va(this,xo,t,"f"),this.domNode.classList.add(Gs.vM),Ga(this,_o,"f").style.fontWeight="700",this.domNode.append(Ga(this,_o,"f"),Ga(this,ko,"f")),Ga(this,xo,"f").selectedOutlines.addEventListener("change",(()=>document.body.contains(this.domNode)?this.refresh():{})),this.refresh()}refresh(){let t=[...Ga(this,xo,"f").selectedOutlines].length;Ga(this,_o,"f").textContent=`${t}`,Ga(this,ko,"f").textContent=1==t?" outline is selected.":" outlines are selected."}}xo=new WeakMap,_o=new WeakMap,ko=new WeakMap;class $a{constructor(t){No.add(this),So.set(this,void 0),this.domNode=document.createElement("div"),Eo.set(this,document.createElement("p")),Mo.set(this,new D),To.set(this,new D),Co.set(this,new D),Ao.set(this,void 0),Va(this,So,t,"f"),this.domNode.classList.add(Gs.VX),Ga(this,Eo,"f").classList.add(Gs.iE),Ga(this,Eo,"f").textContent="Select:",this.domNode.append(Ga(this,Eo,"f")),Ga(this,Mo,"f").domNode.addEventListener("click",(()=>Ga(this,No,"m",Lo).call(this))),Ga(this,Mo,"f").textContent="All",Ga(this,Mo,"f").domNode.style.marginLeft="20px",this.domNode.append(Ga(this,Mo,"f").domNode),Ga(this,To,"f").domNode.addEventListener("click",(()=>Ga(this,No,"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,Co,"f").domNode.addEventListener("click",(()=>Ga(this,No,"m",Oo).call(this))),Ga(this,Co,"f").textContent="None",Ga(this,Co,"f").domNode.style.marginLeft="17px",this.domNode.append(Ga(this,Co,"f").domNode),t.selectedOutlines.addEventListener("change",(()=>document.body.contains(this.domNode)?this.refresh():{})),Va(this,Ao,new MutationObserver((()=>document.body.contains(this.domNode)?this.refresh():{})),"f"),Ga(this,Ao,"f").observe(t.drawing.domNode,{childList:!0,subtree:!0}),this.refresh()}refresh(){Ga(this,No,"m",jo).call(this),Ga(this,No,"m",Do).call(this),Ga(this,No,"m",Po).call(this)}}So=new WeakMap,Eo=new WeakMap,Mo=new WeakMap,To=new WeakMap,Co=new WeakMap,Ao=new WeakMap,No=new WeakSet,Lo=function(){let t=[...Ga(this,So,"f").drawing.outlines];Ga(this,So,"f").addToSelected(t)},Wo=function(){let t=new Set(Ga(this,So,"f").selectedBases),e=[...Ga(this,So,"f").drawing.outlines];Ga(this,So,"f").addToSelected(e.filter((e=>t.has(e.owner))))},Oo=function(){let t=[...Ga(this,So,"f").drawing.outlines];Ga(this,So,"f").removeFromSelected(t)},jo=function(){let t=[...Ga(this,So,"f").drawing.outlines],e=[...Ga(this,So,"f").selectedOutlines];0==t.length?(Ga(this,Mo,"f").disable(),Ga(this,Mo,"f").tooltip.textContent="There are no outlines in the drawing."):e.length==t.length?(Ga(this,Mo,"f").disable(),Ga(this,Mo,"f").tooltip.textContent="All outlines are already selected."):(Ga(this,Mo,"f").enable(),Ga(this,Mo,"f").tooltip.textContent="Select all outlines.")},Do=function(){let t=[...Ga(this,So,"f").drawing.outlines],e=new Set(Ga(this,So,"f").selectedBases),n=t.filter((t=>e.has(t.owner))),r=new Set(Ga(this,So,"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.")},Po=function(){0==[...Ga(this,So,"f").selectedOutlines].length?(Ga(this,Co,"f").disable(),Ga(this,Co,"f").tooltip.textContent="No outlines are selected."):(Ga(this,Co,"f").enable(),Ga(this,Co,"f").tooltip.textContent="Deselect all outlines.")};class Qa{constructor(t){Io.add(this),Ro.set(this,void 0),this.domNode=document.createElement("div"),Bo.set(this,document.createElement("div")),zo.set(this,new Js("Add",(()=>Ga(this,Io,"m",Xo).call(this)))),Fo.set(this,new K),qo.set(this,new nt("Only add missing outlines",Ga(this,Fo,"f").domNode)),Uo.set(this,void 0),Ho.set(this,void 0),Va(this,Ro,t,"f"),this.domNode.style.marginTop="25px",this.domNode.style.display="flex",this.domNode.style.flexDirection="column",Ga(this,Bo,"f").style.display="flex",Ga(this,Bo,"f").style.flexDirection="row",Ga(this,Bo,"f").style.gap="15px",this.domNode.append(Ga(this,Bo,"f")),Va(this,Uo,new Za(t),"f"),Ga(this,Bo,"f").append(Ga(this,zo,"f").domNode,Ga(this,Uo,"f").domNode),Ga(this,Fo,"f").domNode.checked=!0,Ga(this,qo,"f").domNode.style.marginTop="11px",Ga(this,qo,"f").domNode.style.alignSelf="start",this.domNode.append(Ga(this,qo,"f").domNode),t.selectedBases.addEventListener("change",(()=>document.body.contains(this.domNode)?this.refresh():{})),Va(this,Ho,new MutationObserver((()=>document.body.contains(this.domNode)?this.refresh():{})),"f"),Ga(this,Ho,"f").observe(t.drawing.domNode,{childList:!0,subtree:!0}),Ga(this,Fo,"f").domNode.addEventListener("change",(()=>this.refresh())),this.refresh()}refresh(){Ga(this,Io,"m",Go).call(this),Ga(this,Uo,"f").refresh()}}Ro=new WeakMap,Bo=new WeakMap,zo=new WeakMap,Fo=new WeakMap,qo=new WeakMap,Uo=new WeakMap,Ho=new WeakMap,Io=new WeakSet,Vo=function(){return Ga(this,Fo,"f").domNode.checked},Go=function(){let t=[...Ga(this,Ro,"f").selectedBases],e=[...Ga(this,Ro,"f").drawing.outlines],n=new Set(e.map((t=>t.owner))),r=t.filter((t=>!n.has(t)));0==t.length?(Ga(this,zo,"f").disable(),Ga(this,zo,"f").tooltip.textContent="No bases are selected."):Ga(this,Io,"a",Vo)&&0==r.length?(Ga(this,zo,"f").disable(),Ga(this,zo,"f").tooltip.textContent="The selected bases are already outlined."):(Ga(this,zo,"f").enable(),Ga(this,zo,"f").tooltip.textContent="Outline the selected bases.")},Xo=function(){let t=[...Ga(this,Ro,"f").selectedBases];if(0==t.length)return;let e=[...Ga(this,Ro,"f").drawing.outlines],n=new Set(e.map((t=>t.owner))),r=t.filter((t=>!n.has(t))),i=Ga(this,Io,"a",Vo)?r:t;if(0==i.length)return;Ga(this,Ro,"f").pushUndoStack();let s=i.map((t=>Ga(this,Ro,"f").drawing.outline(t)));Ga(this,Ro,"f").addToSelected(s),this.refresh()};class Za{constructor(t){Yo.set(this,void 0),$o.set(this,new Js("Remove",(()=>this.press()))),Va(this,Yo,t,"f"),Ga(this,Yo,"f").selectedOutlines.addEventListener("change",(()=>document.body.contains(this.domNode)?this.refresh():{})),this.refresh()}get domNode(){return Ga(this,$o,"f").domNode}press(){let t=[...Ga(this,Yo,"f").selectedOutlines];0!=t.length?(Ga(this,Yo,"f").pushUndoStack(),t.forEach((t=>t.domNode.remove())),this.refresh()):this.refresh()}refresh(){0==[...Ga(this,Yo,"f").selectedOutlines].length?(Ga(this,$o,"f").disable(),Ga(this,$o,"f").tooltip.textContent="No outlines are selected."):(Ga(this,$o,"f").enable(),Ga(this,$o,"f").tooltip.textContent="Remove the selected outlines from the drawing.")}}Yo=new WeakMap,$o=new WeakMap;class Ja{constructor(t){Qo.add(this),Zo.set(this,void 0),this.domNode=document.createElement("div"),Jo.set(this,document.createElement("p")),Ko.set(this,new D),ta.set(this,new D),Va(this,Zo,t,"f"),this.domNode.classList.add(Gs.Te),Ga(this,Jo,"f").classList.add(Gs.QB),Ga(this,Jo,"f").textContent="Send to:",this.domNode.append(Ga(this,Jo,"f")),Ga(this,Ko,"f").domNode.addEventListener("click",(()=>Ga(this,Qo,"m",ea).call(this))),Ga(this,Ko,"f").textContent="Front",Ga(this,Ko,"f").domNode.style.marginLeft="24px",this.domNode.append(Ga(this,Ko,"f").domNode),Ga(this,ta,"f").domNode.addEventListener("click",(()=>Ga(this,Qo,"m",na).call(this))),Ga(this,ta,"f").textContent="Back",Ga(this,ta,"f").domNode.style.marginLeft="28px",this.domNode.append(Ga(this,ta,"f").domNode),t.selectedOutlines.addEventListener("change",(()=>document.body.contains(this.domNode)?this.refresh():{})),this.refresh()}refresh(){Ga(this,Qo,"m",ra).call(this),Ga(this,Qo,"m",ia).call(this)}}Zo=new WeakMap,Jo=new WeakMap,Ko=new WeakMap,ta=new WeakMap,Qo=new WeakSet,ea=function(){let t=[...Ga(this,Zo,"f").selectedOutlines];0!=t.length?(Ga(this,Zo,"f").pushUndoStack(),t.forEach((t=>(0,xs.bringToFront)(t.domNode))),this.refresh()):this.refresh()},na=function(){let t=[...Ga(this,Zo,"f").selectedOutlines];0!=t.length?(Ga(this,Zo,"f").pushUndoStack(),t.forEach((t=>(0,xs.sendToBack)(t.domNode))),this.refresh()):this.refresh()},ra=function(){0==[...Ga(this,Zo,"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="Bring the selected outlines to the front.")},ia=function(){0==[...Ga(this,Zo,"f").selectedOutlines].length?(Ga(this,ta,"f").disable(),Ga(this,ta,"f").tooltip.textContent="No outlines are selected."):(Ga(this,ta,"f").enable(),Ga(this,ta,"f").tooltip.textContent="Send selected outlines to the back.")};class Ka{constructor(t){sa.set(this,void 0),oa.set(this,void 0),aa.set(this,void 0),Va(this,sa,t,"f"),Va(this,oa,new uu(t,"r"),"f"),Va(this,aa,new Q("Radius",Ga(this,oa,"f").domNode),"f"),Ga(this,aa,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Attribute/r",_s(this.domNode).css({marginTop:"22px",alignSelf:"start"}),this.refresh()}get domNode(){return Ga(this,aa,"f").domNode}refresh(){Ga(this,oa,"f").refresh()}}sa=new WeakMap,oa=new WeakMap,aa=new WeakMap;class tu{constructor(t){ua.set(this,void 0),ha.set(this,void 0),la.set(this,void 0),Va(this,ua,t,"f"),Va(this,ha,new uu(t,"fill"),"f"),Va(this,la,new Q("Fill",Ga(this,ha,"f").domNode),"f"),Ga(this,la,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Attribute/fill",_s(this.domNode).css({marginTop:"10px",alignSelf:"start"}),this.refresh()}get domNode(){return Ga(this,la,"f").domNode}refresh(){Ga(this,ha,"f").refresh()}}ua=new WeakMap,ha=new WeakMap,la=new WeakMap;class eu{constructor(t){ca.add(this),fa.set(this,void 0),da.set(this,new st),pa.set(this,void 0),ma.set(this,void 0),va.set(this,void 0),Va(this,fa,t,"f"),Ga(this,da,"f").domNode.addEventListener("input",(()=>Ga(this,ca,"m",ga).call(this))),Va(this,pa,new ut("Fill Color",Ga(this,da,"f").domNode),"f"),_s(this.domNode).css({marginTop:"12px",alignSelf:"start"}),Ga(this,fa,"f").selectedOutlines.addEventListener("change",(()=>Va(this,ma,void 0,"f"))),Ga(this,da,"f").domNode.addEventListener("focus",(()=>Va(this,va,Ga(this,da,"f").domNode.value,"f"))),Ga(this,fa,"f").selectedOutlines.addEventListener("change",(()=>document.body.contains(this.domNode)?this.refresh():{})),new MutationObserver((()=>document.body.contains(this.domNode)?this.refresh():{})).observe(Ga(this,fa,"f").drawing.domNode,{attributes:!0,attributeFilter:["fill"],subtree:!0}),this.refresh()}get domNode(){return Ga(this,pa,"f").domNode}refresh(){let t=[...Ga(this,fa,"f").selectedOutlines];if(0!=t.length)try{let e=t.map((t=>window.getComputedStyle(t.domNode).fill)).map((t=>new ne(t)));Ga(this,da,"f").domNode.value=(0,bs.consensusValue)(e.map((t=>t.toHex().toLowerCase())))}catch(t){Ga(this,da,"f").domNode.value="#000000"}else Ga(this,da,"f").domNode.value="#000000"}}fa=new WeakMap,da=new WeakMap,pa=new WeakMap,ma=new WeakMap,va=new WeakMap,ca=new WeakSet,ga=function(){if(Ga(this,da,"f").domNode.value===Ga(this,va,"f"))return;let t=[...Ga(this,fa,"f").selectedOutlines];0!=t.length?(t.every((t=>{var e;return(null===(e=t.domNode.getAttribute("fill"))||void 0===e?void 0:e.toLowerCase())===Ga(this,da,"f").domNode.value.toLowerCase()}))||((Ga(this,fa,"f").undoStack.isEmpty()||Ga(this,fa,"f").undoStack.peek()!==Ga(this,ma,"f"))&&(Ga(this,fa,"f").pushUndoStack(),Va(this,ma,Ga(this,fa,"f").undoStack.peek(),"f")),t.forEach((t=>t.domNode.setAttribute("fill",Ga(this,da,"f").domNode.value.toLowerCase())))),this.refresh()):this.refresh()};class nu{constructor(t){ya.set(this,void 0),wa.set(this,void 0),ba.set(this,void 0),Va(this,ya,t,"f"),Va(this,wa,new uu(t,"fill-opacity"),"f"),Va(this,ba,new Q("Fill Opacity",Ga(this,wa,"f").domNode),"f"),Ga(this,ba,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Attribute/fill-opacity",_s(this.domNode).css({marginTop:"12px",alignSelf:"start"}),this.refresh()}get domNode(){return Ga(this,ba,"f").domNode}refresh(){Ga(this,wa,"f").refresh()}}ya=new WeakMap,wa=new WeakMap,ba=new WeakMap;class ru{constructor(t){xa.set(this,void 0),_a.set(this,void 0),ka.set(this,void 0),Va(this,xa,t,"f"),Va(this,_a,new uu(t,"stroke"),"f"),Va(this,ka,new Q("Stroke",Ga(this,_a,"f").domNode),"f"),Ga(this,ka,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Attribute/stroke",_s(this.domNode).css({marginTop:"10px",alignSelf:"start"}),this.refresh()}get domNode(){return Ga(this,ka,"f").domNode}refresh(){Ga(this,_a,"f").refresh()}}xa=new WeakMap,_a=new WeakMap,ka=new WeakMap;class iu{constructor(t){Na.add(this),Sa.set(this,void 0),Ea.set(this,new st),Ma.set(this,void 0),Ta.set(this,void 0),Ca.set(this,void 0),Va(this,Sa,t,"f"),Ga(this,Ea,"f").domNode.addEventListener("input",(()=>Ga(this,Na,"m",Aa).call(this))),Va(this,Ma,new ut("Stroke Color",Ga(this,Ea,"f").domNode),"f"),_s(this.domNode).css({marginTop:"12px",alignSelf:"start"}),Ga(this,Sa,"f").selectedOutlines.addEventListener("change",(()=>Va(this,Ta,void 0,"f"))),Ga(this,Ea,"f").domNode.addEventListener("focus",(()=>Va(this,Ca,Ga(this,Ea,"f").domNode.value,"f"))),Ga(this,Sa,"f").selectedOutlines.addEventListener("change",(()=>document.body.contains(this.domNode)?this.refresh():{})),new MutationObserver((()=>document.body.contains(this.domNode)?this.refresh():{})).observe(Ga(this,Sa,"f").drawing.domNode,{attributes:!0,attributeFilter:["stroke"],subtree:!0}),this.refresh()}get domNode(){return Ga(this,Ma,"f").domNode}refresh(){let t=[...Ga(this,Sa,"f").selectedOutlines];if(0!=t.length)try{let e=t.map((t=>window.getComputedStyle(t.domNode).stroke)).map((t=>new ne(t)));Ga(this,Ea,"f").domNode.value=(0,bs.consensusValue)(e.map((t=>t.toHex().toLowerCase())))}catch(t){Ga(this,Ea,"f").domNode.value="#000000"}else Ga(this,Ea,"f").domNode.value="#000000"}}Sa=new WeakMap,Ea=new WeakMap,Ma=new WeakMap,Ta=new WeakMap,Ca=new WeakMap,Na=new WeakSet,Aa=function(){if(Ga(this,Ea,"f").domNode.value===Ga(this,Ca,"f"))return;let t=[...Ga(this,Sa,"f").selectedOutlines];0!=t.length?(t.every((t=>{var e;return(null===(e=t.domNode.getAttribute("stroke"))||void 0===e?void 0:e.toLowerCase())===Ga(this,Ea,"f").domNode.value.toLowerCase()}))||((Ga(this,Sa,"f").undoStack.isEmpty()||Ga(this,Sa,"f").undoStack.peek()!==Ga(this,Ta,"f"))&&(Ga(this,Sa,"f").pushUndoStack(),Va(this,Ta,Ga(this,Sa,"f").undoStack.peek(),"f")),t.forEach((t=>t.domNode.setAttribute("stroke",Ga(this,Ea,"f").domNode.value.toLowerCase())))),this.refresh()):this.refresh()};class su{constructor(t){La.set(this,void 0),Wa.set(this,void 0),Oa.set(this,void 0),Va(this,La,t,"f"),Va(this,Wa,new uu(t,"stroke-opacity"),"f"),Va(this,Oa,new Q("Stroke Opacity",Ga(this,Wa,"f").domNode),"f"),Ga(this,Oa,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Attribute/stroke-opacity",_s(this.domNode).css({marginTop:"12px",alignSelf:"start"}),this.refresh()}get domNode(){return Ga(this,Oa,"f").domNode}refresh(){Ga(this,Wa,"f").refresh()}}La=new WeakMap,Wa=new WeakMap,Oa=new WeakMap;class ou{constructor(t){ja.set(this,void 0),Da.set(this,void 0),Pa.set(this,void 0),Va(this,ja,t,"f"),Va(this,Da,new uu(t,"stroke-width"),"f"),Va(this,Pa,new Q("Stroke Width",Ga(this,Da,"f").domNode),"f"),Ga(this,Pa,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Attribute/stroke-width",_s(this.domNode).css({marginTop:"10px",alignSelf:"start"}),this.refresh()}get domNode(){return Ga(this,Pa,"f").domNode}refresh(){Ga(this,Da,"f").refresh()}}ja=new WeakMap,Da=new WeakMap,Pa=new WeakMap;class au{constructor(t){Ia.set(this,void 0),Ra.set(this,void 0),Ba.set(this,void 0),Va(this,Ia,t,"f"),Va(this,Ra,new uu(t,"stroke-dasharray"),"f"),Va(this,Ba,new Q("Stroke Dash-Array",Ga(this,Ra,"f").domNode),"f"),Ga(this,Ba,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Attribute/stroke-dasharray",_s(this.domNode).css({marginTop:"10px",alignSelf:"start"}),this.refresh()}get domNode(){return Ga(this,Ba,"f").domNode}refresh(){Ga(this,Ra,"f").refresh()}}Ia=new WeakMap,Ra=new WeakMap,Ba=new WeakMap;class uu{constructor(t,e){za.add(this),Fa.set(this,void 0),qa.set(this,void 0),Ua.set(this,new z({onSubmit:()=>Ga(this,za,"m",Ha).call(this)})),Va(this,Fa,t,"f"),Va(this,qa,e,"f"),Ga(this,Fa,"f").selectedOutlines.addEventListener("change",(()=>document.body.contains(this.domNode)?this.refresh():{})),new MutationObserver((()=>document.body.contains(this.domNode)?this.refresh():{})).observe(Ga(this,Fa,"f").drawing.domNode,{attributes:!0,subtree:!0}),this.refresh()}get domNode(){return Ga(this,Ua,"f").domNode}refresh(){let t=[...Ga(this,Fa,"f").selectedOutlines];try{Ga(this,Ua,"f").domNode.value=(0,bs.consensusValue)(t.map((t=>{var e;return null!==(e=t.domNode.getAttribute(Ga(this,qa,"f")))&&void 0!==e?e:""})))}catch(t){Ga(this,Ua,"f").domNode.value=""}}}Fa=new WeakMap,qa=new WeakMap,Ua=new WeakMap,za=new WeakSet,Ha=function(){let t=Ga(this,Ua,"f").domNode.value,e=[...Ga(this,Fa,"f").selectedOutlines];0==e.length||e.every((e=>e.domNode.getAttribute(Ga(this,qa,"f"))===t))||(Ga(this,Fa,"f").pushUndoStack(),e.forEach((e=>e.domNode.setAttribute(Ga(this,qa,"f"),t)))),this.refresh()};var hu=n(401),lu={};lu.styleTagTransform=w(),lu.setAttributes=m(),lu.insert=d().bind(null,"head"),lu.domAPI=c(),lu.insertStyleElement=g(),h()(hu.Ay,lu),hu.Ay&&hu.Ay.locals&&hu.Ay.locals;var cu=n(933),fu={};fu.styleTagTransform=w(),fu.setAttributes=m(),fu.insert=d().bind(null,"head"),fu.domAPI=c(),fu.insertStyleElement=g(),h()(cu.Ay,fu),cu.Ay&&cu.Ay.locals&&cu.Ay.locals;var du,pu,mu,vu,gu,yu,wu,bu,xu=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 ku{constructor(t,e){du.add(this),pu.set(this,void 0),mu.set(this,void 0),this.domNode=document.createElement("div"),vu.set(this,document.createElement("p")),this.buttons={Front:new D("Front",(()=>_u(this,du,"m",gu).call(this))),Back:new D("Back",(()=>_u(this,du,"m",yu).call(this)))},wu.set(this,{refresh:[]}),xu(this,pu,t,"f"),xu(this,mu,e,"f"),this.domNode.classList.add(cu.Te),_u(this,vu,"f").classList.add(cu.Pf),_u(this,vu,"f").textContent="Send to:",this.domNode.append(_u(this,vu,"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=[..._u(this,pu,"f")];0==t.length?this.buttons.Front.disable():this.buttons.Front.enable(),0==t.length?this.buttons.Back.disable():this.buttons.Back.enable(),_u(this,du,"m",bu).call(this,"refresh")}addEventListener(t,e){_u(this,wu,"f")[t].push(e)}removeEventListener(t,e){_u(this,wu,"f")[t]=_u(this,wu,"f")[t].filter((t=>t!==e))}}pu=new WeakMap,mu=new WeakMap,vu=new WeakMap,wu=new WeakMap,du=new WeakSet,gu=function(){let t=[..._u(this,pu,"f")];0!=t.length?(_u(this,mu,"f").pushUndoStack(),t.forEach((t=>(0,xs.bringToFront)(t.domNode))),this.refresh()):this.refresh()},yu=function(){let t=[..._u(this,pu,"f")];0!=t.length?(_u(this,mu,"f").pushUndoStack(),t.forEach((t=>(0,xs.sendToBack)(t.domNode))),this.refresh()):this.refresh()},bu=function(t){_u(this,wu,"f")[t].forEach((t=>t()))};var Nu,Su,Eu,Mu,Tu,Cu,Au=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 Wu{constructor(t,e,n){Nu.add(this),Su.set(this,void 0),Eu.set(this,void 0),Mu.set(this,void 0),Tu.set(this,new z({onSubmit:()=>Lu(this,Nu,"m",Cu).call(this)})),Au(this,Su,t,"f"),Au(this,Eu,e,"f"),Au(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,Tu,"f").domNode}refresh(){try{Lu(this,Tu,"f").domNode.value=(0,bs.consensusValue)([...Lu(this,Eu,"f")].map((t=>{var e;return null!==(e=t.domNode.getAttribute(Lu(this,Su,"f")))&&void 0!==e?e:""})))}catch(t){Lu(this,Tu,"f").domNode.value=""}}}Su=new WeakMap,Eu=new WeakMap,Mu=new WeakMap,Tu=new WeakMap,Nu=new WeakSet,Cu=function(){let t=Lu(this,Tu,"f").domNode.value,e=[...Lu(this,Eu,"f")];0==e.length||e.every((e=>e.domNode.getAttribute(Lu(this,Su,"f"))===t))?this.refresh():(Lu(this,Mu,"f").pushUndoStack(),e.forEach((e=>e.domNode.setAttribute(Lu(this,Su,"f"),t))))};var Ou,ju,Du,Pu,Iu,Ru,Bu,zu,Fu=n(543),qu=function(t,e,n,r,i){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?i.call(t,n):i?i.value=n:e.set(t,n),n},Uu=function(t,e,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!r:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(t):r?r.value:e.get(t)};class Hu{constructor(t,e,n){Ou.add(this),ju.set(this,void 0),Du.set(this,void 0),Pu.set(this,void 0),Iu.set(this,new st),Ru.set(this,void 0),Bu.set(this,void 0),qu(this,ju,t,"f"),qu(this,Du,e,"f"),qu(this,Pu,n,"f"),Uu(this,Iu,"f").domNode.addEventListener("input",(()=>Uu(this,Ou,"m",zu).call(this))),e.addEventListener("change",(()=>qu(this,Ru,void 0,"f"))),Uu(this,Iu,"f").domNode.addEventListener("focus",(()=>qu(this,Bu,Uu(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 Uu(this,Iu,"f").domNode}refresh(){let t=[...Uu(this,Du,"f")];if(0!=t.length)try{let e=Fu.camelCase(Uu(this,ju,"f")),n=t.map((t=>window.getComputedStyle(t.domNode)[e])).map((t=>new ne(t)));Uu(this,Iu,"f").domNode.value=(0,bs.consensusValue)(n.map((t=>t.toHex().toLowerCase())))}catch(t){Uu(this,Iu,"f").domNode.value="#000000"}else Uu(this,Iu,"f").domNode.value="#000000"}}ju=new WeakMap,Du=new WeakMap,Pu=new WeakMap,Iu=new WeakMap,Ru=new WeakMap,Bu=new WeakMap,Ou=new WeakSet,zu=function(){if(Uu(this,Iu,"f").domNode.value===Uu(this,Bu,"f"))return;let t=[...Uu(this,Du,"f")];0!=t.length?t.every((t=>{var e;return(null===(e=t.domNode.getAttribute(Uu(this,ju,"f")))||void 0===e?void 0:e.toLowerCase())===Uu(this,Iu,"f").domNode.value.toLowerCase()}))?this.refresh():((Uu(this,Pu,"f").undoStack.isEmpty()||Uu(this,Pu,"f").undoStack.peek()!==Uu(this,Ru,"f"))&&(Uu(this,Pu,"f").pushUndoStack(),qu(this,Ru,Uu(this,Pu,"f").undoStack.peek(),"f")),t.forEach((t=>t.domNode.setAttribute(Uu(this,ju,"f"),Uu(this,Iu,"f").domNode.value.toLowerCase())))):this.refresh()};var Vu,Gu,Xu,Yu,$u,Qu,Zu,Ju,Ku,th,eh,nh,rh,ih,sh,oh,ah,uh,hh,lh,ch,fh,dh,ph,mh,vh,gh,yh,wh,bh,xh,_h,kh,Nh,Sh,Eh,Mh,Th,Ch,Ah,Lh,Wh=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},Oh=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 jh{constructor(t){Vu.add(this),Gu.set(this,void 0),this.domNode=document.createElement("div"),Xu.set(this,new T("Primary Bonds",(()=>this.toggle()))),Yu.set(this,document.createElement("div")),$u.set(this,void 0),Qu.set(this,document.createElement("div")),Zu.set(this,void 0),Ju.set(this,void 0),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),Wh(this,Gu,t,"f"),this.domNode.classList.add(hu.gP),this.domNode.append(Oh(this,Xu,"f").domNode),Oh(this,Yu,"f").classList.add(hu.Qs),this.domNode.append(Oh(this,Yu,"f")),Wh(this,$u,new Dh(t),"f"),Oh(this,Yu,"f").append(Oh(this,$u,"f").domNode),Oh(this,Qu,"f").classList.add(hu.eB),Oh(this,Yu,"f").append(Oh(this,Qu,"f")),t.selectedPrimaryBonds.addEventListener("change",(()=>{document.body.contains(this.domNode)&&(0==[...t.selectedPrimaryBonds].length?Oh(this,Vu,"m",sh).call(this):Oh(this,Vu,"m",oh).call(this))})),Wh(this,Zu,new Ph(t),"f"),Oh(this,Qu,"f").append(Oh(this,Zu,"f").domNode),Wh(this,Ju,new Ih(t),"f"),Oh(this,Qu,"f").append(Oh(this,Ju,"f").domNode),Wh(this,Ku,new Rh(t),"f"),Oh(this,Qu,"f").append(Oh(this,Ku,"f").domNode),Wh(this,th,new Bh(t),"f"),Oh(this,Qu,"f").append(Oh(this,th,"f").domNode),Wh(this,eh,new zh(t),"f"),Oh(this,Qu,"f").append(Oh(this,eh,"f").domNode),Wh(this,nh,new Fh(t),"f"),Oh(this,Qu,"f").append(Oh(this,nh,"f").domNode),Wh(this,rh,new qh(t),"f"),Oh(this,Qu,"f").append(Oh(this,rh,"f").domNode),this.collapse(),this.refresh()}isCollapsed(){return this.domNode.classList.contains(hu.yZ)}collapse(){this.domNode.classList.add(hu.yZ),Oh(this,Xu,"f").caret.pointRight()}expand(){this.domNode.classList.remove(hu.yZ),Oh(this,Xu,"f").caret.pointDown()}toggle(){this.isCollapsed()?this.expand():this.collapse()}refresh(){Oh(this,Vu,"a",ih).forEach((t=>t.refresh())),0==[...Oh(this,Gu,"f").selectedPrimaryBonds].length?Oh(this,Vu,"m",sh).call(this):Oh(this,Vu,"m",oh).call(this)}}Gu=new WeakMap,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,Vu=new WeakSet,ih=function(){return[Oh(this,$u,"f"),Oh(this,Zu,"f"),Oh(this,Ju,"f"),Oh(this,Ku,"f"),Oh(this,th,"f"),Oh(this,eh,"f"),Oh(this,nh,"f"),Oh(this,rh,"f")]},sh=function(){Oh(this,Qu,"f").style.display="none"},oh=function(){Oh(this,Qu,"f").style.display="flex"};class Dh{constructor(t){ah.set(this,void 0),this.domNode=document.createElement("p"),uh.set(this,document.createElement("span")),hh.set(this,document.createElement("span")),Wh(this,ah,t,"f"),this.domNode.classList.add(hu.vM),Oh(this,uh,"f").style.fontWeight="700",this.domNode.append(Oh(this,uh,"f"),Oh(this,hh,"f")),Oh(this,ah,"f").selectedPrimaryBonds.addEventListener("change",(()=>{!document.body.contains(this.domNode)||this.refresh()})),this.refresh()}refresh(){let t=[...Oh(this,ah,"f").selectedPrimaryBonds].length;Oh(this,uh,"f").textContent=`${t}`,Oh(this,hh,"f").textContent=1==t?" primary bond is selected.":" primary bonds are selected."}}ah=new WeakMap,uh=new WeakMap,hh=new WeakMap;class Ph{constructor(t){lh.add(this),ch.set(this,void 0),fh.set(this,void 0),Wh(this,ch,t,"f");let e=t.selectedPrimaryBonds;Wh(this,fh,new ku(e,t),"f"),this.domNode.style.marginTop="22px",Oh(this,fh,"f").addEventListener("refresh",(()=>Oh(this,lh,"m",dh).call(this))),this.refresh()}get domNode(){return Oh(this,fh,"f").domNode}refresh(){Oh(this,fh,"f").refresh()}}ch=new WeakMap,fh=new WeakMap,lh=new WeakSet,dh=function(){let t=[...Oh(this,ch,"f").selectedPrimaryBonds];Oh(this,fh,"f").buttons.Front.tooltip.textContent=0==t.length?"No primary bonds are selected.":"Bring the selected primary bonds to the front.",Oh(this,fh,"f").buttons.Back.tooltip.textContent=0==t.length?"No primary bonds are selected.":"Send the selected primary bonds to the back."};class Ih{constructor(t){ph.set(this,void 0),mh.set(this,void 0),vh.set(this,void 0),Wh(this,ph,t,"f");let e=t.selectedPrimaryBonds;Wh(this,mh,new Wu("stroke",e,t),"f"),Wh(this,vh,new Q("Stroke",Oh(this,mh,"f").domNode),"f"),Oh(this,vh,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Attribute/stroke",this.domNode.style.marginTop="19px",this.domNode.style.alignSelf="start",this.refresh()}get domNode(){return Oh(this,vh,"f").domNode}refresh(){Oh(this,mh,"f").refresh()}}ph=new WeakMap,mh=new WeakMap,vh=new WeakMap;class Rh{constructor(t){gh.set(this,void 0),yh.set(this,void 0),wh.set(this,void 0),Wh(this,gh,t,"f");let e=t.selectedPrimaryBonds;Wh(this,yh,new Hu("stroke",e,t),"f"),Wh(this,wh,new ut("Stroke Color",Oh(this,yh,"f").domNode),"f"),Oh(this,wh,"f").domNode.style.marginTop="12px",Oh(this,wh,"f").domNode.style.alignSelf="start",this.refresh()}get domNode(){return Oh(this,wh,"f").domNode}refresh(){Oh(this,yh,"f").refresh()}}gh=new WeakMap,yh=new WeakMap,wh=new WeakMap;class Bh{constructor(t){bh.set(this,void 0),xh.set(this,void 0),_h.set(this,void 0),Wh(this,bh,t,"f");let e=t.selectedPrimaryBonds;Wh(this,xh,new Wu("stroke-opacity",e,t),"f"),Wh(this,_h,new Q("Stroke Opacity",Oh(this,xh,"f").domNode),"f"),Oh(this,_h,"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 Oh(this,_h,"f").domNode}refresh(){Oh(this,xh,"f").refresh()}}bh=new WeakMap,xh=new WeakMap,_h=new WeakMap;class zh{constructor(t){kh.set(this,void 0),Nh.set(this,void 0),Sh.set(this,void 0),Wh(this,kh,t,"f");let e=t.selectedPrimaryBonds;Wh(this,Nh,new Wu("stroke-width",e,t),"f"),Wh(this,Sh,new Q("Stroke Width",Oh(this,Nh,"f").domNode),"f"),Oh(this,Sh,"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 Oh(this,Sh,"f").domNode}refresh(){Oh(this,Nh,"f").refresh()}}kh=new WeakMap,Nh=new WeakMap,Sh=new WeakMap;class Fh{constructor(t){Eh.set(this,void 0),Mh.set(this,void 0),Th.set(this,void 0),Wh(this,Eh,t,"f");let e=t.selectedPrimaryBonds;Wh(this,Mh,new Wu("stroke-linecap",e,t),"f"),Wh(this,Th,new Q("Stroke Line-Cap",Oh(this,Mh,"f").domNode),"f"),Oh(this,Th,"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 Oh(this,Th,"f").domNode}refresh(){Oh(this,Mh,"f").refresh()}}Eh=new WeakMap,Mh=new WeakMap,Th=new WeakMap;class qh{constructor(t){Ch.set(this,void 0),Ah.set(this,void 0),Lh.set(this,void 0),Wh(this,Ch,t,"f");let e=t.selectedPrimaryBonds;Wh(this,Ah,new Wu("stroke-dasharray",e,t),"f"),Wh(this,Lh,new Q("Stroke Dash-Array",Oh(this,Ah,"f").domNode),"f"),Oh(this,Lh,"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 Oh(this,Lh,"f").domNode}refresh(){Oh(this,Ah,"f").refresh()}}Ch=new WeakMap,Ah=new WeakMap,Lh=new WeakMap;var Uh=n(705),Hh={};Hh.styleTagTransform=w(),Hh.setAttributes=m(),Hh.insert=d().bind(null,"head"),Hh.domAPI=c(),Hh.insertStyleElement=g(),h()(Uh.Ay,Hh),Uh.Ay&&Uh.Ay.locals&&Uh.Ay.locals;var Vh,Gh,Xh,Yh,$h,Qh,Zh,Jh,Kh,tl,el,nl,rl,il,sl,ol,al,ul,hl,ll,cl,fl,dl,pl,ml,vl,gl,yl,wl,bl,xl,_l,kl,Nl,Sl,El,Ml,Tl,Cl,Al,Ll,Wl=function(t,e,n,r,i){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?i.call(t,n):i?i.value=n:e.set(t,n),n},Ol=function(t,e,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!r:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(t):r?r.value:e.get(t)};class jl{constructor(t){Vh.add(this),Gh.set(this,void 0),this.domNode=document.createElement("div"),Xh.set(this,new T("Secondary Bonds",(()=>this.toggle()))),Yh.set(this,document.createElement("div")),$h.set(this,void 0),Qh.set(this,document.createElement("div")),Zh.set(this,void 0),Jh.set(this,void 0),Kh.set(this,void 0),tl.set(this,void 0),el.set(this,void 0),nl.set(this,void 0),rl.set(this,void 0),Wl(this,Gh,t,"f"),this.domNode.classList.add(Uh.Se),this.domNode.append(Ol(this,Xh,"f").domNode),Ol(this,Yh,"f").classList.add(Uh.Qs),this.domNode.append(Ol(this,Yh,"f")),Wl(this,$h,new Dl(t),"f"),Ol(this,Yh,"f").append(Ol(this,$h,"f").domNode),Ol(this,Qh,"f").classList.add(Uh.eB),Ol(this,Yh,"f").append(Ol(this,Qh,"f")),t.selectedSecondaryBonds.addEventListener("change",(()=>{document.body.contains(this.domNode)&&(0==[...t.selectedSecondaryBonds].length?Ol(this,Vh,"m",ol).call(this):Ol(this,Vh,"m",sl).call(this))})),Wl(this,Zh,new Pl(t),"f"),Ol(this,Qh,"f").append(Ol(this,Zh,"f").domNode),Wl(this,Jh,new Il(t),"f"),Ol(this,Qh,"f").append(Ol(this,Jh,"f").domNode),Wl(this,Kh,new Rl(t),"f"),Ol(this,Qh,"f").append(Ol(this,Kh,"f").domNode),Wl(this,tl,new Bl(t),"f"),Ol(this,Qh,"f").append(Ol(this,tl,"f").domNode),Wl(this,el,new zl(t),"f"),Ol(this,Qh,"f").append(Ol(this,el,"f").domNode),Wl(this,nl,new Fl(t),"f"),Ol(this,Qh,"f").append(Ol(this,nl,"f").domNode),Wl(this,rl,new ql(t),"f"),Ol(this,Qh,"f").append(Ol(this,rl,"f").domNode),this.collapse(),this.refresh()}isCollapsed(){return this.domNode.classList.contains(Uh.yZ)}collapse(){this.domNode.classList.add(Uh.yZ),Ol(this,Xh,"f").caret.pointRight()}expand(){this.domNode.classList.remove(Uh.yZ),Ol(this,Xh,"f").caret.pointDown()}toggle(){this.isCollapsed()?this.expand():this.collapse()}refresh(){Ol(this,Vh,"a",il).forEach((t=>t.refresh())),0==[...Ol(this,Gh,"f").selectedSecondaryBonds].length?Ol(this,Vh,"m",ol).call(this):Ol(this,Vh,"m",sl).call(this)}}Gh=new WeakMap,Xh=new WeakMap,Yh=new WeakMap,$h=new WeakMap,Qh=new WeakMap,Zh=new WeakMap,Jh=new WeakMap,Kh=new WeakMap,tl=new WeakMap,el=new WeakMap,nl=new WeakMap,rl=new WeakMap,Vh=new WeakSet,il=function(){return[Ol(this,$h,"f"),Ol(this,Zh,"f"),Ol(this,Jh,"f"),Ol(this,Kh,"f"),Ol(this,tl,"f"),Ol(this,el,"f"),Ol(this,nl,"f"),Ol(this,rl,"f")]},sl=function(){Ol(this,Qh,"f").style.display="flex"},ol=function(){Ol(this,Qh,"f").style.display="none"};class Dl{constructor(t){al.set(this,void 0),this.domNode=document.createElement("p"),ul.set(this,document.createElement("span")),hl.set(this,document.createElement("span")),Wl(this,al,t,"f"),this.domNode.classList.add(Uh.vM),Ol(this,ul,"f").style.fontWeight="700",this.domNode.append(Ol(this,ul,"f"),Ol(this,hl,"f")),Ol(this,al,"f").selectedSecondaryBonds.addEventListener("change",(()=>{!document.body.contains(this.domNode)||this.refresh()})),this.refresh()}refresh(){let t=[...Ol(this,al,"f").selectedSecondaryBonds].length;Ol(this,ul,"f").textContent=`${t}`,Ol(this,hl,"f").textContent=1==t?" secondary bond is selected.":" secondary bonds are selected."}}al=new WeakMap,ul=new WeakMap,hl=new WeakMap;class Pl{constructor(t){ll.add(this),cl.set(this,void 0),fl.set(this,void 0),Wl(this,cl,t,"f");let e=t.selectedSecondaryBonds;Wl(this,fl,new ku(e,t),"f"),this.domNode.style.marginTop="22px",Ol(this,fl,"f").addEventListener("refresh",(()=>Ol(this,ll,"m",dl).call(this))),this.refresh()}get domNode(){return Ol(this,fl,"f").domNode}refresh(){Ol(this,fl,"f").refresh()}}cl=new WeakMap,fl=new WeakMap,ll=new WeakSet,dl=function(){let t=[...Ol(this,cl,"f").selectedSecondaryBonds];Ol(this,fl,"f").buttons.Front.tooltip.textContent=0==t.length?"No secondary bonds are selected.":"Bring the selected secondary bonds to the front.",Ol(this,fl,"f").buttons.Back.tooltip.textContent=0==t.length?"No secondary bonds are selected.":"Send the selected secondary bonds to the back."};class Il{constructor(t){pl.set(this,void 0),ml.set(this,void 0),vl.set(this,void 0),Wl(this,pl,t,"f");let e=t.selectedSecondaryBonds;Wl(this,ml,new Wu("stroke",e,t),"f"),Wl(this,vl,new Q("Stroke",Ol(this,ml,"f").domNode),"f"),Ol(this,vl,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Attribute/stroke",this.domNode.style.marginTop="19px",this.domNode.style.alignSelf="start",this.refresh()}get domNode(){return Ol(this,vl,"f").domNode}refresh(){Ol(this,ml,"f").refresh()}}pl=new WeakMap,ml=new WeakMap,vl=new WeakMap;class Rl{constructor(t){gl.set(this,void 0),yl.set(this,void 0),wl.set(this,void 0),Wl(this,gl,t,"f");let e=t.selectedSecondaryBonds;Wl(this,yl,new Hu("stroke",e,t),"f"),Wl(this,wl,new ut("Stroke Color",Ol(this,yl,"f").domNode),"f"),Ol(this,wl,"f").domNode.style.marginTop="12px",Ol(this,wl,"f").domNode.style.alignSelf="start",this.refresh()}get domNode(){return Ol(this,wl,"f").domNode}refresh(){Ol(this,yl,"f").refresh()}}gl=new WeakMap,yl=new WeakMap,wl=new WeakMap;class Bl{constructor(t){bl.set(this,void 0),xl.set(this,void 0),_l.set(this,void 0),Wl(this,bl,t,"f");let e=t.selectedSecondaryBonds;Wl(this,xl,new Wu("stroke-opacity",e,t),"f"),Wl(this,_l,new Q("Stroke Opacity",Ol(this,xl,"f").domNode),"f"),Ol(this,_l,"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 Ol(this,_l,"f").domNode}refresh(){Ol(this,xl,"f").refresh()}}bl=new WeakMap,xl=new WeakMap,_l=new WeakMap;class zl{constructor(t){kl.set(this,void 0),Nl.set(this,void 0),Sl.set(this,void 0),Wl(this,kl,t,"f");let e=t.selectedSecondaryBonds;Wl(this,Nl,new Wu("stroke-width",e,t),"f"),Wl(this,Sl,new Q("Stroke Width",Ol(this,Nl,"f").domNode),"f"),Ol(this,Sl,"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 Ol(this,Sl,"f").domNode}refresh(){Ol(this,Nl,"f").refresh()}}kl=new WeakMap,Nl=new WeakMap,Sl=new WeakMap;class Fl{constructor(t){El.set(this,void 0),Ml.set(this,void 0),Tl.set(this,void 0),Wl(this,El,t,"f");let e=t.selectedSecondaryBonds;Wl(this,Ml,new Wu("stroke-linecap",e,t),"f"),Wl(this,Tl,new Q("Stroke Line-Cap",Ol(this,Ml,"f").domNode),"f"),Ol(this,Tl,"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 Ol(this,Tl,"f").domNode}refresh(){Ol(this,Ml,"f").refresh()}}El=new WeakMap,Ml=new WeakMap,Tl=new WeakMap;class ql{constructor(t){Cl.set(this,void 0),Al.set(this,void 0),Ll.set(this,void 0),Wl(this,Cl,t,"f");let e=t.selectedSecondaryBonds;Wl(this,Al,new Wu("stroke-dasharray",e,t),"f"),Wl(this,Ll,new Q("Stroke Dash-Array",Ol(this,Al,"f").domNode),"f"),Ol(this,Ll,"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 Ol(this,Ll,"f").domNode}refresh(){Ol(this,Al,"f").refresh()}}Cl=new WeakMap,Al=new WeakMap,Ll=new WeakMap;var Ul=n(290),Hl={};Hl.styleTagTransform=w(),Hl.setAttributes=m(),Hl.insert=d().bind(null,"head"),Hl.domAPI=c(),Hl.insertStyleElement=g(),h()(Ul.A,Hl),Ul.A&&Ul.A.locals&&Ul.A.locals;var Vl,Gl,Xl,Yl,$l,Ql,Zl,Jl,Kl=n(139),tc=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},ec=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 nc{constructor(t){Vl.add(this),Gl.set(this,void 0),this.domNode=document.createElement("div"),Xl.set(this,void 0),Yl.set(this,void 0),$l.set(this,void 0),Ql.set(this,void 0),Zl.set(this,void 0),tc(this,Gl,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),tc(this,Xl,new Ss(t),"f"),n.append(ec(this,Xl,"f").domNode),tc(this,Yl,new Xa(t),"f"),n.append(ec(this,Yl,"f").domNode),tc(this,$l,new jh(t),"f"),n.append(ec(this,$l,"f").domNode),tc(this,Ql,new jl(t),"f"),n.append(ec(this,Ql,"f").domNode);let r=function(){let t=document.createElement("p");return t.classList.add(Ul._),t.textContent="Close",t}();r.addEventListener("click",(()=>this.close())),this.domNode.append(r),tc(this,Zl,new Kl.DragTranslater(this.domNode),"f")}appendTo(t){this.refresh(),this.reposition(),t.appendChild(this.domNode)}close(){this.domNode.remove()}refresh(){ec(this,Vl,"a",Jl).forEach((t=>t.refresh()))}reposition(){ec(this,Zl,"f").untranslate()}}Gl=new WeakMap,Xl=new WeakMap,Yl=new WeakMap,$l=new WeakMap,Ql=new WeakMap,Zl=new WeakMap,Vl=new WeakSet,Jl=function(){return[ec(this,Xl,"f"),ec(this,Yl,"f"),ec(this,$l,"f"),ec(this,Ql,"f")]}})(),r})()));
|