inline-style-editor 1.2.13 → 1.2.14
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.
|
@@ -6,4 +6,4 @@
|
|
|
6
6
|
* Copyright 2017-2021 Andreas Borgen (https://github.com/Sphinxxxx), Adam Brooks (https://github.com/dissimulate)
|
|
7
7
|
* Released under the ISC license.
|
|
8
8
|
*/
|
|
9
|
-
var pt=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},gt=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),mt=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var n=[],r=!0,o=!1,i=void 0;try{for(var l,s=t[Symbol.iterator]();!(r=(l=s.next()).done)&&(n.push(l.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{!r&&s.return&&s.return()}finally{if(o)throw i}}return n}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")};String.prototype.startsWith=String.prototype.startsWith||function(t){return 0===this.indexOf(t)},String.prototype.padStart=String.prototype.padStart||function(t,e){for(var n=this;n.length<t;)n=e+n;return n};var vt={cb:"0f8ff",tqw:"aebd7",q:"-ffff",qmrn:"7fffd4",zr:"0ffff",bg:"5f5dc",bsq:"e4c4",bck:"---",nch:"ebcd",b:"--ff",bvt:"8a2be2",brwn:"a52a2a",brw:"deb887",ctb:"5f9ea0",hrt:"7fff-",chcT:"d2691e",cr:"7f50",rnw:"6495ed",crns:"8dc",crms:"dc143c",cn:"-ffff",Db:"--8b",Dcn:"-8b8b",Dgnr:"b8860b",Dgr:"a9a9a9",Dgrn:"-64-",Dkhk:"bdb76b",Dmgn:"8b-8b",Dvgr:"556b2f",Drng:"8c-",Drch:"9932cc",Dr:"8b--",Dsmn:"e9967a",Dsgr:"8fbc8f",DsTb:"483d8b",DsTg:"2f4f4f",Dtrq:"-ced1",Dvt:"94-d3",ppnk:"1493",pskb:"-bfff",mgr:"696969",grb:"1e90ff",rbrc:"b22222",rwht:"af0",stg:"228b22",chs:"-ff",gnsb:"dcdcdc",st:"8f8ff",g:"d7-",gnr:"daa520",gr:"808080",grn:"-8-0",grnw:"adff2f",hnw:"0fff0",htpn:"69b4",nnr:"cd5c5c",ng:"4b-82",vr:"0",khk:"0e68c",vnr:"e6e6fa",nrb:"0f5",wngr:"7cfc-",mnch:"acd",Lb:"add8e6",Lcr:"08080",Lcn:"e0ffff",Lgnr:"afad2",Lgr:"d3d3d3",Lgrn:"90ee90",Lpnk:"b6c1",Lsmn:"a07a",Lsgr:"20b2aa",Lskb:"87cefa",LsTg:"778899",Lstb:"b0c4de",Lw:"e0",m:"-ff-",mgrn:"32cd32",nn:"af0e6",mgnt:"-ff",mrn:"8--0",mqm:"66cdaa",mmb:"--cd",mmrc:"ba55d3",mmpr:"9370db",msg:"3cb371",mmsT:"7b68ee","":"-fa9a",mtr:"48d1cc",mmvt:"c71585",mnLb:"191970",ntc:"5fffa",mstr:"e4e1",mccs:"e4b5",vjw:"dead",nv:"--80",c:"df5e6",v:"808-0",vrb:"6b8e23",rng:"a5-",rngr:"45-",rch:"da70d6",pgnr:"eee8aa",pgrn:"98fb98",ptrq:"afeeee",pvtr:"db7093",ppwh:"efd5",pchp:"dab9",pr:"cd853f",pnk:"c0cb",pm:"dda0dd",pwrb:"b0e0e6",prp:"8-080",cc:"663399",r:"--",sbr:"bc8f8f",rb:"4169e1",sbrw:"8b4513",smn:"a8072",nbr:"4a460",sgrn:"2e8b57",ssh:"5ee",snn:"a0522d",svr:"c0c0c0",skb:"87ceeb",sTb:"6a5acd",sTgr:"708090",snw:"afa",n:"-ff7f",stb:"4682b4",tn:"d2b48c",t:"-8080",thst:"d8bfd8",tmT:"6347",trqs:"40e0d0",vt:"ee82ee",whT:"5deb3",wht:"",hts:"5f5f5",w:"-",wgrn:"9acd32"};function yt(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=e>0?t.toFixed(e).replace(/0+$/,"").replace(/\.$/,""):t.toString();return n||"0"}var bt=function(){function t(e,n,r,o){pt(this,t);var i=this;if(void 0===e);else if(Array.isArray(e))this.rgba=e;else if(void 0===r){var l=e&&""+e;l&&function(e){if(e.startsWith("hsl")){var n=e.match(/([\-\d\.e]+)/g).map(Number),r=mt(n,4),o=r[0],l=r[1],s=r[2],a=r[3];void 0===a&&(a=1),o/=360,l/=100,s/=100,i.hsla=[o,l,s,a]}else if(e.startsWith("rgb")){var c=e.match(/([\-\d\.e]+)/g).map(Number),u=mt(c,4),f=u[0],h=u[1],d=u[2],p=u[3];void 0===p&&(p=1),i.rgba=[f,h,d,p]}else e.startsWith("#")?i.rgba=t.hexToRgb(e):i.rgba=t.nameToRgb(e)||t.hexToRgb(e)}(l.toLowerCase())}else this.rgba=[e,n,r,void 0===o?1:o]}return gt(t,[{key:"printRGB",value:function(t){var e=(t?this.rgba:this.rgba.slice(0,3)).map((function(t,e){return yt(t,3===e?3:0)}));return t?"rgba("+e+")":"rgb("+e+")"}},{key:"printHSL",value:function(t){var e=[360,100,100,1],n=["","%","%",""],r=(t?this.hsla:this.hsla.slice(0,3)).map((function(t,r){return yt(t*e[r],3===r?3:1)+n[r]}));return t?"hsla("+r+")":"hsl("+r+")"}},{key:"printHex",value:function(t){var e=this.hex;return t?e:e.substring(0,7)}},{key:"rgba",get:function(){if(this._rgba)return this._rgba;if(!this._hsla)throw new Error("No color is set");return this._rgba=t.hslToRgb(this._hsla)},set:function(t){3===t.length&&(t[3]=1),this._rgba=t,this._hsla=null}},{key:"rgbString",get:function(){return this.printRGB()}},{key:"rgbaString",get:function(){return this.printRGB(!0)}},{key:"hsla",get:function(){if(this._hsla)return this._hsla;if(!this._rgba)throw new Error("No color is set");return this._hsla=t.rgbToHsl(this._rgba)},set:function(t){3===t.length&&(t[3]=1),this._hsla=t,this._rgba=null}},{key:"hslString",get:function(){return this.printHSL()}},{key:"hslaString",get:function(){return this.printHSL(!0)}},{key:"hex",get:function(){return"#"+this.rgba.map((function(t,e){return e<3?t.toString(16):Math.round(255*t).toString(16)})).map((function(t){return t.padStart(2,"0")})).join("")},set:function(e){this.rgba=t.hexToRgb(e)}}],[{key:"hexToRgb",value:function(t){var e=(t.startsWith("#")?t.slice(1):t).replace(/^(\w{3})$/,"$1F").replace(/^(\w)(\w)(\w)(\w)$/,"$1$1$2$2$3$3$4$4").replace(/^(\w{6})$/,"$1FF");if(!e.match(/^([0-9a-fA-F]{8})$/))throw new Error("Unknown hex color; "+t);var n=e.match(/^(\w\w)(\w\w)(\w\w)(\w\w)$/).slice(1).map((function(t){return parseInt(t,16)}));return n[3]=n[3]/255,n}},{key:"nameToRgb",value:function(e){var n=e.toLowerCase().replace("at","T").replace(/[aeiouyldf]/g,"").replace("ght","L").replace("rk","D").slice(-5,4),r=vt[n];return void 0===r?r:t.hexToRgb(r.replace(/\-/g,"00").padStart(6,"f"))}},{key:"rgbToHsl",value:function(t){var e=mt(t,4),n=e[0],r=e[1],o=e[2],i=e[3];n/=255,r/=255,o/=255;var l=Math.max(n,r,o),s=Math.min(n,r,o),a=void 0,c=void 0,u=(l+s)/2;if(l===s)a=c=0;else{var f=l-s;switch(c=u>.5?f/(2-l-s):f/(l+s),l){case n:a=(r-o)/f+(r<o?6:0);break;case r:a=(o-n)/f+2;break;case o:a=(n-r)/f+4}a/=6}return[a,c,u,i]}},{key:"hslToRgb",value:function(t){var e=mt(t,4),n=e[0],r=e[1],o=e[2],i=e[3],l=void 0,s=void 0,a=void 0;if(0===r)l=s=a=o;else{var c=function(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},u=o<.5?o*(1+r):o+r-o*r,f=2*o-u;l=c(f,u,n+1/3),s=c(f,u,n),a=c(f,u,n-1/3)}var h=[255*l,255*s,255*a].map(Math.round);return h[3]=i,h}}]),t}(),wt=function(){function t(){pt(this,t),this._events=[]}return gt(t,[{key:"add",value:function(t,e,n){t.addEventListener(e,n,!1),this._events.push({target:t,type:e,handler:n})}},{key:"remove",value:function(e,n,r){this._events=this._events.filter((function(o){var i=!0;return e&&e!==o.target&&(i=!1),n&&n!==o.type&&(i=!1),r&&r!==o.handler&&(i=!1),i&&t._doRemove(o.target,o.type,o.handler),!i}))}},{key:"destroy",value:function(){this._events.forEach((function(e){return t._doRemove(e.target,e.type,e.handler)})),this._events=[]}}],[{key:"_doRemove",value:function(t,e,n){t.removeEventListener(e,n,!1)}}]),t}();function _t(t,e,n){var r=!1;function o(t,e,n){return Math.max(e,Math.min(t,n))}function i(t,i,l){if(l&&(r=!0),r){t.preventDefault();var s=e.getBoundingClientRect(),a=s.width,c=s.height,u=i.clientX,f=i.clientY,h=o(u-s.left,0,a),d=o(f-s.top,0,c);n(h/a,d/c)}}function l(t,e){1===(void 0===t.buttons?t.which:t.buttons)?i(t,t,e):r=!1}function s(t,e){1===t.touches.length?i(t,t.touches[0],e):r=!1}t.add(e,"mousedown",(function(t){l(t,!0)})),t.add(e,"touchstart",(function(t){s(t,!0)})),t.add(window,"mousemove",l),t.add(e,"touchmove",s),t.add(window,"mouseup",(function(t){r=!1})),t.add(e,"touchend",(function(t){r=!1})),t.add(e,"touchcancel",(function(t){r=!1}))}var kt="keydown",$t="mousedown",St="focusin";function xt(t,e){return(e||document).querySelector(t)}function Ct(t){t.preventDefault(),t.stopPropagation()}function Mt(t,e,n,r,o){t.add(e,kt,(function(t){n.indexOf(t.key)>=0&&(o&&Ct(t),r(t))}))}var Et=function(){function t(e){pt(this,t),this.settings={popup:"right",layout:"default",alpha:!0,editor:!0,editorFormat:"hex",cancelButton:!1,defaultColor:"#0cf"},this._events=new wt,this.onChange=null,this.onDone=null,this.onOpen=null,this.onClose=null,this.setOptions(e)}return gt(t,[{key:"setOptions",value:function(t){var e=this;if(t){var n=this.settings;if(t instanceof HTMLElement)n.parent=t;else{n.parent&&t.parent&&n.parent!==t.parent&&(this._events.remove(n.parent),this._popupInited=!1),function(t,e,n){for(var r in t)n&&n.indexOf(r)>=0||(e[r]=t[r])}(t,n),t.onChange&&(this.onChange=t.onChange),t.onDone&&(this.onDone=t.onDone),t.onOpen&&(this.onOpen=t.onOpen),t.onClose&&(this.onClose=t.onClose);var r=t.color||t.colour;r&&this._setColor(r)}var o=n.parent;if(o&&n.popup&&!this._popupInited){var i=function(t){return e.openHandler(t)};this._events.add(o,"click",i),Mt(this._events,o,[" ","Spacebar","Enter"],i),this._popupInited=!0}else t.parent&&!n.popup&&this.show()}}},{key:"openHandler",value:function(t){if(this.show()){t&&t.preventDefault(),this.settings.parent.style.pointerEvents="none";var e=t&&t.type===kt?this._domEdit:this.domElement;setTimeout((function(){return e.focus()}),100),this.onOpen&&this.onOpen(this.colour)}}},{key:"closeHandler",value:function(t){var e=t&&t.type,n=!1;if(t)if(e===$t||e===St){var r=(this.__containedEvent||0)+100;t.timeStamp>r&&(n=!0)}else Ct(t),n=!0;else n=!0;n&&this.hide()&&(this.settings.parent.style.pointerEvents="",e!==$t&&this.settings.parent.focus(),this.onClose&&this.onClose(this.colour))}},{key:"movePopup",value:function(t,e){this.closeHandler(),this.setOptions(t),e&&this.openHandler()}},{key:"setColor",value:function(t,e){this._setColor(t,{silent:e})}},{key:"_setColor",value:function(t,e){if("string"==typeof t&&(t=t.trim()),t){e=e||{};var n=void 0;try{n=new bt(t)}catch(t){if(e.failSilently)return;throw t}if(!this.settings.alpha){var r=n.hsla;r[3]=1,n.hsla=r}this.colour=this.color=n,this._setHSLA(null,null,null,null,e)}}},{key:"setColour",value:function(t,e){this.setColor(t,e)}},{key:"show",value:function(){if(!this.settings.parent)return!1;if(this.domElement){var t=this._toggleDOM(!0);return this._setPosition(),t}var e,n,r=this.settings.template||'<div class="picker_wrapper" tabindex="-1"><div class="picker_arrow"></div><div class="picker_hue picker_slider"><div class="picker_selector"></div></div><div class="picker_sl"><div class="picker_selector"></div></div><div class="picker_alpha picker_slider"><div class="picker_selector"></div></div><div class="picker_editor"><input aria-label="Type a color name or hex value"/></div><div class="picker_sample"></div><div class="picker_done"><button>Ok</button></div><div class="picker_cancel"><button>Cancel</button></div></div>',o=(e=r,(n=document.createElement("div")).innerHTML=e,n.firstElementChild);return this.domElement=o,this._domH=xt(".picker_hue",o),this._domSL=xt(".picker_sl",o),this._domA=xt(".picker_alpha",o),this._domEdit=xt(".picker_editor input",o),this._domSample=xt(".picker_sample",o),this._domOkay=xt(".picker_done button",o),this._domCancel=xt(".picker_cancel button",o),o.classList.add("layout_"+this.settings.layout),this.settings.alpha||o.classList.add("no_alpha"),this.settings.editor||o.classList.add("no_editor"),this.settings.cancelButton||o.classList.add("no_cancel"),this._ifPopup((function(){return o.classList.add("popup")})),this._setPosition(),this.colour?this._updateUI():this._setColor(this.settings.defaultColor),this._bindEvents(),!0}},{key:"hide",value:function(){return this._toggleDOM(!1)}},{key:"destroy",value:function(){this._events.destroy(),this.domElement&&this.settings.parent.removeChild(this.domElement)}},{key:"_bindEvents",value:function(){var t=this,e=this,n=this.domElement,r=this._events;function o(t,e,n){r.add(t,e,n)}o(n,"click",(function(t){return t.preventDefault()})),_t(r,this._domH,(function(t,n){return e._setHSLA(t)})),_t(r,this._domSL,(function(t,n){return e._setHSLA(null,t,1-n)})),this.settings.alpha&&_t(r,this._domA,(function(t,n){return e._setHSLA(null,null,null,1-n)}));var i=this._domEdit;o(i,"input",(function(t){e._setColor(this.value,{fromEditor:!0,failSilently:!0})})),o(i,"focus",(function(t){var e=this;e.selectionStart===e.selectionEnd&&e.select()})),this._ifPopup((function(){var e=function(e){return t.closeHandler(e)};o(window,$t,e),o(window,St,e),Mt(r,n,["Esc","Escape"],e);var i=function(e){t.__containedEvent=e.timeStamp};o(n,$t,i),o(n,St,i),o(t._domCancel,"click",e)}));var l=function(e){t._ifPopup((function(){return t.closeHandler(e)})),t.onDone&&t.onDone(t.colour)};o(this._domOkay,"click",l),Mt(r,n,["Enter"],l)}},{key:"_setPosition",value:function(){var t=this.settings.parent,e=this.domElement;t!==e.parentNode&&t.appendChild(e),this._ifPopup((function(n){"static"===getComputedStyle(t).position&&(t.style.position="relative");var r=!0===n?"popup_right":"popup_"+n;["popup_top","popup_bottom","popup_left","popup_right"].forEach((function(t){t===r?e.classList.add(t):e.classList.remove(t)})),e.classList.add(r)}))}},{key:"_setHSLA",value:function(t,e,n,r,o){o=o||{};var i=this.colour,l=i.hsla;[t,e,n,r].forEach((function(t,e){(t||0===t)&&(l[e]=t)})),i.hsla=l,this._updateUI(o),this.onChange&&!o.silent&&this.onChange(i)}},{key:"_updateUI",value:function(t){if(this.domElement){t=t||{};var e=this.colour,n=e.hsla,r="hsl("+360*n[0]+", 100%, 50%)",o=e.hslString,i=e.hslaString,l=this._domH,s=this._domSL,a=this._domA,c=xt(".picker_selector",l),u=xt(".picker_selector",s),f=xt(".picker_selector",a);y(0,c,n[0]),this._domSL.style.backgroundColor=this._domH.style.color=r,y(0,u,n[1]),b(0,u,1-n[2]),s.style.color=o,b(0,f,1-n[3]);var h=o,d=h.replace("hsl","hsla").replace(")",", 0)"),p="linear-gradient("+[h,d]+")";if(this._domA.style.background=p+", linear-gradient(45deg, lightgrey 25%, transparent 25%, transparent 75%, lightgrey 75%) 0 0 / 2em 2em,\n linear-gradient(45deg, lightgrey 25%, white 25%, white 75%, lightgrey 75%) 1em 1em / 2em 2em",!t.fromEditor){var g=this.settings.editorFormat,m=this.settings.alpha,v=void 0;switch(g){case"rgb":v=e.printRGB(m);break;case"hsl":v=e.printHSL(m);break;default:v=e.printHex(m)}this._domEdit.value=v}this._domSample.style.color=i}function y(t,e,n){e.style.left=100*n+"%"}function b(t,e,n){e.style.top=100*n+"%"}}},{key:"_ifPopup",value:function(t,e){this.settings.parent&&this.settings.popup?t&&t(this.settings.popup):e&&e()}},{key:"_toggleDOM",value:function(t){var e=this.domElement;if(!e)return!1;var n=t?"":"none",r=e.style.display!==n;return r&&(e.style.display=n),r}}]),t}();function Lt(e){let n;return{c(){n=u("div")},m(t,r){s(t,n,r),e[6](n)},p:t,i:t,o:t,d(t){t&&a(n),e[6](null)}}}function Tt(t,e,n){let r,o,{value:i="#AAAAAAFF"}=e,{options:l={}}=e,{onChange:s=(()=>{})}=e;function a(t){var e;(e=t.hex)!==i&&(s(e,i),n(1,i=e))}return k((()=>{!function(t){if(!r)return;o&&o.destroy();t.onChange=a,n(5,o=new Et({parent:r,color:i,popup:!1,...t})),o.show(),o.openHandler()}(l)})),$((()=>{o.destroy()})),t.$$set=t=>{"value"in t&&n(1,i=t.value),"options"in t&&n(2,l=t.options),"onChange"in t&&n(3,s=t.onChange)},t.$$.update=()=>{34&t.$$.dirty&&o&&o.setColor(i)},[r,i,l,s,function(t){o.setColor(t)},o,function(t){x[t?"unshift":"push"]((()=>{r=t,n(0,r)}))}]}var At=class extends W{constructor(t){super(),z(this,t,Tt,Lt,i,{value:1,options:2,onChange:3,setColor:4})}get setColor(){return this.$$.ctx[4]}};const Nt=new Set(["Arial","Arial Black","Bahnschrift","Calibri","Cambria","Cambria Math","Candara","Comic Sans MS","Consolas","Constantia","Corbel","Courier New","Ebrima","Franklin Gothic Medium","Gabriola","Gadugi","Georgia","HoloLens MDL2 Assets","Impact","Ink Free","Javanese Text","Leelawadee UI","Lucida Console","Lucida Sans Unicode","Malgun Gothic","Marlett","Microsoft Himalaya","Microsoft JhengHei","Microsoft New Tai Lue","Microsoft PhagsPa","Microsoft Sans Serif","Microsoft Tai Le","Microsoft YaHei","Microsoft Yi Baiti","MingLiU-ExtB","Mongolian Baiti","MS Gothic","MV Boli","Myanmar Text","Nirmala UI","Palatino Linotype","Segoe MDL2 Assets","Segoe Print","Segoe Script","Segoe UI","Segoe UI Historic","Segoe UI Emoji","Segoe UI Symbol","SimSun","Sitka","Sylfaen","Symbol","Tahoma","Times New Roman","Trebuchet MS","Verdana","Webdings","Wingdings","Yu Gothic","American Typewriter","Andale Mono","Arial","Arial Black","Arial Narrow","Arial Rounded MT Bold","Arial Unicode MS","Avenir","Avenir Next","Avenir Next Condensed","Baskerville","Big Caslon","Bodoni 72","Bodoni 72 Oldstyle","Bodoni 72 Smallcaps","Bradley Hand","Brush Script MT","Chalkboard","Chalkboard SE","Chalkduster","Charter","Cochin","Comic Sans MS","Copperplate","Courier","Courier New","Didot","DIN Alternate","DIN Condensed","Futura","Geneva","Georgia","Gill Sans","Helvetica","Helvetica Neue","Herculanum","Hoefler Text","Impact","Lucida Grande","Luminari","Marker Felt","Menlo","Microsoft Sans Serif","Monaco","Noteworthy","Optima","Palatino","Papyrus","Phosphate","Rockwell","Savoye LET","SignPainter","Skia","Snell Roundhand","Tahoma","Times","Times New Roman","Trattatello","Trebuchet MS","Verdana","Zapfino"].sort());function Ht(){let{fonts:t}=document;const e=t.entries();let n=[],r=!1;for(;!r;){const t=e.next();t.done?r=t.done:n.push(t.value[0].family)}return[...new Set(n)]}function Ot(t,e,n){const r=t.slice();r[62]=e[n],r[64]=e,r[65]=n;const o=r[62].props[r[62].selected];return r[63]=o,r}function Dt(t,e,n){const r=t.slice();return r[66]=e[n],r}function Pt(t,e,n){const r=t.slice();return r[69]=e[n],r[71]=n,r}function Rt(t,e,n){const r=t.slice();return r[72]=e[n],r[74]=n,r}function Bt(t,e,n){const r=t.slice();return r[75]=e[n],r[77]=n,r}function It(t,e,n){const r=t.slice();return r[78]=e[n],r[80]=n,r}function jt(t){let e,n,r,o=t[1],i=[];for(let e=0;e<o.length;e+=1)i[e]=Ft(It(t,o,e));return{c(){e=u("div"),n=u("b"),n.textContent="Elem",r=d();for(let t=0;t<i.length;t+=1)i[t].c();m(e,"class","select-tab")},m(t,o){s(t,e,o),l(e,n),l(e,r);for(let t=0;t<i.length;t+=1)i[t].m(e,null)},p(t,n){if(50&n[0]){let r;for(o=t[1],r=0;r<o.length;r+=1){const l=It(t,o,r);i[r]?i[r].p(l,n):(i[r]=Ft(l),i[r].c(),i[r].m(e,null))}for(;r<i.length;r+=1)i[r].d(1);i.length=o.length}},d(t){t&&a(e),c(i,t)}}}function Ft(t){let e,n,r,o,i,c;function f(){return t[32](t[80])}return{c(){e=u("span"),n=h("Elem "),r=h(t[80]),o=d(),y(e,"selected",t[4]===t[80])},m(t,a){s(t,e,a),l(e,n),l(e,r),l(e,o),i||(c=g(e,"click",f),i=!0)},p(n,r){t=n,16&r[0]&&y(e,"selected",t[4]===t[80])},d(t){t&&a(e),i=!1,c()}}}function Gt(t){let e,n,r,o,i,c=t[75]+"";function f(){return t[33](t[77])}return{c(){e=u("span"),n=h(c),m(e,"title",r=t[75]),y(e,"selected",t[5]===t[77])},m(t,r){s(t,e,r),l(e,n),o||(i=g(e,"click",f),o=!0)},p(o,i){t=o,20&i[0]&&c!==(c=t[75]+"")&&v(n,c),20&i[0]&&r!==(r=t[75])&&m(e,"title",r),32&i[0]&&y(e,"selected",t[5]===t[77])},d(t){t&&a(e),o=!1,i()}}}function qt(t){let e,n,r,o,i,c=t[72]+"";function f(){return t[34](t[74])}return{c(){e=u("span"),n=h(c),r=d(),y(e,"selected",t[6]===t[74])},m(t,a){s(t,e,a),l(e,n),l(e,r),o||(i=g(e,"click",f),o=!0)},p(r,o){t=r,24&o[0]&&c!==(c=t[72]+"")&&v(n,c),64&o[0]&&y(e,"selected",t[6]===t[74])},d(t){t&&a(e),o=!1,i()}}}function Ut(t){let e,n=("custom"!==t[72]||"inline"===t[16]&&"custom"===t[72]&&t[15])&&qt(t);return{c(){n&&n.c(),e=p()},m(t,r){n&&n.m(t,r),s(t,e,r)},p(t,r){"custom"!==t[72]||"inline"===t[16]&&"custom"===t[72]&&t[15]?n?n.p(t,r):(n=qt(t),n.c(),n.m(e.parentNode,e)):n&&(n.d(1),n=null)},d(t){n&&n.d(t),t&&a(e)}}}function zt(t){let e,n,r,o=t[12],i=[];for(let e=0;e<o.length;e+=1)i[e]=te(Ot(t,o,e));const f=t=>G(i[t],1,1,(()=>{i[t]=null}));let h="inline"===t[16]&&null!==t[14][t[4]]&&ee(t);return{c(){e=u("div");for(let t=0;t<i.length;t+=1)i[t].c();n=d(),h&&h.c(),m(e,"class","editor")},m(t,o){s(t,e,o);for(let t=0;t<i.length;t+=1)i[t].m(e,null);l(e,n),h&&h.m(e,null),r=!0},p(t,r){if(1323008&r[0]){let l;for(o=t[12],l=0;l<o.length;l+=1){const s=Ot(t,o,l);i[l]?(i[l].p(s,r),F(i[l],1)):(i[l]=te(s),i[l].c(),F(i[l],1),i[l].m(e,n))}for(I(),l=o.length;l<i.length;l+=1)f(l);j()}"inline"===t[16]&&null!==t[14][t[4]]?h?h.p(t,r):(h=ee(t),h.c(),h.m(e,null)):h&&(h.d(1),h=null)},i(t){if(!r){for(let t=0;t<o.length;t+=1)F(i[t]);r=!0}},o(t){i=i.filter(Boolean);for(let t=0;t<i.length;t+=1)G(i[t]);r=!1},d(t){t&&a(e),c(i,t),h&&h.d()}}}function Wt(t){let e,n,r=t[63]+"";return{c(){e=u("span"),n=h(r)},m(t,r){s(t,e,r),l(e,n)},p(t,e){4096&e[0]&&r!==(r=t[63]+"")&&v(n,r)},d(t){t&&a(e)}}}function Yt(t){let e,n,r,o,i=t[62].props,f=[];for(let e=0;e<i.length;e+=1)f[e]=Xt(Pt(t,i,e));function h(...e){return t[35](t[62],t[64],t[65],...e)}return{c(){e=u("div"),n=u("select");for(let t=0;t<f.length;t+=1)f[t].c()},m(t,i){s(t,e,i),l(e,n);for(let t=0;t<f.length;t+=1)f[t].m(n,null);r||(o=g(n,"change",h),r=!0)},p(e,r){if(t=e,4096&r[0]){let e;for(i=t[62].props,e=0;e<i.length;e+=1){const o=Pt(t,i,e);f[e]?f[e].p(o,r):(f[e]=Xt(o),f[e].c(),f[e].m(n,null))}for(;e<f.length;e+=1)f[e].d(1);f.length=i.length}},d(t){t&&a(e),c(f,t),r=!1,o()}}}function Xt(t){let e,n,r,o,i=t[69]+"";return{c(){e=u("option"),n=h(i),r=d(),e.selected=o=t[71]===t[62].selected,e.__value=t[71],e.value=e.__value},m(t,o){s(t,e,o),l(e,n),l(e,r)},p(t,r){4096&r[0]&&i!==(i=t[69]+"")&&v(n,i),4096&r[0]&&o!==(o=t[71]===t[62].selected)&&(e.selected=o)},d(t){t&&a(e)}}}function Vt(t){let e,n;function r(...e){return t[39](t[63],...e)}return e=new At({props:{value:t[13][t[63]].value,onChange:r}}),{c(){var t;(t=e.$$.fragment)&&t.c()},m(t,r){q(e,t,r),n=!0},p(n,o){t=n;const i={};12288&o[0]&&(i.value=t[13][t[63]].value),4096&o[0]&&(i.onChange=r),e.$set(i)},i(t){n||(F(e.$$.fragment,t),n=!0)},o(t){G(e.$$.fragment,t),n=!1},d(t){U(e,t)}}}function Jt(e){let n,r,o,i,f=!e[62].includes(e[13][e[63]].value),h=f&&Kt(),d=e[62],m=[];for(let t=0;t<d.length;t+=1)m[t]=Qt(Dt(e,d,t));function v(...t){return e[38](e[63],...t)}return{c(){n=u("select"),h&&h.c(),r=p();for(let t=0;t<m.length;t+=1)m[t].c()},m(t,e){s(t,n,e),h&&h.m(n,null),l(n,r);for(let t=0;t<m.length;t+=1)m[t].m(n,null);o||(i=g(n,"change",v),o=!0)},p(t,o){if(e=t,12288&o[0]&&(f=!e[62].includes(e[13][e[63]].value)),f?h||(h=Kt(),h.c(),h.m(n,r)):h&&(h.d(1),h=null),12288&o[0]){let t;for(d=e[62],t=0;t<d.length;t+=1){const r=Dt(e,d,t);m[t]?m[t].p(r,o):(m[t]=Qt(r),m[t].c(),m[t].m(n,null))}for(;t<m.length;t+=1)m[t].d(1);m.length=d.length}},i:t,o:t,d(t){t&&a(n),h&&h.d(),c(m,t),o=!1,i()}}}function Zt(e){let n,r,o,i,c,f,p,y,b,w,_=e[13][e[63]].displayed+"";function k(...t){return e[37](e[63],...t)}return{c(){n=u("input"),f=d(),p=u("span"),y=h(_),m(n,"type","range"),m(n,"min",r=e[13][e[63]].min),m(n,"max",o=e[13][e[63]].max),m(n,"step",i=e[13][e[63]].step||1),n.value=c=e[13][e[63]].value,m(p,"class","current-value")},m(t,e){s(t,n,e),s(t,f,e),s(t,p,e),l(p,y),b||(w=g(n,"change",k),b=!0)},p(t,l){e=t,12288&l[0]&&r!==(r=e[13][e[63]].min)&&m(n,"min",r),12288&l[0]&&o!==(o=e[13][e[63]].max)&&m(n,"max",o),12288&l[0]&&i!==(i=e[13][e[63]].step||1)&&m(n,"step",i),12288&l[0]&&c!==(c=e[13][e[63]].value)&&(n.value=c),12288&l[0]&&_!==(_=e[13][e[63]].displayed+"")&&v(y,_)},i:t,o:t,d(t){t&&a(n),t&&a(f),t&&a(p),b=!1,w()}}}function Kt(t){let e;return{c(){e=u("option"),e.textContent="--- ",e.selected="true",e.__value=" --- ",e.value=e.__value},m(t,n){s(t,e,n)},d(t){t&&a(e)}}}function Qt(t){let e,n,r,o,i=t[66]+"";return{c(){e=u("option"),n=h(i),e.selected=r=t[66]==t[13][t[63]].value||null,e.__value=o=" "+t[66]+" ",e.value=e.__value},m(t,r){s(t,e,r),l(e,n)},p(t,l){12288&l[0]&&i!==(i=t[66]+"")&&v(n,i),12288&l[0]&&r!==(r=t[66]==t[13][t[63]].value||null)&&(e.selected=r),12288&l[0]&&o!==(o=" "+t[66]+" ")&&(e.__value=o,e.value=e.__value)},d(t){t&&a(e)}}}function te(t){let e,n,r,o,i,c,f,h,p;function v(t,e){return t[62].props.length>1?Yt:Wt}let y=v(t),b=y(t);function w(){return t[36](t[63])}const _=[Zt,Jt,Vt],k=[];function $(t,e){return"slider"===t[62].type?0:"select"==t[62].type?1:"color"==t[62].type?2:-1}function S(t,e){return 1===e?function(t){const e=t.slice(),n=e[13][e[63]].choices();return e[62]=n,e}(t):t}return~(i=$(t))&&(c=k[i]=_[i](S(t,i))),{c(){e=u("div"),b.c(),n=d(),r=u("span"),r.textContent="✕",o=d(),c&&c.c(),m(r,"class","delete"),m(e,"class","prop-section")},m(t,a){s(t,e,a),b.m(e,null),l(e,n),l(e,r),l(e,o),~i&&k[i].m(e,null),f=!0,h||(p=g(r,"click",w),h=!0)},p(r,o){y===(y=v(t=r))&&b?b.p(t,o):(b.d(1),b=y(t),b&&(b.c(),b.m(e,n)));let l=i;i=$(t),i===l?~i&&k[i].p(S(t,i),o):(c&&(I(),G(k[l],1,1,(()=>{k[l]=null})),j()),~i?(c=k[i],c?c.p(S(t,i),o):(c=k[i]=_[i](S(t,i)),c.c()),F(c,1),c.m(e,null)):c=null)},i(t){f||(F(c),f=!0)},o(t){G(c),f=!1},d(t){t&&a(e),b.d(),~i&&k[i].d(),h=!1,p()}}}function ee(t){let e,n,r;return{c(){e=u("div"),e.textContent="Bring to front",m(e,"class","btn"),y(e,"active",!0===t[14][t[4]])},m(o,i){s(o,e,i),n||(r=g(e,"click",t[19]),n=!0)},p(t,n){16400&n[0]&&y(e,"active",!0===t[14][t[4]])},d(t){t&&a(e),n=!1,r()}}}function ne(t){let e,n,o,i,h,p,v,y,b,w,_,k,$,S,x,C,M,E,L,T,A,N,H,O,D=t[1].length>1&&jt(t),P=ae(t[2][t[4]]),R=[];for(let e=0;e<P.length;e+=1)R[e]=Gt(Bt(t,P,e));let B=t[3][t[4]]||[],q=[];for(let e=0;e<B.length;e+=1)q[e]=Ut(Rt(t,B,e));let U=t[3][t[4]]&&zt(t);return{c(){e=u("div"),n=d(),o=f("svg"),i=f("clipPath"),h=f("path"),p=f("rect"),b=d(),w=u("div"),_=u("div"),_.textContent="x",k=d(),D&&D.c(),$=d(),S=u("div"),x=u("b"),x.textContent="Rule:",C=d();for(let t=0;t<R.length;t+=1)R[t].c();M=d(),E=u("div"),L=u("b"),L.textContent="Property type:",T=d();for(let t=0;t<q.length;t+=1)q[t].c();var r,l,s,a;A=d(),U&&U.c(),r=e,l="position",null===(s="absolute")?r.style.removeProperty(l):r.style.setProperty(l,s,a?"important":""),m(h,"d",t[10]),m(i,"id","overlay-clip"),m(i,"clip-rule","evenodd"),m(p,"y","0"),m(p,"x","0"),m(p,"height","100%"),m(p,"width","100%"),m(p,"class","overlay-over"),m(o,"class","ise-helper-wrapper"),m(o,"version","1.1"),m(o,"xmlns","http://www.w3.org/2000/svg"),m(o,"xmlns:xlink","http://www.w3.org/1999/xlink"),m(o,"width",v=t[11].width),m(o,"height",y=t[11].height),m(_,"class","close-button"),m(S,"class","select-tab"),m(E,"class","select-tab"),m(w,"class","ise")},m(r,a){s(r,e,a),t[30](e),s(r,n,a),s(r,o,a),l(o,i),l(i,h),l(o,p),t[31](o),s(r,b,a),s(r,w,a),l(w,_),l(w,k),D&&D.m(w,null),l(w,$),l(w,S),l(S,x),l(S,C);for(let t=0;t<R.length;t+=1)R[t].m(S,null);l(w,M),l(w,E),l(E,L),l(E,T);for(let t=0;t<q.length;t+=1)q[t].m(E,null);l(w,A),U&&U.m(w,null),t[40](w),N=!0,H||(O=[g(o,"click",t[17]),g(_,"click",t[0])],H=!0)},p(t,e){if((!N||1024&e[0])&&m(h,"d",t[10]),(!N||2048&e[0]&&v!==(v=t[11].width))&&m(o,"width",v),(!N||2048&e[0]&&y!==(y=t[11].height))&&m(o,"height",y),t[1].length>1?D?D.p(t,e):(D=jt(t),D.c(),D.m(w,$)):D&&(D.d(1),D=null),2097204&e[0]){let n;for(P=ae(t[2][t[4]]),n=0;n<P.length;n+=1){const r=Bt(t,P,n);R[n]?R[n].p(r,e):(R[n]=Gt(r),R[n].c(),R[n].m(S,null))}for(;n<R.length;n+=1)R[n].d(1);R.length=P.length}if(98392&e[0]){let n;for(B=t[3][t[4]]||[],n=0;n<B.length;n+=1){const r=Rt(t,B,n);q[n]?q[n].p(r,e):(q[n]=Ut(r),q[n].c(),q[n].m(E,null))}for(;n<q.length;n+=1)q[n].d(1);q.length=B.length}t[3][t[4]]?U?(U.p(t,e),24&e[0]&&F(U,1)):(U=zt(t),U.c(),F(U,1),U.m(w,null)):U&&(I(),G(U,1,1,(()=>{U=null})),j())},i(t){N||(F(U),N=!0)},o(t){G(U),N=!1},d(i){i&&a(e),t[30](null),i&&a(n),i&&a(o),t[31](null),i&&a(b),i&&a(w),D&&D.d(),c(R,i),c(q,i),U&&U.d(),t[40](null),H=!1,r(O)}}}const re="text",oe="border",ie="stroke",le="background",se="custom";function ae(t){return t?t.map(((t,e)=>{if("inline"===t)return"inline";const n=t.selectorText;return`${t.parentStyleSheet.title||`${e}`}: ${n}`})):[]}function ce(t,e=0){const n=t.getBoundingClientRect();return{left:n.left+window.scrollX-e,top:n.top+window.scrollY-e,width:n.width+2*e,height:n.height+2*e,right:n.left+window.scrollX+n.width+e,bottom:n.top+window.scrollY+n.height+e}}function ue(t,e="number"){if("raw"==e)return t;if("number"==e&&/[0-9]+(px)|(em)|(rem)/.test(t))return parseInt(t);if("rgb"==e){if("none"===t)return"#00000000";if(t.includes("rgb")||"#"==t[0])return function(t){const e=t.match(/[0-9\.]+/g).map((t=>parseFloat(t)));return 3===e.length&&e.push(1),e.reduce(((t,e,n)=>t+(3===n?Math.round(255*e).toString(16).padStart(2,"0"):e.toString(16).padStart(2,"0"))),"#")}(t)}return t}function fe(t,e,n){let r,o;const i=["altGlyph","circle","ellipse","line","path","polygon","polyline","rect","text","textPath","tref","tspan"],l={"border-radius":{type:"slider",min:0,max:30,suffix:"px"},"border-width":{type:"slider",min:0,max:30,suffix:"px"},"border-style":{type:"select",choices:()=>["none","dotted","dashed","solid","double","groove","ridge","inset","outset"]},"border-color":{type:"color"},"font-family":{type:"select",choices:function(){return function(){const t=new Set;for(const e of Nt.values())document.fonts.check(`12px "${e}"`)&&t.add(e);return[...Ht(),...t.values()]}()}},"font-size":{type:"slider",min:0,max:40,suffix:"px"},"font-weight":{type:"slider",min:0,max:800},color:{type:"color"},"stroke-width":{type:"slider",min:0,max:20,step:.5,suffix:"px"},stroke:{type:"color"},"stroke-linejoin":{type:"select",choices:()=>["bevel","miter","round"]},fill:{type:"color"},"stroke-dasharray":{type:"slider",min:0,max:30,suffix:"px"},"background-color":{type:"color"}};let{getAdditionalElems:s=(()=>[])}=e,{listenOnClick:a=!1}=e,{onStyleChanged:c=(()=>{})}=e,{customProps:u={}}=e;const f={[re]:["font-family","font-size","font-weight","color"],[oe]:["border-radius","border-width","border-color","border-style"],[ie]:["stroke-width","stroke","stroke-dasharray","stroke-linejoin","fill"],[le]:["background-color"],[se]:Object.keys(u)},h={slider:0,select:1,color:2};let d,p,g,m,v,y=null,b="",w={width:0,height:0},_=[],S=[],C=[],M=0,E=0,L=0,T={},N=[],H=!1;function O(){const t={...l,...u},e=(o=t,f[v].reduce(((t,e)=>(t[e]=o[e],t)),{}));var o;Object.keys(e).forEach((t=>{const n=e[t].type;let o="number";if("color"===n?o="rgb":"select"===n&&(o="raw"),e[t].getter){const n=e[t].getter(r);if(null===n)return void delete e[t];e[t].value=n,e[t].displayed=n}else e[t].displayed=U(r,t,"raw"),e[t].value=U(r,t,o)})),n(12,m=Object.entries(e).reduce(((t,[e,n])=>{const r=n.type,o=t.find((t=>t.type===r));return o?o.props.push(e):t.push({selected:0,props:[e],type:r}),t}),[]).sort(((t,e)=>h[t.type]<h[e.type]?-1:h[t.type]>h[e.type]?1:0))),n(13,T=e),F()}k((()=>{B(),n(28,y=p.parentNode),document.body.appendChild(p),document.body.appendChild(g),document.body.appendChild(d),q(),setTimeout((()=>{q()}),1e3),window.addEventListener("resize",q)})),$((()=>{window.removeEventListener("resize",q),a&&y.removeEventListener("click",getTargetsAndRules)}));let D=new Set;function P(t){R(t.target,t.pageX,t.pageY)}async function R(t,e,r){if(q(),t.classList.contains("overlay-over"))return I();if(!p.contains(t)){n(4,M=0),n(5,E=0),n(6,L=0),n(14,N=[]),n(3,C=[]),n(2,S=[]),n(1,_=[t,...s(t)]),n(3,C=_.reduce(((t,e)=>{const n=[];e.firstChild&&3===e.firstChild.nodeType&&n.push(re);const r=e.tagName.toLowerCase();let o=!1;return i.includes(r)?(n.push(ie),"g"===e.parentElement.tagName.toLowerCase()&&e.previousElementSibling&&e.previousElementSibling.tagName.toLowerCase()==r&&(o=!0)):(n.push(oe),n.push(le)),o?N.push(!0):N.push(null),t.push(n),t}),[])),n(15,H=!1),n(2,S=function(t){const e=document.styleSheets;return t.reduce(((t,n)=>{const r=["inline"];for(let t in e)try{const o=e[t].cssRules;for(let t in o){let e=o[t].selectorText;!e||o[t].selectorText.length>50||e.split(",").some((t=>"*"===t))||(e.endsWith(":hover")&&(e=e.substring(0,e.length-":hover".length)),n.matches(e)&&r.push(o[t]))}}catch(n){D.has(t)||(console.log("Style editor: Not able to access",e[t].ownerNode,"sheet. Try CORS loading the sheet if you want to edit it."),D.add(t))}return t.push(r),t}),[])}(_));for(let e of Object.values(u))if(null!==e.getter(t)){n(15,H=!0);break}if(Object.keys(u).length&&C[0].push(se),await A(),O(),e&&r)j(e,r);else{const e=ce(t,15);j(e.left,e.top)}}}function B(){n(8,p.style.display="none",p),n(9,g.style.display="none",g),n(10,b="")}function I(){B()}function j(t,e){n(8,p.style.display="block",p),n(8,p.style.opacity=0,p);const r=p.getBoundingClientRect();t=t+r.width>w.width?t-r.width:t+10,e=e+r.height>w.height?e-r.height:e+10,n(8,p.style.left=t+"px",p),n(8,p.style.top=e+"px",p),n(9,g.style.display="block",g),n(8,p.style.opacity=1,p),F()}async function F(){if(await A(),!o)return;let t;if("inline"===o)t=[r];else{const e=o.selectorText.replace(/(:hover)|:focus/g,"");t=Array.from(document.querySelectorAll(e))}const e=t.map((t=>ce(t,10)));n(10,b=function(t,e){let n=function({width:t,height:e,top:n=0,left:r=0}){return`M${r} ${n} v${e} h${t} v-${e}z`}({width:e.width,height:e.height});if(t.length<10&&!function(t){for(let r=0;r<t.length-1;++r){const o=t[r];for(let i=r+1;i<t.length;++i)if(e=o,n=t[i],e.right>=n.left&&n.right>=e.left&&e.bottom>=n.top&&n.bottom>=e.top)return!0}var e,n;return!1}(t)){for(const e of t)n=`${n} ${dt(e)}`;return n}const r=Math.min(...t.map((t=>t.left))),o=Math.min(...t.map((t=>t.top))),i=t.map((t=>(t.left=t.left-r,t.right=t.right-r,t.top=t.top-o,t.bottom=t.bottom-o,t)));i.sort(((t,e)=>t.left>e.left?1:t.left<e.left?-1:0));const l=Math.ceil(Math.max(...i.map((t=>t.right)))),s=Math.ceil(Math.max(...i.map((t=>t.bottom)))),a=l*s/2e4,c=Math.ceil(l/a),u=Math.ceil(s/a),f=l/c,h=s/u,d=new Array(c*u);for(let t=0,e=0;t<u;++t)for(let n=0;n<c;++n,++e)d[e]=ht({x:n*a,y:t*a},i)?1:0;const p=ut().size([c,u]).thresholds([1])(d)[0];let g="";for(let t of p.coordinates)for(let e of t){for(let t=0;t<e.length;++t){const n=e[t],i=n[0]*f+r,l=n[1]*h+o;g+=t?`L ${i} ${l}`:`M${i} ${l}`}g+="Z"}return`${n} ${g}`}(e,w))}const G=function(t,e,n=!1){let r;return function(){const o=this,i=arguments,l=function(){r=null,n||t.apply(o,i)},s=n&&!r;clearTimeout(r),r=setTimeout(l,e),s&&t.apply(o,i)}}((function(t,e,i){const l=i?e+i:e;if("inline"===o)if(T[t].setter)T[t].setter(r,e);else{r.style[t]=l}else o.style.setProperty(t,l);n(13,T[t].value=e,T),n(13,T[t].displayed=l,T),c(r,o,t,l),F()}),100);function q(){const t=getComputedStyle(document.body),e=parseInt(t.marginLeft),r=parseInt(t.marginRight),o=parseInt(t.marginTop),i=parseInt(t.marginBottom);n(11,w={width:document.body.offsetWidth+e+r,height:document.body.offsetHeight+o+i})}function U(t,e,n="number"){let r=o?.style?.[e];if(!r){r=getComputedStyle(t)[e]}return ue(r,n)}function z(t){"inline"===o?r.style.removeProperty(t):o.style.removeProperty(t),c(r,o,t,null),O()}function W(t){const e=S[M]?.[t];"inline"!==e&&L===C[M].length-1&&n(6,L=0),n(5,E=t)}return t.$$set=t=>{"getAdditionalElems"in t&&n(22,s=t.getAdditionalElems),"listenOnClick"in t&&n(23,a=t.listenOnClick),"onStyleChanged"in t&&n(24,c=t.onStyleChanged),"customProps"in t&&n(25,u=t.customProps)},t.$$.update=()=>{268435456&t.$$.dirty[0]&&null!==y&&a&&y.addEventListener("click",P),18&t.$$.dirty[0]&&(r=_[M]),52&t.$$.dirty[0]&&n(16,o=S[M]?.[E]),536871e3&t.$$.dirty[0]&&C[M]?.[L]!==v&&n(29,v=C[M]?.[L]),536870960&t.$$.dirty[0]&&(v||E||M)&&O()},[B,_,S,C,M,E,L,d,p,g,b,w,m,T,N,H,o,I,G,function(){n(14,N[M]=!1,N),r.parentNode.appendChild(r),c(r,o,"bringtofront",null)},z,W,s,a,c,u,R,function(){return"block"===p.style.display},y,v,function(t){x[t?"unshift":"push"]((()=>{d=t,n(7,d)}))},function(t){x[t?"unshift":"push"]((()=>{g=t,n(9,g)}))},t=>{n(4,M=t),n(5,E=0)},t=>{W(t)},t=>{n(6,L=t)},async(t,e,r,o)=>{n(12,e[r].selected=o.target.value,m),await A()},t=>z(t),(t,e)=>G(t,e.target.value,T[t].suffix,e.target),(t,e)=>G(t,e.target.value),(t,e)=>G(t,e),function(t){x[t?"unshift":"push"]((()=>{p=t,n(8,p)}))}]}var he=class extends W{constructor(t){super(),z(this,t,fe,ne,i,{getAdditionalElems:22,listenOnClick:23,onStyleChanged:24,customProps:25,open:26,close:0,isOpened:27},null,[-1,-1,-1])}get open(){return this.$$.ctx[26]}get close(){return this.$$.ctx[0]}get isOpened(){return this.$$.ctx[27]}};return class{constructor(t){return new he({target:document.body,props:t})}}}));
|
|
9
|
+
var pt=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},gt=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),mt=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var n=[],r=!0,o=!1,i=void 0;try{for(var l,s=t[Symbol.iterator]();!(r=(l=s.next()).done)&&(n.push(l.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{!r&&s.return&&s.return()}finally{if(o)throw i}}return n}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")};String.prototype.startsWith=String.prototype.startsWith||function(t){return 0===this.indexOf(t)},String.prototype.padStart=String.prototype.padStart||function(t,e){for(var n=this;n.length<t;)n=e+n;return n};var vt={cb:"0f8ff",tqw:"aebd7",q:"-ffff",qmrn:"7fffd4",zr:"0ffff",bg:"5f5dc",bsq:"e4c4",bck:"---",nch:"ebcd",b:"--ff",bvt:"8a2be2",brwn:"a52a2a",brw:"deb887",ctb:"5f9ea0",hrt:"7fff-",chcT:"d2691e",cr:"7f50",rnw:"6495ed",crns:"8dc",crms:"dc143c",cn:"-ffff",Db:"--8b",Dcn:"-8b8b",Dgnr:"b8860b",Dgr:"a9a9a9",Dgrn:"-64-",Dkhk:"bdb76b",Dmgn:"8b-8b",Dvgr:"556b2f",Drng:"8c-",Drch:"9932cc",Dr:"8b--",Dsmn:"e9967a",Dsgr:"8fbc8f",DsTb:"483d8b",DsTg:"2f4f4f",Dtrq:"-ced1",Dvt:"94-d3",ppnk:"1493",pskb:"-bfff",mgr:"696969",grb:"1e90ff",rbrc:"b22222",rwht:"af0",stg:"228b22",chs:"-ff",gnsb:"dcdcdc",st:"8f8ff",g:"d7-",gnr:"daa520",gr:"808080",grn:"-8-0",grnw:"adff2f",hnw:"0fff0",htpn:"69b4",nnr:"cd5c5c",ng:"4b-82",vr:"0",khk:"0e68c",vnr:"e6e6fa",nrb:"0f5",wngr:"7cfc-",mnch:"acd",Lb:"add8e6",Lcr:"08080",Lcn:"e0ffff",Lgnr:"afad2",Lgr:"d3d3d3",Lgrn:"90ee90",Lpnk:"b6c1",Lsmn:"a07a",Lsgr:"20b2aa",Lskb:"87cefa",LsTg:"778899",Lstb:"b0c4de",Lw:"e0",m:"-ff-",mgrn:"32cd32",nn:"af0e6",mgnt:"-ff",mrn:"8--0",mqm:"66cdaa",mmb:"--cd",mmrc:"ba55d3",mmpr:"9370db",msg:"3cb371",mmsT:"7b68ee","":"-fa9a",mtr:"48d1cc",mmvt:"c71585",mnLb:"191970",ntc:"5fffa",mstr:"e4e1",mccs:"e4b5",vjw:"dead",nv:"--80",c:"df5e6",v:"808-0",vrb:"6b8e23",rng:"a5-",rngr:"45-",rch:"da70d6",pgnr:"eee8aa",pgrn:"98fb98",ptrq:"afeeee",pvtr:"db7093",ppwh:"efd5",pchp:"dab9",pr:"cd853f",pnk:"c0cb",pm:"dda0dd",pwrb:"b0e0e6",prp:"8-080",cc:"663399",r:"--",sbr:"bc8f8f",rb:"4169e1",sbrw:"8b4513",smn:"a8072",nbr:"4a460",sgrn:"2e8b57",ssh:"5ee",snn:"a0522d",svr:"c0c0c0",skb:"87ceeb",sTb:"6a5acd",sTgr:"708090",snw:"afa",n:"-ff7f",stb:"4682b4",tn:"d2b48c",t:"-8080",thst:"d8bfd8",tmT:"6347",trqs:"40e0d0",vt:"ee82ee",whT:"5deb3",wht:"",hts:"5f5f5",w:"-",wgrn:"9acd32"};function yt(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=e>0?t.toFixed(e).replace(/0+$/,"").replace(/\.$/,""):t.toString();return n||"0"}var bt=function(){function t(e,n,r,o){pt(this,t);var i=this;if(void 0===e);else if(Array.isArray(e))this.rgba=e;else if(void 0===r){var l=e&&""+e;l&&function(e){if(e.startsWith("hsl")){var n=e.match(/([\-\d\.e]+)/g).map(Number),r=mt(n,4),o=r[0],l=r[1],s=r[2],a=r[3];void 0===a&&(a=1),o/=360,l/=100,s/=100,i.hsla=[o,l,s,a]}else if(e.startsWith("rgb")){var c=e.match(/([\-\d\.e]+)/g).map(Number),u=mt(c,4),f=u[0],h=u[1],d=u[2],p=u[3];void 0===p&&(p=1),i.rgba=[f,h,d,p]}else e.startsWith("#")?i.rgba=t.hexToRgb(e):i.rgba=t.nameToRgb(e)||t.hexToRgb(e)}(l.toLowerCase())}else this.rgba=[e,n,r,void 0===o?1:o]}return gt(t,[{key:"printRGB",value:function(t){var e=(t?this.rgba:this.rgba.slice(0,3)).map((function(t,e){return yt(t,3===e?3:0)}));return t?"rgba("+e+")":"rgb("+e+")"}},{key:"printHSL",value:function(t){var e=[360,100,100,1],n=["","%","%",""],r=(t?this.hsla:this.hsla.slice(0,3)).map((function(t,r){return yt(t*e[r],3===r?3:1)+n[r]}));return t?"hsla("+r+")":"hsl("+r+")"}},{key:"printHex",value:function(t){var e=this.hex;return t?e:e.substring(0,7)}},{key:"rgba",get:function(){if(this._rgba)return this._rgba;if(!this._hsla)throw new Error("No color is set");return this._rgba=t.hslToRgb(this._hsla)},set:function(t){3===t.length&&(t[3]=1),this._rgba=t,this._hsla=null}},{key:"rgbString",get:function(){return this.printRGB()}},{key:"rgbaString",get:function(){return this.printRGB(!0)}},{key:"hsla",get:function(){if(this._hsla)return this._hsla;if(!this._rgba)throw new Error("No color is set");return this._hsla=t.rgbToHsl(this._rgba)},set:function(t){3===t.length&&(t[3]=1),this._hsla=t,this._rgba=null}},{key:"hslString",get:function(){return this.printHSL()}},{key:"hslaString",get:function(){return this.printHSL(!0)}},{key:"hex",get:function(){return"#"+this.rgba.map((function(t,e){return e<3?t.toString(16):Math.round(255*t).toString(16)})).map((function(t){return t.padStart(2,"0")})).join("")},set:function(e){this.rgba=t.hexToRgb(e)}}],[{key:"hexToRgb",value:function(t){var e=(t.startsWith("#")?t.slice(1):t).replace(/^(\w{3})$/,"$1F").replace(/^(\w)(\w)(\w)(\w)$/,"$1$1$2$2$3$3$4$4").replace(/^(\w{6})$/,"$1FF");if(!e.match(/^([0-9a-fA-F]{8})$/))throw new Error("Unknown hex color; "+t);var n=e.match(/^(\w\w)(\w\w)(\w\w)(\w\w)$/).slice(1).map((function(t){return parseInt(t,16)}));return n[3]=n[3]/255,n}},{key:"nameToRgb",value:function(e){var n=e.toLowerCase().replace("at","T").replace(/[aeiouyldf]/g,"").replace("ght","L").replace("rk","D").slice(-5,4),r=vt[n];return void 0===r?r:t.hexToRgb(r.replace(/\-/g,"00").padStart(6,"f"))}},{key:"rgbToHsl",value:function(t){var e=mt(t,4),n=e[0],r=e[1],o=e[2],i=e[3];n/=255,r/=255,o/=255;var l=Math.max(n,r,o),s=Math.min(n,r,o),a=void 0,c=void 0,u=(l+s)/2;if(l===s)a=c=0;else{var f=l-s;switch(c=u>.5?f/(2-l-s):f/(l+s),l){case n:a=(r-o)/f+(r<o?6:0);break;case r:a=(o-n)/f+2;break;case o:a=(n-r)/f+4}a/=6}return[a,c,u,i]}},{key:"hslToRgb",value:function(t){var e=mt(t,4),n=e[0],r=e[1],o=e[2],i=e[3],l=void 0,s=void 0,a=void 0;if(0===r)l=s=a=o;else{var c=function(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},u=o<.5?o*(1+r):o+r-o*r,f=2*o-u;l=c(f,u,n+1/3),s=c(f,u,n),a=c(f,u,n-1/3)}var h=[255*l,255*s,255*a].map(Math.round);return h[3]=i,h}}]),t}(),wt=function(){function t(){pt(this,t),this._events=[]}return gt(t,[{key:"add",value:function(t,e,n){t.addEventListener(e,n,!1),this._events.push({target:t,type:e,handler:n})}},{key:"remove",value:function(e,n,r){this._events=this._events.filter((function(o){var i=!0;return e&&e!==o.target&&(i=!1),n&&n!==o.type&&(i=!1),r&&r!==o.handler&&(i=!1),i&&t._doRemove(o.target,o.type,o.handler),!i}))}},{key:"destroy",value:function(){this._events.forEach((function(e){return t._doRemove(e.target,e.type,e.handler)})),this._events=[]}}],[{key:"_doRemove",value:function(t,e,n){t.removeEventListener(e,n,!1)}}]),t}();function _t(t,e,n){var r=!1;function o(t,e,n){return Math.max(e,Math.min(t,n))}function i(t,i,l){if(l&&(r=!0),r){t.preventDefault();var s=e.getBoundingClientRect(),a=s.width,c=s.height,u=i.clientX,f=i.clientY,h=o(u-s.left,0,a),d=o(f-s.top,0,c);n(h/a,d/c)}}function l(t,e){1===(void 0===t.buttons?t.which:t.buttons)?i(t,t,e):r=!1}function s(t,e){1===t.touches.length?i(t,t.touches[0],e):r=!1}t.add(e,"mousedown",(function(t){l(t,!0)})),t.add(e,"touchstart",(function(t){s(t,!0)})),t.add(window,"mousemove",l),t.add(e,"touchmove",s),t.add(window,"mouseup",(function(t){r=!1})),t.add(e,"touchend",(function(t){r=!1})),t.add(e,"touchcancel",(function(t){r=!1}))}var kt="keydown",$t="mousedown",St="focusin";function xt(t,e){return(e||document).querySelector(t)}function Ct(t){t.preventDefault(),t.stopPropagation()}function Mt(t,e,n,r,o){t.add(e,kt,(function(t){n.indexOf(t.key)>=0&&(o&&Ct(t),r(t))}))}var Et=function(){function t(e){pt(this,t),this.settings={popup:"right",layout:"default",alpha:!0,editor:!0,editorFormat:"hex",cancelButton:!1,defaultColor:"#0cf"},this._events=new wt,this.onChange=null,this.onDone=null,this.onOpen=null,this.onClose=null,this.setOptions(e)}return gt(t,[{key:"setOptions",value:function(t){var e=this;if(t){var n=this.settings;if(t instanceof HTMLElement)n.parent=t;else{n.parent&&t.parent&&n.parent!==t.parent&&(this._events.remove(n.parent),this._popupInited=!1),function(t,e,n){for(var r in t)n&&n.indexOf(r)>=0||(e[r]=t[r])}(t,n),t.onChange&&(this.onChange=t.onChange),t.onDone&&(this.onDone=t.onDone),t.onOpen&&(this.onOpen=t.onOpen),t.onClose&&(this.onClose=t.onClose);var r=t.color||t.colour;r&&this._setColor(r)}var o=n.parent;if(o&&n.popup&&!this._popupInited){var i=function(t){return e.openHandler(t)};this._events.add(o,"click",i),Mt(this._events,o,[" ","Spacebar","Enter"],i),this._popupInited=!0}else t.parent&&!n.popup&&this.show()}}},{key:"openHandler",value:function(t){if(this.show()){t&&t.preventDefault(),this.settings.parent.style.pointerEvents="none";var e=t&&t.type===kt?this._domEdit:this.domElement;setTimeout((function(){return e.focus()}),100),this.onOpen&&this.onOpen(this.colour)}}},{key:"closeHandler",value:function(t){var e=t&&t.type,n=!1;if(t)if(e===$t||e===St){var r=(this.__containedEvent||0)+100;t.timeStamp>r&&(n=!0)}else Ct(t),n=!0;else n=!0;n&&this.hide()&&(this.settings.parent.style.pointerEvents="",e!==$t&&this.settings.parent.focus(),this.onClose&&this.onClose(this.colour))}},{key:"movePopup",value:function(t,e){this.closeHandler(),this.setOptions(t),e&&this.openHandler()}},{key:"setColor",value:function(t,e){this._setColor(t,{silent:e})}},{key:"_setColor",value:function(t,e){if("string"==typeof t&&(t=t.trim()),t){e=e||{};var n=void 0;try{n=new bt(t)}catch(t){if(e.failSilently)return;throw t}if(!this.settings.alpha){var r=n.hsla;r[3]=1,n.hsla=r}this.colour=this.color=n,this._setHSLA(null,null,null,null,e)}}},{key:"setColour",value:function(t,e){this.setColor(t,e)}},{key:"show",value:function(){if(!this.settings.parent)return!1;if(this.domElement){var t=this._toggleDOM(!0);return this._setPosition(),t}var e,n,r=this.settings.template||'<div class="picker_wrapper" tabindex="-1"><div class="picker_arrow"></div><div class="picker_hue picker_slider"><div class="picker_selector"></div></div><div class="picker_sl"><div class="picker_selector"></div></div><div class="picker_alpha picker_slider"><div class="picker_selector"></div></div><div class="picker_editor"><input aria-label="Type a color name or hex value"/></div><div class="picker_sample"></div><div class="picker_done"><button>Ok</button></div><div class="picker_cancel"><button>Cancel</button></div></div>',o=(e=r,(n=document.createElement("div")).innerHTML=e,n.firstElementChild);return this.domElement=o,this._domH=xt(".picker_hue",o),this._domSL=xt(".picker_sl",o),this._domA=xt(".picker_alpha",o),this._domEdit=xt(".picker_editor input",o),this._domSample=xt(".picker_sample",o),this._domOkay=xt(".picker_done button",o),this._domCancel=xt(".picker_cancel button",o),o.classList.add("layout_"+this.settings.layout),this.settings.alpha||o.classList.add("no_alpha"),this.settings.editor||o.classList.add("no_editor"),this.settings.cancelButton||o.classList.add("no_cancel"),this._ifPopup((function(){return o.classList.add("popup")})),this._setPosition(),this.colour?this._updateUI():this._setColor(this.settings.defaultColor),this._bindEvents(),!0}},{key:"hide",value:function(){return this._toggleDOM(!1)}},{key:"destroy",value:function(){this._events.destroy(),this.domElement&&this.settings.parent.removeChild(this.domElement)}},{key:"_bindEvents",value:function(){var t=this,e=this,n=this.domElement,r=this._events;function o(t,e,n){r.add(t,e,n)}o(n,"click",(function(t){return t.preventDefault()})),_t(r,this._domH,(function(t,n){return e._setHSLA(t)})),_t(r,this._domSL,(function(t,n){return e._setHSLA(null,t,1-n)})),this.settings.alpha&&_t(r,this._domA,(function(t,n){return e._setHSLA(null,null,null,1-n)}));var i=this._domEdit;o(i,"input",(function(t){e._setColor(this.value,{fromEditor:!0,failSilently:!0})})),o(i,"focus",(function(t){var e=this;e.selectionStart===e.selectionEnd&&e.select()})),this._ifPopup((function(){var e=function(e){return t.closeHandler(e)};o(window,$t,e),o(window,St,e),Mt(r,n,["Esc","Escape"],e);var i=function(e){t.__containedEvent=e.timeStamp};o(n,$t,i),o(n,St,i),o(t._domCancel,"click",e)}));var l=function(e){t._ifPopup((function(){return t.closeHandler(e)})),t.onDone&&t.onDone(t.colour)};o(this._domOkay,"click",l),Mt(r,n,["Enter"],l)}},{key:"_setPosition",value:function(){var t=this.settings.parent,e=this.domElement;t!==e.parentNode&&t.appendChild(e),this._ifPopup((function(n){"static"===getComputedStyle(t).position&&(t.style.position="relative");var r=!0===n?"popup_right":"popup_"+n;["popup_top","popup_bottom","popup_left","popup_right"].forEach((function(t){t===r?e.classList.add(t):e.classList.remove(t)})),e.classList.add(r)}))}},{key:"_setHSLA",value:function(t,e,n,r,o){o=o||{};var i=this.colour,l=i.hsla;[t,e,n,r].forEach((function(t,e){(t||0===t)&&(l[e]=t)})),i.hsla=l,this._updateUI(o),this.onChange&&!o.silent&&this.onChange(i)}},{key:"_updateUI",value:function(t){if(this.domElement){t=t||{};var e=this.colour,n=e.hsla,r="hsl("+360*n[0]+", 100%, 50%)",o=e.hslString,i=e.hslaString,l=this._domH,s=this._domSL,a=this._domA,c=xt(".picker_selector",l),u=xt(".picker_selector",s),f=xt(".picker_selector",a);y(0,c,n[0]),this._domSL.style.backgroundColor=this._domH.style.color=r,y(0,u,n[1]),b(0,u,1-n[2]),s.style.color=o,b(0,f,1-n[3]);var h=o,d=h.replace("hsl","hsla").replace(")",", 0)"),p="linear-gradient("+[h,d]+")";if(this._domA.style.background=p+", linear-gradient(45deg, lightgrey 25%, transparent 25%, transparent 75%, lightgrey 75%) 0 0 / 2em 2em,\n linear-gradient(45deg, lightgrey 25%, white 25%, white 75%, lightgrey 75%) 1em 1em / 2em 2em",!t.fromEditor){var g=this.settings.editorFormat,m=this.settings.alpha,v=void 0;switch(g){case"rgb":v=e.printRGB(m);break;case"hsl":v=e.printHSL(m);break;default:v=e.printHex(m)}this._domEdit.value=v}this._domSample.style.color=i}function y(t,e,n){e.style.left=100*n+"%"}function b(t,e,n){e.style.top=100*n+"%"}}},{key:"_ifPopup",value:function(t,e){this.settings.parent&&this.settings.popup?t&&t(this.settings.popup):e&&e()}},{key:"_toggleDOM",value:function(t){var e=this.domElement;if(!e)return!1;var n=t?"":"none",r=e.style.display!==n;return r&&(e.style.display=n),r}}]),t}();function Lt(e){let n;return{c(){n=u("div")},m(t,r){s(t,n,r),e[6](n)},p:t,i:t,o:t,d(t){t&&a(n),e[6](null)}}}function Tt(t,e,n){let r,o,{value:i="#AAAAAAFF"}=e,{options:l={}}=e,{onChange:s=(()=>{})}=e;function a(t){var e;(e=t.hex)!==i&&(s(e,i),n(1,i=e))}return k((()=>{!function(t){if(!r)return;o&&o.destroy();t.onChange=a,n(5,o=new Et({parent:r,color:i,popup:!1,...t})),o.show(),o.openHandler()}(l)})),$((()=>{o.destroy()})),t.$$set=t=>{"value"in t&&n(1,i=t.value),"options"in t&&n(2,l=t.options),"onChange"in t&&n(3,s=t.onChange)},t.$$.update=()=>{34&t.$$.dirty&&o&&o.setColor(i)},[r,i,l,s,function(t){o.setColor(t)},o,function(t){x[t?"unshift":"push"]((()=>{r=t,n(0,r)}))}]}var At=class extends W{constructor(t){super(),z(this,t,Tt,Lt,i,{value:1,options:2,onChange:3,setColor:4})}get setColor(){return this.$$.ctx[4]}};const Nt=new Set(["Arial","Arial Black","Bahnschrift","Calibri","Cambria","Cambria Math","Candara","Comic Sans MS","Consolas","Constantia","Corbel","Courier New","Ebrima","Franklin Gothic Medium","Gabriola","Gadugi","Georgia","HoloLens MDL2 Assets","Impact","Ink Free","Javanese Text","Leelawadee UI","Lucida Console","Lucida Sans Unicode","Malgun Gothic","Marlett","Microsoft Himalaya","Microsoft JhengHei","Microsoft New Tai Lue","Microsoft PhagsPa","Microsoft Sans Serif","Microsoft Tai Le","Microsoft YaHei","Microsoft Yi Baiti","MingLiU-ExtB","Mongolian Baiti","MS Gothic","MV Boli","Myanmar Text","Nirmala UI","Palatino Linotype","Segoe MDL2 Assets","Segoe Print","Segoe Script","Segoe UI","Segoe UI Historic","Segoe UI Emoji","Segoe UI Symbol","SimSun","Sitka","Sylfaen","Symbol","Tahoma","Times New Roman","Trebuchet MS","Verdana","Webdings","Wingdings","Yu Gothic","American Typewriter","Andale Mono","Arial","Arial Black","Arial Narrow","Arial Rounded MT Bold","Arial Unicode MS","Avenir","Avenir Next","Avenir Next Condensed","Baskerville","Big Caslon","Bodoni 72","Bodoni 72 Oldstyle","Bodoni 72 Smallcaps","Bradley Hand","Brush Script MT","Chalkboard","Chalkboard SE","Chalkduster","Charter","Cochin","Comic Sans MS","Copperplate","Courier","Courier New","Didot","DIN Alternate","DIN Condensed","Futura","Geneva","Georgia","Gill Sans","Helvetica","Helvetica Neue","Herculanum","Hoefler Text","Impact","Lucida Grande","Luminari","Marker Felt","Menlo","Microsoft Sans Serif","Monaco","Noteworthy","Optima","Palatino","Papyrus","Phosphate","Rockwell","Savoye LET","SignPainter","Skia","Snell Roundhand","Tahoma","Times","Times New Roman","Trattatello","Trebuchet MS","Verdana","Zapfino"].sort());function Ht(){let{fonts:t}=document;const e=t.entries();let n=[],r=!1;for(;!r;){const t=e.next();t.done?r=t.done:n.push(t.value[0].family)}return[...new Set(n)]}function Ot(t,e,n){const r=t.slice();r[62]=e[n],r[64]=e,r[65]=n;const o=r[62].props[r[62].selected];return r[63]=o,r}function Dt(t,e,n){const r=t.slice();return r[66]=e[n],r}function Pt(t,e,n){const r=t.slice();return r[69]=e[n],r[71]=n,r}function Rt(t,e,n){const r=t.slice();return r[72]=e[n],r[74]=n,r}function Bt(t,e,n){const r=t.slice();return r[75]=e[n],r[77]=n,r}function It(t,e,n){const r=t.slice();return r[78]=e[n],r[80]=n,r}function jt(t){let e,n,r,o=t[1],i=[];for(let e=0;e<o.length;e+=1)i[e]=Ft(It(t,o,e));return{c(){e=u("div"),n=u("b"),n.textContent="Elem",r=d();for(let t=0;t<i.length;t+=1)i[t].c();m(e,"class","select-tab")},m(t,o){s(t,e,o),l(e,n),l(e,r);for(let t=0;t<i.length;t+=1)i[t].m(e,null)},p(t,n){if(50&n[0]){let r;for(o=t[1],r=0;r<o.length;r+=1){const l=It(t,o,r);i[r]?i[r].p(l,n):(i[r]=Ft(l),i[r].c(),i[r].m(e,null))}for(;r<i.length;r+=1)i[r].d(1);i.length=o.length}},d(t){t&&a(e),c(i,t)}}}function Ft(t){let e,n,r,o,i,c;function f(){return t[32](t[80])}return{c(){e=u("span"),n=h("Elem "),r=h(t[80]),o=d(),y(e,"selected",t[4]===t[80])},m(t,a){s(t,e,a),l(e,n),l(e,r),l(e,o),i||(c=g(e,"click",f),i=!0)},p(n,r){t=n,16&r[0]&&y(e,"selected",t[4]===t[80])},d(t){t&&a(e),i=!1,c()}}}function Gt(t){let e,n,r,o,i,c=t[75]+"";function f(){return t[33](t[77])}return{c(){e=u("span"),n=h(c),m(e,"title",r=t[75]),y(e,"selected",t[5]===t[77])},m(t,r){s(t,e,r),l(e,n),o||(i=g(e,"click",f),o=!0)},p(o,i){t=o,20&i[0]&&c!==(c=t[75]+"")&&v(n,c),20&i[0]&&r!==(r=t[75])&&m(e,"title",r),32&i[0]&&y(e,"selected",t[5]===t[77])},d(t){t&&a(e),o=!1,i()}}}function qt(t){let e,n,r,o,i,c=t[72]+"";function f(){return t[34](t[74])}return{c(){e=u("span"),n=h(c),r=d(),y(e,"selected",t[6]===t[74])},m(t,a){s(t,e,a),l(e,n),l(e,r),o||(i=g(e,"click",f),o=!0)},p(r,o){t=r,24&o[0]&&c!==(c=t[72]+"")&&v(n,c),64&o[0]&&y(e,"selected",t[6]===t[74])},d(t){t&&a(e),o=!1,i()}}}function Ut(t){let e,n=("custom"!==t[72]||"inline"===t[16]&&"custom"===t[72]&&t[15])&&qt(t);return{c(){n&&n.c(),e=p()},m(t,r){n&&n.m(t,r),s(t,e,r)},p(t,r){"custom"!==t[72]||"inline"===t[16]&&"custom"===t[72]&&t[15]?n?n.p(t,r):(n=qt(t),n.c(),n.m(e.parentNode,e)):n&&(n.d(1),n=null)},d(t){n&&n.d(t),t&&a(e)}}}function zt(t){let e,n,r,o=t[12],i=[];for(let e=0;e<o.length;e+=1)i[e]=te(Ot(t,o,e));const f=t=>G(i[t],1,1,(()=>{i[t]=null}));let h="inline"===t[16]&&null!==t[14][t[4]]&&ee(t);return{c(){e=u("div");for(let t=0;t<i.length;t+=1)i[t].c();n=d(),h&&h.c(),m(e,"class","editor")},m(t,o){s(t,e,o);for(let t=0;t<i.length;t+=1)i[t].m(e,null);l(e,n),h&&h.m(e,null),r=!0},p(t,r){if(1323008&r[0]){let l;for(o=t[12],l=0;l<o.length;l+=1){const s=Ot(t,o,l);i[l]?(i[l].p(s,r),F(i[l],1)):(i[l]=te(s),i[l].c(),F(i[l],1),i[l].m(e,n))}for(I(),l=o.length;l<i.length;l+=1)f(l);j()}"inline"===t[16]&&null!==t[14][t[4]]?h?h.p(t,r):(h=ee(t),h.c(),h.m(e,null)):h&&(h.d(1),h=null)},i(t){if(!r){for(let t=0;t<o.length;t+=1)F(i[t]);r=!0}},o(t){i=i.filter(Boolean);for(let t=0;t<i.length;t+=1)G(i[t]);r=!1},d(t){t&&a(e),c(i,t),h&&h.d()}}}function Wt(t){let e,n,r=t[63]+"";return{c(){e=u("span"),n=h(r)},m(t,r){s(t,e,r),l(e,n)},p(t,e){4096&e[0]&&r!==(r=t[63]+"")&&v(n,r)},d(t){t&&a(e)}}}function Yt(t){let e,n,r,o,i=t[62].props,f=[];for(let e=0;e<i.length;e+=1)f[e]=Xt(Pt(t,i,e));function h(...e){return t[35](t[62],t[64],t[65],...e)}return{c(){e=u("div"),n=u("select");for(let t=0;t<f.length;t+=1)f[t].c()},m(t,i){s(t,e,i),l(e,n);for(let t=0;t<f.length;t+=1)f[t].m(n,null);r||(o=g(n,"change",h),r=!0)},p(e,r){if(t=e,4096&r[0]){let e;for(i=t[62].props,e=0;e<i.length;e+=1){const o=Pt(t,i,e);f[e]?f[e].p(o,r):(f[e]=Xt(o),f[e].c(),f[e].m(n,null))}for(;e<f.length;e+=1)f[e].d(1);f.length=i.length}},d(t){t&&a(e),c(f,t),r=!1,o()}}}function Xt(t){let e,n,r,o,i=t[69]+"";return{c(){e=u("option"),n=h(i),r=d(),e.selected=o=t[71]===t[62].selected,e.__value=t[71],e.value=e.__value},m(t,o){s(t,e,o),l(e,n),l(e,r)},p(t,r){4096&r[0]&&i!==(i=t[69]+"")&&v(n,i),4096&r[0]&&o!==(o=t[71]===t[62].selected)&&(e.selected=o)},d(t){t&&a(e)}}}function Vt(t){let e,n;function r(...e){return t[39](t[63],...e)}return e=new At({props:{value:t[13][t[63]].value,onChange:r}}),{c(){var t;(t=e.$$.fragment)&&t.c()},m(t,r){q(e,t,r),n=!0},p(n,o){t=n;const i={};12288&o[0]&&(i.value=t[13][t[63]].value),4096&o[0]&&(i.onChange=r),e.$set(i)},i(t){n||(F(e.$$.fragment,t),n=!0)},o(t){G(e.$$.fragment,t),n=!1},d(t){U(e,t)}}}function Jt(e){let n,r,o,i,f=!e[62].includes(e[13][e[63]].value),h=f&&Kt(),d=e[62],m=[];for(let t=0;t<d.length;t+=1)m[t]=Qt(Dt(e,d,t));function v(...t){return e[38](e[63],...t)}return{c(){n=u("select"),h&&h.c(),r=p();for(let t=0;t<m.length;t+=1)m[t].c()},m(t,e){s(t,n,e),h&&h.m(n,null),l(n,r);for(let t=0;t<m.length;t+=1)m[t].m(n,null);o||(i=g(n,"change",v),o=!0)},p(t,o){if(e=t,12288&o[0]&&(f=!e[62].includes(e[13][e[63]].value)),f?h||(h=Kt(),h.c(),h.m(n,r)):h&&(h.d(1),h=null),12288&o[0]){let t;for(d=e[62],t=0;t<d.length;t+=1){const r=Dt(e,d,t);m[t]?m[t].p(r,o):(m[t]=Qt(r),m[t].c(),m[t].m(n,null))}for(;t<m.length;t+=1)m[t].d(1);m.length=d.length}},i:t,o:t,d(t){t&&a(n),h&&h.d(),c(m,t),o=!1,i()}}}function Zt(e){let n,r,o,i,c,f,p,y,b,w,_=e[13][e[63]].displayed+"";function k(...t){return e[37](e[63],...t)}return{c(){n=u("input"),f=d(),p=u("span"),y=h(_),m(n,"type","range"),m(n,"min",r=e[13][e[63]].min),m(n,"max",o=e[13][e[63]].max),m(n,"step",i=e[13][e[63]].step||1),n.value=c=e[13][e[63]].value,m(p,"class","current-value")},m(t,e){s(t,n,e),s(t,f,e),s(t,p,e),l(p,y),b||(w=g(n,"change",k),b=!0)},p(t,l){e=t,12288&l[0]&&r!==(r=e[13][e[63]].min)&&m(n,"min",r),12288&l[0]&&o!==(o=e[13][e[63]].max)&&m(n,"max",o),12288&l[0]&&i!==(i=e[13][e[63]].step||1)&&m(n,"step",i),12288&l[0]&&c!==(c=e[13][e[63]].value)&&(n.value=c),12288&l[0]&&_!==(_=e[13][e[63]].displayed+"")&&v(y,_)},i:t,o:t,d(t){t&&a(n),t&&a(f),t&&a(p),b=!1,w()}}}function Kt(t){let e;return{c(){e=u("option"),e.textContent="--- ",e.selected="true",e.__value=" --- ",e.value=e.__value},m(t,n){s(t,e,n)},d(t){t&&a(e)}}}function Qt(t){let e,n,r,o,i=t[66]+"";return{c(){e=u("option"),n=h(i),e.selected=r=t[66]==t[13][t[63]].value||null,e.__value=o=" "+t[66]+" ",e.value=e.__value},m(t,r){s(t,e,r),l(e,n)},p(t,l){12288&l[0]&&i!==(i=t[66]+"")&&v(n,i),12288&l[0]&&r!==(r=t[66]==t[13][t[63]].value||null)&&(e.selected=r),12288&l[0]&&o!==(o=" "+t[66]+" ")&&(e.__value=o,e.value=e.__value)},d(t){t&&a(e)}}}function te(t){let e,n,r,o,i,c,f,h,p;function v(t,e){return t[62].props.length>1?Yt:Wt}let y=v(t),b=y(t);function w(){return t[36](t[63])}const _=[Zt,Jt,Vt],k=[];function $(t,e){return"slider"===t[62].type?0:"select"==t[62].type?1:"color"==t[62].type?2:-1}function S(t,e){return 1===e?function(t){const e=t.slice(),n=e[13][e[63]].choices();return e[62]=n,e}(t):t}return~(i=$(t))&&(c=k[i]=_[i](S(t,i))),{c(){e=u("div"),b.c(),n=d(),r=u("span"),r.textContent="✕",o=d(),c&&c.c(),m(r,"class","delete"),m(e,"class","prop-section")},m(t,a){s(t,e,a),b.m(e,null),l(e,n),l(e,r),l(e,o),~i&&k[i].m(e,null),f=!0,h||(p=g(r,"click",w),h=!0)},p(r,o){y===(y=v(t=r))&&b?b.p(t,o):(b.d(1),b=y(t),b&&(b.c(),b.m(e,n)));let l=i;i=$(t),i===l?~i&&k[i].p(S(t,i),o):(c&&(I(),G(k[l],1,1,(()=>{k[l]=null})),j()),~i?(c=k[i],c?c.p(S(t,i),o):(c=k[i]=_[i](S(t,i)),c.c()),F(c,1),c.m(e,null)):c=null)},i(t){f||(F(c),f=!0)},o(t){G(c),f=!1},d(t){t&&a(e),b.d(),~i&&k[i].d(),h=!1,p()}}}function ee(t){let e,n,r;return{c(){e=u("div"),e.textContent="Bring to front",m(e,"class","btn"),y(e,"active",!0===t[14][t[4]])},m(o,i){s(o,e,i),n||(r=g(e,"click",t[19]),n=!0)},p(t,n){16400&n[0]&&y(e,"active",!0===t[14][t[4]])},d(t){t&&a(e),n=!1,r()}}}function ne(t){let e,n,o,i,h,p,v,y,b,w,_,k,$,S,x,C,M,E,L,T,A,N,H,O,D=t[1].length>1&&jt(t),P=ae(t[2][t[4]]),R=[];for(let e=0;e<P.length;e+=1)R[e]=Gt(Bt(t,P,e));let B=t[3][t[4]]||[],q=[];for(let e=0;e<B.length;e+=1)q[e]=Ut(Rt(t,B,e));let U=t[3][t[4]]&&zt(t);return{c(){e=u("div"),n=d(),o=f("svg"),i=f("clipPath"),h=f("path"),p=f("rect"),b=d(),w=u("div"),_=u("div"),_.textContent="x",k=d(),D&&D.c(),$=d(),S=u("div"),x=u("b"),x.textContent="Rule:",C=d();for(let t=0;t<R.length;t+=1)R[t].c();M=d(),E=u("div"),L=u("b"),L.textContent="Property type:",T=d();for(let t=0;t<q.length;t+=1)q[t].c();var r,l,s,a;A=d(),U&&U.c(),r=e,l="position",null===(s="absolute")?r.style.removeProperty(l):r.style.setProperty(l,s,a?"important":""),m(h,"d",t[10]),m(i,"id","overlay-clip"),m(i,"clip-rule","evenodd"),m(p,"y","0"),m(p,"x","0"),m(p,"height","100%"),m(p,"width","100%"),m(p,"class","overlay-over"),m(o,"class","ise-helper-wrapper"),m(o,"version","1.1"),m(o,"xmlns","http://www.w3.org/2000/svg"),m(o,"xmlns:xlink","http://www.w3.org/1999/xlink"),m(o,"width",v=t[11].width),m(o,"height",y=t[11].height),m(_,"class","close-button"),m(S,"class","select-tab"),m(E,"class","select-tab"),m(w,"class","ise")},m(r,a){s(r,e,a),t[30](e),s(r,n,a),s(r,o,a),l(o,i),l(i,h),l(o,p),t[31](o),s(r,b,a),s(r,w,a),l(w,_),l(w,k),D&&D.m(w,null),l(w,$),l(w,S),l(S,x),l(S,C);for(let t=0;t<R.length;t+=1)R[t].m(S,null);l(w,M),l(w,E),l(E,L),l(E,T);for(let t=0;t<q.length;t+=1)q[t].m(E,null);l(w,A),U&&U.m(w,null),t[40](w),N=!0,H||(O=[g(o,"click",t[17]),g(_,"click",t[0])],H=!0)},p(t,e){if((!N||1024&e[0])&&m(h,"d",t[10]),(!N||2048&e[0]&&v!==(v=t[11].width))&&m(o,"width",v),(!N||2048&e[0]&&y!==(y=t[11].height))&&m(o,"height",y),t[1].length>1?D?D.p(t,e):(D=jt(t),D.c(),D.m(w,$)):D&&(D.d(1),D=null),2097204&e[0]){let n;for(P=ae(t[2][t[4]]),n=0;n<P.length;n+=1){const r=Bt(t,P,n);R[n]?R[n].p(r,e):(R[n]=Gt(r),R[n].c(),R[n].m(S,null))}for(;n<R.length;n+=1)R[n].d(1);R.length=P.length}if(98392&e[0]){let n;for(B=t[3][t[4]]||[],n=0;n<B.length;n+=1){const r=Rt(t,B,n);q[n]?q[n].p(r,e):(q[n]=Ut(r),q[n].c(),q[n].m(E,null))}for(;n<q.length;n+=1)q[n].d(1);q.length=B.length}t[3][t[4]]?U?(U.p(t,e),24&e[0]&&F(U,1)):(U=zt(t),U.c(),F(U,1),U.m(w,null)):U&&(I(),G(U,1,1,(()=>{U=null})),j())},i(t){N||(F(U),N=!0)},o(t){G(U),N=!1},d(i){i&&a(e),t[30](null),i&&a(n),i&&a(o),t[31](null),i&&a(b),i&&a(w),D&&D.d(),c(R,i),c(q,i),U&&U.d(),t[40](null),H=!1,r(O)}}}const re="text",oe="border",ie="stroke",le="background",se="custom";function ae(t){return t?t.map(((t,e)=>{if("inline"===t)return"inline";const n=t.selectorText;return`${t.parentStyleSheet.title||`${e}`}: ${n}`})):[]}function ce(t,e=0){const n=t.getBoundingClientRect();return{left:n.left+window.scrollX-e,top:n.top+window.scrollY-e,width:n.width+2*e,height:n.height+2*e,right:n.left+window.scrollX+n.width+e,bottom:n.top+window.scrollY+n.height+e}}function ue(t,e="number"){if("raw"==e)return t;if("number"==e&&/[0-9]+(px)|(em)|(rem)/.test(t))return parseInt(t);if("rgb"==e){if("none"===t)return"#00000000";if(t.includes("rgb")||"#"==t[0])return function(t){const e=t.match(/[0-9\.]+/g).map((t=>parseFloat(t)));return 3===e.length&&e.push(1),e.reduce(((t,e,n)=>t+(3===n?Math.round(255*e).toString(16).padStart(2,"0"):e.toString(16).padStart(2,"0"))),"#")}(t)}return t}function fe(t,e,n){let r,o;const i=["altGlyph","circle","ellipse","line","path","polygon","polyline","rect","text","textPath","tref","tspan"],l={"border-radius":{type:"slider",min:0,max:30,suffix:"px"},"border-width":{type:"slider",min:0,max:30,suffix:"px"},"border-style":{type:"select",choices:()=>["none","dotted","dashed","solid","double","groove","ridge","inset","outset"]},"border-color":{type:"color"},"font-family":{type:"select",choices:function(){return function(){const t=new Set;for(const e of Nt.values())document.fonts.check(`12px "${e}"`)&&t.add(e);return[...Ht(),...t.values()]}()}},"font-size":{type:"slider",min:0,max:40,suffix:"px"},"font-weight":{type:"slider",min:0,max:800},color:{type:"color"},"stroke-width":{type:"slider",min:0,max:20,step:.5,suffix:"px"},stroke:{type:"color"},"stroke-linejoin":{type:"select",choices:()=>["bevel","miter","round"]},fill:{type:"color"},"stroke-dasharray":{type:"slider",min:0,max:30,suffix:"px"},"background-color":{type:"color"}};let{getAdditionalElems:s=(()=>[])}=e,{listenOnClick:a=!1}=e,{onStyleChanged:c=(()=>{})}=e,{customProps:u={}}=e;const f={[re]:["font-family","font-size","font-weight","color"],[oe]:["border-radius","border-width","border-color","border-style"],[ie]:["stroke-width","stroke","stroke-dasharray","stroke-linejoin","fill"],[le]:["background-color"],[se]:Object.keys(u)},h={slider:0,select:1,color:2};let d,p,g,m,v,y=null,b="",w={width:0,height:0},_=[],S=[],C=[],M=0,E=0,L=0,T={},N=[],H=!1;function O(){const t={...l,...u},e=(o=t,f[v].reduce(((t,e)=>(t[e]=o[e],t)),{}));var o;Object.keys(e).forEach((t=>{const n=e[t].type;let o="number";if("color"===n?o="rgb":"select"===n&&(o="raw"),e[t].getter){const n=e[t].getter(r);if(null===n)return void delete e[t];e[t].value=n,e[t].displayed=n}else e[t].displayed=U(r,t,"raw"),e[t].value=U(r,t,o)})),n(12,m=Object.entries(e).reduce(((t,[e,n])=>{const r=n.type,o=t.find((t=>t.type===r));return o?o.props.push(e):t.push({selected:0,props:[e],type:r}),t}),[]).sort(((t,e)=>h[t.type]<h[e.type]?-1:h[t.type]>h[e.type]?1:0))),n(13,T=e),F()}k((()=>{B(),n(28,y=p.parentNode),document.body.appendChild(p),document.body.appendChild(g),document.body.appendChild(d),q(),setTimeout((()=>{q()}),1e3),window.addEventListener("resize",q)})),$((()=>{window.removeEventListener("resize",q),a&&y.removeEventListener("click",getTargetsAndRules)}));let D=new Set;function P(t){R(t.target,t.pageX,t.pageY)}async function R(t,e,r){if(q(),t.classList.contains("overlay-over"))return I();if(!p.contains(t)){n(4,M=0),n(5,E=0),n(6,L=0),n(14,N=[]),n(3,C=[]),n(2,S=[]),n(1,_=[t,...s(t)]),n(3,C=_.reduce(((t,e)=>{const n=[];e.firstChild&&3===e.firstChild.nodeType&&n.push(re);const r=e.tagName.toLowerCase();let o=!1;return i.includes(r)?(n.push(ie),"g"===e.parentElement.tagName.toLowerCase()&&e.previousElementSibling&&e.previousElementSibling.tagName.toLowerCase()==r&&(o=!0)):(n.push(oe),n.push(le)),o?N.push(!0):N.push(null),t.push(n),t}),[])),n(15,H=!1),n(2,S=function(t){const e=document.styleSheets;return t.reduce(((t,n)=>{const r=["inline"];for(let t in e)try{const o=e[t].cssRules;for(let t in o){let e=o[t].selectorText;!e||o[t].selectorText.length>50||e.split(",").some((t=>"*"===t))||(e.endsWith(":hover")&&(e=e.substring(0,e.length-":hover".length)),n.matches(e)&&r.push(o[t]))}}catch(n){D.has(t)||(console.log("Style editor: Not able to access",e[t].ownerNode,"sheet. Try CORS loading the sheet if you want to edit it."),D.add(t))}return t.push(r),t}),[])}(_));for(let e of Object.values(u))if(null!==e.getter(t)){n(15,H=!0);break}if(Object.keys(u).length&&C[0].push(se),await A(),O(),e&&r)j(e,r);else{const e=ce(t,15);j(e.left,e.top)}}}function B(){n(8,p.style.display="none",p),n(9,g.style.display="none",g),n(10,b="")}function I(){B()}function j(t,e){n(8,p.style.display="block",p),n(8,p.style.opacity=0,p);const r=p.getBoundingClientRect();t=t+r.width+20>w.width?t-r.width-20:t+20,e=e+r.height+20>w.height?e-r.height-20:e+20,n(8,p.style.left=t+"px",p),n(8,p.style.top=e+"px",p),n(9,g.style.display="block",g),n(8,p.style.opacity=1,p),F()}async function F(){if(await A(),!o)return;let t;if("inline"===o)t=[r];else{const e=o.selectorText.replace(/(:hover)|:focus/g,"");t=Array.from(document.querySelectorAll(e))}const e=t.map((t=>ce(t,10)));n(10,b=function(t,e){let n=function({width:t,height:e,top:n=0,left:r=0}){return`M${r} ${n} v${e} h${t} v-${e}z`}({width:e.width,height:e.height});if(t.length<10&&!function(t){for(let r=0;r<t.length-1;++r){const o=t[r];for(let i=r+1;i<t.length;++i)if(e=o,n=t[i],e.right>=n.left&&n.right>=e.left&&e.bottom>=n.top&&n.bottom>=e.top)return!0}var e,n;return!1}(t)){for(const e of t)n=`${n} ${dt(e)}`;return n}const r=Math.min(...t.map((t=>t.left))),o=Math.min(...t.map((t=>t.top))),i=t.map((t=>(t.left=t.left-r,t.right=t.right-r,t.top=t.top-o,t.bottom=t.bottom-o,t)));i.sort(((t,e)=>t.left>e.left?1:t.left<e.left?-1:0));const l=Math.ceil(Math.max(...i.map((t=>t.right)))),s=Math.ceil(Math.max(...i.map((t=>t.bottom)))),a=l*s/2e4,c=Math.ceil(l/a),u=Math.ceil(s/a),f=l/c,h=s/u,d=new Array(c*u);for(let t=0,e=0;t<u;++t)for(let n=0;n<c;++n,++e)d[e]=ht({x:n*a,y:t*a},i)?1:0;const p=ut().size([c,u]).thresholds([1])(d)[0];let g="";for(let t of p.coordinates)for(let e of t){for(let t=0;t<e.length;++t){const n=e[t],i=n[0]*f+r,l=n[1]*h+o;g+=t?`L ${i} ${l}`:`M${i} ${l}`}g+="Z"}return`${n} ${g}`}(e,w))}const G=function(t,e,n=!1){let r;return function(){const o=this,i=arguments,l=function(){r=null,n||t.apply(o,i)},s=n&&!r;clearTimeout(r),r=setTimeout(l,e),s&&t.apply(o,i)}}((function(t,e,i){const l=i?e+i:e;if("inline"===o)if(T[t].setter)T[t].setter(r,e);else{r.style[t]=l}else o.style.setProperty(t,l);n(13,T[t].value=e,T),n(13,T[t].displayed=l,T),c(r,o,t,l),F()}),100);function q(){const t=getComputedStyle(document.body),e=parseInt(t.marginLeft),r=parseInt(t.marginRight),o=parseInt(t.marginTop),i=parseInt(t.marginBottom);n(11,w={width:document.body.offsetWidth+e+r,height:document.body.offsetHeight+o+i})}function U(t,e,n="number"){let r=o?.style?.[e];if(!r){r=getComputedStyle(t)[e]}return ue(r,n)}function z(t){"inline"===o?r.style.removeProperty(t):o.style.removeProperty(t),c(r,o,t,null),O()}function W(t){const e=S[M]?.[t];"inline"!==e&&L===C[M].length-1&&n(6,L=0),n(5,E=t)}return t.$$set=t=>{"getAdditionalElems"in t&&n(22,s=t.getAdditionalElems),"listenOnClick"in t&&n(23,a=t.listenOnClick),"onStyleChanged"in t&&n(24,c=t.onStyleChanged),"customProps"in t&&n(25,u=t.customProps)},t.$$.update=()=>{268435456&t.$$.dirty[0]&&null!==y&&a&&y.addEventListener("click",P),18&t.$$.dirty[0]&&(r=_[M]),52&t.$$.dirty[0]&&n(16,o=S[M]?.[E]),536871e3&t.$$.dirty[0]&&C[M]?.[L]!==v&&n(29,v=C[M]?.[L]),536870960&t.$$.dirty[0]&&(v||E||M)&&O()},[B,_,S,C,M,E,L,d,p,g,b,w,m,T,N,H,o,I,G,function(){n(14,N[M]=!1,N),r.parentNode.appendChild(r),c(r,o,"bringtofront",null)},z,W,s,a,c,u,R,function(){return"block"===p.style.display},y,v,function(t){x[t?"unshift":"push"]((()=>{d=t,n(7,d)}))},function(t){x[t?"unshift":"push"]((()=>{g=t,n(9,g)}))},t=>{n(4,M=t),n(5,E=0)},t=>{W(t)},t=>{n(6,L=t)},async(t,e,r,o)=>{n(12,e[r].selected=o.target.value,m),await A()},t=>z(t),(t,e)=>G(t,e.target.value,T[t].suffix,e.target),(t,e)=>G(t,e.target.value),(t,e)=>G(t,e),function(t){x[t?"unshift":"push"]((()=>{p=t,n(8,p)}))}]}var he=class extends W{constructor(t){super(),z(this,t,fe,ne,i,{getAdditionalElems:22,listenOnClick:23,onStyleChanged:24,customProps:25,open:26,close:0,isOpened:27},null,[-1,-1,-1])}get open(){return this.$$.ctx[26]}get close(){return this.$$.ctx[0]}get isOpened(){return this.$$.ctx[27]}};return class{constructor(t){return new he({target:document.body,props:t})}}}));
|
|
@@ -3666,13 +3666,13 @@ function instance($$self, $$props, $$invalidate) {
|
|
|
3666
3666
|
$$invalidate(8, self.style.opacity = 0, self);
|
|
3667
3667
|
const popupDimension = self.getBoundingClientRect();
|
|
3668
3668
|
|
|
3669
|
-
x = x + popupDimension.width > pageDimensions.width
|
|
3670
|
-
? x - popupDimension.width
|
|
3671
|
-
: x +
|
|
3669
|
+
x = x + popupDimension.width + 20 > pageDimensions.width
|
|
3670
|
+
? x - popupDimension.width - 20
|
|
3671
|
+
: x + 20;
|
|
3672
3672
|
|
|
3673
|
-
y = y + popupDimension.height > pageDimensions.height
|
|
3674
|
-
? y - popupDimension.height
|
|
3675
|
-
: y +
|
|
3673
|
+
y = y + popupDimension.height + 20 > pageDimensions.height
|
|
3674
|
+
? y - popupDimension.height - 20
|
|
3675
|
+
: y + 20;
|
|
3676
3676
|
|
|
3677
3677
|
$$invalidate(8, self.style.left = x + "px", self);
|
|
3678
3678
|
$$invalidate(8, self.style.top = y + "px", self);
|
package/package.json
CHANGED
|
@@ -268,8 +268,8 @@
|
|
|
268
268
|
self.style.display = "block";
|
|
269
269
|
self.style.opacity = 0;
|
|
270
270
|
const popupDimension = self.getBoundingClientRect();
|
|
271
|
-
x = (x + popupDimension.width > pageDimensions.width) ? x - popupDimension.width : x +
|
|
272
|
-
y = (y + popupDimension.height > pageDimensions.height) ? y - popupDimension.height : y +
|
|
271
|
+
x = (x + popupDimension.width + 20 > pageDimensions.width) ? x - popupDimension.width - 20: x + 20;
|
|
272
|
+
y = (y + popupDimension.height + 20 > pageDimensions.height) ? y - popupDimension.height - 20 : y + 20;
|
|
273
273
|
self.style.left = x + "px";
|
|
274
274
|
self.style.top = y + "px";
|
|
275
275
|
helperElemWrapper.style.display = "block";
|
package/stats.html
CHANGED
|
@@ -4014,7 +4014,7 @@ var drawChart = (function (exports) {
|
|
|
4014
4014
|
</script>
|
|
4015
4015
|
<script>
|
|
4016
4016
|
/*<!--*/
|
|
4017
|
-
const data = {"version":2,"tree":{"name":"root","children":[{"name":"inline-style-editor.js","children":[{"name":"node_modules","children":[{"name":"svelte/internal/index.mjs","uid":"0abb-106"},{"name":"d3-array/src","children":[{"uid":"0abb-110","name":"ascending.js"},{"uid":"0abb-112","name":"descending.js"},{"uid":"0abb-114","name":"bisector.js"},{"uid":"0abb-116","name":"number.js"},{"uid":"0abb-118","name":"bisect.js"},{"uid":"0abb-120","name":"count.js"},{"uid":"0abb-122","name":"extent.js"},{"uid":"0abb-124","name":"ticks.js"},{"name":"threshold/sturges.js","uid":"0abb-126"}]},{"name":"d3-contour/src","children":[{"uid":"0abb-128","name":"array.js"},{"uid":"0abb-130","name":"ascending.js"},{"uid":"0abb-132","name":"area.js"},{"uid":"0abb-134","name":"constant.js"},{"uid":"0abb-136","name":"contains.js"},{"uid":"0abb-138","name":"noop.js"},{"uid":"0abb-140","name":"contours.js"}]},{"name":"vanilla-picker/dist/vanilla-picker.csp.mjs","uid":"0abb-144"}]},{"name":"src","children":[{"name":"util","children":[{"uid":"0abb-108","name":"util.js"},{"uid":"0abb-142","name":"boxesContour.js"},{"uid":"0abb-148","name":"fonts.js"}]},{"name":"components","children":[{"uid":"0abb-146","name":"ColorPicker.svelte"},{"uid":"0abb-150","name":"InlineStyleEditor.svelte"}]},{"uid":"0abb-152","name":"index.js"}]}]}],"isRoot":true},"nodeParts":{"0abb-106":{"renderedLength":12388,"gzipLength":0,"brotliLength":0,"mainUid":"0abb-105"},"0abb-108":{"renderedLength":674,"gzipLength":0,"brotliLength":0,"mainUid":"0abb-107"},"0abb-110":{"renderedLength":125,"gzipLength":0,"brotliLength":0,"mainUid":"0abb-109"},"0abb-112":{"renderedLength":156,"gzipLength":0,"brotliLength":0,"mainUid":"0abb-111"},"0abb-114":{"renderedLength":1664,"gzipLength":0,"brotliLength":0,"mainUid":"0abb-113"},"0abb-116":{"renderedLength":66,"gzipLength":0,"brotliLength":0,"mainUid":"0abb-115"},"0abb-118":{"renderedLength":55,"gzipLength":0,"brotliLength":0,"mainUid":"0abb-117"},"0abb-120":{"renderedLength":480,"gzipLength":0,"brotliLength":0,"mainUid":"0abb-119"},"0abb-122":{"renderedLength":823,"gzipLength":0,"brotliLength":0,"mainUid":"0abb-121"},"0abb-124":{"renderedLength":1901,"gzipLength":0,"brotliLength":0,"mainUid":"0abb-123"},"0abb-126":{"renderedLength":109,"gzipLength":0,"brotliLength":0,"mainUid":"0abb-125"},"0abb-128":{"renderedLength":62,"gzipLength":0,"brotliLength":0,"mainUid":"0abb-127"},"0abb-130":{"renderedLength":56,"gzipLength":0,"brotliLength":0,"mainUid":"0abb-129"},"0abb-132":{"renderedLength":239,"gzipLength":0,"brotliLength":0,"mainUid":"0abb-131"},"0abb-134":{"renderedLength":32,"gzipLength":0,"brotliLength":0,"mainUid":"0abb-133"},"0abb-136":{"renderedLength":956,"gzipLength":0,"brotliLength":0,"mainUid":"0abb-135"},"0abb-138":{"renderedLength":22,"gzipLength":0,"brotliLength":0,"mainUid":"0abb-137"},"0abb-140":{"renderedLength":6572,"gzipLength":0,"brotliLength":0,"mainUid":"0abb-139"},"0abb-142":{"renderedLength":3648,"gzipLength":0,"brotliLength":0,"mainUid":"0abb-141"},"0abb-144":{"renderedLength":34619,"gzipLength":0,"brotliLength":0,"mainUid":"0abb-143"},"0abb-146":{"renderedLength":2497,"gzipLength":0,"brotliLength":0,"mainUid":"0abb-145"},"0abb-148":{"renderedLength":2681,"gzipLength":0,"brotliLength":0,"mainUid":"0abb-147"},"0abb-150":{"renderedLength":55715,"gzipLength":0,"brotliLength":0,"mainUid":"0abb-149"},"0abb-152":{"renderedLength":153,"gzipLength":0,"brotliLength":0,"mainUid":"0abb-151"}},"nodeMetas":{"0abb-105":{"id":"/node_modules/svelte/internal/index.mjs","moduleParts":{"inline-style-editor.js":"0abb-106"},"imported":[],"importedBy":[{"uid":"0abb-149"},{"uid":"0abb-153"},{"uid":"0abb-145"}]},"0abb-107":{"id":"/src/util/util.js","moduleParts":{"inline-style-editor.js":"0abb-108"},"imported":[],"importedBy":[{"uid":"0abb-149"}]},"0abb-109":{"id":"/node_modules/d3-array/src/ascending.js","moduleParts":{"inline-style-editor.js":"0abb-110"},"imported":[],"importedBy":[{"uid":"0abb-157"},{"uid":"0abb-117"},{"uid":"0abb-113"},{"uid":"0abb-164"},{"uid":"0abb-182"},{"uid":"0abb-183"},{"uid":"0abb-184"},{"uid":"0abb-185"},{"uid":"0abb-186"},{"uid":"0abb-199"}]},"0abb-111":{"id":"/node_modules/d3-array/src/descending.js","moduleParts":{"inline-style-editor.js":"0abb-112"},"imported":[],"importedBy":[{"uid":"0abb-157"},{"uid":"0abb-113"}]},"0abb-113":{"id":"/node_modules/d3-array/src/bisector.js","moduleParts":{"inline-style-editor.js":"0abb-114"},"imported":[{"uid":"0abb-109"},{"uid":"0abb-111"}],"importedBy":[{"uid":"0abb-157"},{"uid":"0abb-117"}]},"0abb-115":{"id":"/node_modules/d3-array/src/number.js","moduleParts":{"inline-style-editor.js":"0abb-116"},"imported":[],"importedBy":[{"uid":"0abb-117"},{"uid":"0abb-179"}]},"0abb-117":{"id":"/node_modules/d3-array/src/bisect.js","moduleParts":{"inline-style-editor.js":"0abb-118"},"imported":[{"uid":"0abb-109"},{"uid":"0abb-113"},{"uid":"0abb-115"}],"importedBy":[{"uid":"0abb-157"},{"uid":"0abb-165"}]},"0abb-119":{"id":"/node_modules/d3-array/src/count.js","moduleParts":{"inline-style-editor.js":"0abb-120"},"imported":[],"importedBy":[{"uid":"0abb-157"},{"uid":"0abb-166"},{"uid":"0abb-167"},{"uid":"0abb-125"}]},"0abb-121":{"id":"/node_modules/d3-array/src/extent.js","moduleParts":{"inline-style-editor.js":"0abb-122"},"imported":[],"importedBy":[{"uid":"0abb-157"},{"uid":"0abb-165"}]},"0abb-123":{"id":"/node_modules/d3-array/src/ticks.js","moduleParts":{"inline-style-editor.js":"0abb-124"},"imported":[],"importedBy":[{"uid":"0abb-157"},{"uid":"0abb-165"},{"uid":"0abb-176"}]},"0abb-125":{"id":"/node_modules/d3-array/src/threshold/sturges.js","moduleParts":{"inline-style-editor.js":"0abb-126"},"imported":[{"uid":"0abb-119"}],"importedBy":[{"uid":"0abb-157"},{"uid":"0abb-165"}]},"0abb-127":{"id":"/node_modules/d3-contour/src/array.js","moduleParts":{"inline-style-editor.js":"0abb-128"},"imported":[],"importedBy":[{"uid":"0abb-139"},{"uid":"0abb-156"}]},"0abb-129":{"id":"/node_modules/d3-contour/src/ascending.js","moduleParts":{"inline-style-editor.js":"0abb-130"},"imported":[],"importedBy":[{"uid":"0abb-139"}]},"0abb-131":{"id":"/node_modules/d3-contour/src/area.js","moduleParts":{"inline-style-editor.js":"0abb-132"},"imported":[],"importedBy":[{"uid":"0abb-139"}]},"0abb-133":{"id":"/node_modules/d3-contour/src/constant.js","moduleParts":{"inline-style-editor.js":"0abb-134"},"imported":[],"importedBy":[{"uid":"0abb-139"},{"uid":"0abb-156"}]},"0abb-135":{"id":"/node_modules/d3-contour/src/contains.js","moduleParts":{"inline-style-editor.js":"0abb-136"},"imported":[],"importedBy":[{"uid":"0abb-139"}]},"0abb-137":{"id":"/node_modules/d3-contour/src/noop.js","moduleParts":{"inline-style-editor.js":"0abb-138"},"imported":[],"importedBy":[{"uid":"0abb-139"}]},"0abb-139":{"id":"/node_modules/d3-contour/src/contours.js","moduleParts":{"inline-style-editor.js":"0abb-140"},"imported":[{"uid":"0abb-157"},{"uid":"0abb-127"},{"uid":"0abb-129"},{"uid":"0abb-131"},{"uid":"0abb-133"},{"uid":"0abb-135"},{"uid":"0abb-137"}],"importedBy":[{"uid":"0abb-155"},{"uid":"0abb-156"}]},"0abb-141":{"id":"/src/util/boxesContour.js","moduleParts":{"inline-style-editor.js":"0abb-142"},"imported":[{"uid":"0abb-155"}],"importedBy":[{"uid":"0abb-149"}]},"0abb-143":{"id":"/node_modules/vanilla-picker/dist/vanilla-picker.csp.mjs","moduleParts":{"inline-style-editor.js":"0abb-144"},"imported":[],"importedBy":[{"uid":"0abb-145"}]},"0abb-145":{"id":"/src/components/ColorPicker.svelte","moduleParts":{"inline-style-editor.js":"0abb-146"},"imported":[{"uid":"0abb-105"},{"uid":"0abb-143"},{"uid":"0abb-153"}],"importedBy":[{"uid":"0abb-149"}]},"0abb-147":{"id":"/src/util/fonts.js","moduleParts":{"inline-style-editor.js":"0abb-148"},"imported":[],"importedBy":[{"uid":"0abb-149"}]},"0abb-149":{"id":"/src/components/InlineStyleEditor.svelte","moduleParts":{"inline-style-editor.js":"0abb-150"},"imported":[{"uid":"0abb-105"},{"uid":"0abb-153"},{"uid":"0abb-154"},{"uid":"0abb-107"},{"uid":"0abb-141"},{"uid":"0abb-145"},{"uid":"0abb-147"}],"importedBy":[{"uid":"0abb-151"}]},"0abb-151":{"id":"/src/index.js","moduleParts":{"inline-style-editor.js":"0abb-152"},"imported":[{"uid":"0abb-149"}],"importedBy":[],"isEntry":true},"0abb-153":{"id":"/node_modules/svelte/index.mjs","moduleParts":{},"imported":[{"uid":"0abb-105"}],"importedBy":[{"uid":"0abb-149"},{"uid":"0abb-145"}]},"0abb-154":{"id":"/src/assets/index.scss","moduleParts":{},"imported":[],"importedBy":[{"uid":"0abb-149"}]},"0abb-155":{"id":"/node_modules/d3-contour/src/index.js","moduleParts":{},"imported":[{"uid":"0abb-139"},{"uid":"0abb-156"}],"importedBy":[{"uid":"0abb-141"}]},"0abb-156":{"id":"/node_modules/d3-contour/src/density.js","moduleParts":{},"imported":[{"uid":"0abb-157"},{"uid":"0abb-127"},{"uid":"0abb-133"},{"uid":"0abb-139"}],"importedBy":[{"uid":"0abb-155"}]},"0abb-157":{"id":"/node_modules/d3-array/src/index.js","moduleParts":{},"imported":[{"uid":"0abb-117"},{"uid":"0abb-109"},{"uid":"0abb-113"},{"uid":"0abb-158"},{"uid":"0abb-119"},{"uid":"0abb-159"},{"uid":"0abb-160"},{"uid":"0abb-111"},{"uid":"0abb-161"},{"uid":"0abb-121"},{"uid":"0abb-162"},{"uid":"0abb-163"},{"uid":"0abb-164"},{"uid":"0abb-165"},{"uid":"0abb-166"},{"uid":"0abb-167"},{"uid":"0abb-125"},{"uid":"0abb-168"},{"uid":"0abb-169"},{"uid":"0abb-170"},{"uid":"0abb-171"},{"uid":"0abb-172"},{"uid":"0abb-173"},{"uid":"0abb-174"},{"uid":"0abb-175"},{"uid":"0abb-176"},{"uid":"0abb-177"},{"uid":"0abb-178"},{"uid":"0abb-179"},{"uid":"0abb-180"},{"uid":"0abb-181"},{"uid":"0abb-182"},{"uid":"0abb-183"},{"uid":"0abb-184"},{"uid":"0abb-185"},{"uid":"0abb-186"},{"uid":"0abb-187"},{"uid":"0abb-188"},{"uid":"0abb-189"},{"uid":"0abb-123"},{"uid":"0abb-190"},{"uid":"0abb-191"},{"uid":"0abb-192"},{"uid":"0abb-193"},{"uid":"0abb-194"},{"uid":"0abb-195"},{"uid":"0abb-196"},{"uid":"0abb-197"},{"uid":"0abb-198"},{"uid":"0abb-199"},{"uid":"0abb-200"},{"uid":"0abb-201"},{"uid":"0abb-202"},{"uid":"0abb-203"},{"uid":"0abb-204"},{"uid":"0abb-205"},{"uid":"0abb-206"}],"importedBy":[{"uid":"0abb-139"},{"uid":"0abb-156"}]},"0abb-158":{"id":"/node_modules/d3-array/src/blur.js","moduleParts":{},"imported":[],"importedBy":[{"uid":"0abb-157"}]},"0abb-159":{"id":"/node_modules/d3-array/src/cross.js","moduleParts":{},"imported":[],"importedBy":[{"uid":"0abb-157"}]},"0abb-160":{"id":"/node_modules/d3-array/src/cumsum.js","moduleParts":{},"imported":[],"importedBy":[{"uid":"0abb-157"}]},"0abb-161":{"id":"/node_modules/d3-array/src/deviation.js","moduleParts":{},"imported":[{"uid":"0abb-191"}],"importedBy":[{"uid":"0abb-157"},{"uid":"0abb-167"}]},"0abb-162":{"id":"/node_modules/d3-array/src/fsum.js","moduleParts":{},"imported":[],"importedBy":[{"uid":"0abb-157"}]},"0abb-163":{"id":"/node_modules/d3-array/src/group.js","moduleParts":{},"imported":[{"uid":"0abb-206"},{"uid":"0abb-207"}],"importedBy":[{"uid":"0abb-157"},{"uid":"0abb-164"}]},"0abb-164":{"id":"/node_modules/d3-array/src/groupSort.js","moduleParts":{},"imported":[{"uid":"0abb-109"},{"uid":"0abb-163"},{"uid":"0abb-199"}],"importedBy":[{"uid":"0abb-157"}]},"0abb-165":{"id":"/node_modules/d3-array/src/bin.js","moduleParts":{},"imported":[{"uid":"0abb-208"},{"uid":"0abb-117"},{"uid":"0abb-209"},{"uid":"0abb-121"},{"uid":"0abb-207"},{"uid":"0abb-176"},{"uid":"0abb-123"},{"uid":"0abb-125"}],"importedBy":[{"uid":"0abb-157"}]},"0abb-166":{"id":"/node_modules/d3-array/src/threshold/freedmanDiaconis.js","moduleParts":{},"imported":[{"uid":"0abb-119"},{"uid":"0abb-179"}],"importedBy":[{"uid":"0abb-157"}]},"0abb-167":{"id":"/node_modules/d3-array/src/threshold/scott.js","moduleParts":{},"imported":[{"uid":"0abb-119"},{"uid":"0abb-161"}],"importedBy":[{"uid":"0abb-157"}]},"0abb-168":{"id":"/node_modules/d3-array/src/max.js","moduleParts":{},"imported":[],"importedBy":[{"uid":"0abb-157"},{"uid":"0abb-179"}]},"0abb-169":{"id":"/node_modules/d3-array/src/maxIndex.js","moduleParts":{},"imported":[],"importedBy":[{"uid":"0abb-157"},{"uid":"0abb-179"},{"uid":"0abb-186"}]},"0abb-170":{"id":"/node_modules/d3-array/src/mean.js","moduleParts":{},"imported":[],"importedBy":[{"uid":"0abb-157"}]},"0abb-171":{"id":"/node_modules/d3-array/src/median.js","moduleParts":{},"imported":[{"uid":"0abb-179"}],"importedBy":[{"uid":"0abb-157"}]},"0abb-172":{"id":"/node_modules/d3-array/src/merge.js","moduleParts":{},"imported":[],"importedBy":[{"uid":"0abb-157"}]},"0abb-173":{"id":"/node_modules/d3-array/src/min.js","moduleParts":{},"imported":[],"importedBy":[{"uid":"0abb-157"},{"uid":"0abb-179"},{"uid":"0abb-190"}]},"0abb-174":{"id":"/node_modules/d3-array/src/minIndex.js","moduleParts":{},"imported":[],"importedBy":[{"uid":"0abb-157"},{"uid":"0abb-179"},{"uid":"0abb-184"}]},"0abb-175":{"id":"/node_modules/d3-array/src/mode.js","moduleParts":{},"imported":[{"uid":"0abb-206"}],"importedBy":[{"uid":"0abb-157"}]},"0abb-176":{"id":"/node_modules/d3-array/src/nice.js","moduleParts":{},"imported":[{"uid":"0abb-123"}],"importedBy":[{"uid":"0abb-157"},{"uid":"0abb-165"}]},"0abb-177":{"id":"/node_modules/d3-array/src/pairs.js","moduleParts":{},"imported":[],"importedBy":[{"uid":"0abb-157"}]},"0abb-178":{"id":"/node_modules/d3-array/src/permute.js","moduleParts":{},"imported":[],"importedBy":[{"uid":"0abb-157"},{"uid":"0abb-199"}]},"0abb-179":{"id":"/node_modules/d3-array/src/quantile.js","moduleParts":{},"imported":[{"uid":"0abb-168"},{"uid":"0abb-169"},{"uid":"0abb-173"},{"uid":"0abb-174"},{"uid":"0abb-180"},{"uid":"0abb-115"},{"uid":"0abb-199"},{"uid":"0abb-185"}],"importedBy":[{"uid":"0abb-157"},{"uid":"0abb-166"},{"uid":"0abb-171"}]},"0abb-180":{"id":"/node_modules/d3-array/src/quickselect.js","moduleParts":{},"imported":[{"uid":"0abb-199"}],"importedBy":[{"uid":"0abb-157"},{"uid":"0abb-179"}]},"0abb-181":{"id":"/node_modules/d3-array/src/range.js","moduleParts":{},"imported":[],"importedBy":[{"uid":"0abb-157"}]},"0abb-182":{"id":"/node_modules/d3-array/src/rank.js","moduleParts":{},"imported":[{"uid":"0abb-109"},{"uid":"0abb-199"}],"importedBy":[{"uid":"0abb-157"}]},"0abb-183":{"id":"/node_modules/d3-array/src/least.js","moduleParts":{},"imported":[{"uid":"0abb-109"}],"importedBy":[{"uid":"0abb-157"}]},"0abb-184":{"id":"/node_modules/d3-array/src/leastIndex.js","moduleParts":{},"imported":[{"uid":"0abb-109"},{"uid":"0abb-174"}],"importedBy":[{"uid":"0abb-157"},{"uid":"0abb-187"}]},"0abb-185":{"id":"/node_modules/d3-array/src/greatest.js","moduleParts":{},"imported":[{"uid":"0abb-109"}],"importedBy":[{"uid":"0abb-157"},{"uid":"0abb-179"}]},"0abb-186":{"id":"/node_modules/d3-array/src/greatestIndex.js","moduleParts":{},"imported":[{"uid":"0abb-109"},{"uid":"0abb-169"}],"importedBy":[{"uid":"0abb-157"}]},"0abb-187":{"id":"/node_modules/d3-array/src/scan.js","moduleParts":{},"imported":[{"uid":"0abb-184"}],"importedBy":[{"uid":"0abb-157"}]},"0abb-188":{"id":"/node_modules/d3-array/src/shuffle.js","moduleParts":{},"imported":[],"importedBy":[{"uid":"0abb-157"}]},"0abb-189":{"id":"/node_modules/d3-array/src/sum.js","moduleParts":{},"imported":[],"importedBy":[{"uid":"0abb-157"}]},"0abb-190":{"id":"/node_modules/d3-array/src/transpose.js","moduleParts":{},"imported":[{"uid":"0abb-173"}],"importedBy":[{"uid":"0abb-157"},{"uid":"0abb-192"}]},"0abb-191":{"id":"/node_modules/d3-array/src/variance.js","moduleParts":{},"imported":[],"importedBy":[{"uid":"0abb-157"},{"uid":"0abb-161"}]},"0abb-192":{"id":"/node_modules/d3-array/src/zip.js","moduleParts":{},"imported":[{"uid":"0abb-190"}],"importedBy":[{"uid":"0abb-157"}]},"0abb-193":{"id":"/node_modules/d3-array/src/every.js","moduleParts":{},"imported":[],"importedBy":[{"uid":"0abb-157"}]},"0abb-194":{"id":"/node_modules/d3-array/src/some.js","moduleParts":{},"imported":[],"importedBy":[{"uid":"0abb-157"}]},"0abb-195":{"id":"/node_modules/d3-array/src/filter.js","moduleParts":{},"imported":[],"importedBy":[{"uid":"0abb-157"}]},"0abb-196":{"id":"/node_modules/d3-array/src/map.js","moduleParts":{},"imported":[],"importedBy":[{"uid":"0abb-157"}]},"0abb-197":{"id":"/node_modules/d3-array/src/reduce.js","moduleParts":{},"imported":[],"importedBy":[{"uid":"0abb-157"}]},"0abb-198":{"id":"/node_modules/d3-array/src/reverse.js","moduleParts":{},"imported":[],"importedBy":[{"uid":"0abb-157"}]},"0abb-199":{"id":"/node_modules/d3-array/src/sort.js","moduleParts":{},"imported":[{"uid":"0abb-109"},{"uid":"0abb-178"}],"importedBy":[{"uid":"0abb-157"},{"uid":"0abb-164"},{"uid":"0abb-179"},{"uid":"0abb-180"},{"uid":"0abb-182"}]},"0abb-200":{"id":"/node_modules/d3-array/src/difference.js","moduleParts":{},"imported":[{"uid":"0abb-206"}],"importedBy":[{"uid":"0abb-157"}]},"0abb-201":{"id":"/node_modules/d3-array/src/disjoint.js","moduleParts":{},"imported":[{"uid":"0abb-206"}],"importedBy":[{"uid":"0abb-157"}]},"0abb-202":{"id":"/node_modules/d3-array/src/intersection.js","moduleParts":{},"imported":[{"uid":"0abb-206"}],"importedBy":[{"uid":"0abb-157"}]},"0abb-203":{"id":"/node_modules/d3-array/src/subset.js","moduleParts":{},"imported":[{"uid":"0abb-204"}],"importedBy":[{"uid":"0abb-157"}]},"0abb-204":{"id":"/node_modules/d3-array/src/superset.js","moduleParts":{},"imported":[],"importedBy":[{"uid":"0abb-157"},{"uid":"0abb-203"}]},"0abb-205":{"id":"/node_modules/d3-array/src/union.js","moduleParts":{},"imported":[{"uid":"0abb-206"}],"importedBy":[{"uid":"0abb-157"}]},"0abb-206":{"id":"/node_modules/internmap/src/index.js","moduleParts":{},"imported":[],"importedBy":[{"uid":"0abb-157"},{"uid":"0abb-163"},{"uid":"0abb-175"},{"uid":"0abb-200"},{"uid":"0abb-201"},{"uid":"0abb-202"},{"uid":"0abb-205"}]},"0abb-207":{"id":"/node_modules/d3-array/src/identity.js","moduleParts":{},"imported":[],"importedBy":[{"uid":"0abb-163"},{"uid":"0abb-165"}]},"0abb-208":{"id":"/node_modules/d3-array/src/array.js","moduleParts":{},"imported":[],"importedBy":[{"uid":"0abb-165"}]},"0abb-209":{"id":"/node_modules/d3-array/src/constant.js","moduleParts":{},"imported":[],"importedBy":[{"uid":"0abb-165"}]}},"env":{"rollup":"2.78.1"},"options":{"gzip":false,"brotli":false,"sourcemap":false}};
|
|
4017
|
+
const data = {"version":2,"tree":{"name":"root","children":[{"name":"inline-style-editor.js","children":[{"name":"node_modules","children":[{"name":"svelte/internal/index.mjs","uid":"682e-106"},{"name":"d3-array/src","children":[{"uid":"682e-110","name":"ascending.js"},{"uid":"682e-112","name":"descending.js"},{"uid":"682e-114","name":"bisector.js"},{"uid":"682e-116","name":"number.js"},{"uid":"682e-118","name":"bisect.js"},{"uid":"682e-120","name":"count.js"},{"uid":"682e-122","name":"extent.js"},{"uid":"682e-124","name":"ticks.js"},{"name":"threshold/sturges.js","uid":"682e-126"}]},{"name":"d3-contour/src","children":[{"uid":"682e-128","name":"array.js"},{"uid":"682e-130","name":"ascending.js"},{"uid":"682e-132","name":"area.js"},{"uid":"682e-134","name":"constant.js"},{"uid":"682e-136","name":"contains.js"},{"uid":"682e-138","name":"noop.js"},{"uid":"682e-140","name":"contours.js"}]},{"name":"vanilla-picker/dist/vanilla-picker.csp.mjs","uid":"682e-144"}]},{"name":"src","children":[{"name":"util","children":[{"uid":"682e-108","name":"util.js"},{"uid":"682e-142","name":"boxesContour.js"},{"uid":"682e-148","name":"fonts.js"}]},{"name":"components","children":[{"uid":"682e-146","name":"ColorPicker.svelte"},{"uid":"682e-150","name":"InlineStyleEditor.svelte"}]},{"uid":"682e-152","name":"index.js"}]}]}],"isRoot":true},"nodeParts":{"682e-106":{"renderedLength":12388,"gzipLength":0,"brotliLength":0,"mainUid":"682e-105"},"682e-108":{"renderedLength":674,"gzipLength":0,"brotliLength":0,"mainUid":"682e-107"},"682e-110":{"renderedLength":125,"gzipLength":0,"brotliLength":0,"mainUid":"682e-109"},"682e-112":{"renderedLength":156,"gzipLength":0,"brotliLength":0,"mainUid":"682e-111"},"682e-114":{"renderedLength":1664,"gzipLength":0,"brotliLength":0,"mainUid":"682e-113"},"682e-116":{"renderedLength":66,"gzipLength":0,"brotliLength":0,"mainUid":"682e-115"},"682e-118":{"renderedLength":55,"gzipLength":0,"brotliLength":0,"mainUid":"682e-117"},"682e-120":{"renderedLength":480,"gzipLength":0,"brotliLength":0,"mainUid":"682e-119"},"682e-122":{"renderedLength":823,"gzipLength":0,"brotliLength":0,"mainUid":"682e-121"},"682e-124":{"renderedLength":1901,"gzipLength":0,"brotliLength":0,"mainUid":"682e-123"},"682e-126":{"renderedLength":109,"gzipLength":0,"brotliLength":0,"mainUid":"682e-125"},"682e-128":{"renderedLength":62,"gzipLength":0,"brotliLength":0,"mainUid":"682e-127"},"682e-130":{"renderedLength":56,"gzipLength":0,"brotliLength":0,"mainUid":"682e-129"},"682e-132":{"renderedLength":239,"gzipLength":0,"brotliLength":0,"mainUid":"682e-131"},"682e-134":{"renderedLength":32,"gzipLength":0,"brotliLength":0,"mainUid":"682e-133"},"682e-136":{"renderedLength":956,"gzipLength":0,"brotliLength":0,"mainUid":"682e-135"},"682e-138":{"renderedLength":22,"gzipLength":0,"brotliLength":0,"mainUid":"682e-137"},"682e-140":{"renderedLength":6572,"gzipLength":0,"brotliLength":0,"mainUid":"682e-139"},"682e-142":{"renderedLength":3648,"gzipLength":0,"brotliLength":0,"mainUid":"682e-141"},"682e-144":{"renderedLength":34619,"gzipLength":0,"brotliLength":0,"mainUid":"682e-143"},"682e-146":{"renderedLength":2497,"gzipLength":0,"brotliLength":0,"mainUid":"682e-145"},"682e-148":{"renderedLength":2681,"gzipLength":0,"brotliLength":0,"mainUid":"682e-147"},"682e-150":{"renderedLength":55735,"gzipLength":0,"brotliLength":0,"mainUid":"682e-149"},"682e-152":{"renderedLength":153,"gzipLength":0,"brotliLength":0,"mainUid":"682e-151"}},"nodeMetas":{"682e-105":{"id":"/node_modules/svelte/internal/index.mjs","moduleParts":{"inline-style-editor.js":"682e-106"},"imported":[],"importedBy":[{"uid":"682e-149"},{"uid":"682e-153"},{"uid":"682e-145"}]},"682e-107":{"id":"/src/util/util.js","moduleParts":{"inline-style-editor.js":"682e-108"},"imported":[],"importedBy":[{"uid":"682e-149"}]},"682e-109":{"id":"/node_modules/d3-array/src/ascending.js","moduleParts":{"inline-style-editor.js":"682e-110"},"imported":[],"importedBy":[{"uid":"682e-157"},{"uid":"682e-117"},{"uid":"682e-113"},{"uid":"682e-164"},{"uid":"682e-182"},{"uid":"682e-183"},{"uid":"682e-184"},{"uid":"682e-185"},{"uid":"682e-186"},{"uid":"682e-199"}]},"682e-111":{"id":"/node_modules/d3-array/src/descending.js","moduleParts":{"inline-style-editor.js":"682e-112"},"imported":[],"importedBy":[{"uid":"682e-157"},{"uid":"682e-113"}]},"682e-113":{"id":"/node_modules/d3-array/src/bisector.js","moduleParts":{"inline-style-editor.js":"682e-114"},"imported":[{"uid":"682e-109"},{"uid":"682e-111"}],"importedBy":[{"uid":"682e-157"},{"uid":"682e-117"}]},"682e-115":{"id":"/node_modules/d3-array/src/number.js","moduleParts":{"inline-style-editor.js":"682e-116"},"imported":[],"importedBy":[{"uid":"682e-117"},{"uid":"682e-179"}]},"682e-117":{"id":"/node_modules/d3-array/src/bisect.js","moduleParts":{"inline-style-editor.js":"682e-118"},"imported":[{"uid":"682e-109"},{"uid":"682e-113"},{"uid":"682e-115"}],"importedBy":[{"uid":"682e-157"},{"uid":"682e-165"}]},"682e-119":{"id":"/node_modules/d3-array/src/count.js","moduleParts":{"inline-style-editor.js":"682e-120"},"imported":[],"importedBy":[{"uid":"682e-157"},{"uid":"682e-166"},{"uid":"682e-167"},{"uid":"682e-125"}]},"682e-121":{"id":"/node_modules/d3-array/src/extent.js","moduleParts":{"inline-style-editor.js":"682e-122"},"imported":[],"importedBy":[{"uid":"682e-157"},{"uid":"682e-165"}]},"682e-123":{"id":"/node_modules/d3-array/src/ticks.js","moduleParts":{"inline-style-editor.js":"682e-124"},"imported":[],"importedBy":[{"uid":"682e-157"},{"uid":"682e-165"},{"uid":"682e-176"}]},"682e-125":{"id":"/node_modules/d3-array/src/threshold/sturges.js","moduleParts":{"inline-style-editor.js":"682e-126"},"imported":[{"uid":"682e-119"}],"importedBy":[{"uid":"682e-157"},{"uid":"682e-165"}]},"682e-127":{"id":"/node_modules/d3-contour/src/array.js","moduleParts":{"inline-style-editor.js":"682e-128"},"imported":[],"importedBy":[{"uid":"682e-139"},{"uid":"682e-156"}]},"682e-129":{"id":"/node_modules/d3-contour/src/ascending.js","moduleParts":{"inline-style-editor.js":"682e-130"},"imported":[],"importedBy":[{"uid":"682e-139"}]},"682e-131":{"id":"/node_modules/d3-contour/src/area.js","moduleParts":{"inline-style-editor.js":"682e-132"},"imported":[],"importedBy":[{"uid":"682e-139"}]},"682e-133":{"id":"/node_modules/d3-contour/src/constant.js","moduleParts":{"inline-style-editor.js":"682e-134"},"imported":[],"importedBy":[{"uid":"682e-139"},{"uid":"682e-156"}]},"682e-135":{"id":"/node_modules/d3-contour/src/contains.js","moduleParts":{"inline-style-editor.js":"682e-136"},"imported":[],"importedBy":[{"uid":"682e-139"}]},"682e-137":{"id":"/node_modules/d3-contour/src/noop.js","moduleParts":{"inline-style-editor.js":"682e-138"},"imported":[],"importedBy":[{"uid":"682e-139"}]},"682e-139":{"id":"/node_modules/d3-contour/src/contours.js","moduleParts":{"inline-style-editor.js":"682e-140"},"imported":[{"uid":"682e-157"},{"uid":"682e-127"},{"uid":"682e-129"},{"uid":"682e-131"},{"uid":"682e-133"},{"uid":"682e-135"},{"uid":"682e-137"}],"importedBy":[{"uid":"682e-155"},{"uid":"682e-156"}]},"682e-141":{"id":"/src/util/boxesContour.js","moduleParts":{"inline-style-editor.js":"682e-142"},"imported":[{"uid":"682e-155"}],"importedBy":[{"uid":"682e-149"}]},"682e-143":{"id":"/node_modules/vanilla-picker/dist/vanilla-picker.csp.mjs","moduleParts":{"inline-style-editor.js":"682e-144"},"imported":[],"importedBy":[{"uid":"682e-145"}]},"682e-145":{"id":"/src/components/ColorPicker.svelte","moduleParts":{"inline-style-editor.js":"682e-146"},"imported":[{"uid":"682e-105"},{"uid":"682e-143"},{"uid":"682e-153"}],"importedBy":[{"uid":"682e-149"}]},"682e-147":{"id":"/src/util/fonts.js","moduleParts":{"inline-style-editor.js":"682e-148"},"imported":[],"importedBy":[{"uid":"682e-149"}]},"682e-149":{"id":"/src/components/InlineStyleEditor.svelte","moduleParts":{"inline-style-editor.js":"682e-150"},"imported":[{"uid":"682e-105"},{"uid":"682e-153"},{"uid":"682e-154"},{"uid":"682e-107"},{"uid":"682e-141"},{"uid":"682e-145"},{"uid":"682e-147"}],"importedBy":[{"uid":"682e-151"}]},"682e-151":{"id":"/src/index.js","moduleParts":{"inline-style-editor.js":"682e-152"},"imported":[{"uid":"682e-149"}],"importedBy":[],"isEntry":true},"682e-153":{"id":"/node_modules/svelte/index.mjs","moduleParts":{},"imported":[{"uid":"682e-105"}],"importedBy":[{"uid":"682e-149"},{"uid":"682e-145"}]},"682e-154":{"id":"/src/assets/index.scss","moduleParts":{},"imported":[],"importedBy":[{"uid":"682e-149"}]},"682e-155":{"id":"/node_modules/d3-contour/src/index.js","moduleParts":{},"imported":[{"uid":"682e-139"},{"uid":"682e-156"}],"importedBy":[{"uid":"682e-141"}]},"682e-156":{"id":"/node_modules/d3-contour/src/density.js","moduleParts":{},"imported":[{"uid":"682e-157"},{"uid":"682e-127"},{"uid":"682e-133"},{"uid":"682e-139"}],"importedBy":[{"uid":"682e-155"}]},"682e-157":{"id":"/node_modules/d3-array/src/index.js","moduleParts":{},"imported":[{"uid":"682e-117"},{"uid":"682e-109"},{"uid":"682e-113"},{"uid":"682e-158"},{"uid":"682e-119"},{"uid":"682e-159"},{"uid":"682e-160"},{"uid":"682e-111"},{"uid":"682e-161"},{"uid":"682e-121"},{"uid":"682e-162"},{"uid":"682e-163"},{"uid":"682e-164"},{"uid":"682e-165"},{"uid":"682e-166"},{"uid":"682e-167"},{"uid":"682e-125"},{"uid":"682e-168"},{"uid":"682e-169"},{"uid":"682e-170"},{"uid":"682e-171"},{"uid":"682e-172"},{"uid":"682e-173"},{"uid":"682e-174"},{"uid":"682e-175"},{"uid":"682e-176"},{"uid":"682e-177"},{"uid":"682e-178"},{"uid":"682e-179"},{"uid":"682e-180"},{"uid":"682e-181"},{"uid":"682e-182"},{"uid":"682e-183"},{"uid":"682e-184"},{"uid":"682e-185"},{"uid":"682e-186"},{"uid":"682e-187"},{"uid":"682e-188"},{"uid":"682e-189"},{"uid":"682e-123"},{"uid":"682e-190"},{"uid":"682e-191"},{"uid":"682e-192"},{"uid":"682e-193"},{"uid":"682e-194"},{"uid":"682e-195"},{"uid":"682e-196"},{"uid":"682e-197"},{"uid":"682e-198"},{"uid":"682e-199"},{"uid":"682e-200"},{"uid":"682e-201"},{"uid":"682e-202"},{"uid":"682e-203"},{"uid":"682e-204"},{"uid":"682e-205"},{"uid":"682e-206"}],"importedBy":[{"uid":"682e-139"},{"uid":"682e-156"}]},"682e-158":{"id":"/node_modules/d3-array/src/blur.js","moduleParts":{},"imported":[],"importedBy":[{"uid":"682e-157"}]},"682e-159":{"id":"/node_modules/d3-array/src/cross.js","moduleParts":{},"imported":[],"importedBy":[{"uid":"682e-157"}]},"682e-160":{"id":"/node_modules/d3-array/src/cumsum.js","moduleParts":{},"imported":[],"importedBy":[{"uid":"682e-157"}]},"682e-161":{"id":"/node_modules/d3-array/src/deviation.js","moduleParts":{},"imported":[{"uid":"682e-191"}],"importedBy":[{"uid":"682e-157"},{"uid":"682e-167"}]},"682e-162":{"id":"/node_modules/d3-array/src/fsum.js","moduleParts":{},"imported":[],"importedBy":[{"uid":"682e-157"}]},"682e-163":{"id":"/node_modules/d3-array/src/group.js","moduleParts":{},"imported":[{"uid":"682e-206"},{"uid":"682e-207"}],"importedBy":[{"uid":"682e-157"},{"uid":"682e-164"}]},"682e-164":{"id":"/node_modules/d3-array/src/groupSort.js","moduleParts":{},"imported":[{"uid":"682e-109"},{"uid":"682e-163"},{"uid":"682e-199"}],"importedBy":[{"uid":"682e-157"}]},"682e-165":{"id":"/node_modules/d3-array/src/bin.js","moduleParts":{},"imported":[{"uid":"682e-208"},{"uid":"682e-117"},{"uid":"682e-209"},{"uid":"682e-121"},{"uid":"682e-207"},{"uid":"682e-176"},{"uid":"682e-123"},{"uid":"682e-125"}],"importedBy":[{"uid":"682e-157"}]},"682e-166":{"id":"/node_modules/d3-array/src/threshold/freedmanDiaconis.js","moduleParts":{},"imported":[{"uid":"682e-119"},{"uid":"682e-179"}],"importedBy":[{"uid":"682e-157"}]},"682e-167":{"id":"/node_modules/d3-array/src/threshold/scott.js","moduleParts":{},"imported":[{"uid":"682e-119"},{"uid":"682e-161"}],"importedBy":[{"uid":"682e-157"}]},"682e-168":{"id":"/node_modules/d3-array/src/max.js","moduleParts":{},"imported":[],"importedBy":[{"uid":"682e-157"},{"uid":"682e-179"}]},"682e-169":{"id":"/node_modules/d3-array/src/maxIndex.js","moduleParts":{},"imported":[],"importedBy":[{"uid":"682e-157"},{"uid":"682e-179"},{"uid":"682e-186"}]},"682e-170":{"id":"/node_modules/d3-array/src/mean.js","moduleParts":{},"imported":[],"importedBy":[{"uid":"682e-157"}]},"682e-171":{"id":"/node_modules/d3-array/src/median.js","moduleParts":{},"imported":[{"uid":"682e-179"}],"importedBy":[{"uid":"682e-157"}]},"682e-172":{"id":"/node_modules/d3-array/src/merge.js","moduleParts":{},"imported":[],"importedBy":[{"uid":"682e-157"}]},"682e-173":{"id":"/node_modules/d3-array/src/min.js","moduleParts":{},"imported":[],"importedBy":[{"uid":"682e-157"},{"uid":"682e-179"},{"uid":"682e-190"}]},"682e-174":{"id":"/node_modules/d3-array/src/minIndex.js","moduleParts":{},"imported":[],"importedBy":[{"uid":"682e-157"},{"uid":"682e-179"},{"uid":"682e-184"}]},"682e-175":{"id":"/node_modules/d3-array/src/mode.js","moduleParts":{},"imported":[{"uid":"682e-206"}],"importedBy":[{"uid":"682e-157"}]},"682e-176":{"id":"/node_modules/d3-array/src/nice.js","moduleParts":{},"imported":[{"uid":"682e-123"}],"importedBy":[{"uid":"682e-157"},{"uid":"682e-165"}]},"682e-177":{"id":"/node_modules/d3-array/src/pairs.js","moduleParts":{},"imported":[],"importedBy":[{"uid":"682e-157"}]},"682e-178":{"id":"/node_modules/d3-array/src/permute.js","moduleParts":{},"imported":[],"importedBy":[{"uid":"682e-157"},{"uid":"682e-199"}]},"682e-179":{"id":"/node_modules/d3-array/src/quantile.js","moduleParts":{},"imported":[{"uid":"682e-168"},{"uid":"682e-169"},{"uid":"682e-173"},{"uid":"682e-174"},{"uid":"682e-180"},{"uid":"682e-115"},{"uid":"682e-199"},{"uid":"682e-185"}],"importedBy":[{"uid":"682e-157"},{"uid":"682e-166"},{"uid":"682e-171"}]},"682e-180":{"id":"/node_modules/d3-array/src/quickselect.js","moduleParts":{},"imported":[{"uid":"682e-199"}],"importedBy":[{"uid":"682e-157"},{"uid":"682e-179"}]},"682e-181":{"id":"/node_modules/d3-array/src/range.js","moduleParts":{},"imported":[],"importedBy":[{"uid":"682e-157"}]},"682e-182":{"id":"/node_modules/d3-array/src/rank.js","moduleParts":{},"imported":[{"uid":"682e-109"},{"uid":"682e-199"}],"importedBy":[{"uid":"682e-157"}]},"682e-183":{"id":"/node_modules/d3-array/src/least.js","moduleParts":{},"imported":[{"uid":"682e-109"}],"importedBy":[{"uid":"682e-157"}]},"682e-184":{"id":"/node_modules/d3-array/src/leastIndex.js","moduleParts":{},"imported":[{"uid":"682e-109"},{"uid":"682e-174"}],"importedBy":[{"uid":"682e-157"},{"uid":"682e-187"}]},"682e-185":{"id":"/node_modules/d3-array/src/greatest.js","moduleParts":{},"imported":[{"uid":"682e-109"}],"importedBy":[{"uid":"682e-157"},{"uid":"682e-179"}]},"682e-186":{"id":"/node_modules/d3-array/src/greatestIndex.js","moduleParts":{},"imported":[{"uid":"682e-109"},{"uid":"682e-169"}],"importedBy":[{"uid":"682e-157"}]},"682e-187":{"id":"/node_modules/d3-array/src/scan.js","moduleParts":{},"imported":[{"uid":"682e-184"}],"importedBy":[{"uid":"682e-157"}]},"682e-188":{"id":"/node_modules/d3-array/src/shuffle.js","moduleParts":{},"imported":[],"importedBy":[{"uid":"682e-157"}]},"682e-189":{"id":"/node_modules/d3-array/src/sum.js","moduleParts":{},"imported":[],"importedBy":[{"uid":"682e-157"}]},"682e-190":{"id":"/node_modules/d3-array/src/transpose.js","moduleParts":{},"imported":[{"uid":"682e-173"}],"importedBy":[{"uid":"682e-157"},{"uid":"682e-192"}]},"682e-191":{"id":"/node_modules/d3-array/src/variance.js","moduleParts":{},"imported":[],"importedBy":[{"uid":"682e-157"},{"uid":"682e-161"}]},"682e-192":{"id":"/node_modules/d3-array/src/zip.js","moduleParts":{},"imported":[{"uid":"682e-190"}],"importedBy":[{"uid":"682e-157"}]},"682e-193":{"id":"/node_modules/d3-array/src/every.js","moduleParts":{},"imported":[],"importedBy":[{"uid":"682e-157"}]},"682e-194":{"id":"/node_modules/d3-array/src/some.js","moduleParts":{},"imported":[],"importedBy":[{"uid":"682e-157"}]},"682e-195":{"id":"/node_modules/d3-array/src/filter.js","moduleParts":{},"imported":[],"importedBy":[{"uid":"682e-157"}]},"682e-196":{"id":"/node_modules/d3-array/src/map.js","moduleParts":{},"imported":[],"importedBy":[{"uid":"682e-157"}]},"682e-197":{"id":"/node_modules/d3-array/src/reduce.js","moduleParts":{},"imported":[],"importedBy":[{"uid":"682e-157"}]},"682e-198":{"id":"/node_modules/d3-array/src/reverse.js","moduleParts":{},"imported":[],"importedBy":[{"uid":"682e-157"}]},"682e-199":{"id":"/node_modules/d3-array/src/sort.js","moduleParts":{},"imported":[{"uid":"682e-109"},{"uid":"682e-178"}],"importedBy":[{"uid":"682e-157"},{"uid":"682e-164"},{"uid":"682e-179"},{"uid":"682e-180"},{"uid":"682e-182"}]},"682e-200":{"id":"/node_modules/d3-array/src/difference.js","moduleParts":{},"imported":[{"uid":"682e-206"}],"importedBy":[{"uid":"682e-157"}]},"682e-201":{"id":"/node_modules/d3-array/src/disjoint.js","moduleParts":{},"imported":[{"uid":"682e-206"}],"importedBy":[{"uid":"682e-157"}]},"682e-202":{"id":"/node_modules/d3-array/src/intersection.js","moduleParts":{},"imported":[{"uid":"682e-206"}],"importedBy":[{"uid":"682e-157"}]},"682e-203":{"id":"/node_modules/d3-array/src/subset.js","moduleParts":{},"imported":[{"uid":"682e-204"}],"importedBy":[{"uid":"682e-157"}]},"682e-204":{"id":"/node_modules/d3-array/src/superset.js","moduleParts":{},"imported":[],"importedBy":[{"uid":"682e-157"},{"uid":"682e-203"}]},"682e-205":{"id":"/node_modules/d3-array/src/union.js","moduleParts":{},"imported":[{"uid":"682e-206"}],"importedBy":[{"uid":"682e-157"}]},"682e-206":{"id":"/node_modules/internmap/src/index.js","moduleParts":{},"imported":[],"importedBy":[{"uid":"682e-157"},{"uid":"682e-163"},{"uid":"682e-175"},{"uid":"682e-200"},{"uid":"682e-201"},{"uid":"682e-202"},{"uid":"682e-205"}]},"682e-207":{"id":"/node_modules/d3-array/src/identity.js","moduleParts":{},"imported":[],"importedBy":[{"uid":"682e-163"},{"uid":"682e-165"}]},"682e-208":{"id":"/node_modules/d3-array/src/array.js","moduleParts":{},"imported":[],"importedBy":[{"uid":"682e-165"}]},"682e-209":{"id":"/node_modules/d3-array/src/constant.js","moduleParts":{},"imported":[],"importedBy":[{"uid":"682e-165"}]}},"env":{"rollup":"2.78.1"},"options":{"gzip":false,"brotli":false,"sourcemap":false}};
|
|
4018
4018
|
|
|
4019
4019
|
const run = () => {
|
|
4020
4020
|
const width = window.innerWidth;
|