var app=function(){"use strict";function t(){}function e(t){return t()}function o(){return Object.create(null)}function n(t){t.forEach(e)}function i(t){return"function"==typeof t}function r(t,e){return t!=t?e==e:t!==e||t&&"object"==typeof t||"function"==typeof t}let s,l;function a(t,e){return s||(s=document.createElement("a")),s.href=e,t===s.href}function c(e,...o){if(null==e)return t;const n=e.subscribe(...o);return n.unsubscribe?()=>n.unsubscribe():n}function d(t){let e;return c(t,(t=>e=t))(),e}function u(t,e,o){t.$$.on_destroy.push(c(e,o))}function h(t){return null==t?"":t}function p(t,e,o){return t.set(o),e}function f(t,e){t.appendChild(e)}function m(t,e,o){t.insertBefore(e,o||null)}function g(t){t.parentNode&&t.parentNode.removeChild(t)}function b(t,e){for(let o=0;ot.removeEventListener(e,o,n)}function E(t){return function(e){return e.stopPropagation(),t.call(this,e)}}function C(t,e,o){null==o?t.removeAttribute(e):t.getAttribute(e)!==o&&t.setAttribute(e,o)}function k(t,e,o){e in t?t[e]="boolean"==typeof t[e]&&""===o||o:C(t,e,o)}function O(t,e){e=""+e,t.data!==e&&(t.data=e)}function _(t,e){t.value=null==e?"":e}function L(t,e,o,n){null==o?t.style.removeProperty(e):t.style.setProperty(e,o,n?"important":"")}function T(t,e,o){for(let o=0;o{const i=t.$$.callbacks[e];if(i){const r=function(t,e,{bubbles:o=!1,cancelable:n=!1}={}){const i=document.createEvent("CustomEvent");return i.initCustomEvent(t,o,n,e),i}(e,o,{cancelable:n});return i.slice().forEach((e=>{e.call(t,r)})),!r.defaultPrevented}return!0}}function z(t,e){const o=t.$$.callbacks[e.type];o&&o.slice().forEach((t=>t.call(this,e)))}const j=[],R=[];let H=[];const B=[],q=Promise.resolve();let F=!1;function V(t){H.push(t)}function G(t){B.push(t)}const W=new Set;let Y=0;function K(){if(0!==Y)return;const t=l;do{try{for(;Y{X.delete(t),n&&(o&&t.d(1),n())})),t.o(e)}else n&&n()}function nt(t,e,o){const n=t.$$.props[e];void 0!==n&&(t.$$.bound[n]=o,o(t.$$.ctx[n]))}function it(t){t&&t.c()}function rt(t,o,r,s){const{fragment:l,after_update:a}=t.$$;l&&l.m(o,r),s||V((()=>{const o=t.$$.on_mount.map(e).filter(i);t.$$.on_destroy?t.$$.on_destroy.push(...o):n(o),t.$$.on_mount=[]})),a.forEach(V)}function st(t,e){const o=t.$$;null!==o.fragment&&(!function(t){const e=[],o=[];H.forEach((n=>-1===t.indexOf(n)?e.push(n):o.push(n))),o.forEach((t=>t())),H=e}(o.after_update),n(o.on_destroy),o.fragment&&o.fragment.d(e),o.on_destroy=o.fragment=null,o.ctx=[])}function lt(t,e){-1===t.$$.dirty[0]&&(j.push(t),F||(F=!0,q.then(K)),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<{const i=n.length?n[0]:o;return p.ctx&&a(p.ctx[t],p.ctx[t]=i)&&(!p.skip_bound&&p.bound[t]&&p.bound[t](i),f&<(e,t)),o})):[],p.update(),f=!0,n(p.before_update),p.fragment=!!s&&s(p.ctx),i.target){if(i.hydrate){const t=function(t){return Array.from(t.childNodes)}(i.target);p.fragment&&p.fragment.l(t),t.forEach(g)}else p.fragment&&p.fragment.c();i.intro&&et(e.$$.fragment),rt(e,i.target,i.anchor,i.customElement),K()}A(h)}class ct{$destroy(){st(this,1),this.$destroy=t}$on(e,o){if(!i(o))return t;const n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(o),()=>{const t=n.indexOf(o);-1!==t&&n.splice(t,1)}}$set(t){var e;this.$$set&&(e=t,0!==Object.keys(e).length)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const dt=[];function ut(e,o=t){let n;const i=new Set;function s(t){if(r(e,t)&&(e=t,n)){const t=!dt.length;for(const t of i)t[1](),dt.push(t,e);if(t){for(let t=0;t{i.delete(a),0===i.size&&n&&(n(),n=null)}}}}function ht(t){let e;function o(t,e){return t[2]?pt:ft}let n=o(t),i=n(t);return{c(){i.c(),e=x()},m(t,o){i.m(t,o),m(t,e,o)},p(t,r){n===(n=o(t))&&i?i.p(t,r):(i.d(1),i=n(t),i&&(i.c(),i.m(e.parentNode,e)))},d(t){i.d(t),t&&g(e)}}}function pt(t){let e,o;function n(t,o){return 1&o&&(e=null),null==e&&(e=!(!t[0].to||!Ws(t[0].to))),e?gt:mt}let i=n(t,-1),r=i(t);return{c(){r.c(),o=x()},m(t,e){r.m(t,e),m(t,o,e)},p(t,e){i===(i=n(t,e))&&r?r.p(t,e):(r.d(1),r=i(t),r&&(r.c(),r.m(o.parentNode,o)))},d(t){r.d(t),t&&g(o)}}}function ft(t){let e,o;function n(t,o){return 1&o&&(e=null),null==e&&(e=!(!t[0].to||!Ws(t[0].to))),e?Ut:Nt}let i=n(t,-1),r=i(t);return{c(){r.c(),o=x()},m(t,e){r.m(t,e),m(t,o,e)},p(t,e){i===(i=n(t,e))&&r?r.p(t,e):(r.d(1),r=i(t),r&&(r.c(),r.m(o.parentNode,o)))},d(t){r.d(t),t&&g(o)}}}function mt(t){let e,o,n,i,r,s,l=Ws(t[0])&&t[0].label&&t[1].label,a=l&&bt(t),c=t[1].time&&t[0].time&&vt(t),d=t[1].day&&t[0].day&&yt(t),u=t[1].month&&t[0].month&&wt(t),p=t[1].date&&t[0].date&&xt(t);return{c(){e=v("div"),a&&a.c(),o=w(),c&&c.c(),n=w(),d&&d.c(),i=w(),u&&u.c(),r=w(),p&&p.c(),C(e,"class",s=h(t[3])+" svelte-6z49w9"),L(e,"background","#f5f5f5"),L(e,"border-radius","0.25rem")},m(t,s){m(t,e,s),a&&a.m(e,null),f(e,o),c&&c.m(e,null),f(e,n),d&&d.m(e,null),f(e,i),u&&u.m(e,null),f(e,r),p&&p.m(e,null)},p(t,f){3&f&&(l=Ws(t[0])&&t[0].label&&t[1].label),l?a?a.p(t,f):(a=bt(t),a.c(),a.m(e,o)):a&&(a.d(1),a=null),t[1].time&&t[0].time?c?c.p(t,f):(c=vt(t),c.c(),c.m(e,n)):c&&(c.d(1),c=null),t[1].day&&t[0].day?d?d.p(t,f):(d=yt(t),d.c(),d.m(e,i)):d&&(d.d(1),d=null),t[1].month&&t[0].month?u?u.p(t,f):(u=wt(t),u.c(),u.m(e,r)):u&&(u.d(1),u=null),t[1].date&&t[0].date?p?p.p(t,f):(p=xt(t),p.c(),p.m(e,null)):p&&(p.d(1),p=null),8&f&&s!==(s=h(t[3])+" svelte-6z49w9")&&C(e,"class",s)},d(t){t&&g(e),a&&a.d(),c&&c.d(),d&&d.d(),u&&u.d(),p&&p.d()}}}function gt(t){let e,o,n,i,r,s,l=Ws(t[0])&&t[0].label&&t[1].label,a=l&&St(t),c=(t[1].time&&t[0].time||t[1].toTime&&t[0].to.time)&&Et(t),d=(t[1].day&&t[0].day||t[1].toDay&&t[0].to.day)&&Ot(t),u=(t[1].month&&t[0].month||t[1].toMonth&&t[0].to.month)&&Tt(t),p=(t[1].date&&t[0].date||t[1].toDate&&t[0].to.date)&&Dt(t);return{c(){e=v("div"),a&&a.c(),o=w(),c&&c.c(),n=w(),d&&d.c(),i=w(),u&&u.c(),r=w(),p&&p.c(),C(e,"class",s=h(t[3])+" svelte-6z49w9"),L(e,"background","#f5f5f5"),L(e,"border-radius","0.25rem")},m(t,s){m(t,e,s),a&&a.m(e,null),f(e,o),c&&c.m(e,null),f(e,n),d&&d.m(e,null),f(e,i),u&&u.m(e,null),f(e,r),p&&p.m(e,null)},p(t,f){3&f&&(l=Ws(t[0])&&t[0].label&&t[1].label),l?a?a.p(t,f):(a=St(t),a.c(),a.m(e,o)):a&&(a.d(1),a=null),t[1].time&&t[0].time||t[1].toTime&&t[0].to.time?c?c.p(t,f):(c=Et(t),c.c(),c.m(e,n)):c&&(c.d(1),c=null),t[1].day&&t[0].day||t[1].toDay&&t[0].to.day?d?d.p(t,f):(d=Ot(t),d.c(),d.m(e,i)):d&&(d.d(1),d=null),t[1].month&&t[0].month||t[1].toMonth&&t[0].to.month?u?u.p(t,f):(u=Tt(t),u.c(),u.m(e,r)):u&&(u.d(1),u=null),t[1].date&&t[0].date||t[1].toDate&&t[0].to.date?p?p.p(t,f):(p=Dt(t),p.c(),p.m(e,null)):p&&(p.d(1),p=null),8&f&&s!==(s=h(t[3])+" svelte-6z49w9")&&C(e,"class",s)},d(t){t&&g(e),a&&a.d(),c&&c.d(),d&&d.d(),u&&u.d(),p&&p.d()}}}function bt(t){let e,o,n=t[0].label+"";return{c(){e=v("div"),o=y(n),C(e,"class","cc-card-date-label svelte-6z49w9"),L(e,"border-top-left-radius","0.25rem"),L(e,"border-top-right-radius","0.25rem"),L(e,"padding","0.25rem"),L(e,"color","white"),L(e,"font-size","0.75rem"),L(e,"padding-top","0.25rem"),L(e,"padding-bottom","0.25rem"),L(e,"background-color","black"),L(e,"border-color","black"),L(e,"border-left-width","1px"),L(e,"border-right-width","1px"),L(e,"border-top-width","1px"),L(e,"text-align","center")},m(t,n){m(t,e,n),f(e,o)},p(t,e){1&e&&n!==(n=t[0].label+"")&&O(o,n)},d(t){t&&g(e)}}}function vt(t){let e,o,n=t[0].time+"";return{c(){e=v("div"),o=y(n),C(e,"class","cc-card-date-time svelte-6z49w9"),L(e,"text-align","center")},m(t,n){m(t,e,n),f(e,o)},p(t,e){1&e&&n!==(n=t[0].time+"")&&O(o,n)},d(t){t&&g(e)}}}function yt(t){let e,o,n=t[0].day+"";return{c(){e=v("div"),o=y(n),C(e,"class","cc-card-date-day svelte-6z49w9"),L(e,"font-size","0.7rem"),L(e,"text-align","center")},m(t,n){m(t,e,n),f(e,o)},p(t,e){1&e&&n!==(n=t[0].day+"")&&O(o,n)},d(t){t&&g(e)}}}function wt(t){let e,o,n=t[0].month+"";return{c(){e=v("div"),o=y(n),C(e,"class","cc-card-date-month svelte-6z49w9"),L(e,"color","white"),L(e,"background-color","red"),L(e,"padding-top","0.25rem"),L(e,"padding-bottom","0.25rem"),L(e,"border-color","black"),L(e,"border-top-width","1px"),L(e,"font-size","0.9rem"),L(e,"line-height","1rem"),L(e,"text-align","center")},m(t,n){m(t,e,n),f(e,o)},p(t,e){1&e&&n!==(n=t[0].month+"")&&O(o,n)},d(t){t&&g(e)}}}function xt(t){let e,o,n=t[0].date+"";return{c(){e=v("div"),o=y(n),C(e,"class","cc-card-date-date svelte-6z49w9"),L(e,"padding-top","0.25rem"),L(e,"padding-bottom","0.25rem"),L(e,"border-left-width","1px"),L(e,"border-bottom-right-radius","0.25rem"),L(e,"border-bottom-left-radius","0.25rem"),L(e,"border-color","black"),L(e,"font-size","0.9rem"),L(e,"font-weight","bold"),L(e,"line-height","1rem"),L(e,"text-align","center")},m(t,n){m(t,e,n),f(e,o)},p(t,e){1&e&&n!==(n=t[0].date+"")&&O(o,n)},d(t){t&&g(e)}}}function St(t){let e,o,n=t[0].label+"";return{c(){e=v("div"),o=y(n),C(e,"class","cc-card-date-label svelte-6z49w9"),L(e,"border-top-right-radius","0.25rem"),L(e,"padding","0.25rem"),L(e,"color","white"),L(e,"font-size","0.75rem"),L(e,"padding-top","0.25rem"),L(e,"padding-bottom","0.25rem"),L(e,"background-color","black"),L(e,"border-color","black"),L(e,"border-left-width","1px"),L(e,"border-right-width","1px"),L(e,"border-top-width","1px"),L(e,"text-align","center")},m(t,n){m(t,e,n),f(e,o)},p(t,e){1&e&&n!==(n=t[0].label+"")&&O(o,n)},d(t){t&&g(e)}}}function Et(t){let e,o,n,i,r=t[0].time&&t[1].time&&Ct(t),s=t[0].to.time&&t[1].toTime&&kt(t);return{c(){e=v("div"),o=v("div"),r&&r.c(),n=w(),i=v("div"),s&&s.c(),C(o,"class","cc-card-date-time-from svelte-6z49w9"),L(o,"width","50%"),L(o,"text-align","center"),L(o,"padding","0.15rem"),C(i,"class","cc-card-date-time-to svelte-6z49w9"),L(i,"width","50%"),L(i,"text-align","center"),L(i,"padding","0.15rem"),C(e,"class","cc-card-date-dual-time svelte-6z49w9"),L(e,"display","flex"),L(e,"font-size","0.7rem")},m(t,l){m(t,e,l),f(e,o),r&&r.m(o,null),f(e,n),f(e,i),s&&s.m(i,null)},p(t,e){t[0].time&&t[1].time?r?r.p(t,e):(r=Ct(t),r.c(),r.m(o,null)):r&&(r.d(1),r=null),t[0].to.time&&t[1].toTime?s?s.p(t,e):(s=kt(t),s.c(),s.m(i,null)):s&&(s.d(1),s=null)},d(t){t&&g(e),r&&r.d(),s&&s.d()}}}function Ct(t){let e,o=t[0].time+"";return{c(){e=y(o)},m(t,o){m(t,e,o)},p(t,n){1&n&&o!==(o=t[0].time+"")&&O(e,o)},d(t){t&&g(e)}}}function kt(t){let e,o=t[0].to.time+"";return{c(){e=y(o)},m(t,o){m(t,e,o)},p(t,n){1&n&&o!==(o=t[0].to.time+"")&&O(e,o)},d(t){t&&g(e)}}}function Ot(t){let e,o,n,i,r=t[0].day&&t[1].day&&_t(t),s=t[0].to.day&&t[1].toDay&&Lt(t);return{c(){e=v("div"),o=v("div"),r&&r.c(),n=w(),i=v("div"),s&&s.c(),C(o,"class","cc-card-date-day-from svelte-6z49w9"),L(o,"width","50%"),L(o,"text-align","center"),L(o,"padding","0.15rem"),C(i,"class","cc-card-date-day-to svelte-6z49w9"),L(i,"width","50%"),L(i,"text-align","center"),L(i,"padding","0.15rem"),C(e,"class","cc-card-date-dual-day svelte-6z49w9"),L(e,"display","flex"),L(e,"font-size","0.7rem")},m(t,l){m(t,e,l),f(e,o),r&&r.m(o,null),f(e,n),f(e,i),s&&s.m(i,null)},p(t,e){t[0].day&&t[1].day?r?r.p(t,e):(r=_t(t),r.c(),r.m(o,null)):r&&(r.d(1),r=null),t[0].to.day&&t[1].toDay?s?s.p(t,e):(s=Lt(t),s.c(),s.m(i,null)):s&&(s.d(1),s=null)},d(t){t&&g(e),r&&r.d(),s&&s.d()}}}function _t(t){let e,o=t[0].day.substring(0,3)+"";return{c(){e=y(o)},m(t,o){m(t,e,o)},p(t,n){1&n&&o!==(o=t[0].day.substring(0,3)+"")&&O(e,o)},d(t){t&&g(e)}}}function Lt(t){let e,o=t[0].to.day.substring(0,3)+"";return{c(){e=y(o)},m(t,o){m(t,e,o)},p(t,n){1&n&&o!==(o=t[0].to.day.substring(0,3)+"")&&O(e,o)},d(t){t&&g(e)}}}function Tt(t){let e,o,n,i,r=t[0].month&&t[1].month&&Mt(t),s=t[0].to.month&&t[1].toMonth&&$t(t);return{c(){e=v("div"),o=v("div"),r&&r.c(),n=w(),i=v("div"),s&&s.c(),C(o,"class","cc-card-date-month-from svelte-6z49w9"),L(o,"width","50%"),L(o,"padding","0.15rem"),C(i,"class","cc-card-date-month-to svelte-6z49w9"),L(i,"width","50%"),L(i,"padding","0.15rem"),C(e,"class","cc-card-date-dual-month svelte-6z49w9"),L(e,"text-align","center"),L(e,"align-items","stretch"),L(e,"display","flex"),L(e,"color","white"),L(e,"background-color","red"),L(e,"padding-top","0.25rem"),L(e,"padding-bottom","0.25rem"),L(e,"border-color","black"),L(e,"border-top-width","1px")},m(t,l){m(t,e,l),f(e,o),r&&r.m(o,null),f(e,n),f(e,i),s&&s.m(i,null)},p(t,e){t[0].month&&t[1].month?r?r.p(t,e):(r=Mt(t),r.c(),r.m(o,null)):r&&(r.d(1),r=null),t[0].to.month&&t[1].toMonth?s?s.p(t,e):(s=$t(t),s.c(),s.m(i,null)):s&&(s.d(1),s=null)},d(t){t&&g(e),r&&r.d(),s&&s.d()}}}function Mt(t){let e,o=t[0].month+"";return{c(){e=y(o)},m(t,o){m(t,e,o)},p(t,n){1&n&&o!==(o=t[0].month+"")&&O(e,o)},d(t){t&&g(e)}}}function $t(t){let e,o=t[0].to.month+"";return{c(){e=y(o)},m(t,o){m(t,e,o)},p(t,n){1&n&&o!==(o=t[0].to.month+"")&&O(e,o)},d(t){t&&g(e)}}}function Dt(t){let e,o,n,i,r=t[0].date&&t[1].date&&It(t),s=t[0].to.date&&t[1].toDate&&At(t);return{c(){e=v("div"),o=v("div"),r&&r.c(),n=w(),i=v("div"),s&&s.c(),C(o,"class","cc-card-date-date-from svelte-6z49w9"),L(o,"width","50%"),C(i,"class","cc-card-date-date-to svelte-6z49w9"),L(i,"width","50%"),C(e,"class","cc-card-date-dual-date svelte-6z49w9"),L(e,"text-align","center"),L(e,"padding-top","0.25rem"),L(e,"align-items","stretch"),L(e,"display","flex"),L(e,"border-left-width","1px"),L(e,"border-right-width","1px"),L(e,"border-bottom-right-radius","0.25rem"),L(e,"border-bottom-left-radius","0.25rem"),L(e,"border-color","black")},m(t,l){m(t,e,l),f(e,o),r&&r.m(o,null),f(e,n),f(e,i),s&&s.m(i,null)},p(t,e){t[0].date&&t[1].date?r?r.p(t,e):(r=It(t),r.c(),r.m(o,null)):r&&(r.d(1),r=null),t[0].to.date&&t[1].toDate?s?s.p(t,e):(s=At(t),s.c(),s.m(i,null)):s&&(s.d(1),s=null)},d(t){t&&g(e),r&&r.d(),s&&s.d()}}}function It(t){let e,o=t[0].date+"";return{c(){e=y(o)},m(t,o){m(t,e,o)},p(t,n){1&n&&o!==(o=t[0].date+"")&&O(e,o)},d(t){t&&g(e)}}}function At(t){let e,o=t[0].to.date+"";return{c(){e=y(o)},m(t,o){m(t,e,o)},p(t,n){1&n&&o!==(o=t[0].to.date+"")&&O(e,o)},d(t){t&&g(e)}}}function Nt(t){let e,o,n,i,r,s,l=Ws(t[0])&&t[0].label&&t[1].label,a=l&&Pt(t),c=t[1].time&&t[0].time&&zt(t),d=t[1].day&&t[0].day&&jt(t),u=t[1].month&&t[0].month&&Rt(t),p=t[1].date&&t[0].date&&Ht(t);return{c(){e=v("div"),a&&a.c(),o=w(),c&&c.c(),n=w(),d&&d.c(),i=w(),u&&u.c(),r=w(),p&&p.c(),C(e,"class",s=h(t[3])+" svelte-6z49w9")},m(t,s){m(t,e,s),a&&a.m(e,null),f(e,o),c&&c.m(e,null),f(e,n),d&&d.m(e,null),f(e,i),u&&u.m(e,null),f(e,r),p&&p.m(e,null)},p(t,f){3&f&&(l=Ws(t[0])&&t[0].label&&t[1].label),l?a?a.p(t,f):(a=Pt(t),a.c(),a.m(e,o)):a&&(a.d(1),a=null),t[1].time&&t[0].time?c?c.p(t,f):(c=zt(t),c.c(),c.m(e,n)):c&&(c.d(1),c=null),t[1].day&&t[0].day?d?d.p(t,f):(d=jt(t),d.c(),d.m(e,i)):d&&(d.d(1),d=null),t[1].month&&t[0].month?u?u.p(t,f):(u=Rt(t),u.c(),u.m(e,r)):u&&(u.d(1),u=null),t[1].date&&t[0].date?p?p.p(t,f):(p=Ht(t),p.c(),p.m(e,null)):p&&(p.d(1),p=null),8&f&&s!==(s=h(t[3])+" svelte-6z49w9")&&C(e,"class",s)},d(t){t&&g(e),a&&a.d(),c&&c.d(),d&&d.d(),u&&u.d(),p&&p.d()}}}function Ut(t){let e,o,n,i,r,s,l=Ws(t[0])&&t[0].label&&t[1].label,a=l&&Bt(t),c=(t[1].time&&t[0].time||t[1].toTime&&t[0].to.time)&&qt(t),d=(t[1].day&&t[0].day||t[1].toDay&&t[0].to.day)&&Gt(t),u=(t[1].month&&t[0].month||t[1].toMonth&&t[0].to.month)&&Kt(t),p=(t[1].date&&t[0].date||t[1].toDate&&t[0].to.date)&&Qt(t);return{c(){e=v("div"),a&&a.c(),o=w(),c&&c.c(),n=w(),d&&d.c(),i=w(),u&&u.c(),r=w(),p&&p.c(),C(e,"class",s=h(t[3])+" svelte-6z49w9")},m(t,s){m(t,e,s),a&&a.m(e,null),f(e,o),c&&c.m(e,null),f(e,n),d&&d.m(e,null),f(e,i),u&&u.m(e,null),f(e,r),p&&p.m(e,null)},p(t,f){3&f&&(l=Ws(t[0])&&t[0].label&&t[1].label),l?a?a.p(t,f):(a=Bt(t),a.c(),a.m(e,o)):a&&(a.d(1),a=null),t[1].time&&t[0].time||t[1].toTime&&t[0].to.time?c?c.p(t,f):(c=qt(t),c.c(),c.m(e,n)):c&&(c.d(1),c=null),t[1].day&&t[0].day||t[1].toDay&&t[0].to.day?d?d.p(t,f):(d=Gt(t),d.c(),d.m(e,i)):d&&(d.d(1),d=null),t[1].month&&t[0].month||t[1].toMonth&&t[0].to.month?u?u.p(t,f):(u=Kt(t),u.c(),u.m(e,r)):u&&(u.d(1),u=null),t[1].date&&t[0].date||t[1].toDate&&t[0].to.date?p?p.p(t,f):(p=Qt(t),p.c(),p.m(e,null)):p&&(p.d(1),p=null),8&f&&s!==(s=h(t[3])+" svelte-6z49w9")&&C(e,"class",s)},d(t){t&&g(e),a&&a.d(),c&&c.d(),d&&d.d(),u&&u.d(),p&&p.d()}}}function Pt(t){let e,o,n=t[0].label+"";return{c(){e=v("div"),o=y(n),C(e,"class","cc-card-date-label svelte-6z49w9")},m(t,n){m(t,e,n),f(e,o)},p(t,e){1&e&&n!==(n=t[0].label+"")&&O(o,n)},d(t){t&&g(e)}}}function zt(t){let e,o,n=t[0].time+"";return{c(){e=v("div"),o=y(n),C(e,"class","cc-card-date-time svelte-6z49w9")},m(t,n){m(t,e,n),f(e,o)},p(t,e){1&e&&n!==(n=t[0].time+"")&&O(o,n)},d(t){t&&g(e)}}}function jt(t){let e,o,n=t[0].day+"";return{c(){e=v("div"),o=y(n),C(e,"class","cc-card-date-day svelte-6z49w9")},m(t,n){m(t,e,n),f(e,o)},p(t,e){1&e&&n!==(n=t[0].day+"")&&O(o,n)},d(t){t&&g(e)}}}function Rt(t){let e,o,n=t[0].month+"";return{c(){e=v("div"),o=y(n),C(e,"class","cc-card-date-month svelte-6z49w9")},m(t,n){m(t,e,n),f(e,o)},p(t,e){1&e&&n!==(n=t[0].month+"")&&O(o,n)},d(t){t&&g(e)}}}function Ht(t){let e,o,n=t[0].date+"";return{c(){e=v("div"),o=y(n),C(e,"class","cc-card-date-date svelte-6z49w9")},m(t,n){m(t,e,n),f(e,o)},p(t,e){1&e&&n!==(n=t[0].date+"")&&O(o,n)},d(t){t&&g(e)}}}function Bt(t){let e,o,n=t[0].label+"";return{c(){e=v("div"),o=y(n),C(e,"class","cc-card-date-label svelte-6z49w9")},m(t,n){m(t,e,n),f(e,o)},p(t,e){1&e&&n!==(n=t[0].label+"")&&O(o,n)},d(t){t&&g(e)}}}function qt(t){let e,o,n,i,r=t[0].time&&t[1].time&&Ft(t),s=t[0].to.time&&t[1].toTime&&Vt(t);return{c(){e=v("div"),o=v("div"),r&&r.c(),n=w(),i=v("div"),s&&s.c(),C(o,"class","cc-card-date-time-from svelte-6z49w9"),C(i,"class","cc-card-date-time-to svelte-6z49w9"),C(e,"class","cc-card-date-dual-time svelte-6z49w9")},m(t,l){m(t,e,l),f(e,o),r&&r.m(o,null),f(e,n),f(e,i),s&&s.m(i,null)},p(t,e){t[0].time&&t[1].time?r?r.p(t,e):(r=Ft(t),r.c(),r.m(o,null)):r&&(r.d(1),r=null),t[0].to.time&&t[1].toTime?s?s.p(t,e):(s=Vt(t),s.c(),s.m(i,null)):s&&(s.d(1),s=null)},d(t){t&&g(e),r&&r.d(),s&&s.d()}}}function Ft(t){let e,o=t[0].time+"";return{c(){e=y(o)},m(t,o){m(t,e,o)},p(t,n){1&n&&o!==(o=t[0].time+"")&&O(e,o)},d(t){t&&g(e)}}}function Vt(t){let e,o=t[0].to.time+"";return{c(){e=y(o)},m(t,o){m(t,e,o)},p(t,n){1&n&&o!==(o=t[0].to.time+"")&&O(e,o)},d(t){t&&g(e)}}}function Gt(t){let e,o,n,i,r=t[0].day&&t[1].day&&Wt(t),s=t[0].to.day&&t[1].toDay&&Yt(t);return{c(){e=v("div"),o=v("div"),r&&r.c(),n=w(),i=v("div"),s&&s.c(),C(o,"class","cc-card-date-day-from svelte-6z49w9"),C(i,"class","cc-card-date-day-to svelte-6z49w9"),C(e,"class","cc-card-date-dual-day svelte-6z49w9")},m(t,l){m(t,e,l),f(e,o),r&&r.m(o,null),f(e,n),f(e,i),s&&s.m(i,null)},p(t,e){t[0].day&&t[1].day?r?r.p(t,e):(r=Wt(t),r.c(),r.m(o,null)):r&&(r.d(1),r=null),t[0].to.day&&t[1].toDay?s?s.p(t,e):(s=Yt(t),s.c(),s.m(i,null)):s&&(s.d(1),s=null)},d(t){t&&g(e),r&&r.d(),s&&s.d()}}}function Wt(t){let e,o=t[0].day.substring(0,3)+"";return{c(){e=y(o)},m(t,o){m(t,e,o)},p(t,n){1&n&&o!==(o=t[0].day.substring(0,3)+"")&&O(e,o)},d(t){t&&g(e)}}}function Yt(t){let e,o=t[0].to.day.substring(0,3)+"";return{c(){e=y(o)},m(t,o){m(t,e,o)},p(t,n){1&n&&o!==(o=t[0].to.day.substring(0,3)+"")&&O(e,o)},d(t){t&&g(e)}}}function Kt(t){let e,o,n,i,r=t[0].month&&t[1].month&&Jt(t),s=t[0].to.month&&t[1].toMonth&&Xt(t);return{c(){e=v("div"),o=v("div"),r&&r.c(),n=w(),i=v("div"),s&&s.c(),C(o,"class","cc-card-date-month-from svelte-6z49w9"),C(i,"class","cc-card-date-month-to svelte-6z49w9"),C(e,"class","cc-card-date-dual-month svelte-6z49w9")},m(t,l){m(t,e,l),f(e,o),r&&r.m(o,null),f(e,n),f(e,i),s&&s.m(i,null)},p(t,e){t[0].month&&t[1].month?r?r.p(t,e):(r=Jt(t),r.c(),r.m(o,null)):r&&(r.d(1),r=null),t[0].to.month&&t[1].toMonth?s?s.p(t,e):(s=Xt(t),s.c(),s.m(i,null)):s&&(s.d(1),s=null)},d(t){t&&g(e),r&&r.d(),s&&s.d()}}}function Jt(t){let e,o=t[0].month+"";return{c(){e=y(o)},m(t,o){m(t,e,o)},p(t,n){1&n&&o!==(o=t[0].month+"")&&O(e,o)},d(t){t&&g(e)}}}function Xt(t){let e,o=t[0].to.month+"";return{c(){e=y(o)},m(t,o){m(t,e,o)},p(t,n){1&n&&o!==(o=t[0].to.month+"")&&O(e,o)},d(t){t&&g(e)}}}function Qt(t){let e,o,n,i,r=t[0].date&&t[1].date&&Zt(t),s=t[0].to.date&&t[1].toDate&&te(t);return{c(){e=v("div"),o=v("div"),r&&r.c(),n=w(),i=v("div"),s&&s.c(),C(o,"class","cc-card-date-date-from svelte-6z49w9"),C(i,"class","cc-card-date-date-to svelte-6z49w9"),C(e,"class","cc-card-date-dual-date svelte-6z49w9")},m(t,l){m(t,e,l),f(e,o),r&&r.m(o,null),f(e,n),f(e,i),s&&s.m(i,null)},p(t,e){t[0].date&&t[1].date?r?r.p(t,e):(r=Zt(t),r.c(),r.m(o,null)):r&&(r.d(1),r=null),t[0].to.date&&t[1].toDate?s?s.p(t,e):(s=te(t),s.c(),s.m(i,null)):s&&(s.d(1),s=null)},d(t){t&&g(e),r&&r.d(),s&&s.d()}}}function Zt(t){let e,o=t[0].date+"";return{c(){e=y(o)},m(t,o){m(t,e,o)},p(t,n){1&n&&o!==(o=t[0].date+"")&&O(e,o)},d(t){t&&g(e)}}}function te(t){let e,o=t[0].to.date+"";return{c(){e=y(o)},m(t,o){m(t,e,o)},p(t,n){1&n&&o!==(o=t[0].to.date+"")&&O(e,o)},d(t){t&&g(e)}}}function ee(e){let o,n=e[0]&&ht(e);return{c(){n&&n.c(),o=x()},m(t,e){n&&n.m(t,e),m(t,o,e)},p(t,[e]){t[0]?n?n.p(t,e):(n=ht(t),n.c(),n.m(o.parentNode,o)):n&&(n.d(1),n=null)},i:t,o:t,d(t){n&&n.d(t),t&&g(o)}}}function oe(t,e,o){let{date:n}=e,{dateShow:i}=e,{flow:r=""}=e,{claytons:s=!1}=e,l="cc-card-date";return""!==r&&(l="cc-card-date-normal"),t.$$set=t=>{"date"in t&&o(0,n=t.date),"dateShow"in t&&o(1,i=t.dateShow),"flow"in t&&o(4,r=t.flow),"claytons"in t&&o(2,s=t.claytons)},[n,i,s,l,r]}class ne extends ct{constructor(t){super(),at(this,t,oe,ee,r,{date:0,dateShow:1,flow:4,claytons:2})}}function ie(t){let e,o;return{c(){e=v("input"),C(e,"type","text"),C(e,"id",o="cc-module-config-"+t[0]+"-date-label"),L(e,"width","10rem"),e.value="",C(e,"class","svelte-z48ct5")},m(t,o){m(t,e,o)},p(t,n){1&n[0]&&o!==(o="cc-module-config-"+t[0]+"-date-label")&&C(e,"id",o)},d(t){t&&g(e)}}}function re(t){let e,o,i,r;return{c(){e=v("input"),C(e,"type","text"),C(e,"id",o="cc-module-config-"+t[0]+"-date-label"),L(e,"width","10rem"),C(e,"class","svelte-z48ct5")},m(o,n){m(o,e,n),_(e,t[2].MODULES[t[0]].date.label),i||(r=[S(e,"keydown",E(t[16])),S(e,"input",t[20]),S(e,"change",t[21])],i=!0)},p(t,n){1&n[0]&&o!==(o="cc-module-config-"+t[0]+"-date-label")&&C(e,"id",o),5&n[0]&&e.value!==t[2].MODULES[t[0]].date.label&&_(e,t[2].MODULES[t[0]].date.label)},d(t){t&&g(e),i=!1,n(r)}}}function se(t){let e,o,i,r,s,l,a,c,d,u,h,p,b,x,T,M,$,D,I,A,N,U,P,z,j,R,H,B,q,F,V,G,W,Y,K,J,X,Q,Z,tt,nt,lt,at,ct,dt,ut,ht,pt,ft,mt,gt,bt,vt,yt,wt,xt,St,Et,Ct,kt,Ot,_t,Lt,Tt,Mt,$t,Dt,It,At,Nt,Ut,Pt,zt,jt,Rt,Ht,Bt,qt,Ft,Vt,Gt,Wt,Yt,Kt,Jt,Xt,Qt,Zt,te,ee,oe,se,le,ae,ce,de,ue,he,pe,fe,me,ge,be,ve,ye,we,xe,Se,Ee,Ce,ke,Oe,_e,Le,Te,Me,$e,De,Ie,Ae,Ne,Ue,Pe,ze,je,Re,He,Be,qe,Fe,Ve,Ge,We,Ye,Ke,Je,Xe,Qe,Ze,to,eo,oo,no,io,ro,so,lo,ao,co,uo,ho,po,fo,mo,go,bo,vo,yo,wo,xo,So,Eo,Co,ko,Oo,_o,Lo,To,Mo,$o,Do,Io,Ao,No,Uo,Po,zo,jo,Ro,Ho,Bo,qo,Fo,Vo,Go,Wo,Yo,Ko,Jo,Xo,Qo,Zo,tn,en,on,nn,rn=t[7].showDate.tooltip+"",sn=t[7].dateLabel.tooltip+"",ln=t[7].dateStart.tooltip+"",an=t[7].showDate.tooltip+"",cn=t[7].showDate.tooltip+"",dn=t[7].showDate.tooltip+"",un=t[7].showDate.tooltip+"",hn=t[2].MODULES[t[0]].date.day+"",pn=t[2].MODULES[t[0]].date.date+"",fn=t[2].MODULES[t[0]].date.month+"",mn=t[7].stopDate.tooltip+"",gn=t[7].showDate.tooltip+"",bn=t[7].showDate.tooltip+"",vn=t[7].showDate.tooltip+"",yn=t[7].showDate.tooltip+"",wn=t[2].MODULES[t[0]].date.to.day+"",xn=t[2].MODULES[t[0]].date.to.date+"",Sn=t[2].MODULES[t[0]].date.to.month+"",En=t[7].outputDate.tooltip+"";function Cn(t,e){return 5&e[0]&&(A=null),null==A&&(A=!(!t[2].MODULES[t[0]].hasOwnProperty("date")||!t[2].MODULES[t[0]].date.hasOwnProperty("label"))),A?re:ie}let kn=Cn(t,[-1,-1]),On=kn(t);return Zo=new ne({props:{date:t[2].MODULES[t[0]].date,dateShow:t[2].MODULES[t[0]].dateShow,flow:"normal"}}),{c(){e=v("div"),o=v("div"),i=v("span"),r=v("label"),s=y("Date label"),a=w(),c=v("sl-tooltip"),d=v("div"),u=w(),h=v("sl-tooltip"),p=v("div"),b=w(),x=v("a"),T=v("i"),M=w(),$=v("input"),D=w(),I=v("span"),On.c(),N=w(),U=v("div"),P=v("div"),z=v("div"),j=y("Start date\n "),R=v("sl-tooltip"),H=v("div"),B=w(),q=v("a"),F=v("i"),V=w(),G=v("div"),W=v("span"),Y=v("label"),K=y("Select date"),X=w(),Q=v("span"),Z=v("sl-input"),lt=w(),at=v("div"),ct=v("span"),dt=v("label"),ut=y("Select time"),pt=w(),ft=v("sl-tooltip"),mt=v("div"),gt=w(),bt=v("input"),vt=w(),yt=v("span"),wt=v("style"),wt.textContent="input[readonly] {\n display: none;\n }",xt=w(),St=v("aeon-datepicker"),Et=v("input"),kt=w(),Ot=v("div"),_t=v("span"),Lt=v("label"),Tt=y("Day"),$t=w(),Dt=v("sl-tooltip"),It=v("div"),At=w(),Nt=v("input"),Ut=w(),Pt=v("span"),zt=v("label"),jt=y("Date"),Ht=w(),Bt=v("sl-tooltip"),qt=v("div"),Ft=w(),Vt=v("input"),Gt=w(),Wt=v("span"),Yt=v("label"),Kt=y("Month"),Xt=w(),Qt=v("sl-tooltip"),Zt=v("div"),te=w(),ee=v("input"),oe=w(),se=v("span"),le=y(hn),ae=w(),ce=v("span"),de=y(pn),ue=w(),he=v("span"),pe=y(fn),me=w(),ge=v("div"),be=v("div"),ve=y("Stop date\n "),ye=v("sl-tooltip"),we=v("div"),xe=w(),Se=v("a"),Ee=v("i"),Ce=w(),ke=v("div"),Oe=v("span"),_e=v("label"),Le=y("Select date"),Me=w(),$e=v("span"),De=v("sl-input"),Ne=w(),Ue=v("div"),Pe=v("span"),ze=v("label"),je=y("Select time"),He=w(),Be=v("sl-tooltip"),qe=v("div"),Fe=w(),Ve=v("input"),Ge=w(),We=v("span"),Ye=v("style"),Ye.textContent="input[readonly] {\n display: none;\n }",Ke=w(),Je=v("aeon-datepicker"),Xe=v("input"),to=w(),eo=v("div"),oo=v("span"),no=v("label"),io=y("Day"),so=w(),lo=v("sl-tooltip"),ao=v("div"),co=w(),uo=v("input"),ho=w(),po=v("span"),fo=v("label"),mo=y("Date"),bo=w(),vo=v("sl-tooltip"),yo=v("div"),wo=w(),xo=v("input"),So=w(),Eo=v("span"),Co=v("label"),ko=y("Month"),_o=w(),Lo=v("sl-tooltip"),To=v("div"),Mo=w(),$o=v("input"),Do=w(),Io=v("span"),Ao=y(wn),No=w(),Uo=v("span"),Po=y(xn),zo=w(),jo=v("span"),Ro=y(Sn),qo=w(),Fo=v("div"),Vo=v("div"),Go=y("Date output\n "),Wo=v("sl-tooltip"),Yo=v("div"),Ko=w(),Jo=v("i"),Xo=w(),Qo=v("div"),it(Zo.$$.fragment),C(r,"for",l="cc-module-config-"+t[0]+"-date-label"),C(r,"class","svelte-z48ct5"),C(d,"slot","content"),C(p,"slot","content"),C(T,"class","icon-question cc-module-icon"),C(x,"target","_blank"),C(x,"rel","noreferrer"),C(x,"href",t[7].dateLabel.href),k(h,"id","cc-about-module-date-label"),k(h,"class","svelte-z48ct5"),C($,"type","checkbox"),C($,"class","svelte-z48ct5"),k(c,"id","cc-about-module-show-label"),k(c,"class","svelte-z48ct5"),C(i,"class","cc-module-label svelte-z48ct5"),C(I,"class","cc-module-input svelte-z48ct5"),C(o,"class","cc-module-form svelte-z48ct5"),C(e,"class","cc-date-label"),C(H,"slot","content"),C(F,"class","icon-question cc-module-icon"),C(q,"target","_blank"),C(q,"rel","noreferrer"),C(q,"href",t[7].dateStart.href),k(R,"id","cc-about-module-date-start"),k(R,"class","svelte-z48ct5"),C(z,"class","cc-date-heading svelte-z48ct5"),C(Y,"for",J="cc-module-config-"+t[0]+"-day"),C(Y,"class","svelte-z48ct5"),C(W,"class","cc-module-label svelte-z48ct5"),k(Z,"id",tt="cc-module-config-"+t[0]+"-calendar-date"),k(Z,"size","small"),k(Z,"type","date"),k(Z,"value",nt=t[2].MODULES[t[0]].date.calendarDate||""),C(Q,"class","cc-module-input"),C(G,"class","cc-module-form svelte-z48ct5"),C(dt,"for",ht="cc-module-config-"+t[0]+"-time"),C(dt,"class","svelte-z48ct5"),C(mt,"slot","content"),C(bt,"type","checkbox"),C(bt,"class","svelte-z48ct5"),k(ft,"id","cc-about-module-show-start-time"),k(ft,"class","svelte-z48ct5"),C(ct,"class","cc-module-label svelte-z48ct5"),C(Et,"type","time"),C(Et,"id",Ct="cc-module-config-"+t[0]+"-time"),C(Et,"name","time"),C(Et,"class","svelte-z48ct5"),k(St,"local","en-au"),C(yt,"class","cc-module-input svelte-z48ct5"),C(at,"class","cc-module-form svelte-z48ct5"),C(Lt,"for",Mt="cc-module-config-"+t[0]+"-day"),C(Lt,"class","svelte-z48ct5"),C(It,"slot","content"),C(Nt,"type","checkbox"),C(Nt,"class","svelte-z48ct5"),k(Dt,"id","cc-about-module-day-stop"),k(Dt,"class","svelte-z48ct5"),C(_t,"class","cc-module-label-display svelte-z48ct5"),C(zt,"for",Rt="cc-module-config-"+t[0]+"-date"),C(zt,"class","svelte-z48ct5"),C(qt,"slot","content"),C(Vt,"type","checkbox"),C(Vt,"class","svelte-z48ct5"),k(Bt,"id","cc-about-module-date-stop"),k(Bt,"class","svelte-z48ct5"),C(Pt,"class","cc-module-label-display svelte-z48ct5"),C(Yt,"for",Jt="cc-module-config-"+t[0]+"-month"),C(Yt,"class","svelte-z48ct5"),C(Zt,"slot","content"),C(ee,"type","checkbox"),C(ee,"class","svelte-z48ct5"),k(Qt,"id","cc-about-module-month-stop"),k(Qt,"class","svelte-z48ct5"),C(Wt,"class","cc-module-label-display svelte-z48ct5"),C(se,"class","cc-module-input-display svelte-z48ct5"),C(ce,"class","cc-module-input-display svelte-z48ct5"),C(he,"class","cc-module-input-display svelte-z48ct5"),C(Ot,"class","cc-module-date-display svelte-z48ct5"),C(P,"class","cc-date-col"),C(P,"id",fe="cc-module-config-"+t[0]+"-date-start"),C(we,"slot","content"),C(Ee,"class","icon-question cc-module-icon"),C(Se,"target","_blank"),C(Se,"rel","noreferrer"),C(Se,"href",t[7].stopDate.href),k(ye,"id","cc-about-module-date-stop"),k(ye,"class","svelte-z48ct5"),C(be,"class","cc-date-heading svelte-z48ct5"),C(_e,"for",Te="cc-module-config-"+t[0]+"-calendar-date-to"),C(_e,"class","svelte-z48ct5"),C(Oe,"class","cc-module-label svelte-z48ct5"),k(De,"id",Ie="cc-module-config-"+t[0]+"-calendar-date-to"),k(De,"type","date"),k(De,"size","small"),k(De,"value",Ae=t[2].MODULES[t[0]].date.to.calendarDate||""),C($e,"class","cc-module-input"),C(ke,"class","cc-module-form svelte-z48ct5"),C(ze,"for",Re="cc-module-config-"+t[0]+"-time-to"),C(ze,"class","svelte-z48ct5"),C(qe,"slot","content"),C(Ve,"type","checkbox"),Ve.disabled=t[1],C(Ve,"class","svelte-z48ct5"),k(Be,"id","cc-about-module-show-stop-time"),k(Be,"class","svelte-z48ct5"),C(Pe,"class","cc-module-label svelte-z48ct5"),C(Xe,"type","time"),C(Xe,"id",Qe="cc-module-config-"+t[0]+"-time-to"),C(Xe,"name","time"),C(Xe,"class","svelte-z48ct5"),k(Je,"local","en-au"),C(We,"class","cc-module-input svelte-z48ct5"),C(Ue,"class",Ze="cc-module-form "+t[3]+" svelte-z48ct5"),C(no,"for",ro="cc-module-config-"+t[0]+"-day"),C(no,"class","svelte-z48ct5"),C(ao,"slot","content"),C(uo,"type","checkbox"),uo.disabled=t[1],C(uo,"class","svelte-z48ct5"),k(lo,"id","cc-about-module-date-stop"),k(lo,"class","svelte-z48ct5"),C(oo,"class","cc-module-label-display svelte-z48ct5"),C(fo,"for",go="cc-module-config-"+t[0]+"-date"),C(fo,"class","svelte-z48ct5"),C(yo,"slot","content"),C(xo,"type","checkbox"),xo.disabled=t[1],C(xo,"class","svelte-z48ct5"),k(vo,"id","cc-about-module-date-stop"),k(vo,"class","svelte-z48ct5"),C(po,"class","cc-module-label-display svelte-z48ct5"),C(Co,"for",Oo="cc-module-config-"+t[0]+"-month"),C(Co,"class","svelte-z48ct5"),C(To,"slot","content"),C($o,"type","checkbox"),$o.disabled=t[1],C($o,"class","svelte-z48ct5"),k(Lo,"id","cc-about-module-date-stop"),k(Lo,"class","svelte-z48ct5"),C(Eo,"class","cc-module-label-display svelte-z48ct5"),C(Io,"class","cc-module-input-display svelte-z48ct5"),C(Uo,"class","cc-module-input-display svelte-z48ct5"),C(jo,"class","cc-module-input-display svelte-z48ct5"),C(eo,"class",Ho="cc-module-date-display "+t[3]+" svelte-z48ct5"),C(ge,"class","cc-date-col"),C(ge,"id",Bo="cc-module-config-"+t[0]+"-date-stop"),C(Yo,"slot","content"),C(Jo,"class","icon-question cc-module-icon"),k(Wo,"id","cc-about-module-date-output"),k(Wo,"class","svelte-z48ct5"),C(Vo,"class","cc-date-heading svelte-z48ct5"),L(Qo,"padding-left","2em"),C(Fo,"class","cc-date-col"),C(Fo,"id",tn="cc-module-config-"+t[0]+"-date-output"),C(U,"class","cc-date-row svelte-z48ct5")},m(n,l){m(n,e,l),f(e,o),f(o,i),f(i,r),f(r,s),f(i,a),f(i,c),f(c,d),d.innerHTML=rn,f(c,u),f(c,h),f(h,p),p.innerHTML=sn,f(h,b),f(h,x),f(x,T),f(c,M),f(c,$),$.checked=t[2].MODULES[t[0]].dateShow.label,f(o,D),f(o,I),On.m(I,null),m(n,N,l),m(n,U,l),f(U,P),f(P,z),f(z,j),f(z,R),f(R,H),H.innerHTML=ln,f(R,B),f(R,q),f(q,F),f(P,V),f(P,G),f(G,W),f(W,Y),f(Y,K),f(G,X),f(G,Q),f(Q,Z),f(P,lt),f(P,at),f(at,ct),f(ct,dt),f(dt,ut),f(ct,pt),f(ct,ft),f(ft,mt),mt.innerHTML=an,f(ft,gt),f(ft,bt),bt.checked=t[2].MODULES[t[0]].dateShow.time,f(at,vt),f(at,yt),f(yt,wt),f(yt,xt),f(yt,St),f(St,Et),_(Et,t[2].MODULES[t[0]].date.time),f(P,kt),f(P,Ot),f(Ot,_t),f(_t,Lt),f(Lt,Tt),f(_t,$t),f(_t,Dt),f(Dt,It),It.innerHTML=cn,f(Dt,At),f(Dt,Nt),Nt.checked=t[2].MODULES[t[0]].dateShow.day,f(Ot,Ut),f(Ot,Pt),f(Pt,zt),f(zt,jt),f(Pt,Ht),f(Pt,Bt),f(Bt,qt),qt.innerHTML=dn,f(Bt,Ft),f(Bt,Vt),Vt.checked=t[2].MODULES[t[0]].dateShow.date,f(Ot,Gt),f(Ot,Wt),f(Wt,Yt),f(Yt,Kt),f(Wt,Xt),f(Wt,Qt),f(Qt,Zt),Zt.innerHTML=un,f(Qt,te),f(Qt,ee),ee.checked=t[2].MODULES[t[0]].dateShow.month,f(Ot,oe),f(Ot,se),f(se,le),f(Ot,ae),f(Ot,ce),f(ce,de),f(Ot,ue),f(Ot,he),f(he,pe),f(U,me),f(U,ge),f(ge,be),f(be,ve),f(be,ye),f(ye,we),we.innerHTML=mn,f(ye,xe),f(ye,Se),f(Se,Ee),f(ge,Ce),f(ge,ke),f(ke,Oe),f(Oe,_e),f(_e,Le),f(ke,Me),f(ke,$e),f($e,De),f(ge,Ne),f(ge,Ue),f(Ue,Pe),f(Pe,ze),f(ze,je),f(Pe,He),f(Pe,Be),f(Be,qe),qe.innerHTML=gn,f(Be,Fe),f(Be,Ve),Ve.checked=t[2].MODULES[t[0]].dateShow.toTime,f(Ue,Ge),f(Ue,We),f(We,Ye),f(We,Ke),f(We,Je),f(Je,Xe),_(Xe,t[2].MODULES[t[0]].date.to.time),f(ge,to),f(ge,eo),f(eo,oo),f(oo,no),f(no,io),f(oo,so),f(oo,lo),f(lo,ao),ao.innerHTML=bn,f(lo,co),f(lo,uo),uo.checked=t[2].MODULES[t[0]].dateShow.toDay,f(eo,ho),f(eo,po),f(po,fo),f(fo,mo),f(po,bo),f(po,vo),f(vo,yo),yo.innerHTML=vn,f(vo,wo),f(vo,xo),xo.checked=t[2].MODULES[t[0]].dateShow.toDate,f(eo,So),f(eo,Eo),f(Eo,Co),f(Co,ko),f(Eo,_o),f(Eo,Lo),f(Lo,To),To.innerHTML=yn,f(Lo,Mo),f(Lo,$o),$o.checked=t[2].MODULES[t[0]].dateShow.toMonth,f(eo,Do),f(eo,Io),f(Io,Ao),f(eo,No),f(eo,Uo),f(Uo,Po),f(eo,zo),f(eo,jo),f(jo,Ro),f(U,qo),f(U,Fo),f(Fo,Vo),f(Vo,Go),f(Vo,Wo),f(Wo,Yo),Yo.innerHTML=En,f(Wo,Ko),f(Wo,Jo),f(Fo,Xo),f(Fo,Qo),rt(Zo,Qo,null),en=!0,on||(nn=[S($,"keydown",E(t[17])),S($,"change",t[18]),S($,"click",t[19]),S(Z,"sl-change",t[5]),S(bt,"keydown",E(t[15])),S(bt,"change",t[22]),S(bt,"click",t[23]),S(Et,"input",t[24]),S(Nt,"keydown",E(t[14])),S(Nt,"change",t[25]),S(Nt,"click",t[26]),S(Vt,"keydown",E(t[13])),S(Vt,"change",t[27]),S(Vt,"click",t[28]),S(ee,"keydown",E(t[12])),S(ee,"change",t[29]),S(ee,"click",t[30]),S(De,"sl-change",t[6]),S(Ve,"keydown",E(t[11])),S(Ve,"change",t[31]),S(Ve,"click",t[32]),S(Xe,"input",t[33]),S(uo,"keydown",E(t[10])),S(uo,"change",t[34]),S(uo,"click",t[35]),S(xo,"keydown",E(t[9])),S(xo,"change",t[36]),S(xo,"click",t[37]),S($o,"keydown",E(t[8])),S($o,"change",t[38]),S($o,"click",t[39])],on=!0)},p(t,e){(!en||1&e[0]&&l!==(l="cc-module-config-"+t[0]+"-date-label"))&&C(r,"for",l),5&e[0]&&($.checked=t[2].MODULES[t[0]].dateShow.label),kn===(kn=Cn(t,e))&&On?On.p(t,e):(On.d(1),On=kn(t),On&&(On.c(),On.m(I,null))),(!en||1&e[0]&&J!==(J="cc-module-config-"+t[0]+"-day"))&&C(Y,"for",J),(!en||1&e[0]&&tt!==(tt="cc-module-config-"+t[0]+"-calendar-date"))&&k(Z,"id",tt),(!en||5&e[0]&&nt!==(nt=t[2].MODULES[t[0]].date.calendarDate||""))&&k(Z,"value",nt),(!en||1&e[0]&&ht!==(ht="cc-module-config-"+t[0]+"-time"))&&C(dt,"for",ht),5&e[0]&&(bt.checked=t[2].MODULES[t[0]].dateShow.time),(!en||1&e[0]&&Ct!==(Ct="cc-module-config-"+t[0]+"-time"))&&C(Et,"id",Ct),5&e[0]&&_(Et,t[2].MODULES[t[0]].date.time),(!en||1&e[0]&&Mt!==(Mt="cc-module-config-"+t[0]+"-day"))&&C(Lt,"for",Mt),5&e[0]&&(Nt.checked=t[2].MODULES[t[0]].dateShow.day),(!en||1&e[0]&&Rt!==(Rt="cc-module-config-"+t[0]+"-date"))&&C(zt,"for",Rt),5&e[0]&&(Vt.checked=t[2].MODULES[t[0]].dateShow.date),(!en||1&e[0]&&Jt!==(Jt="cc-module-config-"+t[0]+"-month"))&&C(Yt,"for",Jt),5&e[0]&&(ee.checked=t[2].MODULES[t[0]].dateShow.month),(!en||5&e[0])&&hn!==(hn=t[2].MODULES[t[0]].date.day+"")&&O(le,hn),(!en||5&e[0])&&pn!==(pn=t[2].MODULES[t[0]].date.date+"")&&O(de,pn),(!en||5&e[0])&&fn!==(fn=t[2].MODULES[t[0]].date.month+"")&&O(pe,fn),(!en||1&e[0]&&fe!==(fe="cc-module-config-"+t[0]+"-date-start"))&&C(P,"id",fe),(!en||1&e[0]&&Te!==(Te="cc-module-config-"+t[0]+"-calendar-date-to"))&&C(_e,"for",Te),(!en||1&e[0]&&Ie!==(Ie="cc-module-config-"+t[0]+"-calendar-date-to"))&&k(De,"id",Ie),(!en||5&e[0]&&Ae!==(Ae=t[2].MODULES[t[0]].date.to.calendarDate||""))&&k(De,"value",Ae),(!en||1&e[0]&&Re!==(Re="cc-module-config-"+t[0]+"-time-to"))&&C(ze,"for",Re),(!en||2&e[0])&&(Ve.disabled=t[1]),5&e[0]&&(Ve.checked=t[2].MODULES[t[0]].dateShow.toTime),(!en||1&e[0]&&Qe!==(Qe="cc-module-config-"+t[0]+"-time-to"))&&C(Xe,"id",Qe),5&e[0]&&_(Xe,t[2].MODULES[t[0]].date.to.time),(!en||8&e[0]&&Ze!==(Ze="cc-module-form "+t[3]+" svelte-z48ct5"))&&C(Ue,"class",Ze),(!en||1&e[0]&&ro!==(ro="cc-module-config-"+t[0]+"-day"))&&C(no,"for",ro),(!en||2&e[0])&&(uo.disabled=t[1]),5&e[0]&&(uo.checked=t[2].MODULES[t[0]].dateShow.toDay),(!en||1&e[0]&&go!==(go="cc-module-config-"+t[0]+"-date"))&&C(fo,"for",go),(!en||2&e[0])&&(xo.disabled=t[1]),5&e[0]&&(xo.checked=t[2].MODULES[t[0]].dateShow.toDate),(!en||1&e[0]&&Oo!==(Oo="cc-module-config-"+t[0]+"-month"))&&C(Co,"for",Oo),(!en||2&e[0])&&($o.disabled=t[1]),5&e[0]&&($o.checked=t[2].MODULES[t[0]].dateShow.toMonth),(!en||5&e[0])&&wn!==(wn=t[2].MODULES[t[0]].date.to.day+"")&&O(Ao,wn),(!en||5&e[0])&&xn!==(xn=t[2].MODULES[t[0]].date.to.date+"")&&O(Po,xn),(!en||5&e[0])&&Sn!==(Sn=t[2].MODULES[t[0]].date.to.month+"")&&O(Ro,Sn),(!en||8&e[0]&&Ho!==(Ho="cc-module-date-display "+t[3]+" svelte-z48ct5"))&&C(eo,"class",Ho),(!en||1&e[0]&&Bo!==(Bo="cc-module-config-"+t[0]+"-date-stop"))&&C(ge,"id",Bo);const o={};5&e[0]&&(o.date=t[2].MODULES[t[0]].date),5&e[0]&&(o.dateShow=t[2].MODULES[t[0]].dateShow),Zo.$set(o),(!en||1&e[0]&&tn!==(tn="cc-module-config-"+t[0]+"-date-output"))&&C(Fo,"id",tn)},i(t){en||(et(Zo.$$.fragment,t),en=!0)},o(t){ot(Zo.$$.fragment,t),en=!1},d(t){t&&g(e),On.d(),t&&g(N),t&&g(U),st(Zo),on=!1,n(nn)}}}function le(t){Object.hasOwnProperty.call(t,"calendarDate")||Object.hasOwnProperty.call(t,"month")&&Object.hasOwnProperty.call(t,"date")&&Object.hasOwnProperty.call(t,"year")&&function(t){const e={Jan:"01",Feb:"02",Mar:"03",Apr:"04",May:"05",Jun:"06",Jul:"07",Aug:"08",Sep:"09",Oct:"10",Nov:"11",Dec:"12"};let o;if(!(t.month in e))return;o=e[t.month];const n=`${t.year}-${o}-${t.date}`,i=new Date(n);i instanceof Date&&!isNaN(i.valueOf())&&(t.calendarDate=n)}(t)}function ae(t,e,o){let n,i;u(t,sc,(t=>o(2,n=t))),u(t,ac,(t=>o(4,i=t)));let{moduleId:r}=e,s=!1,l="";function a(t,e=!1){let o=`cc-module-config-${r}-calendar-date`,i={};!0===e&&(o+="-to");const s=document.getElementById(o);if(null===s)return;const l=s.value;if(i.calendarDate=l,""===l)i.year="",i.month="",i.day="",i.date="";else{const t=new Date(l);i.year=t.getFullYear().toString(),i.month=t.toLocaleString("default",{month:"short"}),i.day=t.toLocaleString("default",{weekday:"short"}),i.date=t.getDate().toString()}Object.keys(i).forEach((t=>{p(sc,!0===e?n.MODULES[r].date.to[t]=i[t]:n.MODULES[r].date[t]=i[t],n)}))}le(n.MODULES[r].date),le(n.MODULES[r].date.to);const c={studyPeriod:{tooltip:"The term is automatically identified from the course site. The academic\n\t\tcalendar for this term will be used to translate the generic date Monday Week 1 into a calendar date.",href:"https://djplaner.github.io/canvas-collections/reference/conceptual-model/objects/dates/#study-period"},dateLabel:{tooltip:"A short textual label to add before the date details (no HTML).",href:"https://djplaner.github.io/canvas-collections/reference/conceptual-model/objects/dates/#date-label"},dateStart:{tooltip:'Specify a single date, or becomes the start date in a date range when used \n\t\twith "stop" date.',href:"https://djplaner.github.io/canvas-collections/reference/conceptual-model/objects/dates/#start-and-stop-date"},stopDate:{tooltip:"Specify the 'stop' date for a date range. Date is relative to the specific study period.",href:"https://djplaner.github.io/canvas-collections/reference/conceptual-model/objects/dates/#start-and-stop-date"},calculatedDate:{tooltip:"Representation of the date as configured by Start Date and possible Stop Date.",href:"https://djplaner.github.io/canvas-collections/reference/conceptual-model/objects/dates/#calculated-date"},showDate:{tooltip:"Select to show this portion of the date in the representation."},outputDate:{tooltip:"A live representation of the configured date.",href:"https://djplaner.github.io/canvas-collections/reference/conceptual-model/objects/dates/#date-output"},calendarDate:{tooltip:"

Calculated automatically based on the academic calendar and the current term.

\n

Use the above to change.

"}};return t.$$set=t=>{"moduleId"in t&&o(0,r=t.moduleId)},t.$$.update=()=>{7&t.$$.dirty[0]&&(o(1,s=!n.MODULES[r].date.to.hasOwnProperty("calendarDate")||""===n.MODULES[r].date.to.calendarDate),o(3,l=s?"cc-no-stop-date-set":""))},[r,s,n,l,i,a,function(){a(0,!0)},c,function(e){z.call(this,t,e)},function(e){z.call(this,t,e)},function(e){z.call(this,t,e)},function(e){z.call(this,t,e)},function(e){z.call(this,t,e)},function(e){z.call(this,t,e)},function(e){z.call(this,t,e)},function(e){z.call(this,t,e)},function(e){z.call(this,t,e)},function(e){z.call(this,t,e)},function(){n.MODULES[r].dateShow.label=this.checked,sc.set(n)},()=>{p(ac,i.needToSaveCollections=!0,i)},function(){n.MODULES[r].date.label=this.value,sc.set(n)},()=>{p(ac,i.needToSaveCollections=!0,i)},function(){n.MODULES[r].dateShow.time=this.checked,sc.set(n)},()=>{p(ac,i.needToSaveCollections=!0,i)},function(){n.MODULES[r].date.time=this.value,sc.set(n)},function(){n.MODULES[r].dateShow.day=this.checked,sc.set(n)},()=>{p(ac,i.needToSaveCollections=!0,i)},function(){n.MODULES[r].dateShow.date=this.checked,sc.set(n)},()=>{p(ac,i.needToSaveCollections=!0,i)},function(){n.MODULES[r].dateShow.month=this.checked,sc.set(n)},()=>{p(ac,i.needToSaveCollections=!0,i)},function(){n.MODULES[r].dateShow.toTime=this.checked,sc.set(n)},()=>{p(ac,i.needToSaveCollections=!0,i)},function(){n.MODULES[r].date.to.time=this.value,sc.set(n)},function(){n.MODULES[r].dateShow.toDay=this.checked,sc.set(n)},()=>{p(ac,i.needToSaveCollections=!0,i)},function(){n.MODULES[r].dateShow.toDate=this.checked,sc.set(n)},()=>{p(ac,i.needToSaveCollections=!0,i)},function(){n.MODULES[r].dateShow.toMonth=this.checked,sc.set(n)},()=>{p(ac,i.needToSaveCollections=!0,i)}]}class ce extends ct{constructor(t){super(),at(this,t,ae,se,r,{moduleId:0},null,[-1,-1])}}let de="",ue="";const he=async t=>{const e=t;try{const t=await fetch(e),o=await t.json();return{status:t.status,res:t,body:o}}catch(e){console.error(`Could not fetchData(${t}) requested information: ${e}`)}},pe=async(t,e)=>{const o=t;try{const t=await fetch(o,{method:"DELETE",credentials:"include",headers:{"Content-Type":"application/json",Accept:"application/json","X-CSRF-Token":e},keepalive:!0});if(404===t.status)return null;if(401===t.status)return null;return await t.json()}catch(t){console.error(`Could not delete requested information: ${t}`)}},fe=async(t,e,o,n="POST")=>{try{const i=await fetch(t,{method:n,credentials:"include",headers:{"Content-Type":"application/json; charset=UTF-8",Accept:"application/json; charset=UTF-8","X-CSRF-Token":o},body:e});if(404===i.status)return null;if(401===i.status)return null;return await i.json()}catch(t){console.error(`Could not post requested information: ${t}`)}};function me(){if(document.querySelector("div#canvas-collections-representation"))return null;const t=document.querySelector("div#context_modules");if(!t)return null;let e=document.createElement("div");return e.id="canvas-collections-representation",t.prepend(e),e}function ge(){const t=document.querySelector("div#canvas-collections-representation");t&&t.remove()}function be(t){Object.keys(t).forEach((t=>{const e=document.querySelector(`div#cc-module-config-${t}`);e&&e.remove();const o=document.getElementById(`context_module_${t}`);o&&(o.style.display="block")}))}function ve(t,e,o){if(void 0===t)return console.trace(),void alert("getPageName: pageName is undefined");if(""!==t){const n=ye(t,e);he(n).then((e=>{o(t,e.body)}))}}function ye(t,e,o=!0){String.prototype.slugify=function(t="-"){return this.toString().normalize("NFD").replace(/[\u0300-\u036f]/g,"").toLowerCase().trim().replace("@","at").replace(/[^a-z0-9 ]/g,"").replace(/\s+/g,t)};const n=t.slugify();return o?`${de}/courses/${e}/pages/${n}`:`${ue}/courses/${e}/pages/${n}`}function we(t,e,o,n=!0){if(void 0!==t){if(""!==t){const i=encodeURIComponent(t);he(`${de}/courses/${e}/pages/?sort=updated_at&order=desc&include[]=body&search_term=${i}`).then((e=>{o(t,n?e.body:e)}))}}else console.error("getPageTitle: pageName is undefined")}var xe="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function Se(t){if(t.__esModule)return t;var e=Object.defineProperty({},"__esModule",{value:!0});return Object.keys(t).forEach((function(o){var n=Object.getOwnPropertyDescriptor(t,o);Object.defineProperty(e,o,n.get?n:{enumerable:!0,get:function(){return t[o]}})})),e}function Ee(t){var e={exports:{}};return t(e,e.exports),e.exports}var Ce=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏ੊ઑඡ๭༉༦჊ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ὾⁠↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms„‹•˜¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲ΂ϏϢϸontourIntegraìȹoɴ͹\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՗՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲ׌y;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱cò׋؀JTabcdfgorstר׬ׯ׺؀ؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d׷׸䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇܎ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ޷޼߂ߐĀiyޱ޵rc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄΀HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶߻dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣ঳সে্਷ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗ࡜ࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४Ānrࢃ࢏gleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpw৔ਖਛgȀLRlr৞৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼੝੠੷੼અઋ઎p;椅y;䐜Ādl੥੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑ඗ඞcy;䐊cute;䅃ƀaey઴હાron;䅇dil;䅅;䐝ƀgswે૰଎ativeƀMTV૓૟૨ediumSpace;怋hiĀcn૦૘ë૙eryThiî૙tedĀGL૸ଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷ଺reak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪୼஡௫ఄ౞಄ದ೘ൡඅ櫬Āou୛୤ngruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊ஛ement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater΀;EFGLSTஶஷ஽௉௓௘௥扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲௽ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ೒拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨೹setĀ;E೰ೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂ෉෕ෛ෠෧෼ขภยา฿ไlig;䅒cute耻Ó䃓Āiy෎ීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲ෶cr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬื฼de耻Õ䃕es;樷ml耻Ö䃖erĀBP๋๠Āar๐๓r;怾acĀek๚๜;揞et;掴arenthesis;揜Ҁacfhilors๿ງຊຏຒດຝະ໼rtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ໠໤檻cedesȀ;EST່້໏໚扺qual;檯lantEqual;扼ilde;找me;怳Ādp໩໮uct;戏ortionĀ;aȥ໹l;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬؀BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁࿫࿳ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL࿜࿝࿡憒ar;懥eftArrow;懄eiling;按oǵ࿹\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»࿝pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄ቉ቕ቞ቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHc቎ቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗Āeiቻ኉Dzኀ\0ኇefore;戴a;䎘Ācn኎ኘkSpace;쀀  Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0᏿ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0጖y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻፿on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtè૙a;䎖r;愨pf;愤cr;쀀𝒵௡ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚΀;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒΀;Eaeiop዁ᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;e዁ᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;e዁ᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰ᜼ᝃᝈ᝸᝽០៦ᠹᡐᜍ᤽᥈ᥰot;櫭Ācrᛶ᜞kȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e᜚᜛戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;t፜᜷brk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓ᝛ᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯ᝱ᝳ;䎲;愶een;扬r;쀀𝔟g΀costuvwឍឝឳេ៕៛៞ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀako៭ᠦᠵĀcn៲ᠣkƀlst៺֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘᠝斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈؀DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬ᣿ᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教΀;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ᣷᣹᣻᣽;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ᤟;敛;敘;攘;攔΀;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģ᥂bar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;e᜚᜜lƀ;bhᥨᥩᥫ䁜;槅sub;柈Ŭᥴ᥾lĀ;e᥹᥺怢t»᥺pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭍᭒\0᯽\0ᰌƀcpr᦭ᦲ᧝ute;䄇̀;abcdsᦿᧀᧄ᧊᧕᧙戩nd;橄rcup;橉Āau᧏᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r΀;Ecefms᩟᩠ᩢᩫ᪤᪪᪮旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖᪚᪟»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇᫔᫺\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ᫙\0\0᫢aĀ;t᫞᫟䀬;䁀ƀ;fl᫨᫩᫫戁îᅠeĀmx᫱᫶ent»᫩eóɍǧ᫾\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯΀delprvw᭠᭬᭷ᮂᮬᯔ᯹arrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;p᭿ᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰸᰻᰿ᱝᱩᱵᲊᲞᲬᲷ᳻᳿ᴍᵻᶑᶫᶻ᷆᷍rò΁ar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂͸᳖᳜᳠mƀ;oș᳊᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄ὎὚ĀDoḆᴴoôᲉĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»Ṻƀaeiἒ἖Ἒls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙ῜ῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao‌⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧‪‬\0‮耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₟₥₰₴⃰⃵⃺⃿℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕ₝ute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽⃉ƀ;qsؾٌ⃄lanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqr׮ⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0↎proø₞r;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢␧␭␱␵␻ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀஀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼rò৆òΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonó྘quigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d྘➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ᠛旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐௏쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop඄⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roø඄urĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓΀;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨í஘istĀ;s஠டr;쀀𝔫ȀEest௅⩦⩹⩼ƀ;qs஼⩭௡ƀ;qs஼௅⩴lanô௢ií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚΀AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs఻⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs఻⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast୻⭕⭚⭟lleì୻l;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖ΀chimpqu⮽⯍⯙⬄୸⯤⯯Ȁ;cerല⯆ഷ⯉uå൅;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭å೸åഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñ೗Ā;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰⳴ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥ⵲ⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;c᪞ⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācr⵩⵭ir;榿;쀀𝔬ͯ⵹\0\0⵼\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕ⶘ⶥⶨrò᪀Āir⶝ⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔ⷗ǒr;榷rp;榹΀;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ⹞\0⹽\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ⹧⹲຅脀¶;l⹭⹮䂶leìЃɩ⹸\0\0⹻m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳⻴ᤈ⻹⻽⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp໬⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t໻⾴ï໻rel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⿚⋢⿟⿥⿫⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei⿾々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔઀ABHabcdefhilmnoprstux぀けさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤΀cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstw࿜ガクシスゼゾダッデナp;極Ā;f࿠ゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes㄂㄄;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ì࿲âヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘㇤㇮rrowĀ;t࿜ㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowó࿪arpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓rò࿪aòՑ;怏oustĀ;a㈞㈟掱che»㈟mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦΀Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼਴t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì⹯耻­䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;q኱ኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫ਩war;椪lig耻ß䃟௡㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rë๟ƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproø዁im»ኬsðኞĀas㚺㚮ð዁rn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈ΀adempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xô᝷headĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜΀eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roð໻tré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚΀cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜ៟tré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map((function(t){return t.charCodeAt(0)}))),ke=Object.defineProperty({default:Ce},"__esModule",{value:!0}),Oe=new Uint16Array("Ȁaglq\tɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map((function(t){return t.charCodeAt(0)}))),_e=Object.defineProperty({default:Oe},"__esModule",{value:!0}),Le=Ee((function(t,e){var o;Object.defineProperty(e,"__esModule",{value:!0}),e.replaceCodePoint=e.fromCodePoint=void 0;var n=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]);function i(t){var e;return t>=55296&&t<=57343||t>1114111?65533:null!==(e=n.get(t))&&void 0!==e?e:t}e.fromCodePoint=null!==(o=String.fromCodePoint)&&void 0!==o?o:function(t){var e="";return t>65535&&(t-=65536,e+=String.fromCharCode(t>>>10&1023|55296),t=56320|1023&t),e+=String.fromCharCode(t)},e.replaceCodePoint=i,e.default=function(t){return(0,e.fromCodePoint)(i(t))}})),Te=ke,Me=_e,$e=Le,De=Ee((function(t,e){var o=xe&&xe.__createBinding||(Object.create?function(t,e,o,n){void 0===n&&(n=o);var i=Object.getOwnPropertyDescriptor(e,o);i&&!("get"in i?!e.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return e[o]}}),Object.defineProperty(t,n,i)}:function(t,e,o,n){void 0===n&&(n=o),t[n]=e[o]}),n=xe&&xe.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),i=xe&&xe.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var i in t)"default"!==i&&Object.prototype.hasOwnProperty.call(t,i)&&o(e,t,i);return n(e,t),e},r=xe&&xe.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.decodeXML=e.decodeHTMLStrict=e.decodeHTMLAttribute=e.decodeHTML=e.determineBranch=e.EntityDecoder=e.DecodingMode=e.BinTrieFlags=e.fromCodePoint=e.replaceCodePoint=e.decodeCodePoint=e.xmlDecodeTree=e.htmlDecodeTree=void 0;var s=r(Te);e.htmlDecodeTree=s.default;var l=r(Me);e.xmlDecodeTree=l.default;var a,c=i($e);e.decodeCodePoint=c.default,Object.defineProperty(e,"replaceCodePoint",{enumerable:!0,get:function(){return $e.replaceCodePoint}}),Object.defineProperty(e,"fromCodePoint",{enumerable:!0,get:function(){return $e.fromCodePoint}}),function(t){t[t.NUM=35]="NUM",t[t.SEMI=59]="SEMI",t[t.EQUALS=61]="EQUALS",t[t.ZERO=48]="ZERO",t[t.NINE=57]="NINE",t[t.LOWER_A=97]="LOWER_A",t[t.LOWER_F=102]="LOWER_F",t[t.LOWER_X=120]="LOWER_X",t[t.LOWER_Z=122]="LOWER_Z",t[t.UPPER_A=65]="UPPER_A",t[t.UPPER_F=70]="UPPER_F",t[t.UPPER_Z=90]="UPPER_Z"}(a||(a={}));var d,u,h;function p(t){return t>=a.ZERO&&t<=a.NINE}function f(t){return t===a.EQUALS||function(t){return t>=a.UPPER_A&&t<=a.UPPER_Z||t>=a.LOWER_A&&t<=a.LOWER_Z||p(t)}(t)}!function(t){t[t.VALUE_LENGTH=49152]="VALUE_LENGTH",t[t.BRANCH_LENGTH=16256]="BRANCH_LENGTH",t[t.JUMP_TABLE=127]="JUMP_TABLE"}(d=e.BinTrieFlags||(e.BinTrieFlags={})),function(t){t[t.EntityStart=0]="EntityStart",t[t.NumericStart=1]="NumericStart",t[t.NumericDecimal=2]="NumericDecimal",t[t.NumericHex=3]="NumericHex",t[t.NamedEntity=4]="NamedEntity"}(u||(u={})),function(t){t[t.Legacy=0]="Legacy",t[t.Strict=1]="Strict",t[t.Attribute=2]="Attribute"}(h=e.DecodingMode||(e.DecodingMode={}));var m=function(){function t(t,e,o){this.decodeTree=t,this.emitCodePoint=e,this.errors=o,this.state=u.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=h.Strict}return t.prototype.startEntity=function(t){this.decodeMode=t,this.state=u.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1},t.prototype.write=function(t,e){switch(this.state){case u.EntityStart:return t.charCodeAt(e)===a.NUM?(this.state=u.NumericStart,this.consumed+=1,this.stateNumericStart(t,e+1)):(this.state=u.NamedEntity,this.stateNamedEntity(t,e));case u.NumericStart:return this.stateNumericStart(t,e);case u.NumericDecimal:return this.stateNumericDecimal(t,e);case u.NumericHex:return this.stateNumericHex(t,e);case u.NamedEntity:return this.stateNamedEntity(t,e)}},t.prototype.stateNumericStart=function(t,e){return e>=t.length?-1:(32|t.charCodeAt(e))===a.LOWER_X?(this.state=u.NumericHex,this.consumed+=1,this.stateNumericHex(t,e+1)):(this.state=u.NumericDecimal,this.stateNumericDecimal(t,e))},t.prototype.addToNumericResult=function(t,e,o,n){if(e!==o){var i=o-e;this.result=this.result*Math.pow(n,i)+parseInt(t.substr(e,i),n),this.consumed+=i}},t.prototype.stateNumericHex=function(t,e){for(var o,n=e;e=a.UPPER_A&&o<=a.UPPER_F||o>=a.LOWER_A&&o<=a.LOWER_F)))return this.addToNumericResult(t,n,e,16),this.emitNumericEntity(i,3);e+=1}return this.addToNumericResult(t,n,e,16),-1},t.prototype.stateNumericDecimal=function(t,e){for(var o=e;e>14;e>14)){if(r===a.SEMI)return this.emitNamedEntityData(this.treeIndex,i,this.consumed+this.excess);this.decodeMode!==h.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1},t.prototype.emitNotTerminatedNamedEntity=function(){var t,e=this.result,o=(this.decodeTree[e]&d.VALUE_LENGTH)>>14;return this.emitNamedEntityData(e,o,this.consumed),null===(t=this.errors)||void 0===t||t.missingSemicolonAfterCharacterReference(),this.consumed},t.prototype.emitNamedEntityData=function(t,e,o){var n=this.decodeTree;return this.emitCodePoint(1===e?n[t]&~d.VALUE_LENGTH:n[t+1],o),3===e&&this.emitCodePoint(n[t+2],o),o},t.prototype.end=function(){var t;switch(this.state){case u.NamedEntity:return 0===this.result||this.decodeMode===h.Attribute&&this.result!==this.treeIndex?0:this.emitNotTerminatedNamedEntity();case u.NumericDecimal:return this.emitNumericEntity(0,2);case u.NumericHex:return this.emitNumericEntity(0,3);case u.NumericStart:return null===(t=this.errors)||void 0===t||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case u.EntityStart:return 0}},t}();function g(t){var e="",o=new m(t,(function(t){return e+=(0,c.fromCodePoint)(t)}));return function(t,n){for(var i=0,r=0;(r=t.indexOf("&",r))>=0;){e+=t.slice(i,r),o.startEntity(n);var s=o.write(t,r+1);if(s<0){i=r+o.end();break}i=r+s,r=0===s?i+1:i}var l=e+t.slice(i);return e="",l}}function b(t,e,o,n){var i=(e&d.BRANCH_LENGTH)>>7,r=e&d.JUMP_TABLE;if(0===i)return 0!==r&&n===r?o:-1;if(r){var s=n-r;return s<0||s>=i?-1:t[o+s]-1}for(var l=o,a=l+i-1;l<=a;){var c=l+a>>>1,u=t[c];if(un))return t[c+i];a=c-1}}return-1}e.EntityDecoder=m,e.determineBranch=b;var v=g(s.default),y=g(l.default);e.decodeHTML=function(t,e){return void 0===e&&(e=h.Legacy),v(t,e)},e.decodeHTMLAttribute=function(t){return v(t,h.Attribute)},e.decodeHTMLStrict=function(t){return v(t,h.Strict)},e.decodeXML=function(t){return y(t,h.Strict)}})),Ie=De,Ae=Ee((function(t,e){var o,n,i;function r(t){return t===o.Space||t===o.NewLine||t===o.Tab||t===o.FormFeed||t===o.CarriageReturn}function s(t){return t===o.Slash||t===o.Gt||r(t)}function l(t){return t>=o.Zero&&t<=o.Nine}Object.defineProperty(e,"__esModule",{value:!0}),e.QuoteType=void 0,function(t){t[t.Tab=9]="Tab",t[t.NewLine=10]="NewLine",t[t.FormFeed=12]="FormFeed",t[t.CarriageReturn=13]="CarriageReturn",t[t.Space=32]="Space",t[t.ExclamationMark=33]="ExclamationMark",t[t.Number=35]="Number",t[t.Amp=38]="Amp",t[t.SingleQuote=39]="SingleQuote",t[t.DoubleQuote=34]="DoubleQuote",t[t.Dash=45]="Dash",t[t.Slash=47]="Slash",t[t.Zero=48]="Zero",t[t.Nine=57]="Nine",t[t.Semi=59]="Semi",t[t.Lt=60]="Lt",t[t.Eq=61]="Eq",t[t.Gt=62]="Gt",t[t.Questionmark=63]="Questionmark",t[t.UpperA=65]="UpperA",t[t.LowerA=97]="LowerA",t[t.UpperF=70]="UpperF",t[t.LowerF=102]="LowerF",t[t.UpperZ=90]="UpperZ",t[t.LowerZ=122]="LowerZ",t[t.LowerX=120]="LowerX",t[t.OpeningSquareBracket=91]="OpeningSquareBracket"}(o||(o={})),function(t){t[t.Text=1]="Text",t[t.BeforeTagName=2]="BeforeTagName",t[t.InTagName=3]="InTagName",t[t.InSelfClosingTag=4]="InSelfClosingTag",t[t.BeforeClosingTagName=5]="BeforeClosingTagName",t[t.InClosingTagName=6]="InClosingTagName",t[t.AfterClosingTagName=7]="AfterClosingTagName",t[t.BeforeAttributeName=8]="BeforeAttributeName",t[t.InAttributeName=9]="InAttributeName",t[t.AfterAttributeName=10]="AfterAttributeName",t[t.BeforeAttributeValue=11]="BeforeAttributeValue",t[t.InAttributeValueDq=12]="InAttributeValueDq",t[t.InAttributeValueSq=13]="InAttributeValueSq",t[t.InAttributeValueNq=14]="InAttributeValueNq",t[t.BeforeDeclaration=15]="BeforeDeclaration",t[t.InDeclaration=16]="InDeclaration",t[t.InProcessingInstruction=17]="InProcessingInstruction",t[t.BeforeComment=18]="BeforeComment",t[t.CDATASequence=19]="CDATASequence",t[t.InSpecialComment=20]="InSpecialComment",t[t.InCommentLike=21]="InCommentLike",t[t.BeforeSpecialS=22]="BeforeSpecialS",t[t.SpecialStartSequence=23]="SpecialStartSequence",t[t.InSpecialTag=24]="InSpecialTag",t[t.BeforeEntity=25]="BeforeEntity",t[t.BeforeNumericEntity=26]="BeforeNumericEntity",t[t.InNamedEntity=27]="InNamedEntity",t[t.InNumericEntity=28]="InNumericEntity",t[t.InHexEntity=29]="InHexEntity"}(n||(n={})),function(t){t[t.NoValue=0]="NoValue",t[t.Unquoted=1]="Unquoted",t[t.Single=2]="Single",t[t.Double=3]="Double"}(i=e.QuoteType||(e.QuoteType={}));var a={Cdata:new Uint8Array([67,68,65,84,65,91]),CdataEnd:new Uint8Array([93,93,62]),CommentEnd:new Uint8Array([45,45,62]),ScriptEnd:new Uint8Array([60,47,115,99,114,105,112,116]),StyleEnd:new Uint8Array([60,47,115,116,121,108,101]),TitleEnd:new Uint8Array([60,47,116,105,116,108,101])},c=function(){function t(t,e){var o=t.xmlMode,i=void 0!==o&&o,r=t.decodeEntities,s=void 0===r||r;this.cbs=e,this.state=n.Text,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=n.Text,this.isSpecial=!1,this.running=!0,this.offset=0,this.currentSequence=void 0,this.sequenceIndex=0,this.trieIndex=0,this.trieCurrent=0,this.entityResult=0,this.entityExcess=0,this.xmlMode=i,this.decodeEntities=s,this.entityTrie=i?Ie.xmlDecodeTree:Ie.htmlDecodeTree}return t.prototype.reset=function(){this.state=n.Text,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=n.Text,this.currentSequence=void 0,this.running=!0,this.offset=0},t.prototype.write=function(t){this.offset+=this.buffer.length,this.buffer=t,this.parse()},t.prototype.end=function(){this.running&&this.finish()},t.prototype.pause=function(){this.running=!1},t.prototype.resume=function(){this.running=!0,this.indexthis.sectionStart&&this.cbs.ontext(this.sectionStart,this.index),this.state=n.BeforeTagName,this.sectionStart=this.index):this.decodeEntities&&t===o.Amp&&(this.state=n.BeforeEntity)},t.prototype.stateSpecialStartSequence=function(t){var e=this.sequenceIndex===this.currentSequence.length;if(e?s(t):(32|t)===this.currentSequence[this.sequenceIndex]){if(!e)return void this.sequenceIndex++}else this.isSpecial=!1;this.sequenceIndex=0,this.state=n.InTagName,this.stateInTagName(t)},t.prototype.stateInSpecialTag=function(t){if(this.sequenceIndex===this.currentSequence.length){if(t===o.Gt||r(t)){var e=this.index-this.currentSequence.length;if(this.sectionStart=o.LowerA&&t<=o.LowerZ||t>=o.UpperA&&t<=o.UpperZ}(t)},t.prototype.startSpecial=function(t,e){this.isSpecial=!0,this.currentSequence=t,this.sequenceIndex=e,this.state=n.SpecialStartSequence},t.prototype.stateBeforeTagName=function(t){if(t===o.ExclamationMark)this.state=n.BeforeDeclaration,this.sectionStart=this.index+1;else if(t===o.Questionmark)this.state=n.InProcessingInstruction,this.sectionStart=this.index+1;else if(this.isTagStartChar(t)){var e=32|t;this.sectionStart=this.index,this.xmlMode||e!==a.TitleEnd[2]?this.state=this.xmlMode||e!==a.ScriptEnd[2]?n.InTagName:n.BeforeSpecialS:this.startSpecial(a.TitleEnd,3)}else t===o.Slash?this.state=n.BeforeClosingTagName:(this.state=n.Text,this.stateText(t))},t.prototype.stateInTagName=function(t){s(t)&&(this.cbs.onopentagname(this.sectionStart,this.index),this.sectionStart=-1,this.state=n.BeforeAttributeName,this.stateBeforeAttributeName(t))},t.prototype.stateBeforeClosingTagName=function(t){r(t)||(t===o.Gt?this.state=n.Text:(this.state=this.isTagStartChar(t)?n.InClosingTagName:n.InSpecialComment,this.sectionStart=this.index))},t.prototype.stateInClosingTagName=function(t){(t===o.Gt||r(t))&&(this.cbs.onclosetag(this.sectionStart,this.index),this.sectionStart=-1,this.state=n.AfterClosingTagName,this.stateAfterClosingTagName(t))},t.prototype.stateAfterClosingTagName=function(t){(t===o.Gt||this.fastForwardTo(o.Gt))&&(this.state=n.Text,this.baseState=n.Text,this.sectionStart=this.index+1)},t.prototype.stateBeforeAttributeName=function(t){t===o.Gt?(this.cbs.onopentagend(this.index),this.isSpecial?(this.state=n.InSpecialTag,this.sequenceIndex=0):this.state=n.Text,this.baseState=this.state,this.sectionStart=this.index+1):t===o.Slash?this.state=n.InSelfClosingTag:r(t)||(this.state=n.InAttributeName,this.sectionStart=this.index)},t.prototype.stateInSelfClosingTag=function(t){t===o.Gt?(this.cbs.onselfclosingtag(this.index),this.state=n.Text,this.baseState=n.Text,this.sectionStart=this.index+1,this.isSpecial=!1):r(t)||(this.state=n.BeforeAttributeName,this.stateBeforeAttributeName(t))},t.prototype.stateInAttributeName=function(t){(t===o.Eq||s(t))&&(this.cbs.onattribname(this.sectionStart,this.index),this.sectionStart=-1,this.state=n.AfterAttributeName,this.stateAfterAttributeName(t))},t.prototype.stateAfterAttributeName=function(t){t===o.Eq?this.state=n.BeforeAttributeValue:t===o.Slash||t===o.Gt?(this.cbs.onattribend(i.NoValue,this.index),this.state=n.BeforeAttributeName,this.stateBeforeAttributeName(t)):r(t)||(this.cbs.onattribend(i.NoValue,this.index),this.state=n.InAttributeName,this.sectionStart=this.index)},t.prototype.stateBeforeAttributeValue=function(t){t===o.DoubleQuote?(this.state=n.InAttributeValueDq,this.sectionStart=this.index+1):t===o.SingleQuote?(this.state=n.InAttributeValueSq,this.sectionStart=this.index+1):r(t)||(this.sectionStart=this.index,this.state=n.InAttributeValueNq,this.stateInAttributeValueNoQuotes(t))},t.prototype.handleInAttributeValue=function(t,e){t===e||!this.decodeEntities&&this.fastForwardTo(e)?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(e===o.DoubleQuote?i.Double:i.Single,this.index),this.state=n.BeforeAttributeName):this.decodeEntities&&t===o.Amp&&(this.baseState=this.state,this.state=n.BeforeEntity)},t.prototype.stateInAttributeValueDoubleQuotes=function(t){this.handleInAttributeValue(t,o.DoubleQuote)},t.prototype.stateInAttributeValueSingleQuotes=function(t){this.handleInAttributeValue(t,o.SingleQuote)},t.prototype.stateInAttributeValueNoQuotes=function(t){r(t)||t===o.Gt?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(i.Unquoted,this.index),this.state=n.BeforeAttributeName,this.stateBeforeAttributeName(t)):this.decodeEntities&&t===o.Amp&&(this.baseState=this.state,this.state=n.BeforeEntity)},t.prototype.stateBeforeDeclaration=function(t){t===o.OpeningSquareBracket?(this.state=n.CDATASequence,this.sequenceIndex=0):this.state=t===o.Dash?n.BeforeComment:n.InDeclaration},t.prototype.stateInDeclaration=function(t){(t===o.Gt||this.fastForwardTo(o.Gt))&&(this.cbs.ondeclaration(this.sectionStart,this.index),this.state=n.Text,this.sectionStart=this.index+1)},t.prototype.stateInProcessingInstruction=function(t){(t===o.Gt||this.fastForwardTo(o.Gt))&&(this.cbs.onprocessinginstruction(this.sectionStart,this.index),this.state=n.Text,this.sectionStart=this.index+1)},t.prototype.stateBeforeComment=function(t){t===o.Dash?(this.state=n.InCommentLike,this.currentSequence=a.CommentEnd,this.sequenceIndex=2,this.sectionStart=this.index+1):this.state=n.InDeclaration},t.prototype.stateInSpecialComment=function(t){(t===o.Gt||this.fastForwardTo(o.Gt))&&(this.cbs.oncomment(this.sectionStart,this.index,0),this.state=n.Text,this.sectionStart=this.index+1)},t.prototype.stateBeforeSpecialS=function(t){var e=32|t;e===a.ScriptEnd[3]?this.startSpecial(a.ScriptEnd,4):e===a.StyleEnd[3]?this.startSpecial(a.StyleEnd,4):(this.state=n.InTagName,this.stateInTagName(t))},t.prototype.stateBeforeEntity=function(t){this.entityExcess=1,this.entityResult=0,t===o.Number?this.state=n.BeforeNumericEntity:t===o.Amp||(this.trieIndex=0,this.trieCurrent=this.entityTrie[0],this.state=n.InNamedEntity,this.stateInNamedEntity(t))},t.prototype.stateInNamedEntity=function(t){if(this.entityExcess+=1,this.trieIndex=(0,Ie.determineBranch)(this.entityTrie,this.trieCurrent,this.trieIndex+1,t),this.trieIndex<0)return this.emitNamedEntity(),void this.index--;this.trieCurrent=this.entityTrie[this.trieIndex];var e=this.trieCurrent&Ie.BinTrieFlags.VALUE_LENGTH;if(e){var n=(e>>14)-1;if(this.allowLegacyEntity()||t===o.Semi){var i=this.index-this.entityExcess+1;i>this.sectionStart&&this.emitPartial(this.sectionStart,i),this.entityResult=this.trieIndex,this.trieIndex+=n,this.entityExcess=0,this.sectionStart=this.index+1,0===n&&this.emitNamedEntity()}else this.trieIndex+=n}},t.prototype.emitNamedEntity=function(){if(this.state=this.baseState,0!==this.entityResult)switch((this.entityTrie[this.entityResult]&Ie.BinTrieFlags.VALUE_LENGTH)>>14){case 1:this.emitCodePoint(this.entityTrie[this.entityResult]&~Ie.BinTrieFlags.VALUE_LENGTH);break;case 2:this.emitCodePoint(this.entityTrie[this.entityResult+1]);break;case 3:this.emitCodePoint(this.entityTrie[this.entityResult+1]),this.emitCodePoint(this.entityTrie[this.entityResult+2])}},t.prototype.stateBeforeNumericEntity=function(t){(32|t)===o.LowerX?(this.entityExcess++,this.state=n.InHexEntity):(this.state=n.InNumericEntity,this.stateInNumericEntity(t))},t.prototype.emitNumericEntity=function(t){var e=this.index-this.entityExcess-1;e+2+Number(this.state===n.InHexEntity)!==this.index&&(e>this.sectionStart&&this.emitPartial(this.sectionStart,e),this.sectionStart=this.index+Number(t),this.emitCodePoint((0,Ie.replaceCodePoint)(this.entityResult))),this.state=this.baseState},t.prototype.stateInNumericEntity=function(t){t===o.Semi?this.emitNumericEntity(!0):l(t)?(this.entityResult=10*this.entityResult+(t-o.Zero),this.entityExcess++):(this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state=this.baseState,this.index--)},t.prototype.stateInHexEntity=function(t){t===o.Semi?this.emitNumericEntity(!0):l(t)?(this.entityResult=16*this.entityResult+(t-o.Zero),this.entityExcess++):!function(t){return t>=o.UpperA&&t<=o.UpperF||t>=o.LowerA&&t<=o.LowerF}(t)?(this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state=this.baseState,this.index--):(this.entityResult=16*this.entityResult+((32|t)-o.LowerA+10),this.entityExcess++)},t.prototype.allowLegacyEntity=function(){return!this.xmlMode&&(this.baseState===n.Text||this.baseState===n.InSpecialTag)},t.prototype.cleanup=function(){this.running&&this.sectionStart!==this.index&&(this.state===n.Text||this.state===n.InSpecialTag&&0===this.sequenceIndex?(this.cbs.ontext(this.sectionStart,this.index),this.sectionStart=this.index):this.state!==n.InAttributeValueDq&&this.state!==n.InAttributeValueSq&&this.state!==n.InAttributeValueNq||(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=this.index))},t.prototype.shouldContinue=function(){return this.index0&&r.has(this.stack[this.stack.length-1]);){var s=this.stack.pop();null===(o=(e=this.cbs).onclosetag)||void 0===o||o.call(e,s,!0)}this.isVoidElement(t)||(this.stack.push(t),p.has(t)?this.foreignContext.push(!0):f.has(t)&&this.foreignContext.push(!1)),null===(i=(n=this.cbs).onopentagname)||void 0===i||i.call(n,t),this.cbs.onopentag&&(this.attribs={})},t.prototype.endOpenTag=function(t){var e,o;this.startIndex=this.openTagStart,this.attribs&&(null===(o=(e=this.cbs).onopentag)||void 0===o||o.call(e,this.tagname,this.attribs,t),this.attribs=null),this.cbs.onclosetag&&this.isVoidElement(this.tagname)&&this.cbs.onclosetag(this.tagname,!0),this.tagname=""},t.prototype.onopentagend=function(t){this.endIndex=t,this.endOpenTag(!1),this.startIndex=t+1},t.prototype.onclosetag=function(t,e){var o,n,i,r,s,l;this.endIndex=e;var a=this.getSlice(t,e);if(this.lowerCaseTagNames&&(a=a.toLowerCase()),(p.has(a)||f.has(a))&&this.foreignContext.pop(),this.isVoidElement(a))this.options.xmlMode||"br"!==a||(null===(n=(o=this.cbs).onopentagname)||void 0===n||n.call(o,"br"),null===(r=(i=this.cbs).onopentag)||void 0===r||r.call(i,"br",{},!0),null===(l=(s=this.cbs).onclosetag)||void 0===l||l.call(s,"br",!1));else{var c=this.stack.lastIndexOf(a);if(-1!==c)if(this.cbs.onclosetag)for(var d=this.stack.length-c;d--;)this.cbs.onclosetag(this.stack.pop(),0!==d);else this.stack.length=c;else this.options.xmlMode||"p"!==a||(this.emitOpenTag("p"),this.closeCurrentTag(!0))}this.startIndex=e+1},t.prototype.onselfclosingtag=function(t){this.endIndex=t,this.options.xmlMode||this.options.recognizeSelfClosing||this.foreignContext[this.foreignContext.length-1]?(this.closeCurrentTag(!1),this.startIndex=t+1):this.onopentagend(t)},t.prototype.closeCurrentTag=function(t){var e,o,n=this.tagname;this.endOpenTag(t),this.stack[this.stack.length-1]===n&&(null===(o=(e=this.cbs).onclosetag)||void 0===o||o.call(e,n,!t),this.stack.pop())},t.prototype.onattribname=function(t,e){this.startIndex=t;var o=this.getSlice(t,e);this.attribname=this.lowerCaseAttributeNames?o.toLowerCase():o},t.prototype.onattribdata=function(t,e){this.attribvalue+=this.getSlice(t,e)},t.prototype.onattribentity=function(t){this.attribvalue+=(0,Ie.fromCodePoint)(t)},t.prototype.onattribend=function(t,e){var o,n;this.endIndex=e,null===(n=(o=this.cbs).onattribute)||void 0===n||n.call(o,this.attribname,this.attribvalue,t===r.QuoteType.Double?'"':t===r.QuoteType.Single?"'":t===r.QuoteType.NoValue?void 0:null),this.attribs&&!Object.prototype.hasOwnProperty.call(this.attribs,this.attribname)&&(this.attribs[this.attribname]=this.attribvalue),this.attribvalue=""},t.prototype.getInstructionName=function(t){var e=t.search(m),o=e<0?t:t.substr(0,e);return this.lowerCaseTagNames&&(o=o.toLowerCase()),o},t.prototype.ondeclaration=function(t,e){this.endIndex=e;var o=this.getSlice(t,e);if(this.cbs.onprocessinginstruction){var n=this.getInstructionName(o);this.cbs.onprocessinginstruction("!".concat(n),"!".concat(o))}this.startIndex=e+1},t.prototype.onprocessinginstruction=function(t,e){this.endIndex=e;var o=this.getSlice(t,e);if(this.cbs.onprocessinginstruction){var n=this.getInstructionName(o);this.cbs.onprocessinginstruction("?".concat(n),"?".concat(o))}this.startIndex=e+1},t.prototype.oncomment=function(t,e,o){var n,i,r,s;this.endIndex=e,null===(i=(n=this.cbs).oncomment)||void 0===i||i.call(n,this.getSlice(t,e-o)),null===(s=(r=this.cbs).oncommentend)||void 0===s||s.call(r),this.startIndex=e+1},t.prototype.oncdata=function(t,e,o){var n,i,r,s,l,a,c,d,u,h;this.endIndex=e;var p=this.getSlice(t,e-o);this.options.xmlMode||this.options.recognizeCDATA?(null===(i=(n=this.cbs).oncdatastart)||void 0===i||i.call(n),null===(s=(r=this.cbs).ontext)||void 0===s||s.call(r,p),null===(a=(l=this.cbs).oncdataend)||void 0===a||a.call(l)):(null===(d=(c=this.cbs).oncomment)||void 0===d||d.call(c,"[CDATA[".concat(p,"]]")),null===(h=(u=this.cbs).oncommentend)||void 0===h||h.call(u)),this.startIndex=e+1},t.prototype.onend=function(){var t,e;if(this.cbs.onclosetag){this.endIndex=this.startIndex;for(var o=this.stack.length;o>0;this.cbs.onclosetag(this.stack[--o],!0));}null===(e=(t=this.cbs).onend)||void 0===e||e.call(t)},t.prototype.reset=function(){var t,e,o,n;null===(e=(t=this.cbs).onreset)||void 0===e||e.call(t),this.tokenizer.reset(),this.tagname="",this.attribname="",this.attribs=null,this.stack.length=0,this.startIndex=0,this.endIndex=0,null===(n=(o=this.cbs).onparserinit)||void 0===n||n.call(o,this),this.buffers.length=0,this.bufferOffset=0,this.writeIndex=0,this.ended=!1},t.prototype.parseComplete=function(t){this.reset(),this.end(t)},t.prototype.getSlice=function(t,e){for(;t-this.bufferOffset>=this.buffers[0].length;)this.shiftBuffer();for(var o=this.buffers[0].slice(t-this.bufferOffset,e-this.bufferOffset);e-this.bufferOffset>this.buffers[0].length;)this.shiftBuffer(),o+=this.buffers[0].slice(0,e-this.bufferOffset);return o},t.prototype.shiftBuffer=function(){this.bufferOffset+=this.buffers[0].length,this.writeIndex--,this.buffers.shift()},t.prototype.write=function(t){var e,o;this.ended?null===(o=(e=this.cbs).onerror)||void 0===o||o.call(e,new Error(".write() after done!")):(this.buffers.push(t),this.tokenizer.running&&(this.tokenizer.write(t),this.writeIndex++))},t.prototype.end=function(t){var e,o;this.ended?null===(o=(e=this.cbs).onerror)||void 0===o||o.call(e,new Error(".end() after done!")):(t&&this.write(t),this.ended=!0,this.tokenizer.end())},t.prototype.pause=function(){this.tokenizer.pause()},t.prototype.resume=function(){for(this.tokenizer.resume();this.tokenizer.running&&this.writeIndex0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"childNodes",{get:function(){return this.children},set:function(t){this.children=t},enumerable:!1,configurable:!0}),e}(r);e.NodeWithChildren=d;var u=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=Pe.ElementType.CDATA,e}return n(e,t),Object.defineProperty(e.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),e}(d);e.CDATA=u;var h=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=Pe.ElementType.Root,e}return n(e,t),Object.defineProperty(e.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),e}(d);e.Document=h;var p=function(t){function e(e,o,n,i){void 0===n&&(n=[]),void 0===i&&(i="script"===e?Pe.ElementType.Script:"style"===e?Pe.ElementType.Style:Pe.ElementType.Tag);var r=t.call(this,n)||this;return r.name=e,r.attribs=o,r.type=i,r}return n(e,t),Object.defineProperty(e.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"tagName",{get:function(){return this.name},set:function(t){this.name=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"attributes",{get:function(){var t=this;return Object.keys(this.attribs).map((function(e){var o,n;return{name:e,value:t.attribs[e],namespace:null===(o=t["x-attribsNamespace"])||void 0===o?void 0:o[e],prefix:null===(n=t["x-attribsPrefix"])||void 0===n?void 0:n[e]}}))},enumerable:!1,configurable:!0}),e}(d);function f(t){return(0,Pe.isTag)(t)}function m(t){return t.type===Pe.ElementType.CDATA}function g(t){return t.type===Pe.ElementType.Text}function b(t){return t.type===Pe.ElementType.Comment}function v(t){return t.type===Pe.ElementType.Directive}function y(t){return t.type===Pe.ElementType.Root}function w(t,e){var o;if(void 0===e&&(e=!1),g(t))o=new l(t.data);else if(b(t))o=new a(t.data);else if(f(t)){var n=e?x(t.children):[],r=new p(t.name,i({},t.attribs),n);n.forEach((function(t){return t.parent=r})),null!=t.namespace&&(r.namespace=t.namespace),t["x-attribsNamespace"]&&(r["x-attribsNamespace"]=i({},t["x-attribsNamespace"])),t["x-attribsPrefix"]&&(r["x-attribsPrefix"]=i({},t["x-attribsPrefix"])),o=r}else if(m(t)){n=e?x(t.children):[];var s=new u(n);n.forEach((function(t){return t.parent=s})),o=s}else if(y(t)){n=e?x(t.children):[];var d=new h(n);n.forEach((function(t){return t.parent=d})),t["x-mode"]&&(d["x-mode"]=t["x-mode"]),o=d}else{if(!v(t))throw new Error("Not implemented yet: ".concat(t.type));var w=new c(t.name,t.data);null!=t["x-name"]&&(w["x-name"]=t["x-name"],w["x-publicId"]=t["x-publicId"],w["x-systemId"]=t["x-systemId"]),o=w}return o.startIndex=t.startIndex,o.endIndex=t.endIndex,null!=t.sourceCodeLocation&&(o.sourceCodeLocation=t.sourceCodeLocation),o}function x(t){for(var e=t.map((function(t){return w(t,!0)})),o=1;o$\x80-\uFFFF]/g;var o=new Map([[34,"""],[38,"&"],[39,"'"],[60,"<"],[62,">"]]);function n(t){for(var n,i="",r=0;null!==(n=e.xmlReplacer.exec(t));){var s=n.index,l=t.charCodeAt(s),a=o.get(l);void 0!==a?(i+=t.substring(r,s)+a,r=s+1):(i+="".concat(t.substring(r,s),"&#x").concat((0,e.getCodePoint)(t,s).toString(16),";"),r=e.xmlReplacer.lastIndex+=Number(55296==(64512&l)))}return i+t.substr(r)}function i(t,e){return function(o){for(var n,i=0,r="";n=t.exec(o);)i!==n.index&&(r+=o.substring(i,n.index)),r+=e.get(n[0].charCodeAt(0)),i=n.index+1;return r+o.substring(i)}}e.getCodePoint=null!=String.prototype.codePointAt?function(t,e){return t.codePointAt(e)}:function(t,e){return 55296==(64512&t.charCodeAt(e))?1024*(t.charCodeAt(e)-55296)+t.charCodeAt(e+1)-56320+65536:t.charCodeAt(e)},e.encodeXML=n,e.escape=n,e.escapeUTF8=i(/[&<>'"]/g,o),e.escapeAttribute=i(/["&\u00A0]/g,new Map([[34,"""],[38,"&"],[160," "]])),e.escapeText=i(/[&<>\u00A0]/g,new Map([[38,"&"],[60,"<"],[62,">"],[160," "]]))})),Ve=qe,Ge=Fe,We=Ee((function(t,e){var o=xe&&xe.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.encodeNonAsciiHTML=e.encodeHTML=void 0;var n=o(Ve),i=/[\t\n!-,./:-@[-`\f{-}$\x80-\uFFFF]/g;function r(t,e){for(var o,i="",r=0;null!==(o=t.exec(e));){var s=o.index;i+=e.substring(r,s);var l=e.charCodeAt(s),a=n.default.get(l);if("object"==typeof a){if(s+1");case s.Comment:return function(t){return"\x3c!--".concat(t.data,"--\x3e")}(t);case s.CDATA:return function(t){return"")}(t);case s.Script:case s.Style:case s.Tag:return function(t,e){var n;"foreign"===e.xmlMode&&(t.name=null!==(n=Qe.elementNames.get(t.name))&&void 0!==n?n:t.name,t.parent&&h.has(t.parent.name)&&(e=o(o({},e),{xmlMode:!1})));!e.xmlMode&&p.has(t.name)&&(e=o(o({},e),{xmlMode:"foreign"}));var i="<".concat(t.name),r=function(t,e){var o;if(t){var n=!1===(null!==(o=e.encodeEntities)&&void 0!==o?o:e.decodeEntities)?a:e.xmlMode||"utf8"!==e.encodeEntities?Xe.encodeXML:Xe.escapeAttribute;return Object.keys(t).map((function(o){var i,r,s=null!==(i=t[o])&&void 0!==i?i:"";return"foreign"===e.xmlMode&&(o=null!==(r=Qe.attributeNames.get(o))&&void 0!==r?r:o),e.emptyAttrs||e.xmlMode||""!==s?"".concat(o,'="').concat(n(s),'"'):o})).join(" ")}}(t.attribs,e);r&&(i+=" ".concat(r));0===t.children.length&&(e.xmlMode?!1!==e.selfClosingTags:e.selfClosingTags&&c.has(t.name))?(e.xmlMode||(i+=" "),i+="/>"):(i+=">",t.children.length>0&&(i+=d(t.children,e)),!e.xmlMode&&c.has(t.name)||(i+="")));return i}(t,e);case s.Text:return function(t,e){var o,n=t.data||"";!1===(null!==(o=e.encodeEntities)&&void 0!==o?o:e.decodeEntities)||!e.xmlMode&&t.parent&&l.has(t.parent.name)||(n=e.xmlMode||"utf8"!==e.encodeEntities?(0,Xe.encodeXML)(n):(0,Xe.escapeText)(n));return n}(t,e)}}e.render=d,e.default=d;var h=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignObject","desc","title"]),p=new Set(["svg","math"])})),to=Re,eo=Ze,oo=Ee((function(t,e){var o=xe&&xe.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.innerText=e.textContent=e.getText=e.getInnerHTML=e.getOuterHTML=void 0;var n=o(eo);function i(t,e){return(0,n.default)(t,e)}e.getOuterHTML=i,e.getInnerHTML=function(t,e){return(0,to.hasChildren)(t)?t.children.map((function(t){return i(t,e)})).join(""):""},e.getText=function t(e){return Array.isArray(e)?e.map(t).join(""):(0,to.isTag)(e)?"br"===e.name?"\n":t(e.children):(0,to.isCDATA)(e)?t(e.children):(0,to.isText)(e)?e.data:""},e.textContent=function t(e){return Array.isArray(e)?e.map(t).join(""):(0,to.hasChildren)(e)&&!(0,to.isComment)(e)?t(e.children):(0,to.isText)(e)?e.data:""},e.innerText=function t(e){return Array.isArray(e)?e.map(t).join(""):(0,to.hasChildren)(e)&&(e.type===Pe.ElementType.Tag||(0,to.isCDATA)(e))?t(e.children):(0,to.isText)(e)?e.data:""}})),no=Ee((function(t,e){function o(t){return(0,to.hasChildren)(t)?t.children:[]}function n(t){return t.parent||null}Object.defineProperty(e,"__esModule",{value:!0}),e.prevElementSibling=e.nextElementSibling=e.getName=e.hasAttrib=e.getAttributeValue=e.getSiblings=e.getParent=e.getChildren=void 0,e.getChildren=o,e.getParent=n,e.getSiblings=function(t){var e=n(t);if(null!=e)return o(e);for(var i=[t],r=t.prev,s=t.next;null!=r;)i.unshift(r),r=r.prev;for(;null!=s;)i.push(s),s=s.next;return i},e.getAttributeValue=function(t,e){var o;return null===(o=t.attribs)||void 0===o?void 0:o[e]},e.hasAttrib=function(t,e){return null!=t.attribs&&Object.prototype.hasOwnProperty.call(t.attribs,e)&&null!=t.attribs[e]},e.getName=function(t){return t.name},e.nextElementSibling=function(t){for(var e=t.next;null!==e&&!(0,to.isTag)(e);)e=e.next;return e},e.prevElementSibling=function(t){for(var e=t.prev;null!==e&&!(0,to.isTag)(e);)e=e.prev;return e}})),io=Ee((function(t,e){function o(t){if(t.prev&&(t.prev.next=t.next),t.next&&(t.next.prev=t.prev),t.parent){var e=t.parent.children,o=e.lastIndexOf(t);o>=0&&e.splice(o,1)}t.next=null,t.prev=null,t.parent=null}Object.defineProperty(e,"__esModule",{value:!0}),e.prepend=e.prependChild=e.append=e.appendChild=e.replaceElement=e.removeElement=void 0,e.removeElement=o,e.replaceElement=function(t,e){var o=e.prev=t.prev;o&&(o.next=e);var n=e.next=t.next;n&&(n.prev=e);var i=e.parent=t.parent;if(i){var r=i.children;r[r.lastIndexOf(t)]=e,t.parent=null}},e.appendChild=function(t,e){if(o(e),e.next=null,e.parent=t,t.children.push(e)>1){var n=t.children[t.children.length-2];n.next=e,e.prev=n}else e.prev=null},e.append=function(t,e){o(e);var n=t.parent,i=t.next;if(e.next=i,e.prev=t,t.next=e,e.parent=n,i){if(i.prev=e,n){var r=n.children;r.splice(r.lastIndexOf(i),0,e)}}else n&&n.children.push(e)},e.prependChild=function(t,e){if(o(e),e.parent=t,e.prev=null,1!==t.children.unshift(e)){var n=t.children[1];n.prev=e,e.next=n}else e.next=null},e.prepend=function(t,e){o(e);var n=t.parent;if(n){var i=n.children;i.splice(i.indexOf(t),0,e)}t.prev&&(t.prev.next=e),e.parent=n,e.prev=t.prev,e.next=t,t.prev=e}})),ro=Ee((function(t,e){function o(t,e,o,n){for(var i=[],r=[e],s=[0];;)if(s[0]>=r[0].length){if(1===s.length)return i;r.shift(),s.shift()}else{var l=r[0][s[0]++];if(t(l)&&(i.push(l),--n<=0))return i;o&&(0,to.hasChildren)(l)&&l.children.length>0&&(s.unshift(0),r.unshift(l.children))}}Object.defineProperty(e,"__esModule",{value:!0}),e.findAll=e.existsOne=e.findOne=e.findOneChild=e.find=e.filter=void 0,e.filter=function(t,e,n,i){return void 0===n&&(n=!0),void 0===i&&(i=1/0),o(t,Array.isArray(e)?e:[e],n,i)},e.find=o,e.findOneChild=function(t,e){return e.find(t)},e.findOne=function t(e,o,n){void 0===n&&(n=!0);for(var i=null,r=0;r0&&(i=t(e,s.children,!0)))}return i},e.existsOne=function t(e,o){return o.some((function(o){return(0,to.isTag)(o)&&(e(o)||t(e,o.children))}))},e.findAll=function(t,e){for(var o=[],n=[e],i=[0];;)if(i[0]>=n[0].length){if(1===n.length)return o;n.shift(),i.shift()}else{var r=n[0][i[0]++];(0,to.isTag)(r)&&(t(r)&&o.push(r),r.children.length>0&&(i.unshift(0),n.unshift(r.children)))}}})),so=ro,lo=Ee((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.getElementsByTagType=e.getElementsByTagName=e.getElementById=e.getElements=e.testElement=void 0;var o={tag_name:function(t){return"function"==typeof t?function(e){return(0,to.isTag)(e)&&t(e.name)}:"*"===t?to.isTag:function(e){return(0,to.isTag)(e)&&e.name===t}},tag_type:function(t){return"function"==typeof t?function(e){return t(e.type)}:function(e){return e.type===t}},tag_contains:function(t){return"function"==typeof t?function(e){return(0,to.isText)(e)&&t(e.data)}:function(e){return(0,to.isText)(e)&&e.data===t}}};function n(t,e){return"function"==typeof e?function(o){return(0,to.isTag)(o)&&e(o.attribs[t])}:function(o){return(0,to.isTag)(o)&&o.attribs[t]===e}}function i(t,e){return function(o){return t(o)||e(o)}}function r(t){var e=Object.keys(t).map((function(e){var i=t[e];return Object.prototype.hasOwnProperty.call(o,e)?o[e](i):n(e,i)}));return 0===e.length?null:e.reduce(i)}e.testElement=function(t,e){var o=r(t);return!o||o(e)},e.getElements=function(t,e,o,n){void 0===n&&(n=1/0);var i=r(t);return i?(0,so.filter)(i,e,o,n):[]},e.getElementById=function(t,e,o){return void 0===o&&(o=!0),Array.isArray(e)||(e=[e]),(0,so.findOne)(n("id",t),e,o)},e.getElementsByTagName=function(t,e,n,i){return void 0===n&&(n=!0),void 0===i&&(i=1/0),(0,so.filter)(o.tag_name(t),e,n,i)},e.getElementsByTagType=function(t,e,n,i){return void 0===n&&(n=!0),void 0===i&&(i=1/0),(0,so.filter)(o.tag_type(t),e,n,i)}})),ao=Ee((function(t,e){var o;function n(t,e){var n=[],i=[];if(t===e)return 0;for(var r=(0,to.hasChildren)(t)?t:t.parent;r;)n.unshift(r),r=r.parent;for(r=(0,to.hasChildren)(e)?e:e.parent;r;)i.unshift(r),r=r.parent;for(var s=Math.min(n.length,i.length),l=0;lc.indexOf(u)?a===e?o.FOLLOWING|o.CONTAINED_BY:o.FOLLOWING:a===t?o.PRECEDING|o.CONTAINS:o.PRECEDING}Object.defineProperty(e,"__esModule",{value:!0}),e.uniqueSort=e.compareDocumentPosition=e.DocumentPosition=e.removeSubsets=void 0,e.removeSubsets=function(t){for(var e=t.length;--e>=0;){var o=t[e];if(e>0&&t.lastIndexOf(o,e-1)>=0)t.splice(e,1);else for(var n=o.parent;n;n=n.parent)if(t.includes(n)){t.splice(e,1);break}}return t},function(t){t[t.DISCONNECTED=1]="DISCONNECTED",t[t.PRECEDING=2]="PRECEDING",t[t.FOLLOWING=4]="FOLLOWING",t[t.CONTAINS=8]="CONTAINS",t[t.CONTAINED_BY=16]="CONTAINED_BY"}(o=e.DocumentPosition||(e.DocumentPosition={})),e.compareDocumentPosition=n,e.uniqueSort=function(t){return t=t.filter((function(t,e,o){return!o.includes(t,e+1)})),t.sort((function(t,e){var i=n(t,e);return i&o.PRECEDING?-1:i&o.FOLLOWING?1:0})),t}})),co=oo,uo=lo,ho=Ee((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.getFeed=void 0,e.getFeed=function(t){var e=r(a,t);return e?"feed"===e.name?function(t){var e,o=t.children,n={type:"atom",items:(0,uo.getElementsByTagName)("entry",o).map((function(t){var e,o=t.children,n={media:i(o)};l(n,"id","id",o),l(n,"title","title",o);var a=null===(e=r("link",o))||void 0===e?void 0:e.attribs.href;a&&(n.link=a);var c=s("summary",o)||s("content",o);c&&(n.description=c);var d=s("updated",o);return d&&(n.pubDate=new Date(d)),n}))};l(n,"id","id",o),l(n,"title","title",o);var a=null===(e=r("link",o))||void 0===e?void 0:e.attribs.href;a&&(n.link=a);l(n,"description","subtitle",o);var c=s("updated",o);c&&(n.updated=new Date(c));return l(n,"author","email",o,!0),n}(e):function(t){var e,o,n=null!==(o=null===(e=r("channel",t.children))||void 0===e?void 0:e.children)&&void 0!==o?o:[],a={type:t.name.substr(0,3),id:"",items:(0,uo.getElementsByTagName)("item",t.children).map((function(t){var e=t.children,o={media:i(e)};l(o,"id","guid",e),l(o,"title","title",e),l(o,"link","link",e),l(o,"description","description",e);var n=s("pubDate",e)||s("dc:date",e);return n&&(o.pubDate=new Date(n)),o}))};l(a,"title","title",n),l(a,"link","link",n),l(a,"description","description",n);var c=s("lastBuildDate",n);c&&(a.updated=new Date(c));return l(a,"author","managingEditor",n,!0),a}(e):null};var o=["url","type","lang"],n=["fileSize","bitrate","framerate","samplingrate","channels","duration","height","width"];function i(t){return(0,uo.getElementsByTagName)("media:content",t).map((function(t){for(var e=t.attribs,i={medium:e.medium,isDefault:!!e.isDefault},r=0,s=o;r{if("string"!=typeof t)throw new TypeError("Expected a string");return t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}; /*! * is-plain-object * * Copyright (c) 2014-2017, Jon Schlinkert. * Released under the MIT License. */ function So(t){return"[object Object]"===Object.prototype.toString.call(t)}var Eo=function(t){var e,o;return!1!==So(t)&&(void 0===(e=t.constructor)||!1!==So(o=e.prototype)&&!1!==o.hasOwnProperty("isPrototypeOf"))},Co=Object.defineProperty({isPlainObject:Eo},"__esModule",{value:!0}),ko=function(t){return function(t){return!!t&&"object"==typeof t}(t)&&!function(t){var e=Object.prototype.toString.call(t);return"[object RegExp]"===e||"[object Date]"===e||function(t){return t.$$typeof===Oo}(t)}(t)};var Oo="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function _o(t,e){return!1!==e.clone&&e.isMergeableObject(t)?Do((o=t,Array.isArray(o)?[]:{}),t,e):t;var o}function Lo(t,e,o){return t.concat(e).map((function(t){return _o(t,o)}))}function To(t){return Object.keys(t).concat(function(t){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter((function(e){return Object.propertyIsEnumerable.call(t,e)})):[]}(t))}function Mo(t,e){try{return e in t}catch(t){return!1}}function $o(t,e,o){var n={};return o.isMergeableObject(t)&&To(t).forEach((function(e){n[e]=_o(t[e],o)})),To(e).forEach((function(i){(function(t,e){return Mo(t,e)&&!(Object.hasOwnProperty.call(t,e)&&Object.propertyIsEnumerable.call(t,e))})(t,i)||(Mo(t,i)&&o.isMergeableObject(e[i])?n[i]=function(t,e){if(!e.customMerge)return Do;var o=e.customMerge(t);return"function"==typeof o?o:Do}(i,o)(t[i],e[i],o):n[i]=_o(e[i],o))})),n}function Do(t,e,o){(o=o||{}).arrayMerge=o.arrayMerge||Lo,o.isMergeableObject=o.isMergeableObject||ko,o.cloneUnlessOtherwiseSpecified=_o;var n=Array.isArray(e);return n===Array.isArray(t)?n?o.arrayMerge(t,e,o):$o(t,e,o):_o(e,o)}Do.all=function(t,e){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce((function(t,o){return Do(t,o,e)}),{})};var Io=Do,Ao=Ee((function(t){!function(e,o){t.exports?t.exports=o():e.parseSrcset=o()}(xe,(function(){return function(t){function e(t){return" "===t||"\t"===t||"\n"===t||"\f"===t||"\r"===t}function o(e){var o,n=e.exec(t.substring(m));if(n)return o=n[0],m+=o.length,o}for(var n,i,r,s,l,a=t.length,c=/^[ \t\n\r\u000c]+/,d=/^[, \t\n\r\u000c]+/,u=/^[^ \t\n\r\u000c]+/,h=/[,]+$/,p=/^\d+$/,f=/^-?(?:[0-9]+|[0-9]*\.[0-9]+)(?:[eE][+-]?[0-9]+)?$/,m=0,g=[];;){if(o(d),m>=a)return g;n=o(u),i=[],","===n.slice(-1)?(n=n.replace(h,""),v()):b()}function b(){for(o(c),r="",s="in descriptor";;){if(l=t.charAt(m),"in descriptor"===s)if(e(l))r&&(i.push(r),r="",s="after descriptor");else{if(","===l)return m+=1,r&&i.push(r),void v();if("("===l)r+=l,s="in parens";else{if(""===l)return r&&i.push(r),void v();r+=l}}else if("in parens"===s)if(")"===l)r+=l,s="in descriptor";else{if(""===l)return i.push(r),void v();r+=l}else if("after descriptor"===s)if(e(l));else{if(""===l)return void v();s="in descriptor",m-=1}m+=1}}function v(){var e,o,r,s,l,a,c,d,u,h=!1,m={};for(s=0;s",void 0!==this.line&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(t){if(!this.source)return"";let e=this.source;null==t&&(t=jo.isColorSupported),Ro&&t&&(e=Ro(e));let o,n,i=e.split(/\r?\n/),r=Math.max(this.line-3,0),s=Math.min(this.line+2,i.length),l=String(s).length;if(t){let{bold:t,gray:e,red:i}=jo.createColors(!0);o=e=>t(i(e)),n=t=>e(t)}else o=n=t=>t;return i.slice(r,s).map(((t,e)=>{let i=r+1+e,s=" "+(" "+i).slice(-l)+" | ";if(i===this.line){let e=n(s.replace(/\d/g," "))+t.slice(0,this.column-1).replace(/[^\t]/g," ");return o(">")+n(s)+t+"\n "+e+o("^")}return" "+n(s)+t})).join("\n")}toString(){let t=this.showSourceCode();return t&&(t="\n\n"+t+"\n"),this.name+": "+this.message+t}}var Bo=Ho;Ho.default=Ho;var qo={isClean:Symbol("isClean"),my:Symbol("my")};const Fo={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};class Vo{constructor(t){this.builder=t}atrule(t,e){let o="@"+t.name,n=t.params?this.rawValue(t,"params"):"";if(void 0!==t.raws.afterName?o+=t.raws.afterName:n&&(o+=" "),t.nodes)this.block(t,o+n);else{let i=(t.raws.between||"")+(e?";":"");this.builder(o+n+i,t)}}beforeAfter(t,e){let o;o="decl"===t.type?this.raw(t,null,"beforeDecl"):"comment"===t.type?this.raw(t,null,"beforeComment"):"before"===e?this.raw(t,null,"beforeRule"):this.raw(t,null,"beforeClose");let n=t.parent,i=0;for(;n&&"root"!==n.type;)i+=1,n=n.parent;if(o.includes("\n")){let e=this.raw(t,null,"indent");if(e.length)for(let t=0;t0&&"comment"===t.nodes[e].type;)e-=1;let o=this.raw(t,"semicolon");for(let n=0;n{if(n=t.raws[e],void 0!==n)return!1}))}var s;return void 0===n&&(n=Fo[o]),r.rawCache[o]=n,n}rawBeforeClose(t){let e;return t.walk((t=>{if(t.nodes&&t.nodes.length>0&&void 0!==t.raws.after)return e=t.raws.after,e.includes("\n")&&(e=e.replace(/[^\n]+$/,"")),!1})),e&&(e=e.replace(/\S/g,"")),e}rawBeforeComment(t,e){let o;return t.walkComments((t=>{if(void 0!==t.raws.before)return o=t.raws.before,o.includes("\n")&&(o=o.replace(/[^\n]+$/,"")),!1})),void 0===o?o=this.raw(e,null,"beforeDecl"):o&&(o=o.replace(/\S/g,"")),o}rawBeforeDecl(t,e){let o;return t.walkDecls((t=>{if(void 0!==t.raws.before)return o=t.raws.before,o.includes("\n")&&(o=o.replace(/[^\n]+$/,"")),!1})),void 0===o?o=this.raw(e,null,"beforeRule"):o&&(o=o.replace(/\S/g,"")),o}rawBeforeOpen(t){let e;return t.walk((t=>{if("decl"!==t.type&&(e=t.raws.between,void 0!==e))return!1})),e}rawBeforeRule(t){let e;return t.walk((o=>{if(o.nodes&&(o.parent!==t||t.first!==o)&&void 0!==o.raws.before)return e=o.raws.before,e.includes("\n")&&(e=e.replace(/[^\n]+$/,"")),!1})),e&&(e=e.replace(/\S/g,"")),e}rawColon(t){let e;return t.walkDecls((t=>{if(void 0!==t.raws.between)return e=t.raws.between.replace(/[^\s:]/g,""),!1})),e}rawEmptyBody(t){let e;return t.walk((t=>{if(t.nodes&&0===t.nodes.length&&(e=t.raws.after,void 0!==e))return!1})),e}rawIndent(t){if(t.raws.indent)return t.raws.indent;let e;return t.walk((o=>{let n=o.parent;if(n&&n!==t&&n.parent&&n.parent===t&&void 0!==o.raws.before){let t=o.raws.before.split("\n");return e=t[t.length-1],e=e.replace(/\S/g,""),!1}})),e}rawSemicolon(t){let e;return t.walk((t=>{if(t.nodes&&t.nodes.length&&"decl"===t.last.type&&(e=t.raws.semicolon,void 0!==e))return!1})),e}rawValue(t,e){let o=t[e],n=t.raws[e];return n&&n.value===o?n.raw:o}root(t){this.body(t),t.raws.after&&this.builder(t.raws.after)}rule(t){this.block(t,this.rawValue(t,"selector")),t.raws.ownSemicolon&&this.builder(t.raws.ownSemicolon,t,"end")}stringify(t,e){if(!this[t.type])throw new Error("Unknown AST node type "+t.type+". Maybe you need to change PostCSS stringifier.");this[t.type](t,e)}}var Go=Vo;function Wo(t,e){new Go(e).stringify(t)}Vo.default=Vo;var Yo=Wo;Wo.default=Wo;let{isClean:Ko,my:Jo}=qo;function Xo(t,e){let o=new t.constructor;for(let n in t){if(!Object.prototype.hasOwnProperty.call(t,n))continue;if("proxyCache"===n)continue;let i=t[n],r=typeof i;"parent"===n&&"object"===r?e&&(o[n]=e):"source"===n?o[n]=i:Array.isArray(i)?o[n]=i.map((t=>Xo(t,o))):("object"===r&&null!==i&&(i=Xo(i)),o[n]=i)}return o}class Qo{constructor(t={}){this.raws={},this[Ko]=!1,this[Jo]=!0;for(let e in t)if("nodes"===e){this.nodes=[];for(let o of t[e])"function"==typeof o.clone?this.append(o.clone()):this.append(o)}else this[e]=t[e]}addToError(t){if(t.postcssNode=this,t.stack&&this.source&&/\n\s{4}at /.test(t.stack)){let e=this.source;t.stack=t.stack.replace(/\n\s{4}at /,`$&${e.input.from}:${e.start.line}:${e.start.column}$&`)}return t}after(t){return this.parent.insertAfter(this,t),this}assign(t={}){for(let e in t)this[e]=t[e];return this}before(t){return this.parent.insertBefore(this,t),this}cleanRaws(t){delete this.raws.before,delete this.raws.after,t||delete this.raws.between}clone(t={}){let e=Xo(this);for(let o in t)e[o]=t[o];return e}cloneAfter(t={}){let e=this.clone(t);return this.parent.insertAfter(this,e),e}cloneBefore(t={}){let e=this.clone(t);return this.parent.insertBefore(this,e),e}error(t,e={}){if(this.source){let{end:o,start:n}=this.rangeBy(e);return this.source.input.error(t,{column:n.column,line:n.line},{column:o.column,line:o.line},e)}return new Bo(t)}getProxyProcessor(){return{get:(t,e)=>"proxyOf"===e?t:"root"===e?()=>t.root().toProxy():t[e],set:(t,e,o)=>(t[e]===o||(t[e]=o,"prop"!==e&&"value"!==e&&"name"!==e&&"params"!==e&&"important"!==e&&"text"!==e||t.markDirty()),!0)}}markDirty(){if(this[Ko]){this[Ko]=!1;let t=this;for(;t=t.parent;)t[Ko]=!1}}next(){if(!this.parent)return;let t=this.parent.index(this);return this.parent.nodes[t+1]}positionBy(t,e){let o=this.source.start;if(t.index)o=this.positionInside(t.index,e);else if(t.word){let n=(e=this.toString()).indexOf(t.word);-1!==n&&(o=this.positionInside(n,e))}return o}positionInside(t,e){let o=e||this.toString(),n=this.source.start.column,i=this.source.start.line;for(let e=0;e"object"==typeof t&&t.toJSON?t.toJSON(null,e):t));else if("object"==typeof n&&n.toJSON)o[t]=n.toJSON(null,e);else if("source"===t){let r=e.get(n.input);null==r&&(r=i,e.set(n.input,i),i++),o[t]={end:n.end,inputId:r,start:n.start}}else o[t]=n}return n&&(o.inputs=[...e.keys()].map((t=>t.toJSON()))),o}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(t=Yo){t.stringify&&(t=t.stringify);let e="";return t(this,(t=>{e+=t})),e}warn(t,e,o){let n={node:this};for(let t in o)n[t]=o[t];return t.warn(e,n)}get proxyOf(){return this}}var Zo=Qo;Qo.default=Qo;class tn extends Zo{constructor(t){t&&void 0!==t.value&&"string"!=typeof t.value&&(t={...t,value:String(t.value)}),super(t),this.type="decl"}get variable(){return this.prop.startsWith("--")||"$"===this.prop[0]}}var en=tn;tn.default=tn;var on={nanoid:(t=21)=>{let e="",o=t;for(;o--;)e+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64*Math.random()|0];return e},customAlphabet:(t,e=21)=>(o=e)=>{let n="",i=o;for(;i--;)n+=t[Math.random()*t.length|0];return n}};let{SourceMapConsumer:nn,SourceMapGenerator:rn}=Ro,{existsSync:sn,readFileSync:ln}=Ro,{dirname:an,join:cn}=Ro;class dn{constructor(t,e){if(!1===e.map)return;this.loadAnnotation(t),this.inline=this.startWith(this.annotation,"data:");let o=e.map?e.map.prev:void 0,n=this.loadMap(e.from,o);!this.mapFile&&e.from&&(this.mapFile=e.from),this.mapFile&&(this.root=an(this.mapFile)),n&&(this.text=n)}consumer(){return this.consumerCache||(this.consumerCache=new nn(this.text)),this.consumerCache}decodeInline(t){if(/^data:application\/json;charset=utf-?8,/.test(t)||/^data:application\/json,/.test(t))return decodeURIComponent(t.substr(RegExp.lastMatch.length));if(/^data:application\/json;charset=utf-?8;base64,/.test(t)||/^data:application\/json;base64,/.test(t))return e=t.substr(RegExp.lastMatch.length),Buffer?Buffer.from(e,"base64").toString():window.atob(e);var e;let o=t.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+o)}getAnnotationURL(t){return t.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(t){return"object"==typeof t&&("string"==typeof t.mappings||"string"==typeof t._mappings||Array.isArray(t.sections))}loadAnnotation(t){let e=t.match(/\/\*\s*# sourceMappingURL=/gm);if(!e)return;let o=t.lastIndexOf(e.pop()),n=t.indexOf("*/",o);o>-1&&n>-1&&(this.annotation=this.getAnnotationURL(t.substring(o,n)))}loadFile(t){if(this.root=an(t),sn(t))return this.mapFile=t,ln(t,"utf-8").toString().trim()}loadMap(t,e){if(!1===e)return!1;if(e){if("string"==typeof e)return e;if("function"!=typeof e){if(e instanceof nn)return rn.fromSourceMap(e).toString();if(e instanceof rn)return e.toString();if(this.isMap(e))return JSON.stringify(e);throw new Error("Unsupported previous source map format: "+e.toString())}{let o=e(t);if(o){let t=this.loadFile(o);if(!t)throw new Error("Unable to load previous source map: "+o.toString());return t}}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let e=this.annotation;return t&&(e=cn(an(t),e)),this.loadFile(e)}}}startWith(t,e){return!!t&&t.substr(0,e.length)===e}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}}var un=dn;dn.default=dn;var hn=on;let{SourceMapConsumer:pn,SourceMapGenerator:fn}=Ro,{fileURLToPath:mn,pathToFileURL:gn}=Ro,{isAbsolute:bn,resolve:vn}=Ro,{nanoid:yn}=hn,wn=Symbol("fromOffsetCache"),xn=Boolean(pn&&fn),Sn=Boolean(vn&&bn);class En{constructor(t,e={}){if(null==t||"object"==typeof t&&!t.toString)throw new Error(`PostCSS received ${t} instead of CSS string`);if(this.css=t.toString(),"\ufeff"===this.css[0]||"￾"===this.css[0]?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,e.from&&(!Sn||/^\w+:\/\//.test(e.from)||bn(e.from)?this.file=e.from:this.file=vn(e.from)),Sn&&xn){let t=new un(this.css,e);if(t.text){this.map=t;let e=t.consumer().file;!this.file&&e&&(this.file=this.mapResolve(e))}}this.file||(this.id=""),this.map&&(this.map.file=this.from)}error(t,e,o,n={}){let i,r,s;if(e&&"object"==typeof e){let t=e,n=o;if("number"==typeof t.offset){let n=this.fromOffset(t.offset);e=n.line,o=n.col}else e=t.line,o=t.column;if("number"==typeof n.offset){let t=this.fromOffset(n.offset);r=t.line,s=t.col}else r=n.line,s=n.column}else if(!o){let t=this.fromOffset(e);e=t.line,o=t.col}let l=this.origin(e,o,r,s);return i=l?new Bo(t,void 0===l.endLine?l.line:{column:l.column,line:l.line},void 0===l.endLine?l.column:{column:l.endColumn,line:l.endLine},l.source,l.file,n.plugin):new Bo(t,void 0===r?e:{column:o,line:e},void 0===r?o:{column:s,line:r},this.css,this.file,n.plugin),i.input={column:o,endColumn:s,endLine:r,line:e,source:this.css},this.file&&(gn&&(i.input.url=gn(this.file).toString()),i.input.file=this.file),i}fromOffset(t){let e,o;if(this[wn])o=this[wn];else{let t=this.css.split("\n");o=new Array(t.length);let e=0;for(let n=0,i=t.length;n=e)n=o.length-1;else{let e,i=o.length-2;for(;n>1),t=o[e+1])){n=e;break}n=e+1}}return{col:t-o[n]+1,line:n+1}}mapResolve(t){return/^\w+:\/\//.test(t)?t:vn(this.map.consumer().sourceRoot||this.map.root||".",t)}origin(t,e,o,n){if(!this.map)return!1;let i,r,s=this.map.consumer(),l=s.originalPositionFor({column:e,line:t});if(!l.source)return!1;"number"==typeof o&&(i=s.originalPositionFor({column:n,line:o})),r=bn(l.source)?gn(l.source):new URL(l.source,this.map.consumer().sourceRoot||gn(this.map.mapFile));let a={column:l.column,endColumn:i&&i.column,endLine:i&&i.line,line:l.line,url:r.toString()};if("file:"===r.protocol){if(!mn)throw new Error("file: protocol is not available in this PostCSS build");a.file=mn(r)}let c=s.sourceContentFor(l.source);return c&&(a.source=c),a}toJSON(){let t={};for(let e of["hasBOM","css","file","id"])null!=this[e]&&(t[e]=this[e]);return this.map&&(t.map={...this.map},t.map.consumerCache&&(t.map.consumerCache=void 0)),t}get from(){return this.file||this.id}}var Cn=En;En.default=En,Ro&&Ro.registerInput&&Ro.registerInput(En);let{SourceMapConsumer:kn,SourceMapGenerator:On}=Ro,{dirname:_n,relative:Ln,resolve:Tn,sep:Mn}=Ro,{pathToFileURL:$n}=Ro,Dn=Boolean(kn&&On),In=Boolean(_n&&Tn&&Ln&&Mn);var An=class{constructor(t,e,o,n){this.stringify=t,this.mapOpts=o.map||{},this.root=e,this.opts=o,this.css=n,this.originalCSS=n,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let t;t=this.isInline()?"data:application/json;base64,"+this.toBase64(this.map.toString()):"string"==typeof this.mapOpts.annotation?this.mapOpts.annotation:"function"==typeof this.mapOpts.annotation?this.mapOpts.annotation(this.opts.to,this.root):this.outputFile()+".map";let e="\n";this.css.includes("\r\n")&&(e="\r\n"),this.css+=e+"/*# sourceMappingURL="+t+" */"}applyPrevMaps(){for(let t of this.previous()){let e,o=this.toUrl(this.path(t.file)),n=t.root||_n(t.file);!1===this.mapOpts.sourcesContent?(e=new kn(t.text),e.sourcesContent&&(e.sourcesContent=null)):e=t.consumer(),this.map.applySourceMap(e,o,this.toUrl(this.path(n)))}}clearAnnotation(){if(!1!==this.mapOpts.annotation)if(this.root){let t;for(let e=this.root.nodes.length-1;e>=0;e--)t=this.root.nodes[e],"comment"===t.type&&0===t.text.indexOf("# sourceMappingURL=")&&this.root.removeChild(e)}else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),In&&Dn&&this.isMap())return this.generateMap();{let t="";return this.stringify(this.root,(e=>{t+=e})),[t]}}generateMap(){if(this.root)this.generateString();else if(1===this.previous().length){let t=this.previous()[0].consumer();t.file=this.outputFile(),this.map=On.fromSourceMap(t)}else this.map=new On({file:this.outputFile()}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):""});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]}generateString(){this.css="",this.map=new On({file:this.outputFile()});let t,e,o=1,n=1,i="",r={generated:{column:0,line:0},original:{column:0,line:0},source:""};this.stringify(this.root,((s,l,a)=>{if(this.css+=s,l&&"end"!==a&&(r.generated.line=o,r.generated.column=n-1,l.source&&l.source.start?(r.source=this.sourcePath(l),r.original.line=l.source.start.line,r.original.column=l.source.start.column-1,this.map.addMapping(r)):(r.source=i,r.original.line=1,r.original.column=0,this.map.addMapping(r))),t=s.match(/\n/g),t?(o+=t.length,e=s.lastIndexOf("\n"),n=s.length-e):n+=s.length,l&&"start"!==a){let t=l.parent||{raws:{}};("decl"===l.type||"atrule"===l.type&&!l.nodes)&&l===t.last&&!t.raws.semicolon||(l.source&&l.source.end?(r.source=this.sourcePath(l),r.original.line=l.source.end.line,r.original.column=l.source.end.column-1,r.generated.line=o,r.generated.column=n-2,this.map.addMapping(r)):(r.source=i,r.original.line=1,r.original.column=0,r.generated.line=o,r.generated.column=n-1,this.map.addMapping(r)))}}))}isAnnotation(){return!!this.isInline()||(void 0!==this.mapOpts.annotation?this.mapOpts.annotation:!this.previous().length||this.previous().some((t=>t.annotation)))}isInline(){if(void 0!==this.mapOpts.inline)return this.mapOpts.inline;let t=this.mapOpts.annotation;return(void 0===t||!0===t)&&(!this.previous().length||this.previous().some((t=>t.inline)))}isMap(){return void 0!==this.opts.map?!!this.opts.map:this.previous().length>0}isSourcesContent(){return void 0!==this.mapOpts.sourcesContent?this.mapOpts.sourcesContent:!this.previous().length||this.previous().some((t=>t.withContent()))}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(t){if(this.mapOpts.absolute)return t;if(60===t.charCodeAt(0))return t;if(/^\w+:\/\//.test(t))return t;let e=this.memoizedPaths.get(t);if(e)return e;let o=this.opts.to?_n(this.opts.to):".";"string"==typeof this.mapOpts.annotation&&(o=_n(Tn(o,this.mapOpts.annotation)));let n=Ln(o,t);return this.memoizedPaths.set(t,n),n}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk((t=>{if(t.source&&t.source.input.map){let e=t.source.input.map;this.previousMaps.includes(e)||this.previousMaps.push(e)}}));else{let t=new Cn(this.originalCSS,this.opts);t.map&&this.previousMaps.push(t.map)}return this.previousMaps}setSourcesContent(){let t={};if(this.root)this.root.walk((e=>{if(e.source){let o=e.source.input.from;if(o&&!t[o]){t[o]=!0;let n=this.usesFileUrls?this.toFileUrl(o):this.toUrl(this.path(o));this.map.setSourceContent(n,e.source.input.css)}}}));else if(this.css){let t=this.opts.from?this.toUrl(this.path(this.opts.from)):"";this.map.setSourceContent(t,this.css)}}sourcePath(t){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(t.source.input.from):this.toUrl(this.path(t.source.input.from))}toBase64(t){return Buffer?Buffer.from(t).toString("base64"):window.btoa(unescape(encodeURIComponent(t)))}toFileUrl(t){let e=this.memoizedFileURLs.get(t);if(e)return e;if($n){let e=$n(t).toString();return this.memoizedFileURLs.set(t,e),e}throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(t){let e=this.memoizedURLs.get(t);if(e)return e;"\\"===Mn&&(t=t.replace(/\\/g,"/"));let o=encodeURI(t).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(t,o),o}};class Nn extends Zo{constructor(t){super(t),this.type="comment"}}var Un=Nn;Nn.default=Nn;let Pn,zn,jn,Rn,{isClean:Hn,my:Bn}=qo;function qn(t){return t.map((t=>(t.nodes&&(t.nodes=qn(t.nodes)),delete t.source,t)))}function Fn(t){if(t[Hn]=!1,t.proxyOf.nodes)for(let e of t.proxyOf.nodes)Fn(e)}class Vn extends Zo{append(...t){for(let e of t){let t=this.normalize(e,this.last);for(let e of t)this.proxyOf.nodes.push(e)}return this.markDirty(),this}cleanRaws(t){if(super.cleanRaws(t),this.nodes)for(let e of this.nodes)e.cleanRaws(t)}each(t){if(!this.proxyOf.nodes)return;let e,o,n=this.getIterator();for(;this.indexes[n]"proxyOf"===e?t:t[e]?"each"===e||"string"==typeof e&&e.startsWith("walk")?(...o)=>t[e](...o.map((t=>"function"==typeof t?(e,o)=>t(e.toProxy(),o):t))):"every"===e||"some"===e?o=>t[e](((t,...e)=>o(t.toProxy(),...e))):"root"===e?()=>t.root().toProxy():"nodes"===e?t.nodes.map((t=>t.toProxy())):"first"===e||"last"===e?t[e].toProxy():t[e]:t[e],set:(t,e,o)=>(t[e]===o||(t[e]=o,"name"!==e&&"params"!==e&&"selector"!==e||t.markDirty()),!0)}}index(t){return"number"==typeof t?t:(t.proxyOf&&(t=t.proxyOf),this.proxyOf.nodes.indexOf(t))}insertAfter(t,e){let o,n=this.index(t),i=this.normalize(e,this.proxyOf.nodes[n]).reverse();n=this.index(t);for(let t of i)this.proxyOf.nodes.splice(n+1,0,t);for(let t in this.indexes)o=this.indexes[t],n(t[Bn]||Vn.rebuild(t),(t=t.proxyOf).parent&&t.parent.removeChild(t),t[Hn]&&Fn(t),void 0===t.raws.before&&e&&void 0!==e.raws.before&&(t.raws.before=e.raws.before.replace(/\S/g,"")),t.parent=this.proxyOf,t)));return o}prepend(...t){t=t.reverse();for(let e of t){let t=this.normalize(e,this.first,"prepend").reverse();for(let e of t)this.proxyOf.nodes.unshift(e);for(let e in this.indexes)this.indexes[e]=this.indexes[e]+t.length}return this.markDirty(),this}push(t){return t.parent=this,this.proxyOf.nodes.push(t),this}removeAll(){for(let t of this.proxyOf.nodes)t.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(t){let e;t=this.index(t),this.proxyOf.nodes[t].parent=void 0,this.proxyOf.nodes.splice(t,1);for(let o in this.indexes)e=this.indexes[o],e>=t&&(this.indexes[o]=e-1);return this.markDirty(),this}replaceValues(t,e,o){return o||(o=e,e={}),this.walkDecls((n=>{e.props&&!e.props.includes(n.prop)||e.fast&&!n.value.includes(e.fast)||(n.value=n.value.replace(t,o))})),this.markDirty(),this}some(t){return this.nodes.some(t)}walk(t){return this.each(((e,o)=>{let n;try{n=t(e,o)}catch(t){throw e.addToError(t)}return!1!==n&&e.walk&&(n=e.walk(t)),n}))}walkAtRules(t,e){return e?t instanceof RegExp?this.walk(((o,n)=>{if("atrule"===o.type&&t.test(o.name))return e(o,n)})):this.walk(((o,n)=>{if("atrule"===o.type&&o.name===t)return e(o,n)})):(e=t,this.walk(((t,o)=>{if("atrule"===t.type)return e(t,o)})))}walkComments(t){return this.walk(((e,o)=>{if("comment"===e.type)return t(e,o)}))}walkDecls(t,e){return e?t instanceof RegExp?this.walk(((o,n)=>{if("decl"===o.type&&t.test(o.prop))return e(o,n)})):this.walk(((o,n)=>{if("decl"===o.type&&o.prop===t)return e(o,n)})):(e=t,this.walk(((t,o)=>{if("decl"===t.type)return e(t,o)})))}walkRules(t,e){return e?t instanceof RegExp?this.walk(((o,n)=>{if("rule"===o.type&&t.test(o.selector))return e(o,n)})):this.walk(((o,n)=>{if("rule"===o.type&&o.selector===t)return e(o,n)})):(e=t,this.walk(((t,o)=>{if("rule"===t.type)return e(t,o)})))}get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}}Vn.registerParse=t=>{Pn=t},Vn.registerRule=t=>{zn=t},Vn.registerAtRule=t=>{jn=t},Vn.registerRoot=t=>{Rn=t};var Gn=Vn;let Wn,Yn;Vn.default=Vn,Vn.rebuild=t=>{"atrule"===t.type?Object.setPrototypeOf(t,jn.prototype):"rule"===t.type?Object.setPrototypeOf(t,zn.prototype):"decl"===t.type?Object.setPrototypeOf(t,en.prototype):"comment"===t.type?Object.setPrototypeOf(t,Un.prototype):"root"===t.type&&Object.setPrototypeOf(t,Rn.prototype),t[Bn]=!0,t.nodes&&t.nodes.forEach((t=>{Vn.rebuild(t)}))};class Kn extends Gn{constructor(t){super({type:"document",...t}),this.nodes||(this.nodes=[])}toResult(t={}){return new Wn(new Yn,this,t).stringify()}}Kn.registerLazyResult=t=>{Wn=t},Kn.registerProcessor=t=>{Yn=t};var Jn=Kn;Kn.default=Kn;let Xn={};var Qn=function(t){Xn[t]||(Xn[t]=!0,"undefined"!=typeof console&&console.warn&&console.warn(t))};class Zn{constructor(t,e={}){if(this.type="warning",this.text=t,e.node&&e.node.source){let t=e.node.rangeBy(e);this.line=t.start.line,this.column=t.start.column,this.endLine=t.end.line,this.endColumn=t.end.column}for(let t in e)this[t]=e[t]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}}var ti=Zn;Zn.default=Zn;class ei{constructor(t,e,o){this.processor=t,this.messages=[],this.root=e,this.opts=o,this.css=void 0,this.map=void 0}toString(){return this.css}warn(t,e={}){e.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(e.plugin=this.lastPlugin.postcssPlugin);let o=new ti(t,e);return this.messages.push(o),o}warnings(){return this.messages.filter((t=>"warning"===t.type))}get content(){return this.css}}var oi=ei;ei.default=ei;const ni="'".charCodeAt(0),ii='"'.charCodeAt(0),ri="\\".charCodeAt(0),si="/".charCodeAt(0),li="\n".charCodeAt(0),ai=" ".charCodeAt(0),ci="\f".charCodeAt(0),di="\t".charCodeAt(0),ui="\r".charCodeAt(0),hi="[".charCodeAt(0),pi="]".charCodeAt(0),fi="(".charCodeAt(0),mi=")".charCodeAt(0),gi="{".charCodeAt(0),bi="}".charCodeAt(0),vi=";".charCodeAt(0),yi="*".charCodeAt(0),wi=":".charCodeAt(0),xi="@".charCodeAt(0),Si=/[\t\n\f\r "#'()/;[\\\]{}]/g,Ei=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,Ci=/.[\r\n"'(/\\]/,ki=/[\da-f]/i;class Oi extends Gn{constructor(t){super(t),this.type="atrule"}append(...t){return this.proxyOf.nodes||(this.nodes=[]),super.append(...t)}prepend(...t){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...t)}}var _i=Oi;let Li,Ti;Oi.default=Oi,Gn.registerAtRule(Oi);class Mi extends Gn{constructor(t){super(t),this.type="root",this.nodes||(this.nodes=[])}normalize(t,e,o){let n=super.normalize(t);if(e)if("prepend"===o)this.nodes.length>1?e.raws.before=this.nodes[1].raws.before:delete e.raws.before;else if(this.first!==e)for(let t of n)t.raws.before=e.raws.before;return n}removeChild(t,e){let o=this.index(t);return!e&&0===o&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[o].raws.before),super.removeChild(t)}toResult(t={}){return new Li(new Ti,this,t).stringify()}}Mi.registerLazyResult=t=>{Li=t},Mi.registerProcessor=t=>{Ti=t};var $i=Mi;Mi.default=Mi,Gn.registerRoot(Mi);let Di={comma:t=>Di.split(t,[","],!0),space:t=>Di.split(t,[" ","\n","\t"]),split(t,e,o){let n=[],i="",r=!1,s=0,l=!1,a="",c=!1;for(let o of t)c?c=!1:"\\"===o?c=!0:l?o===a&&(l=!1):'"'===o||"'"===o?(l=!0,a=o):"("===o?s+=1:")"===o?s>0&&(s-=1):0===s&&e.includes(o)&&(r=!0),r?(""!==i&&n.push(i.trim()),i="",r=!1):i+=o;return(o||""!==i)&&n.push(i.trim()),n}};var Ii=Di;Di.default=Di;class Ai extends Gn{constructor(t){super(t),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return Ii.comma(this.selector)}set selectors(t){let e=this.selector?this.selector.match(/,\s*/):null,o=e?e[0]:","+this.raw("between","beforeOpen");this.selector=t.join(o)}}var Ni=Ai;Ai.default=Ai,Gn.registerRule(Ai);const Ui={empty:!0,space:!0};var Pi=class{constructor(t){this.input=t,this.root=new $i,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:t,start:{column:1,line:1,offset:0}}}atrule(t){let e,o,n,i=new _i;i.name=t[1].slice(1),""===i.name&&this.unnamedAtrule(i,t),this.init(i,t[2]);let r=!1,s=!1,l=[],a=[];for(;!this.tokenizer.endOfFile();){if(e=(t=this.tokenizer.nextToken())[0],"("===e||"["===e?a.push("("===e?")":"]"):"{"===e&&a.length>0?a.push("}"):e===a[a.length-1]&&a.pop(),0===a.length){if(";"===e){i.source.end=this.getPosition(t[2]),i.source.end.offset++,this.semicolon=!0;break}if("{"===e){s=!0;break}if("}"===e){if(l.length>0){for(n=l.length-1,o=l[n];o&&"space"===o[0];)o=l[--n];o&&(i.source.end=this.getPosition(o[3]||o[2]),i.source.end.offset++)}this.end(t);break}l.push(t)}else l.push(t);if(this.tokenizer.endOfFile()){r=!0;break}}i.raws.between=this.spacesAndCommentsFromEnd(l),l.length?(i.raws.afterName=this.spacesAndCommentsFromStart(l),this.raw(i,"params",l),r&&(t=l[l.length-1],i.source.end=this.getPosition(t[3]||t[2]),i.source.end.offset++,this.spaces=i.raws.between,i.raws.between="")):(i.raws.afterName="",i.params=""),s&&(i.nodes=[],this.current=i)}checkMissedSemicolon(t){let e=this.colon(t);if(!1===e)return;let o,n=0;for(let i=e-1;i>=0&&(o=t[i],"space"===o[0]||(n+=1,2!==n));i--);throw this.input.error("Missed semicolon","word"===o[0]?o[3]+1:o[2])}colon(t){let e,o,n,i=0;for(let[r,s]of t.entries()){if(e=s,o=e[0],"("===o&&(i+=1),")"===o&&(i-=1),0===i&&":"===o){if(n){if("word"===n[0]&&"progid"===n[1])continue;return r}this.doubleColon(e)}n=e}return!1}comment(t){let e=new Un;this.init(e,t[2]),e.source.end=this.getPosition(t[3]||t[2]),e.source.end.offset++;let o=t[1].slice(2,-2);if(/^\s*$/.test(o))e.text="",e.raws.left=o,e.raws.right="";else{let t=o.match(/^(\s*)([^]*\S)(\s*)$/);e.text=t[2],e.raws.left=t[1],e.raws.right=t[3]}}createTokenizer(){this.tokenizer=function(t,e={}){let o,n,i,r,s,l,a,c,d,u,h=t.css.valueOf(),p=e.ignoreErrors,f=h.length,m=0,g=[],b=[];function v(e){throw t.error("Unclosed "+e,m)}return{back:function(t){b.push(t)},endOfFile:function(){return 0===b.length&&m>=f},nextToken:function(t){if(b.length)return b.pop();if(m>=f)return;let e=!!t&&t.ignoreUnclosed;switch(o=h.charCodeAt(m),o){case li:case ai:case di:case ui:case ci:n=m;do{n+=1,o=h.charCodeAt(n)}while(o===ai||o===li||o===di||o===ui||o===ci);u=["space",h.slice(m,n)],m=n-1;break;case hi:case pi:case gi:case bi:case wi:case vi:case mi:{let t=String.fromCharCode(o);u=[t,t,m];break}case fi:if(c=g.length?g.pop()[1]:"",d=h.charCodeAt(m+1),"url"===c&&d!==ni&&d!==ii&&d!==ai&&d!==li&&d!==di&&d!==ci&&d!==ui){n=m;do{if(l=!1,n=h.indexOf(")",n+1),-1===n){if(p||e){n=m;break}v("bracket")}for(a=n;h.charCodeAt(a-1)===ri;)a-=1,l=!l}while(l);u=["brackets",h.slice(m,n+1),m,n],m=n}else n=h.indexOf(")",m+1),r=h.slice(m,n+1),-1===n||Ci.test(r)?u=["(","(",m]:(u=["brackets",r,m,n],m=n);break;case ni:case ii:i=o===ni?"'":'"',n=m;do{if(l=!1,n=h.indexOf(i,n+1),-1===n){if(p||e){n=m+1;break}v("string")}for(a=n;h.charCodeAt(a-1)===ri;)a-=1,l=!l}while(l);u=["string",h.slice(m,n+1),m,n],m=n;break;case xi:Si.lastIndex=m+1,Si.test(h),n=0===Si.lastIndex?h.length-1:Si.lastIndex-2,u=["at-word",h.slice(m,n+1),m,n],m=n;break;case ri:for(n=m,s=!0;h.charCodeAt(n+1)===ri;)n+=1,s=!s;if(o=h.charCodeAt(n+1),s&&o!==si&&o!==ai&&o!==li&&o!==di&&o!==ui&&o!==ci&&(n+=1,ki.test(h.charAt(n)))){for(;ki.test(h.charAt(n+1));)n+=1;h.charCodeAt(n+1)===ai&&(n+=1)}u=["word",h.slice(m,n+1),m,n],m=n;break;default:o===si&&h.charCodeAt(m+1)===yi?(n=h.indexOf("*/",m+2)+1,0===n&&(p||e?n=h.length:v("comment")),u=["comment",h.slice(m,n+1),m,n],m=n):(Ei.lastIndex=m+1,Ei.test(h),n=0===Ei.lastIndex?h.length-1:Ei.lastIndex-2,u=["word",h.slice(m,n+1),m,n],g.push(u),m=n)}return m++,u},position:function(){return m}}}(this.input)}decl(t,e){let o=new en;this.init(o,t[0][2]);let n,i=t[t.length-1];for(";"===i[0]&&(this.semicolon=!0,t.pop()),o.source.end=this.getPosition(i[3]||i[2]||function(t){for(let e=t.length-1;e>=0;e--){let o=t[e],n=o[3]||o[2];if(n)return n}}(t)),o.source.end.offset++;"word"!==t[0][0];)1===t.length&&this.unknownWord(t),o.raws.before+=t.shift()[1];for(o.source.start=this.getPosition(t[0][2]),o.prop="";t.length;){let e=t[0][0];if(":"===e||"space"===e||"comment"===e)break;o.prop+=t.shift()[1]}for(o.raws.between="";t.length;){if(n=t.shift(),":"===n[0]){o.raws.between+=n[1];break}"word"===n[0]&&/\w/.test(n[1])&&this.unknownWord([n]),o.raws.between+=n[1]}"_"!==o.prop[0]&&"*"!==o.prop[0]||(o.raws.before+=o.prop[0],o.prop=o.prop.slice(1));let r,s=[];for(;t.length&&(r=t[0][0],"space"===r||"comment"===r);)s.push(t.shift());this.precheckMissedSemicolon(t);for(let e=t.length-1;e>=0;e--){if(n=t[e],"!important"===n[1].toLowerCase()){o.important=!0;let n=this.stringFrom(t,e);n=this.spacesFromEnd(t)+n," !important"!==n&&(o.raws.important=n);break}if("important"===n[1].toLowerCase()){let n=t.slice(0),i="";for(let t=e;t>0;t--){let e=n[t][0];if(0===i.trim().indexOf("!")&&"space"!==e)break;i=n.pop()[1]+i}0===i.trim().indexOf("!")&&(o.important=!0,o.raws.important=i,t=n)}if("space"!==n[0]&&"comment"!==n[0])break}let l=t.some((t=>"space"!==t[0]&&"comment"!==t[0]));l&&(o.raws.between+=s.map((t=>t[1])).join(""),s=[]),this.raw(o,"value",s.concat(t),e),o.value.includes(":")&&!e&&this.checkMissedSemicolon(t)}doubleColon(t){throw this.input.error("Double colon",{offset:t[2]},{offset:t[2]+t[1].length})}emptyRule(t){let e=new Ni;this.init(e,t[2]),e.selector="",e.raws.between="",this.current=e}end(t){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(t[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(t)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(t){if(this.spaces+=t[1],this.current.nodes){let t=this.current.nodes[this.current.nodes.length-1];t&&"rule"===t.type&&!t.raws.ownSemicolon&&(t.raws.ownSemicolon=this.spaces,this.spaces="")}}getPosition(t){let e=this.input.fromOffset(t);return{column:e.col,line:e.line,offset:t}}init(t,e){this.current.push(t),t.source={input:this.input,start:this.getPosition(e)},t.raws.before=this.spaces,this.spaces="","comment"!==t.type&&(this.semicolon=!1)}other(t){let e=!1,o=null,n=!1,i=null,r=[],s=t[1].startsWith("--"),l=[],a=t;for(;a;){if(o=a[0],l.push(a),"("===o||"["===o)i||(i=a),r.push("("===o?")":"]");else if(s&&n&&"{"===o)i||(i=a),r.push("}");else if(0===r.length){if(";"===o){if(n)return void this.decl(l,s);break}if("{"===o)return void this.rule(l);if("}"===o){this.tokenizer.back(l.pop()),e=!0;break}":"===o&&(n=!0)}else o===r[r.length-1]&&(r.pop(),0===r.length&&(i=null));a=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(e=!0),r.length>0&&this.unclosedBracket(i),e&&n){if(!s)for(;l.length&&(a=l[l.length-1][0],"space"===a||"comment"===a);)this.tokenizer.back(l.pop());this.decl(l,s)}else this.unknownWord(l)}parse(){let t;for(;!this.tokenizer.endOfFile();)switch(t=this.tokenizer.nextToken(),t[0]){case"space":this.spaces+=t[1];break;case";":this.freeSemicolon(t);break;case"}":this.end(t);break;case"comment":this.comment(t);break;case"at-word":this.atrule(t);break;case"{":this.emptyRule(t);break;default:this.other(t)}this.endFile()}precheckMissedSemicolon(){}raw(t,e,o,n){let i,r,s,l,a=o.length,c="",d=!0;for(let t=0;tt+e[1]),"");t.raws[e]={raw:n,value:c}}t[e]=c}rule(t){t.pop();let e=new Ni;this.init(e,t[0][2]),e.raws.between=this.spacesAndCommentsFromEnd(t),this.raw(e,"selector",t),this.current=e}spacesAndCommentsFromEnd(t){let e,o="";for(;t.length&&(e=t[t.length-1][0],"space"===e||"comment"===e);)o=t.pop()[1]+o;return o}spacesAndCommentsFromStart(t){let e,o="";for(;t.length&&(e=t[0][0],"space"===e||"comment"===e);)o+=t.shift()[1];return o}spacesFromEnd(t){let e,o="";for(;t.length&&(e=t[t.length-1][0],"space"===e);)o=t.pop()[1]+o;return o}stringFrom(t,e){let o="";for(let n=e;nKi(t))),t}let Ji={};class Xi{constructor(t,e,o){let n;if(this.stringified=!1,this.processed=!1,"object"!=typeof e||null===e||"root"!==e.type&&"document"!==e.type)if(e instanceof Xi||e instanceof oi)n=Ki(e.root),e.map&&(void 0===o.map&&(o.map={}),o.map.inline||(o.map.inline=!1),o.map.prev=e.map);else{let t=ji;o.syntax&&(t=o.syntax.parse),o.parser&&(t=o.parser),t.parse&&(t=t.parse);try{n=t(e,o)}catch(t){this.processed=!0,this.error=t}n&&!n[Hi]&&Gn.rebuild(n)}else n=Ki(e);this.result=new oi(t,n,o),this.helpers={...Ji,postcss:Ji,result:this.result},this.plugins=this.processor.plugins.map((t=>"object"==typeof t&&t.prepare?{...t,...t.prepare(this.result)}:t))}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(t){return this.async().catch(t)}finally(t){return this.async().then(t,t)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(t,e){let o=this.result.lastPlugin;try{if(e&&e.addToError(t),this.error=t,"CssSyntaxError"!==t.name||t.plugin){if(o.postcssVersion&&"production"!==process.env.NODE_ENV){let t=o.postcssPlugin,e=o.postcssVersion,n=this.result.processor.version,i=e.split("."),r=n.split(".");(i[0]!==r[0]||parseInt(i[1])>parseInt(r[1]))&&console.error("Unknown error from PostCSS plugin. Your current PostCSS version is "+n+", but "+t+" uses "+e+". Perhaps this is the source of the error below.")}}else t.plugin=o.postcssPlugin,t.setMessage()}catch(t){console&&console.error&&console.error(t)}return t}prepareVisitors(){this.listeners={};let t=(t,e,o)=>{this.listeners[e]||(this.listeners[e]=[]),this.listeners[e].push([t,o])};for(let e of this.plugins)if("object"==typeof e)for(let o in e){if(!qi[o]&&/^[A-Z]/.test(o))throw new Error(`Unknown event ${o} in ${e.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!Fi[o])if("object"==typeof e[o])for(let n in e[o])t(e,"*"===n?o:o+"-"+n.toLowerCase(),e[o][n]);else"function"==typeof e[o]&&t(e,o,e[o])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let t=0;t0;){let t=this.visitTick(e);if(Gi(t))try{await t}catch(t){let o=e[e.length-1].node;throw this.handleError(t,o)}}}if(this.listeners.OnceExit)for(let[e,o]of this.listeners.OnceExit){this.result.lastPlugin=e;try{if("document"===t.type){let e=t.nodes.map((t=>o(t,this.helpers)));await Promise.all(e)}else await o(t,this.helpers)}catch(t){throw this.handleError(t)}}}return this.processed=!0,this.stringify()}runOnRoot(t){this.result.lastPlugin=t;try{if("object"==typeof t&&t.Once){if("document"===this.result.root.type){let e=this.result.root.nodes.map((e=>t.Once(e,this.helpers)));return Gi(e[0])?Promise.all(e):e}return t.Once(this.result.root,this.helpers)}if("function"==typeof t)return t(this.result.root,this.result)}catch(t){throw this.handleError(t)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let t=this.result.opts,e=Yo;t.syntax&&(e=t.syntax.stringify),t.stringifier&&(e=t.stringifier),e.stringify&&(e=e.stringify);let o=new An(e,this.result.root,this.result.opts).generate();return this.result.css=o[0],this.result.map=o[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let t of this.plugins){if(Gi(this.runOnRoot(t)))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let t=this.result.root;for(;!t[Ri];)t[Ri]=!0,this.walkSync(t);if(this.listeners.OnceExit)if("document"===t.type)for(let e of t.nodes)this.visitSync(this.listeners.OnceExit,e);else this.visitSync(this.listeners.OnceExit,t)}return this.result}then(t,e){return"production"!==process.env.NODE_ENV&&("from"in this.opts||Qn("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")),this.async().then(t,e)}toString(){return this.css}visitSync(t,e){for(let[o,n]of t){let t;this.result.lastPlugin=o;try{t=n(e,this.helpers)}catch(t){throw this.handleError(t,e.proxyOf)}if("root"!==e.type&&"document"!==e.type&&!e.parent)return!0;if(Gi(t))throw this.getAsyncError()}}visitTick(t){let e=t[t.length-1],{node:o,visitors:n}=e;if("root"!==o.type&&"document"!==o.type&&!o.parent)return void t.pop();if(n.length>0&&e.visitorIndex{t[Ri]||this.walkSync(t)}));else{let e=this.listeners[o];if(e&&this.visitSync(e,t.toProxy()))return}}warnings(){return this.sync().warnings()}get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}}Xi.registerPostcss=t=>{Ji=t};var Qi=Xi;Xi.default=Xi,$i.registerLazyResult(Xi),Jn.registerLazyResult(Xi);class Zi{constructor(t,e,o){let n;e=e.toString(),this.stringified=!1,this._processor=t,this._css=e,this._opts=o,this._map=void 0;let i=Yo;this.result=new oi(this._processor,n,this._opts),this.result.css=e;let r=this;Object.defineProperty(this.result,"root",{get:()=>r.root});let s=new An(i,n,this._opts,e);if(s.isMap()){let[t,e]=s.generate();t&&(this.result.css=t),e&&(this.result.map=e)}else s.clearAnnotation(),this.result.css=s.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(t){return this.async().catch(t)}finally(t){return this.async().then(t,t)}sync(){if(this.error)throw this.error;return this.result}then(t,e){return"production"!==process.env.NODE_ENV&&("from"in this._opts||Qn("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")),this.async().then(t,e)}toString(){return this._css}warnings(){return[]}get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let t,e=ji;try{t=e(this._css,this._opts)}catch(t){this.error=t}if(this.error)throw this.error;return this._root=t,t}get[Symbol.toStringTag](){return"NoWorkResult"}}var tr=Zi;Zi.default=Zi;class er{constructor(t=[]){this.version="8.4.35",this.plugins=this.normalize(t)}normalize(t){let e=[];for(let o of t)if(!0===o.postcss?o=o():o.postcss&&(o=o.postcss),"object"==typeof o&&Array.isArray(o.plugins))e=e.concat(o.plugins);else if("object"==typeof o&&o.postcssPlugin)e.push(o);else if("function"==typeof o)e.push(o);else{if("object"!=typeof o||!o.parse&&!o.stringify)throw new Error(o+" is not a PostCSS plugin");if("production"!==process.env.NODE_ENV)throw new Error("PostCSS syntaxes cannot be used as plugins. Instead, please use one of the syntax/parser/stringifier options as outlined in your PostCSS runner documentation.")}return e}process(t,e={}){return this.plugins.length||e.parser||e.stringifier||e.syntax?new Qi(this,t,e):new tr(this,t,e)}use(t){return this.plugins=this.plugins.concat(this.normalize([t])),this}}var or=er;function nr(t,e){if(Array.isArray(t))return t.map((t=>nr(t)));let{inputs:o,...n}=t;if(o){e=[];for(let t of o){let o={...t,__proto__:Cn.prototype};o.map&&(o.map={...o.map,__proto__:un.prototype}),e.push(o)}}if(n.nodes&&(n.nodes=t.nodes.map((t=>nr(t,e)))),n.source){let{inputId:t,...o}=n.source;n.source=o,null!=t&&(n.source.input=e[t])}if("root"===n.type)return new $i(n);if("decl"===n.type)return new en(n);if("rule"===n.type)return new Ni(n);if("comment"===n.type)return new Un(n);if("atrule"===n.type)return new _i(n);throw new Error("Unknown node type: "+t.type)}er.default=er,$i.registerProcessor(er),Jn.registerProcessor(er);var ir=nr;function rr(...t){return 1===t.length&&Array.isArray(t[0])&&(t=t[0]),new or(t)}nr.default=nr,rr.plugin=function(t,e){let o,n=!1;function i(...o){console&&console.warn&&!n&&(n=!0,console.warn(t+": postcss.plugin was deprecated. Migration guide:\nhttps://evilmartians.com/chronicles/postcss-8-plugin-migration"),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(t+": 里面 postcss.plugin 被弃用. 迁移指南:\nhttps://www.w3ctech.com/topic/2226"));let i=e(...o);return i.postcssPlugin=t,i.postcssVersion=(new or).version,i}return Object.defineProperty(i,"postcss",{get:()=>(o||(o=i()),o)}),i.process=function(t,e,o){return rr([i(o)]).process(t,e)},i},rr.stringify=Yo,rr.parse=ji,rr.fromJSON=ir,rr.list=Ii,rr.comment=t=>new Un(t),rr.atRule=t=>new _i(t),rr.decl=t=>new en(t),rr.rule=t=>new Ni(t),rr.root=t=>new $i(t),rr.document=t=>new Jn(t),rr.CssSyntaxError=Bo,rr.Declaration=en,rr.Container=Gn,rr.Processor=or,rr.Document=Jn,rr.Comment=Un,rr.Warning=ti,rr.AtRule=_i,rr.Result=oi,rr.Input=Cn,rr.Rule=Ni,rr.Root=$i,rr.Node=Zo,Qi.registerPostcss(rr);var sr=rr;rr.default=rr;var lr=wo;const{isPlainObject:ar}=Co,{parse:cr}=sr,dr=["img","audio","video","picture","svg","object","map","iframe","embed"],ur=["script","style"];function hr(t,e){t&&Object.keys(t).forEach((function(o){e(t[o],o)}))}function pr(t,e){return{}.hasOwnProperty.call(t,e)}function fr(t,e){const o=[];return hr(t,(function(t){e(t)&&o.push(t)})),o}var mr=br;const gr=/^[^\0\t\n\f\r /<=>]+$/;function br(t,e,o){if(null==t)return"";"number"==typeof t&&(t=t.toString());let n="",i="";function r(t,e){const o=this;this.tag=t,this.attribs=e||{},this.tagPosition=n.length,this.text="",this.mediaChildren=[],this.updateParentNodeText=function(){if(g.length){g[g.length-1].text+=o.text}},this.updateParentNodeMediaChildren=function(){if(g.length&&dr.includes(this.tag)){g[g.length-1].mediaChildren.push(this.tag)}}}(e=Object.assign({},br.defaults,e)).parser=Object.assign({},vr,e.parser);const s=function(t){return!1===e.allowedTags||(e.allowedTags||[]).indexOf(t)>-1};ur.forEach((function(t){s(t)&&!e.allowVulnerableTags&&console.warn(`\n\n⚠️ Your \`allowedTags\` option includes, \`${t}\`, which is inherently\nvulnerable to XSS attacks. Please remove it from \`allowedTags\`.\nOr, to disable this warning, add the \`allowVulnerableTags\` option\nand ensure you are accounting for this risk.\n\n`)}));const l=e.nonTextTags||["script","style","textarea","option"];let a,c;e.allowedAttributes&&(a={},c={},hr(e.allowedAttributes,(function(t,e){a[e]=[];const o=[];t.forEach((function(t){"string"==typeof t&&t.indexOf("*")>=0?o.push(xo(t).replace(/\\\*/g,".*")):a[e].push(t)})),o.length&&(c[e]=new RegExp("^("+o.join("|")+")$"))})));const d={},u={},h={};hr(e.allowedClasses,(function(t,e){if(a&&(pr(a,e)||(a[e]=[]),a[e].push("class")),d[e]=t,Array.isArray(t)){const o=[];d[e]=[],h[e]=[],t.forEach((function(t){"string"==typeof t&&t.indexOf("*")>=0?o.push(xo(t).replace(/\\\*/g,".*")):t instanceof RegExp?h[e].push(t):d[e].push(t)})),o.length&&(u[e]=new RegExp("^("+o.join("|")+")$"))}}));const p={};let f,m,g,b,v,y,w;hr(e.transformTags,(function(t,e){let o;"function"==typeof t?o=t:"string"==typeof t&&(o=br.simpleTransform(t)),"*"===e?f=o:p[e]=o}));let x=!1;E();const S=new lr.Parser({onopentag:function(t,o){if(e.enforceHtmlBoundary&&"html"===t&&E(),y)return void w++;const S=new r(t,o);g.push(S);let L=!1;const T=!!S.text;let M;if(pr(p,t)&&(M=p[t](t,o),S.attribs=o=M.attribs,void 0!==M.text&&(S.innerText=M.text),t!==M.tagName&&(S.name=t=M.tagName,v[m]=M.tagName)),f&&(M=f(t,o),S.attribs=o=M.attribs,t!==M.tagName&&(S.name=t=M.tagName,v[m]=M.tagName)),(!s(t)||"recursiveEscape"===e.disallowedTagsMode&&!function(t){for(const e in t)if(pr(t,e))return!1;return!0}(b)||null!=e.nestingLimit&&m>=e.nestingLimit)&&(L=!0,b[m]=!0,"discard"===e.disallowedTagsMode&&-1!==l.indexOf(t)&&(y=!0,w=1),b[m]=!0),m++,L){if("discard"===e.disallowedTagsMode)return;i=n,n=""}n+="<"+t,"script"===t&&(e.allowedScriptHostnames||e.allowedScriptDomains)&&(S.innerText=""),(!a||pr(a,t)||a["*"])&&hr(o,(function(o,i){if(!gr.test(i))return void delete S.attribs[i];if(""===o&&(e.nonBooleanAttributes.includes(i)||e.nonBooleanAttributes.includes("*")))return void delete S.attribs[i];let r=!1;if(!a||pr(a,t)&&-1!==a[t].indexOf(i)||a["*"]&&-1!==a["*"].indexOf(i)||pr(c,t)&&c[t].test(i)||c["*"]&&c["*"].test(i))r=!0;else if(a&&a[t])for(const e of a[t])if(ar(e)&&e.name&&e.name===i){r=!0;let t="";if(!0===e.multiple){const n=o.split(" ");for(const o of n)-1!==e.values.indexOf(o)&&(""===t?t=o:t+=" "+o)}else e.values.indexOf(o)>=0&&(t=o);o=t}if(r){if(-1!==e.allowedSchemesAppliedToAttributes.indexOf(i)&&k(t,o))return void delete S.attribs[i];if("script"===t&&"src"===i){let t=!0;try{const n=O(o);if(e.allowedScriptHostnames||e.allowedScriptDomains){const o=(e.allowedScriptHostnames||[]).find((function(t){return t===n.url.hostname})),i=(e.allowedScriptDomains||[]).find((function(t){return n.url.hostname===t||n.url.hostname.endsWith(`.${t}`)}));t=o||i}}catch(e){t=!1}if(!t)return void delete S.attribs[i]}if("iframe"===t&&"src"===i){let t=!0;try{const n=O(o);if(n.isRelativeUrl)t=pr(e,"allowIframeRelativeUrls")?e.allowIframeRelativeUrls:!e.allowedIframeHostnames&&!e.allowedIframeDomains;else if(e.allowedIframeHostnames||e.allowedIframeDomains){const o=(e.allowedIframeHostnames||[]).find((function(t){return t===n.url.hostname})),i=(e.allowedIframeDomains||[]).find((function(t){return n.url.hostname===t||n.url.hostname.endsWith(`.${t}`)}));t=o||i}}catch(e){t=!1}if(!t)return void delete S.attribs[i]}if("srcset"===i)try{let t=Ao(o);if(t.forEach((function(t){k("srcset",t.url)&&(t.evil=!0)})),t=fr(t,(function(t){return!t.evil})),!t.length)return void delete S.attribs[i];s=fr(t,(function(t){return!t.evil})),o=s.map((function(t){if(!t.url)throw new Error("URL missing");return t.url+(t.w?` ${t.w}w`:"")+(t.h?` ${t.h}h`:"")+(t.d?` ${t.d}x`:"")})).join(", "),S.attribs[i]=o}catch(t){return void delete S.attribs[i]}if("class"===i){const e=d[t],n=d["*"],r=u[t],s=h[t],l=[r,u["*"]].concat(s).filter((function(t){return t}));if(!(o=_(o,e&&n?Io(e,n):e||n,l)).length)return void delete S.attribs[i]}if("style"===i)if(e.parseStyleAttributes)try{const n=function(t,e){if(!e)return t;const o=t.nodes[0];let n;n=e[o.selector]&&e["*"]?Io(e[o.selector],e["*"]):e[o.selector]||e["*"];n&&(t.nodes[0].nodes=o.nodes.reduce(function(t){return function(e,o){if(pr(t,o.prop)){t[o.prop].some((function(t){return t.test(o.value)}))&&e.push(o)}return e}}(n),[]));return t}(cr(t+" {"+o+"}"),e.allowedStyles);if(o=function(t){return t.nodes[0].nodes.reduce((function(t,e){return t.push(`${e.prop}:${e.value}${e.important?" !important":""}`),t}),[]).join(";")}(n),0===o.length)return void delete S.attribs[i]}catch(e){return"undefined"!=typeof window&&console.warn('Failed to parse "'+t+" {"+o+"}\", If you're running this in a browser, we recommend to disable style parsing: options.parseStyleAttributes: false, since this only works in a node environment due to a postcss dependency, More info: https://github.com/apostrophecms/sanitize-html/issues/547"),void delete S.attribs[i]}else if(e.allowedStyles)throw new Error("allowedStyles option cannot be used together with parseStyleAttributes: false.");n+=" "+i,o&&o.length&&(n+='="'+C(o,!0)+'"')}else delete S.attribs[i];var s})),-1!==e.selfClosing.indexOf(t)?n+=" />":(n+=">",!S.innerText||T||e.textFilter||(n+=C(S.innerText),x=!0)),L&&(n=i+C(n),i="")},ontext:function(t){if(y)return;const o=g[g.length-1];let i;if(o&&(i=o.tag,t=void 0!==o.innerText?o.innerText:t),"discard"!==e.disallowedTagsMode||"script"!==i&&"style"!==i){const o=C(t,!1);e.textFilter&&!x?n+=e.textFilter(o,i):x||(n+=o)}else n+=t;if(g.length){g[g.length-1].text+=t}},onclosetag:function(t,o){if(y){if(w--,w)return;y=!1}const r=g.pop();if(!r)return;if(r.tag!==t)return void g.push(r);y=!!e.enforceHtmlBoundary&&"html"===t,m--;const l=b[m];if(l){if(delete b[m],"discard"===e.disallowedTagsMode)return void r.updateParentNodeText();i=n,n=""}v[m]&&(t=v[m],delete v[m]),e.exclusiveFilter&&e.exclusiveFilter(r)?n=n.substr(0,r.tagPosition):(r.updateParentNodeMediaChildren(),r.updateParentNodeText(),-1!==e.selfClosing.indexOf(t)||o&&!s(t)&&["escape","recursiveEscape"].indexOf(e.disallowedTagsMode)>=0?l&&(n=i,i=""):(n+="",l&&(n=i+C(n),i=""),x=!1))}},e.parser);return S.write(t),S.end(),n;function E(){n="",m=0,g=[],b={},v={},y=!1,w=0}function C(t,o){return"string"!=typeof t&&(t+=""),e.parser.decodeEntities&&(t=t.replace(/&/g,"&").replace(//g,">"),o&&(t=t.replace(/"/g,"""))),t=t.replace(/&(?![a-zA-Z0-9#]{1,20};)/g,"&").replace(//g,">"),o&&(t=t.replace(/"/g,""")),t}function k(t,o){for(o=o.replace(/[\x00-\x20]+/g,"");;){const t=o.indexOf("\x3c!--");if(-1===t)break;const e=o.indexOf("--\x3e",t+4);if(-1===e)break;o=o.substring(0,t)+o.substring(e+3)}const n=o.match(/^([a-zA-Z][a-zA-Z0-9.\-+]*):/);if(!n)return!!o.match(/^[/\\]{2}/)&&!e.allowProtocolRelative;const i=n[1].toLowerCase();return pr(e.allowedSchemesByTag,t)?-1===e.allowedSchemesByTag[t].indexOf(i):!e.allowedSchemes||-1===e.allowedSchemes.indexOf(i)}function O(t){if((t=t.replace(/^(\w+:)?\s*[\\/]\s*[\\/]/,"$1//")).startsWith("relative:"))throw new Error("relative: exploit attempt");let e="relative://relative-site";for(let t=0;t<100;t++)e+=`/${t}`;const o=new URL(t,e);return{isRelativeUrl:o&&"relative-site"===o.hostname&&"relative:"===o.protocol,url:o}}function _(t,e,o){return e?(t=t.split(/\s+/)).filter((function(t){return-1!==e.indexOf(t)||o.some((function(e){return e.test(t)}))})).join(" "):t}}const vr={decodeEntities:!0};br.defaults={allowedTags:["address","article","aside","footer","header","h1","h2","h3","h4","h5","h6","hgroup","main","nav","section","blockquote","dd","div","dl","dt","figcaption","figure","hr","li","main","ol","p","pre","ul","a","abbr","b","bdi","bdo","br","cite","code","data","dfn","em","i","kbd","mark","q","rb","rp","rt","rtc","ruby","s","samp","small","span","strong","sub","sup","time","u","var","wbr","caption","col","colgroup","table","tbody","td","tfoot","th","thead","tr"],nonBooleanAttributes:["abbr","accept","accept-charset","accesskey","action","allow","alt","as","autocapitalize","autocomplete","blocking","charset","cite","class","color","cols","colspan","content","contenteditable","coords","crossorigin","data","datetime","decoding","dir","dirname","download","draggable","enctype","enterkeyhint","fetchpriority","for","form","formaction","formenctype","formmethod","formtarget","headers","height","hidden","high","href","hreflang","http-equiv","id","imagesizes","imagesrcset","inputmode","integrity","is","itemid","itemprop","itemref","itemtype","kind","label","lang","list","loading","low","max","maxlength","media","method","min","minlength","name","nonce","optimum","pattern","ping","placeholder","popover","popovertarget","popovertargetaction","poster","preload","referrerpolicy","rel","rows","rowspan","sandbox","scope","shape","size","sizes","slot","span","spellcheck","src","srcdoc","srclang","srcset","start","step","style","tabindex","target","title","translate","type","usemap","value","width","wrap","onauxclick","onafterprint","onbeforematch","onbeforeprint","onbeforeunload","onbeforetoggle","onblur","oncancel","oncanplay","oncanplaythrough","onchange","onclick","onclose","oncontextlost","oncontextmenu","oncontextrestored","oncopy","oncuechange","oncut","ondblclick","ondrag","ondragend","ondragenter","ondragleave","ondragover","ondragstart","ondrop","ondurationchange","onemptied","onended","onerror","onfocus","onformdata","onhashchange","oninput","oninvalid","onkeydown","onkeypress","onkeyup","onlanguagechange","onload","onloadeddata","onloadedmetadata","onloadstart","onmessage","onmessageerror","onmousedown","onmouseenter","onmouseleave","onmousemove","onmouseout","onmouseover","onmouseup","onoffline","ononline","onpagehide","onpageshow","onpaste","onpause","onplay","onplaying","onpopstate","onprogress","onratechange","onreset","onresize","onrejectionhandled","onscroll","onscrollend","onsecuritypolicyviolation","onseeked","onseeking","onselect","onslotchange","onstalled","onstorage","onsubmit","onsuspend","ontimeupdate","ontoggle","onunhandledrejection","onunload","onvolumechange","onwaiting","onwheel"],disallowedTagsMode:"discard",allowedAttributes:{a:["href","name","target"],img:["src","srcset","alt","title","width","height","loading"]},selfClosing:["img","br","hr","area","base","basefont","input","link","meta"],allowedSchemes:["http","https","ftp","mailto","tel"],allowedSchemesByTag:{},allowedSchemesAppliedToAttributes:["href","src","cite"],allowProtocolRelative:!0,enforceHtmlBoundary:!1,parseStyleAttributes:!0},br.simpleTransform=function(t,e,o){return o=void 0===o||o,e=e||{},function(n,i){let r;if(o)for(r in e)i[r]=e[r];else i=e;return{tagName:t,attribs:i}}};var yr=mr;let wr;const xr=new Uint8Array(16);function Sr(){if(!wr&&(wr="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!wr))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return wr(xr)}const Er=[];for(let t=0;t<256;++t)Er.push((t+256).toString(16).slice(1));var Cr={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function kr(t,e,o){if(Cr.randomUUID&&!e&&!t)return Cr.randomUUID();const n=(t=t||{}).random||(t.rng||Sr)();if(n[6]=15&n[6]|64,n[8]=63&n[8]|128,e){o=o||0;for(let t=0;t<16;++t)e[o+t]=n[t];return e}return function(t,e=0){return(Er[t[e+0]]+Er[t[e+1]]+Er[t[e+2]]+Er[t[e+3]]+"-"+Er[t[e+4]]+Er[t[e+5]]+"-"+Er[t[e+6]]+Er[t[e+7]]+"-"+Er[t[e+8]]+Er[t[e+9]]+"-"+Er[t[e+10]]+Er[t[e+11]]+Er[t[e+12]]+Er[t[e+13]]+Er[t[e+14]]+Er[t[e+15]]).toLowerCase()}(n)}const Or="Canvas Collections - editing",_r="canvas-collections-editing";var Lr;!function(t){t[t.NO_ONE_EDITING=0]="NO_ONE_EDITING",t[t.SOMEONE_ELSE_EDITING=1]="SOMEONE_ELSE_EDITING",t[t.YOU_EDITING_ELSEWHERE=2]="YOU_EDITING_ELSEWHERE",t[t.YOU_EDITING=3]="YOU_EDITING"}(Lr||(Lr={}));class Tr{constructor(t,e,o,n=10){this.editingDetails=null,this.editingOnStatus=null,this.courseId=null,this.canvasUserId=null,this.browserSessionId=null,this.lockPageSlug=null,this.finishCallback=null,this.csrfToken=null,this.timeForStaleLock=10,this.courseId=t,this.canvasUserId=e,this.csrfToken=o,this.timeForStaleLock=n,this.browserSessionId=kr(),ve(Or,`${t}`,this.updateEditingDetails.bind(this))}getEditingOnStatus(){return this.editingOnStatus}getEditingDetails(){return this.editingDetails}getSessionId(){return this.browserSessionId}updateEditingDetails(t,e){null!=e&&e.hasOwnProperty("body")&&e.body.length>0?(this.editingDetails=JSON.parse(e.body),this.setEditingOnStatus()):(this.editingOnStatus=Lr.NO_ONE_EDITING,this.editingDetails={canvasUserId:null,browserSessionId:null})}staleEditLock(t){let e=new Date,o=new Date(t.updated_at);return e.getTime()-o.getTime()>this.timeForStaleLock}setEditingOnStatus(){null!==this.editingDetails.canvasUserId?this.editingDetails.canvasUserId===this.canvasUserId?this.editingDetails.browserSessionId===this.browserSessionId?this.editingOnStatus=Lr.YOU_EDITING:this.editingOnStatus=Lr.YOU_EDITING_ELSEWHERE:this.editingOnStatus=Lr.SOMEONE_ELSE_EDITING:this.editingOnStatus=Lr.NO_ONE_EDITING}getDetails(){return this.editingDetails}getBrowserSessionId(){return this.browserSessionId}getStatus(){return this.editingOnStatus}turnEditOn(t){this.finishCallback=t,we(Or,`${this.courseId}`,this.canWeTurnEditOn.bind(this))}canWeTurnEditOn(t,e){const o=e[0];void 0!==o&&(this.lockPageSlug=o.url),this.updateEditingDetails(t,o),void 0!==o&&this.staleEditLock(o)||this.editingOnStatus===Lr.NO_ONE_EDITING?this.createEditingOnPage():this.finishCallback(this.editingOnStatus,this.editingDetails)}createEditingOnPage(){let t=`/api/v1/courses/${this.courseId}/pages/${_r}`,e=JSON.stringify({canvasUserId:this.canvasUserId,browserSessionId:this.browserSessionId}),o={wiki_page:{title:Or,body:e}};const n=JSON.stringify(o);fe(t,n,this.csrfToken,"PUT").then((t=>{this.checkCreation(t)}))}checkCreation(t){this.updateEditingDetails(Or,t),void 0!==t&&(this.lockPageSlug=t.url),this.editingOnStatus===Lr.YOU_EDITING?we(Or,`${this.courseId}`,this.finalCheckForEditOnOff.bind(this)):this.finishCallback(this.editingOnStatus,this.editingDetails)}finalCheckForEditOnOff(t,e){const o=e[0];this.updateEditingDetails(t,o),this.finishCallback(this.editingOnStatus,this.editingDetails)}turnEditOff(t){this.finishCallback=t,we(Or,`${this.courseId}`,this.canWeTurnEditOff.bind(this))}canWeTurnEditOff(t,e){let o=`/api/v1/courses/${this.courseId}/pages/${_r}`;const n=e[0];null!==this.lockPageSlug&&(o=`/api/v1/courses/${this.courseId}/pages/${this.lockPageSlug}`),this.updateEditingDetails(t,n),this.staleEditLock(n)||this.editingOnStatus===Lr.YOU_EDITING?pe(o,this.csrfToken).then((t=>{this.checkDeletion(t)})):this.finishCallback(this.editingOnStatus,this.editingDetails)}checkDeletion(t){ve(Or,`${this.courseId}`,this.finalCheckForEditOnOff.bind(this))}}const Mr="canvas-collections-configuration";class $r{constructor(t,e,o){this.importedCourseId=null,this.finishedCallBack=t,this.config=e,this.editMode=o,this.configStore=d(ac),this.collectionsPageResponse=null,this.collections=null,this.ccOn=!1,this.ccPublished=!0,this.currentHostName=document.location.hostname,this.baseApiUrl=this.configStore.baseApiUrl,this.config.courseId=parseInt(this.config.courseId),this.requestCollectionsPage()}requestCollectionsPage(){const t=`${this.baseApiUrl}courses/${this.config.courseId}/pages/${Mr}`;he(t).then((t=>{200===t.status?(this.collectionsPageResponse=t.body,this.parseCollectionsPage()):this.finishedCallBack("noCollectionsConfig")}))}parseCollectionsPage(){if(!this.collectionsPageResponse.hasOwnProperty("body"))if(this.collectionsPageResponse.hasOwnProperty("status")){if("unauthorized"===this.collectionsPageResponse.status)return this.ccOn=!1,this.ccPublished=!1,this.finishedCallBack("unauthorised"),null}else this.finishedCallBack("noBodyInConfig");const t=this.collectionsPageResponse.body,e=(new DOMParser).parseFromString(t,"text/html");let o=e.querySelector("div.cc_json");if(!o)throw new Error("CollectionsDetails: parseCollectionsPage: no div.cc_json found in page");this.collections=JSON.parse(o.innerHTML),this.decodeCollections(),this.updateCollections();const n=e.querySelector("div.cc-card-images");this.checkForImportedCollections(n),this.ccPublished=this.collectionsPageResponse.published,this.finishedCallBack(),this.collections.hasOwnProperty("COLLECTIONS_ORDER")||(this.collections.COLLECTIONS_ORDER=Object.keys(this.collections.COLLECTIONS))}checkForImportedCollections(t){const e=parseInt(t.id.replace("cc-course-",""));this.config.courseId!==e&&(this.courseImages=t,this.importedCourseId=e,this.convertCourseImagesDiv())}convertCourseImagesDiv(){this.importedImages=[];this.courseImages.querySelectorAll("img.cc-moduleImage").forEach((t=>{let e=t.id.replace("cc-moduleImage-",""),o="not found";this.collections.MODULES[parseInt(e)]&&(o=this.collections.MODULES[parseInt(e)].name),this.importedImages.push({moduleId:e,moduleName:o,src:t.src,details:!1})}))}initialiseModules(t){this.importedModuleIds=Object.keys(this.collections.MODULES),this.currentModuleIds=t.map((t=>t.id)),this.importModuleDetails={},this.currentModuleDetails={},this.importedModuleIds.forEach((t=>{this.importModuleDetails[t]={matched:!1,importedModuleId:parseInt(t),currentModuleId:null}})),this.currentModuleIds.forEach((t=>{this.currentModuleDetails[t]={matched:!1,importedModuleId:null,currentModuleId:parseInt(t)}}))}matchModuleNames(t){const e={};t.forEach((t=>{e[t.id]=t})),this.importedModuleIds.forEach((t=>{let o=this.collections.MODULES[t].name;this.currentModuleIds.forEach((n=>{let i=e[n].name;o===i&&(this.importModuleDetails[t].matched=!0,this.importModuleDetails[t].currentModuleId=n,this.currentModuleDetails[n].matched=!0,this.currentModuleDetails[n].importedModuleId=t)}))})),this.numImportsMatched=Object.keys(this.importModuleDetails).reduce(((t,e)=>this.importModuleDetails[e].matched?t+1:t),0),this.numCurrentMatched=Object.keys(this.currentModuleDetails).reduce(((t,e)=>this.currentModuleDetails[e].matched?t+1:t),0)}migrateCollectionsConfiguration(){let t=this.collections.MODULES;this.importedModuleIds.forEach((e=>{if(this.importModuleDetails[e].matched){let o=this.importModuleDetails[e].currentModuleId;t[o]=JSON.parse(JSON.stringify(t[e])),t[o].id=o,delete t[e]}})),this.importedImages.forEach((e=>{if(this.importModuleDetails[e.moduleId].matched){let o=this.importModuleDetails[e.moduleId].currentModuleId,n=t[o];n&&n.hasOwnProperty("image")&&(n.image=e.src)}}))}getImportedModuleIds(){return this.importedModuleIds}getImportModuleDetails(){return this.importModuleDetails}getCurrentModuleDetails(){return this.currentModuleDetails}getImportedCourseId(){return this.importedCourseId}getNumCurrentModules(){return this.currentModuleIds.length}getNumCurrentMatched(){return this.numCurrentMatched}getNumCurrentNotMatched(){return this.getNumCurrentModules()-this.numCurrentMatched}getNumImportsMatched(){return this.numImportsMatched}getNumImportsNotMatched(){return this.getNumImportedModules()-this.numImportsMatched}getNumImportedModules(){return this.importedModuleIds.length}getCourseImages(){return this.courseImages}getImportedImages(){return this.importedImages}resetImport(){this.importedCourseId=null,this.importedModuleIds=[],this.importModuleDetails={},this.currentModuleIds=[],this.currentModuleDetails={},this.numImportsMatched=0,this.numCurrentMatched=0,this.courseImages=[],this.importedImages=[]}isImportedCollection(){return null!==this.importedCourseId}decodeCollections(){if(this.collections.hasOwnProperty("MODULES")){const t=this.collections.MODULES;for(let e in t){const o=t[e];o.description=this.decodeHTML(o.description),o.collection=this.decodeHTML(o.collection),o.name=this.decodeHTML(o.name),o.hasOwnProperty("iframe")&&""!==o.iframe&&(o.iframe=this.decodeHTML(o.iframe,!0)),o.hasOwnProperty("image")&&o.image.startsWith("/")&&(o.image=`https://${window.location.hostname}${o.image}`);for(let t in o.metadata)o.metadata[t]=this.decodeHTML(o.metadata[t])}}}updateCollections(){if(this.collections.hasOwnProperty("STATUS")?(this.collections.VISIBILITY="no-one","on"===this.collections.STATUS&&(this.collections.VISIBILITY="all"),delete this.collections.STATUS):this.collections.hasOwnProperty("VISIBILITY")||(this.collections.VISIBILITY="no-one"),this.collections.hasOwnProperty("COLLECTIONS"))for(let t in this.collections.COLLECTIONS){const e=this.collections.COLLECTIONS[t];e.hasOwnProperty("unallocated")||(e.unallocated=!1),["includePage","outputPage"].forEach((t=>{e.hasOwnProperty(t)||(e[t]="")})),e.hasOwnProperty("dateHide")&&delete e.dateHide}if(this.collections.hasOwnProperty("MODULES")){const t=this.collections.MODULES;for(let e in t){const o=t[e];if(""===o.collection&&(o.collection=null),o.hasOwnProperty("configVisible")||(o.configVisible=!1),o.hasOwnProperty("imageBackgroundColour")||(o.imageBackgroundColour=!1),o.hasOwnProperty("actualNum")||(o.actualNum=""),o.hasOwnProperty("label")||(o.label=""),o.hasOwnProperty("banner")&&""!==o.banner||(o.banner="image"),o.hasOwnProperty("metadata")||(o.metadata={}),o.hasOwnProperty("dateHide")){o.dateShow=o.dateHide,delete o.dateHide;for(let t in o.dateShow)o.dateShow[t]=!o.dateShow[t];o.dateShow.hasOwnProperty("label")||(o.dateShow.label=!0)}this.handleModuleDate(o),this.removeCanvasModuleDetails(o)}}if(this.collections.hasOwnProperty("COLLECTIONS")){let t={};for(let e in this.collections.COLLECTIONS){const o=this.collections.COLLECTIONS[e];t[this.decodeHTML(e)]=o}this.collections.COLLECTIONS=t,this.collections.COLLECTIONS_ORDER=this.collections.COLLECTIONS_ORDER.map((t=>this.decodeHTML(t))),this.collections.DEFAULT_ACTIVE_COLLECTION=this.decodeHTML(this.collections.DEFAULT_ACTIVE_COLLECTION)}}removeCanvasModuleDetails(t){const e=["position","unlock_at","require_sequential_progress","published","items_url","prerequisite_module_ids","completion_requirements"];for(let o of e)t.hasOwnProperty(o)&&delete t[o]}handleModuleDate(t){if(t.hasOwnProperty("dateShow")||(t.dateShow={label:!0,day:!0,week:!0,time:!0,date:!0,toDay:!0,toWeek:!0,toTime:!0,toDate:!0}),t.hasOwnProperty("date")){const e=["label","day","week","time","date","month","year"];for(let o=0;o{this.checkConfigPage(t,i)}))}}checkConfigPage(t,e){let o=new URL(t.html_url).pathname.split("/"),n=o[o.length-1];e(n===Mr,n)}generateConfigPageContent(t){let e=Ir;const o=`${window.location.hostname}/files/`,n=`${window.location.hostname}/courses/${this.config.courseId}/files/`;let i="";const r=t.MODULES;for(let t in r){const e=r[t];e.image&&(e.image.startsWith("/")&&(e.image=`https://${window.location.hostname}${e.image}`),(e.image.includes(n)||e.image.includes(o))&&(i+=`\n\t\t\t\t\t\n\t\t\t\t\t`))}e=e.replace("{{COURSE_IMAGES}}",i);for(let t in r){const e=r[t];e.description=this.encodeHTML(e.description),e.collection=this.encodeHTML(e.collection),e.hasOwnProperty("iframe")&&""!==e.iframe&&(e.iframe=this.encodeHTML(e.iframe)),e.name=this.encodeHTML(e.name);for(let t in e.metadata)e.metadata[t]=this.encodeHTML(e.metadata[t])}let s=JSON.stringify(this.collections);s&&(e=e.replace("{{CONFIG}}",s));for(let t in r){const e=r[t];e.description=this.decodeHTML(e.description,!0),e.collection=this.decodeHTML(e.collection),e.name=this.decodeHTML(e.name),e.hasOwnProperty("iframe")&&""!==e.iframe&&(e.iframe=this.decodeHTML(e.iframe,!0));for(let t in e.metadata)e.metadata[t]=this.decodeHTML(e.metadata[t])}let l=(new Date).toLocaleString();return e=e.replace("{{VISIBLE_TEXT}}",`

saved at ${l}

`),e=e.replace("{{COURSE_ID}}",this.config.courseId),e}saveLastCollectionViewed(t){let e=window.location.hostname;localStorage.setItem(`cc-${e}-${this.config.courseId}-last-collection`,t)}getCurrentCollection(){const t=this.getUrlHashCollection();if(t)return t;let e=window.location.hostname;const o=localStorage.getItem(`cc-${e}-${this.config.courseId}-last-collection`);if(o&&this.collections.COLLECTIONS.hasOwnProperty(o))return o;const n=this.collections.DEFAULT_ACTIVE_COLLECTION;return n||""}getUrlHashCollection(){let t=new URL(window.location.href).hash;if(t){let e=t.match(/cc-collection-(\d+)/);if(e){const t=parseInt(e[1]);if(t>=0&&t{t[e].hasOwnProperty(n)&&o.hasOwnProperty(i)&&(o[i][n]=t[e][n])}))}e&&this.updateModuleOrder(t);const i=t.map((t=>t.id));let r=!1;for(const t in o)e?i.includes(parseInt(t))||(delete o[t],r=!0):i.includes(parseInt(t))&&(o[t].published=!0);r&&(this.configStore.needToSaveCollections=!0)}updateModuleOrder(t){let e=this.collections.MODULES;const o=this.collections.COLLECTIONS;let n={};for(const t in o)n[t]=0;for(let i=0;i\n
\n
\n canvas-collections logo\n
Canvas Collections
\n
\n
\n
\n

Canvas Collections Configuration page

\n

This page is used to configure Canvas Collections. \n Avoid direct modification to this page, instead use the Canvas Collections configuration interface.

\n {{VISIBLE_TEXT}}\n
\n \n

\n\n\n';function Ar(t,e){let o={};t.forEach((t=>{const n=t.id,i=e[n];if(i)if(i.autonum){if(i.hasOwnProperty("label")&&""!==i.label){const t=i.collection,e=i.label;o.hasOwnProperty(t)||(o[t]={}),o[t].hasOwnProperty(e)||(o[t][e]=0),o[t][e]=++o[t][e],i.actualNum=o[t][e]}}else i.hasOwnProperty("num")&&(i.actualNum=i.num)}))}let Nr={};const Ur=(t,e=null)=>{document.execCommand(t,!1,e)},Pr=(t,e)=>{if(e=e||(t&&t.tagName?[t.tagName]:[]),!t||!t.parentNode)return e;const o=(t=t.parentNode).tagName;return t.style&&t.getAttribute&&[t.style.textAlign||t.getAttribute("align"),t.style.color||"FONT"===o&&"forecolor",t.style.backgroundColor&&"backcolor"].filter((t=>t)).forEach((t=>e.push(t))),"DIV"===o?e:(e.push(o),Pr(t,e).filter((t=>null!=t)))},zr=t=>{const e=document.getSelection();if(Nr.range=null,e.rangeCount){let o,n=Nr.range=e.getRangeAt(0),i=document.createRange();i.selectNodeContents(t),i.setEnd(n.startContainer,n.startOffset),o=(i+"").length,Nr.metaRange={start:o,end:o+(n+"").length}}},jr=t=>{let e,o=Nr.metaRange,n=Nr.range,i=document.getSelection();if(n){if(o&&o.start!==o.end){let n,i=0,r=[t],s=!1,l=!1;for(e=document.createRange();!l&&(n=r.pop());)if(3===n.nodeType){let t=i+n.length;!s&&o.start>=i&&o.start<=t&&(e.setStart(n,o.start-i),s=!0),s&&o.end>=i&&o.end<=t&&(e.setEnd(n,o.end-i),l=!0),i=t}else{let t=n.childNodes,e=t.length;for(;e>0;)e-=1,r.push(t[e])}}i.removeAllRanges(),i.addRange(e||n)}},Rr=(t,e)=>{Array.from(t).forEach((t=>{e.some((e=>e===t.tagName.toLowerCase()))&&(t.children.length&&Rr(t.children,e),(t=>{const e=document.createDocumentFragment();for(;t.firstChild;){const o=t.removeChild(t.firstChild);e.appendChild(o)}t.parentNode.replaceChild(e,t)})(t))}))},Hr=t=>Object.keys(t).map((e=>t[e])),Br=t=>(["style","script","applet","embed","noframes","noscript"].forEach((e=>{t=t.replace(new RegExp(`<${e}.*?${e}(.*?)>`,"gi"),"")})),t),qr=(t,e)=>t===e||!!t.parentElement&&qr(t.parentElement,e),Fr='';var Vr={viewHtml:{icon:'',title:"View HTML",result:function(){let t=d(this.references),e=d(this.state).actionObj,o=d(this.helper);o.showEditor=!o.showEditor,t.editor.style.display=o.showEditor?"block":"none",t.raw.style.display=o.showEditor?"none":"block",o.showEditor?t.editor.innerHTML=t.raw.value:t.raw.value=t.editor.innerHTML,setTimeout((()=>{Object.keys(e).forEach((t=>e[t].disabled=!o.showEditor)),e.viewHtml.disabled=!1,e.viewHtml.active=!o.showEditor,this.state.update((t=>(t.actionBtns=Hr(e),t.actionObj=e,t)))}))}},undo:{icon:'',title:"Undo",result:()=>Ur("undo")},redo:{icon:'',title:"Redo",result:()=>Ur("redo")},b:{icon:"B",title:"Bold",result:()=>Ur("bold")},i:{icon:"I",title:"Italic",result:()=>Ur("italic")},u:{icon:"U",title:"Underline",result:()=>Ur("underline")},strike:{icon:"S",title:"Strike-through",result:()=>Ur("strikeThrough")},sup:{icon:"A2",title:"Superscript",result:()=>Ur("superscript")},sub:{icon:"A2",title:"Subscript",result:()=>Ur("subscript")},h1:{icon:"H1",title:"Heading 1",result:()=>Ur("formatBlock","

")},h2:{icon:"H2",title:"Heading 2",result:()=>Ur("formatBlock","

")},p:{icon:"¶",title:"Paragraph",result:()=>Ur("formatBlock","

")},blockquote:{icon:"“ ”",title:"Quote",result:()=>Ur("formatBlock","

")},ol:{icon:'',title:"Ordered List",result:()=>Ur("insertOrderedList")},ul:{icon:'',title:"Unordered List",result:()=>Ur("insertUnorderedList")},hr:{icon:"―",title:"Horizontal Line",result:()=>Ur("insertHorizontalRule")},left:{icon:'',title:"Justify left",result:()=>Ur("justifyLeft")},right:{icon:'',title:"Justify right",result:()=>Ur("justifyRight")},center:{icon:'',title:"Justify center",result:()=>Ur("justifyCenter")},justify:{icon:'',title:"Justify full",result:()=>Ur("justifyFull")},a:{icon:Fr,title:"Insert link",result:function(){const t=d(this.state).actionObj,e=d(this.references);if(t.a.active){const e=window.getSelection(),o=document.createRange();o.selectNodeContents(document.getSelection().focusNode),e.removeAllRanges(),e.addRange(o),Ur("unlink"),t.a.title="Insert link",t.a.icon=Fr,this.state.update((e=>(e.actionBtn=Hr(t),e.actionObj=t,e)))}else zr(e.editor),e.modal.$set({show:!0,event:"linkUrl",title:"Insert link",label:"Url"}),d(this.helper).link||(this.helper.update((t=>(t.link=!0,t))),e.modal.$on("linkUrl",(o=>{jr(e.editor),Ur("createLink",o.detail),t.a.title="Unlink",t.a.icon='',this.state.update((e=>(e.actionBtn=Hr(t),e.actionObj=t,e)))})))}},image:{icon:'',title:"Image",result:function(){const t=d(this.references);zr(t.editor),t.modal.$set({show:!0,event:"imageUrl",title:"Insert image",label:"Url"}),d(this.helper).image||(this.helper.update((t=>(t.image=!0,t))),t.modal.$on("imageUrl",(e=>{jr(t.editor),Ur("insertImage",e.detail)})))}},forecolor:{icon:'',title:"Text color",colorPicker:!0,result:function(){Gr.call(this,"foreColor")}},backcolor:{icon:'',title:"Background color",colorPicker:!0,result:function(){Gr.call(this,"backColor")}},removeFormat:{icon:'',title:"Remove format",result:function(){const t=d(this.references),e=window.getSelection();if(!e.toString().length){Rr(t.editor.children,this.removeFormatTags);const o=document.createRange();o.selectNodeContents(t.editor),e.removeAllRanges(),e.addRange(o)}Ur("removeFormat"),e.removeAllRanges()}}};const Gr=function(t){const e=d(this.references);zr(e.editor),e.colorPicker.$set({show:!0,event:t}),d(this.helper)[t]||(this.helper.update((e=>(e[t]=!0,e))),e.colorPicker.$on(t,(o=>{let n=o.detail;if(n.modal){e.modal.$set({show:!0,event:`${t}Changed`,title:"Text color",label:"foreColor"===t?"Text color":"Background color"});const o=t;d(this.helper)[`${o}Modal`]||(d(this.helper)[`${o}Modal`]=!0,e.modal.$on(`${o}Changed`,(t=>{let n=t.detail;jr(e.editor),Ur(o,n)})))}else jr(e.editor),Ur(t,n.color)})))};function Wr(e){let o,r,s,l,a,c,d,u,h,p,b,x,E,k,L,T,M,D,I,A,N,U=e[2]&&Yr();return{c(){o=v("div"),r=w(),s=v("div"),l=v("div"),a=v("span"),c=y(e[3]),d=w(),u=v("form"),h=v("label"),p=v("input"),b=w(),x=v("span"),E=v("span"),k=y(e[4]),L=w(),U&&U.c(),T=w(),M=v("button"),M.textContent="Confirm",D=w(),I=v("button"),I.textContent="Cancel",C(o,"class","cl-editor-overlay svelte-42yfje"),C(a,"class","modal-title svelte-42yfje"),C(p,"name","text"),C(p,"class","svelte-42yfje"),C(E,"class","svelte-42yfje"),C(x,"class","input-info svelte-42yfje"),C(h,"class","modal-label svelte-42yfje"),$(h,"input-error",e[2]),C(M,"class","modal-button modal-submit svelte-42yfje"),C(M,"type","submit"),C(I,"class","modal-button modal-reset svelte-42yfje"),C(I,"type","reset"),C(l,"class","modal-box svelte-42yfje"),C(s,"class","cl-editor-modal svelte-42yfje")},m(n,g){var v,y;m(n,o,g),m(n,r,g),m(n,s,g),f(s,l),f(l,a),f(a,c),f(l,d),f(l,u),f(u,h),f(h,p),e[11](p),_(p,e[1]),f(h,b),f(h,x),f(x,E),f(E,k),f(x,L),U&&U.m(x,null),f(u,T),f(u,M),f(u,D),f(u,I),A||(N=[S(o,"click",e[8]),S(p,"keyup",e[9]),(y=e[6].call(null,p),y&&i(y.destroy)?y.destroy:t),S(p,"input",e[12]),S(I,"click",e[8]),S(u,"submit",(v=e[13],function(t){return t.preventDefault(),v.call(this,t)}))],A=!0)},p(t,e){8&e&&O(c,t[3]),2&e&&p.value!==t[1]&&_(p,t[1]),16&e&&O(k,t[4]),t[2]?U||(U=Yr(),U.c(),U.m(x,null)):U&&(U.d(1),U=null),4&e&&$(h,"input-error",t[2])},d(t){t&&g(o),t&&g(r),t&&g(s),e[11](null),U&&U.d(),A=!1,n(N)}}}function Yr(t){let e;return{c(){e=v("span"),e.textContent="Required",C(e,"class","msg-error svelte-42yfje")},m(t,o){m(t,e,o)},d(t){t&&g(e)}}}function Kr(e){let o,n=e[0]&&Wr(e);return{c(){n&&n.c(),o=x()},m(t,e){n&&n.m(t,e),m(t,o,e)},p(t,[e]){t[0]?n?n.p(t,e):(n=Wr(t),n.c(),n.m(o.parentNode,o)):n&&(n.d(1),n=null)},i:t,o:t,d(t){n&&n.d(t),t&&g(o)}}}function Jr(t,e,o){let n=new P,{show:i=!1}=e,{text:r=""}=e,{event:s=""}=e,{title:l=""}=e,{label:a=""}=e,{error:c=!1}=e,d={};function u(){r?(n(s,r),h()):(o(2,c=!0),d.text.focus())}function h(){o(0,i=!1),o(1,r=""),o(2,c=!1)}return t.$$set=t=>{"show"in t&&o(0,i=t.show),"text"in t&&o(1,r=t.text),"event"in t&&o(10,s=t.event),"title"in t&&o(3,l=t.title),"label"in t&&o(4,a=t.label),"error"in t&&o(2,c=t.error)},t.$$.update=()=>{33&t.$$.dirty&&i&&setTimeout((()=>{d.text.focus()}))},[i,r,c,l,a,d,t=>{t.type=s.includes("Color")?"color":"text"},u,h,function(){o(2,c=!1)},s,function(t){R[t?"unshift":"push"]((()=>{d.text=t,o(5,d)}))},function(){r=this.value,o(1,r)},t=>u()]}class Xr extends ct{constructor(t){super(),at(this,t,Jr,Kr,r,{show:0,text:1,event:10,title:3,label:4,error:2})}get show(){return this.$$.ctx[0]}set show(t){this.$$set({show:t}),K()}get text(){return this.$$.ctx[1]}set text(t){this.$$set({text:t}),K()}get event(){return this.$$.ctx[10]}set event(t){this.$$set({event:t}),K()}get title(){return this.$$.ctx[3]}set title(t){this.$$set({title:t}),K()}get label(){return this.$$.ctx[4]}set label(t){this.$$set({label:t}),K()}get error(){return this.$$.ctx[2]}set error(t){this.$$set({error:t}),K()}}function Qr(t,e,o){const n=t.slice();return n[8]=e[o],n}function Zr(t){let e,o,n,i,r=(t[8].text||"")+"";function s(...e){return t[6](t[8],...e)}return{c(){e=v("button"),o=y(r),C(e,"type","button"),C(e,"class","color-picker-btn svelte-njq4pk"),L(e,"background-color",t[8].color)},m(t,r){m(t,e,r),f(e,o),n||(i=S(e,"click",s),n=!0)},p(n,i){t=n,2&i&&r!==(r=(t[8].text||"")+"")&&O(o,r),2&i&&L(e,"background-color",t[8].color)},d(t){t&&g(e),n=!1,i()}}}function ts(e){let o,n,i,r,s,l,a=e[1],c=[];for(let t=0;t{"show"in t&&o(0,i=t.show),"btns"in t&&o(1,r=t.btns),"event"in t&&o(4,s=t.event),"colors"in t&&o(5,l=t.colors)},t.$$.update=()=>{32&t.$$.dirty&&o(1,r=l.map((t=>({color:t}))).concat([{text:"#",modal:!0}]))},[i,r,a,c,s,l,(t,e)=>c(t)]}class os extends ct{constructor(t){super(),at(this,t,es,ts,r,{show:0,btns:1,event:4,colors:5})}}const ns=function(t){const{subscribe:e,set:o,update:n}=ut({actionBtns:[],actionObj:{}});return{name:t,set:o,update:n,subscribe:e}};function is(t,e,o){const n=t.slice();return n[38]=e[o],n}function rs(t){let e,o,n,i,r,s,l,a,c=t[38].icon+"";function d(...e){return t[24](t[38],...e)}return{c(){e=v("button"),o=new D(!1),n=w(),o.a=n,C(e,"type","button"),C(e,"class",i="cl-button "+(t[38].active?"active":"")+" svelte-1a534py"),C(e,"title",r=t[38].title),e.disabled=s=t[38].disabled},m(t,i){m(t,e,i),o.m(c,e),f(e,n),l||(a=S(e,"click",d),l=!0)},p(n,l){t=n,16&l[0]&&c!==(c=t[38].icon+"")&&o.p(c),16&l[0]&&i!==(i="cl-button "+(t[38].active?"active":"")+" svelte-1a534py")&&C(e,"class",i),16&l[0]&&r!==(r=t[38].title)&&C(e,"title",r),16&l[0]&&s!==(s=t[38].disabled)&&(e.disabled=s)},d(t){t&&g(e),l=!1,a()}}}function ss(t){let e,o,i,r,s,l,a,c,d,u,h,p,y,x=t[4].actionBtns,E=[];for(let e=0;eo(34,i=t))),ls.push({});let g="editor_"+ls.length,b=ns(g);u(t,b,(t=>o(4,r=t)));let v=ut({});u(t,v,(t=>o(3,n=t))),p(b,r.actionObj=((t,e=[])=>{if(e&&e.length){const o={};return e.forEach((e=>{"string"==typeof e?o[e]=Object.assign({},t[e]):t[e.name]?o[e.name]=Object.assign(t[e.name],e):o[e.name]=Object.assign({},e)})),o}return t})(Vr,l),r);let y={exec:k,getHtml:O,getText:_,setHtml:L,saveRange:T,restoreRange:M,helper:m,references:v,state:b,removeFormatTags:f};function w(t){n.editor.focus(),T(n.editor),M(n.editor),t.result.call(y),x()}function x(t){const e=t?[]:Pr(document.getSelection().focusNode);Object.keys(r.actionObj).forEach((t=>p(b,r.actionObj[t].active=!1,r))),e.forEach((t=>(r.actionObj[t.toLowerCase()]||{}).active=!0)),p(b,r.actionBtns=Hr(r.actionObj),r),b.set(r)}function S(t){t.preventDefault(),k("insertHTML",t.clipboardData.getData("text/html")?(t=>{const e=t.match(/(.*?)/);let o=e&&e[1]||t;return o=o.replace(/\r?\n|\r/g," ").replace(//g,"").replace(new RegExp("<(/)*(meta|link|span|\\?xml:|st1:|o:|font|w:sdt)(.*?)>","gi"),"").replace(/(.*?)/gi,"").replace(/style="[^"]*"/gi,"").replace(/style='[^']*'/gi,"").replace(/ /gi," ").replace(/>(\s+)<").replace(/class="[^"]*"/gi,"").replace(/class='[^']*'/gi,"").replace(/<[^/].*?>/g,(t=>t.split(/[ >]/g)[0]+">")).trim(),o=Br(o),o})(t.clipboardData.getData("text/html")):t.clipboardData.getData("text"))}function E(t){s("change",t)}function C(t){!qr(t.target,n.editorWrapper)&&i.blurActive&&s("blur",t),p(m,i.blurActive=!0,i)}function k(t,e){Ur(t,e)}function O(t){return t?Br(n.editor.innerHTML):n.editor.innerHTML}function _(){return n.editor.innerText}function L(t,e){const o=e?Br(t):t||"";p(v,n.editor.innerHTML=o,n),p(v,n.raw.value=o,n)}function T(){zr(n.editor)}function M(){jr(n.editor)}!function(t,e){N().$$.context.set(t,e)}(g,y),U((()=>{p(b,r.actionBtns=Hr(r.actionObj),r),L(c)}));const $=n;return t.$$set=t=>{"actions"in t&&o(13,l=t.actions),"height"in t&&o(0,a=t.height),"html"in t&&o(14,c=t.html),"contentId"in t&&o(1,d=t.contentId),"colors"in t&&o(2,h=t.colors),"removeFormatTags"in t&&o(15,f=t.removeFormatTags)},[a,d,h,n,r,m,b,v,w,x,S,E,C,l,c,f,k,O,_,L,T,M,$,t=>C(t),(t,e)=>w(t),function(t){R[t?"unshift":"push"]((()=>{n.editor=t,v.set(n)}))},t=>E(t.target.innerHTML),()=>x(),()=>x(),t=>S(t),function(t){R[t?"unshift":"push"]((()=>{n.raw=t,v.set(n)}))},function(t){R[t?"unshift":"push"]((()=>{n.modal=t,v.set(n)}))},function(t){R[t?"unshift":"push"]((()=>{n.colorPicker=t,v.set(n)}))},function(t){R[t?"unshift":"push"]((()=>{n.editorWrapper=t,v.set(n)}))}]}class cs extends ct{constructor(t){super(),at(this,t,as,ss,r,{actions:13,height:0,html:14,contentId:1,colors:2,removeFormatTags:15,exec:16,getHtml:17,getText:18,setHtml:19,saveRange:20,restoreRange:21,refs:22},null,[-1,-1])}get actions(){return this.$$.ctx[13]}set actions(t){this.$$set({actions:t}),K()}get height(){return this.$$.ctx[0]}set height(t){this.$$set({height:t}),K()}get html(){return this.$$.ctx[14]}set html(t){this.$$set({html:t}),K()}get contentId(){return this.$$.ctx[1]}set contentId(t){this.$$set({contentId:t}),K()}get colors(){return this.$$.ctx[2]}set colors(t){this.$$set({colors:t}),K()}get removeFormatTags(){return this.$$.ctx[15]}set removeFormatTags(t){this.$$set({removeFormatTags:t}),K()}get exec(){return this.$$.ctx[16]}get getHtml(){return this.$$.ctx[17]}get getText(){return this.$$.ctx[18]}get setHtml(){return this.$$.ctx[19]}get saveRange(){return this.$$.ctx[20]}get restoreRange(){return this.$$.ctx[21]}get refs(){return this.$$.ctx[22]}}function ds(t,e,o){const n=t.slice();return n[31]=e[o],n}function us(t){let e,o,n,i=t[31]+"";return{c(){e=v("option"),o=y(i),e.__value=n=t[31],e.value=e.__value},m(t,n){m(t,e,n),f(e,o)},p(t,r){4&r[0]&&i!==(i=t[31]+"")&&O(o,i),4&r[0]&&n!==(n=t[31])&&(e.__value=n,e.value=e.__value)},d(t){t&&g(e)}}}function hs(t){let e,o,n;return{c(){e=v("input"),C(e,"type","text"),C(e,"id",o="cc-module-config-"+t[0]+"-fyiText"),e.value=n=t[2].MODULES[t[0]].fyiText,L(e,"width","10rem"),e.disabled=!0,C(e,"class","svelte-53tuhx")},m(t,o){m(t,e,o)},p(t,i){5&i[0]&&o!==(o="cc-module-config-"+t[0]+"-fyiText")&&C(e,"id",o),5&i[0]&&n!==(n=t[2].MODULES[t[0]].fyiText)&&e.value!==n&&(e.value=n)},d(t){t&&g(e)}}}function ps(t){let e,o,i,r;return{c(){e=v("input"),C(e,"type","text"),C(e,"id",o="cc-module-config-"+t[0]+"-fyiText"),L(e,"width","10rem"),C(e,"class","svelte-53tuhx")},m(o,n){m(o,e,n),_(e,t[2].MODULES[t[0]].fyiText),i||(r=[S(e,"input",t[18]),S(e,"change",t[19]),S(e,"keydown",E(t[13]))],i=!0)},p(t,n){5&n[0]&&o!==(o="cc-module-config-"+t[0]+"-fyiText")&&C(e,"id",o),5&n[0]&&e.value!==t[2].MODULES[t[0]].fyiText&&_(e,t[2].MODULES[t[0]].fyiText)},d(t){t&&g(e),i=!1,n(r)}}}function fs(t){let e,o,i,r;return{c(){e=v("input"),C(e,"type","text"),C(e,"id",o="cc-module-config-"+t[0]+"-num"),L(e,"width","3rem")},m(o,n){m(o,e,n),_(e,t[2].MODULES[t[0]].actualNum),i||(r=[S(e,"input",t[21]),S(e,"change",t[22]),S(e,"keydown",E(t[10]))],i=!0)},p(t,n){5&n[0]&&o!==(o="cc-module-config-"+t[0]+"-num")&&C(e,"id",o),5&n[0]&&e.value!==t[2].MODULES[t[0]].actualNum&&_(e,t[2].MODULES[t[0]].actualNum)},d(t){t&&g(e),i=!1,n(r)}}}function ms(t){let e,o,n;return{c(){e=v("input"),C(e,"type","text"),C(e,"id",o="cc-module-config-"+t[0]+"-num"),e.value=n=t[2].MODULES[t[0]].actualNum,L(e,"width","3rem"),e.disabled=!0},m(t,o){m(t,e,o)},p(t,i){5&i[0]&&o!==(o="cc-module-config-"+t[0]+"-num")&&C(e,"id",o),5&i[0]&&n!==(n=t[2].MODULES[t[0]].actualNum)&&e.value!==n&&(e.value=n)},d(t){t&&g(e)}}}function gs(t){let e,o,i,r;return{c(){e=v("input"),C(e,"type","text"),C(e,"class","cc-module-config-engageText svelte-53tuhx"),C(e,"id",o="cc-module-config-"+t[0]+"-engageText"),L(e,"width","10rem")},m(o,n){m(o,e,n),_(e,t[2].MODULES[t[0]].engageText),i||(r=[S(e,"input",t[27]),S(e,"keydown",E(t[8])),S(e,"change",t[28])],i=!0)},p(t,n){5&n[0]&&o!==(o="cc-module-config-"+t[0]+"-engageText")&&C(e,"id",o),5&n[0]&&e.value!==t[2].MODULES[t[0]].engageText&&_(e,t[2].MODULES[t[0]].engageText)},d(t){t&&g(e),i=!1,n(r)}}}function bs(t){let e,o,n,i;return{c(){e=v("input"),C(e,"type","text"),C(e,"id",o="cc-module-config-"+t[0]+"-engageText"),L(e,"width","10rem"),e.disabled=!0,C(e,"class","svelte-53tuhx")},m(o,r){m(o,e,r),_(e,t[2].MODULES[t[0]].engageText),n||(i=S(e,"input",t[26]),n=!0)},p(t,n){5&n[0]&&o!==(o="cc-module-config-"+t[0]+"-engageText")&&C(e,"id",o),5&n[0]&&e.value!==t[2].MODULES[t[0]].engageText&&_(e,t[2].MODULES[t[0]].engageText)},d(t){t&&g(e),n=!1,i()}}}function vs(t){let e,o,i,r,s,l,a,c,d,u,h,p,x,O,M,$,D,I,A,N,U,P,z,j,R,H,B,q,F,V,G,W,Y,K,J,X,Q,Z,tt,nt,lt,at,ct,dt,ut,ht,pt,ft,mt,gt,bt,vt,yt,wt,xt,St,Et,Ct,kt,Ot,_t,Lt,Tt,Mt,$t,Dt,It,At,Nt,Ut,Pt,zt,jt,Rt,Ht,Bt,qt,Ft,Vt,Gt,Wt,Yt,Kt,Jt,Xt,Qt,Zt,te,ee,oe,ne,ie,re,se,le,ae,ce,de,ue,he,pe,fe,me,ge,be,ve,ye,we,xe,Se,Ee,Ce,ke,Oe,_e,Le=t[7].configCollection.tooltip+"",Te=t[7].configFYI.tooltip+"",Me=t[7].configLabel.tooltip+"",$e=t[7].configAutoNum.tooltip+"",De=t[7].configEngage.tooltip+"",Ie=t[7].configDescription.tooltip+"",Ae=t[2].COLLECTIONS_ORDER,Ne=[];for(let e=0;eo(1,n=t))),u(t,sc,(t=>o(2,i=t))),u(t,lc,(t=>o(30,r=t)));let{moduleId:s}=e,l=i.MODULES[s].description;function a(t){p(sc,i.MODULES[s].collection=t.target.value,i),Ar(r,i.MODULES),p(ac,n.currentCollectionChanged=!0,n),p(ac,n.needToSaveCollections=!0,n)}U((()=>{const t=`cc-module-config-${s}-description-editor`;let e=document.getElementById(t);if(e){e.onkeydown=t=>{t.stopPropagation()};let t=e.nextElementSibling;t&&(t.onkeydown=t=>{t.stopPropagation()})}}));const c={configCollection:{tooltip:"To which of the available collections does this module belong?",url:"https://djplaner.github.io/canvas-collections/reference/conceptual-model/objects/general/#collection"},configFYI:{tooltip:'

Represent the module as a "for your information" (fyi) object. Only display collection related information.\n\t\tDisplay no information about the corresponding module. Always display the object, even when the module is unpublished.

\n\t\t

Optionally, provide some text to add to the representation.

',url:"https://djplaner.github.io/canvas-collections/reference/conceptual-model/objects/general/#fyi-objects"},configDescription:{tooltip:"Describe why, what or how the module relates to the students' learning",url:"https://djplaner.github.io/canvas-collections/reference/conceptual-model/objects/general/#description"},configEngage:{tooltip:'For cards representations, specify
  1. if there will be an "engage" button; and,
  2. what the button text will be.
',url:"https://djplaner.github.io/canvas-collections/reference/conceptual-model/objects/general/#engage"},configLabel:{tooltip:"Describe the type of object the module represents (e.g. lecture, theme etc.)",url:"https://djplaner.github.io/canvas-collections/reference/conceptual-model/objects/general/#label"},configAutoNum:{tooltip:"If and how a label specific number will be calculated for the module \n\t\t(e.g. Lecture 1 or Workshop 5)

Auto number or specify a value.

",url:"https://djplaner.github.io/canvas-collections/reference/conceptual-model/objects/general/#label-and-numbers"}};return t.$$set=t=>{"moduleId"in t&&o(0,s=t.moduleId)},[s,n,i,l,function(){p(sc,i.MODULES[s].autonum=!i.MODULES[s].autonum,i),Ar(r,i.MODULES),p(ac,n.needToSaveCollections=!0,n)},a,function(t){p(sc,i.MODULES[s].label=t.target.value.trimEnd(),i),Ar(r,i.MODULES),p(ac,n.needToSaveCollections=!0,n)},c,function(e){z.call(this,t,e)},function(e){z.call(this,t,e)},function(e){z.call(this,t,e)},function(e){z.call(this,t,e)},function(e){z.call(this,t,e)},function(e){z.call(this,t,e)},function(e){z.call(this,t,e)},t=>a(t),function(){i.MODULES[s].fyi=this.checked,sc.set(i)},()=>p(ac,n.needToSaveCollections=!0,n),function(){i.MODULES[s].fyiText=this.value,sc.set(i)},()=>p(ac,n.needToSaveCollections=!0,n),function(){i.MODULES[s].label=this.value,sc.set(i)},function(){i.MODULES[s].actualNum=this.value,sc.set(i)},()=>p(ac,n.needToSaveCollections=!0,n),function(){i.MODULES[s].engage=this.checked,sc.set(i)},()=>p(ac,n.needToSaveCollections=!0,n),()=>p(ac,n.needToSaveCollections=!0,n),function(){i.MODULES[s].engageText=this.value,sc.set(i)},function(){i.MODULES[s].engageText=this.value,sc.set(i)},()=>p(ac,n.needToSaveCollections=!0,n),t=>{p(sc,i.MODULES[s].description=t.detail,i),p(ac,n.needToSaveCollections=!0,n)}]}class ws extends ct{constructor(t){super(),at(this,t,ys,vs,r,{moduleId:0},null,[-1,-1])}}function xs(t,e="primary",o=null){const n=Object.assign(document.createElement("sl-alert"),{variant:e,closable:!0,innerHTML:`\n \n ${t}\n `});return document.body.append(n),n.toast()}const Ss=t=>new Promise(((e,o)=>{const n=document.createElement("div");n.innerHTML=`\n \n ${t}\n Cancel\n OK\n \n `;const i=n.querySelector("sl-dialog"),r=n.querySelector("sl-button"),s=r.nextElementSibling;document.body.appendChild(i),customElements.whenDefined("sl-dialog").then((()=>{i.show(),s.addEventListener("click",(()=>{e(!0),i.hide()})),r.addEventListener("click",(()=>{e(!1),i.hide()})),i.addEventListener("sl-hide",(()=>{e(!1)}))}))}));function Es(t,e,o){const n=t.slice();return n[24]=e[o],n}function Cs(e){let o,n,i=e[24]+"";return{c(){o=v("option"),n=y(i),o.__value=e[24],o.value=o.__value},m(t,e){m(t,o,e),f(o,n)},p:t,d(t){t&&g(o)}}}function ks(t){let e;function o(t,e){return""!==t[2].MODULES[t[0]].bannerColour?_s:Os}let n=o(t),i=n(t);return{c(){i.c(),e=x()},m(t,o){i.m(t,o),m(t,e,o)},p(t,r){n===(n=o(t))&&i?i.p(t,r):(i.d(1),i=n(t),i&&(i.c(),i.m(e.parentNode,e)))},d(t){i.d(t),t&&g(e)}}}function Os(e){let o;return{c(){o=v("span"),o.textContent="No colour set",C(o,"class","cc-banner-colour svelte-a07juw")},m(t,e){m(t,o,e)},p:t,d(t){t&&g(o)}}}function _s(t){let e,o;return{c(){e=v("span"),o=y("  "),C(e,"class","cc-banner-colour svelte-a07juw"),L(e,"background",t[2].MODULES[t[0]].bannerColour)},m(t,n){m(t,e,n),f(e,o)},p(t,o){5&o&&L(e,"background",t[2].MODULES[t[0]].bannerColour)},d(t){t&&g(e)}}}function Ls(e){let o,i,r,s,l,a,c,d,u,h,p,x,O,M,$,D,I,A,N,U,P,z,j,R,H,B,q,F,G,W,Y,K,J,X,Q,Z,tt,et,ot,nt,it,rt,st,lt,at,ct,dt,ut,ht,pt,ft,mt,gt,bt,vt,yt,wt,xt,St,Et,Ct,kt,Ot,_t,Lt,Tt,Mt,$t,Dt,It,At,Nt,Ut,Pt,zt,jt,Rt,Ht,Bt,qt,Ft,Vt,Gt,Wt,Yt,Kt,Jt,Xt,Qt,Zt,te,ee,oe,ne,ie,re,se,le,ae,ce,de,ue,he,pe,fe,me,ge,be,ve,ye,we,xe,Se,Ee,Ce,ke,Oe,_e,Le,Te,Me,$e,De,Ie,Ae,Ne,Ue,Pe=e[8].moduleBanner.tooltip+"",ze=e[8].moduleImageScale.tooltip+"",je=e[8].moduleImageUrl.tooltip+"",Re=e[8].moduleImageAltText.tooltip+"",He=e[8].moduleImageBackgroundColour.tooltip+"",Be=e[8].moduleIframe.tooltip+"",qe=e[8].moduleColour.tooltip+"",Fe=e[3],Ve=[];for(let t=0;te[13].call(ot))),C(et,"class","cc-module-input svelte-a07juw"),C(B,"class","cc-module-form svelte-a07juw"),C(lt,"for",ct="cc-module-config-collection-representation-"+e[0]+"-image"),C(ht,"slot","content"),C(mt,"class","icon-question cc-module-icon"),C(ft,"target","_blank"),C(ft,"href",e[8].moduleImageUrl.href),C(ft,"rel","noreferrer"),k(ut,"id","cc-about-module-image-url"),k(ut,"class","svelte-a07juw"),C(st,"class","cc-module-label svelte-a07juw"),C(vt,"class","cc-module-config-input svelte-a07juw"),C(vt,"type","text"),C(vt,"id",yt="cc-module-config-"+e[0]+"-image"),C(bt,"class","cc-module-input svelte-a07juw"),C(rt,"class","cc-module-form svelte-a07juw"),C(Et,"for",kt="cc-module-config-collection-representation-"+e[0]+"-alt-text"),C(Lt,"slot","content"),C($t,"class","icon-question cc-module-icon"),C(Mt,"target","_blank"),C(Mt,"href",e[8].moduleImageAltText.href),C(Mt,"rel","noreferrer"),k(_t,"id","cc-about-module-image-url"),k(_t,"class","svelte-a07juw"),C(St,"class","cc-module-label svelte-a07juw"),C(At,"placeholder","Alt text for image (all HTML tags will be removed)"),C(At,"class","cc-module-config-input svelte-a07juw"),C(At,"type","text"),C(At,"id",Nt="cc-module-config-"+e[0]+"-image-alt-text"),At.value=Ut=e[2].MODULES[e[0]].altText||"",C(It,"class","cc-module-input svelte-a07juw"),C(xt,"class","cc-module-form svelte-a07juw"),C(Rt,"for",Bt="cc-module-config-collection-representation-"+e[0]+"-image-backgroundColour"),C(Vt,"slot","content"),C(Yt,"class","icon-question cc-module-icon"),C(Wt,"target","_blank"),C(Wt,"href",e[8].moduleImageBackgroundColour.href),C(Wt,"rel","noreferrer"),k(Ft,"id","cc-about-module-image-url"),k(Ft,"class","svelte-a07juw"),C(jt,"class","cc-module-label svelte-a07juw"),C(Xt,"type","checkbox"),C(Xt,"id",Qt="cc-module-config-"+e[0]+"-image"),C(Jt,"class","cc-module-input svelte-a07juw"),C(zt,"class","cc-module-form svelte-a07juw"),k(H,"name",te="cc-module-config-"+e[0]+"-image"),C(ie,"for",se="cc-collection-representation-"+e[0]+"-iframe"),L(ie,"padding-top","0.8rem"),C(ce,"slot","content"),C(he,"class","icon-question cc-module-icon"),C(ue,"target","_blank"),C(ue,"href",e[8].moduleIframe.href),C(ue,"rel","noreferrer"),k(ae,"id","cc-about-module-iframe"),k(ae,"class","svelte-a07juw"),C(fe,"class","cc-module-iframe svelte-a07juw"),C(fe,"cols","60"),C(fe,"rows","10"),C(fe,"id",me="cc-module-config-"+e[0]+"-iframe"),fe.value=ge=e[2].MODULES[e[0]].iframe,C(ne,"class","cc-module-config-collection-representation"),k(oe,"name",be="cc-module-config-"+e[0]+"-iframe"),C(xe,"for",Ee="cc-collection-representation-"+e[0]+"-color"),L(xe,"padding-top","0.8rem"),C(Oe,"slot","content"),C(Te,"class","icon-question cc-module-icon"),C(Le,"target","_blank"),C(Le,"href",e[8].moduleColour.href),C(Le,"rel","noreferrer"),k(ke,"id","cc-about-module-color"),k(ke,"class","svelte-a07juw"),k($e,"id",De="cc-module-config-"+e[0]+"-color"),k($e,"value",Ie=e[2].MODULES[e[0]].bannerColour),k($e,"label","Select a color"),C(we,"class","cc-module-config-collection-representation"),k(ye,"name",Ae="cc-module-config-"+e[0]+"-colour")},m(t,n){m(t,o,n),f(o,i),i.innerHTML=Pe,f(o,r),f(o,s),f(s,l),m(t,a,n),m(t,c,n),m(t,d,n),m(t,u,n),f(u,h),f(h,p),f(u,M),f(u,$),f($,D),f(u,N),f(u,U),f(U,P),f(u,R),f(u,H),f(H,B),f(B,q),f(q,F),f(F,G),f(q,Y),f(q,K),f(K,J),J.innerHTML=ze,f(K,X),f(K,Q),f(Q,Z),f(B,tt),f(B,et),f(et,ot);for(let t=0;to(1,n=t))),u(t,sc,(t=>o(2,i=t)));let{moduleId:r}=e;const s=["none","contain","cover","fill","scale-down","auto"];function l(t){const e=t.detail.name.split("-").pop();p(sc,i.MODULES[r].banner=e,i),p(ac,n.needToSaveCollections=!0,n)}function a(t,e=!1){let o=["iframe"],n={};return n={iframe:["src","frameborder","allowfullscreen","allow","title"]},e&&(o=[],n={}),yr(t,{allowedTags:o,allowedAttributes:n})}i.MODULES[r];const c={moduleBanner:{tooltip:"

Choose one of three possible banner types (for Card representations) and configure it. Options are:

\n\t\t
    \n\t\t
  1. Image - a banner image
  2. \n\t\t
  3. Colour - a solid colour
  4. \n\t\t
  5. Iframe - HTML embed code (e.g. YouTube video)
  6. \n\t\t
",href:"https://djplaner.github.io/canvas-collections/reference/conceptual-model/objects/banner/"},moduleImageScale:{tooltip:"Specify how the image will be scaled to fit the available space.",href:"https://djplaner.github.io/canvas-collections/reference/conceptual-model/objects/banner/#image-scale"},moduleImageUrl:{tooltip:"Provide the URL for an image to associate with this module.",href:"https://djplaner.github.io/canvas-collections/reference/conceptual-model/objects/banner/#image-url"},moduleImageAltText:{tooltip:"Provide descriptive alternative text to aid visually impaired visitors, plus other advantages ",href:"https://djplaner.github.io/canvas-collections/reference/conceptual-model/objects/banner/#image-alternative-text"},moduleImageBackgroundColour:{tooltip:"Use the current banner colour to change the image background colour from white.",href:"https://djplaner.github.io/canvas-collections/reference/conceptual-model/objects/banner/#image-background-colour"},moduleIframe:{tooltip:"

Provide an iframe (embed HTML) to place in a card's banner section.

Notes:

\n
    \n
  1. height and width will be removed to fit the available space
  2. \n
  3. any change will only take effect after you click outside the iframe box
  4. \n
\n ",href:"https://djplaner.github.io/canvas-collections/reference/conceptual-model/objects/banner/#iframe"},moduleColour:{tooltip:"

Choose a background colour for the card's banner section by clicking on the circle.",href:"https://djplaner.github.io/canvas-collections/reference/conceptual-model/objects/banner/#colour"}};return t.$$set=t=>{"moduleId"in t&&o(0,r=t.moduleId)},[r,n,i,s,function(){const t=document.getElementById(`cc-module-config-${r}-color`);p(sc,i.MODULES[r].bannerColour=t.value,i),p(ac,n.needToSaveCollections=!0,n)},l,function(){const t=document.getElementById(`cc-module-config-${r}-image-alt-text`),e=t.value;let o=a(e,!0);if(e!==o){xs(`

The alt text you provided has been sanitised to remove HTML etc (for security). Changed from

\n

${Ts(e)}
\n

to the following

\n
${Ts(o)}
.`)}t.value=o,p(sc,i.MODULES[r].altText=o,i),p(ac,n.needToSaveCollections=!0,n)},function(){const t=document.getElementById(`cc-module-config-${r}-iframe`),e=t.value;let o=a(e);if(o=o.replace(/.*().*/,"$1"),o.match(//))if(e!==o){let s=Ts(e),l=Ts(o);Ss(`The iframe value you provided appears to contain unnecessary, perhaps forbidden characters. (NOTE: width and height will be removed to ensure the iframe is responsive.)\n\nYou provided\n

${s}

\nonly the following is allowed\n

${l}

\n \nDo you wish to proceed?`).then((e=>{e&&(t.value=o,p(sc,i.MODULES[r].iframe=o,i),p(ac,n.needToSaveCollections=!0,n))}))}else p(sc,i.MODULES[r].iframe=o,i),p(ac,n.needToSaveCollections=!0,n);else xs("The iframe value you provided does not contain an iframe tag. Please check your input and try again.","warning")},c,function(e){z.call(this,t,e)},function(e){z.call(this,t,e)},function(e){z.call(this,t,e)},function(e){z.call(this,t,e)},function(){i.MODULES[r].imageSize=M(this),sc.set(i),o(3,s)},()=>p(ac,n.needToSaveCollections=!0,n),()=>p(ac,n.needToSaveCollections=!0,n),function(){i.MODULES[r].image=this.value,sc.set(i),o(3,s)},()=>p(ac,n.needToSaveCollections=!0,n),()=>p(ac,n.needToSaveCollections=!0,n),function(){i.MODULES[r].imageBackgroundColour=this.checked,sc.set(i),o(3,s)},()=>p(ac,n.needToSaveCollections=!0,n),t=>l(t)]}class $s extends ct{constructor(t){super(),at(this,t,Ms,Ls,r,{moduleId:0})}}function Ds(t,e,o){const n=t.slice();return n[23]=e[o].name,n[24]=e[o].value,n}function Is(t){let e,o,i,r,s,l,a,c,d,u,h,p,b,y,x,k;function O(){return t[16](t[23])}function _(){return t[17](t[23])}function L(){return t[18](t[23])}function T(){return t[19](t[23])}return{c(){e=v("tr"),o=v("td"),i=v("input"),s=w(),l=v("td"),a=v("input"),u=w(),h=v("td"),p=v("i"),y=w(),C(i,"type","text"),C(i,"id",r="cc-module-config-"+t[0]+"-metadata-"+t[23]+"-name"),i.value=t[23],C(i,"pattern",String.raw`[^<>"]`),C(o,"class","svelte-fm8enw"),C(a,"type","text"),C(a,"id",c="cc-module-config-"+t[0]+"-metadata-"+t[23]+"-value"),a.value=d=t[2].MODULES[t[0]].metadata[t[23]],C(l,"class","svelte-fm8enw"),C(p,"class","icon-trash cc-delete-metadata svelte-fm8enw"),C(p,"id",b="cc-module-config-"+t[0]+"-metadata-"+t[23]+"-delete"),C(h,"class","svelte-fm8enw")},m(n,r){m(n,e,r),f(e,o),f(o,i),f(e,s),f(e,l),f(l,a),f(e,u),f(e,h),f(h,p),f(e,y),x||(k=[S(i,"keydown",E(t[11])),S(i,"focusout",O),S(a,"focusout",_),S(a,"keydown",E(t[10])),S(p,"click",L),S(p,"keydown",T)],x=!0)},p(e,o){t=e,1&o&&r!==(r="cc-module-config-"+t[0]+"-metadata-"+t[23]+"-name")&&C(i,"id",r),1&o&&c!==(c="cc-module-config-"+t[0]+"-metadata-"+t[23]+"-value")&&C(a,"id",c),5&o&&d!==(d=t[2].MODULES[t[0]].metadata[t[23]])&&a.value!==d&&(a.value=d),1&o&&b!==(b="cc-module-config-"+t[0]+"-metadata-"+t[23]+"-delete")&&C(p,"id",b)},d(t){t&&g(e),x=!1,n(k)}}}function As(e){let o,i,r,s,l,a,c,d,u,h,p,x,O,_,L,T,M,$,D,I,A,N,U,P,z,j,R,H,B,q,F,V,G,W,Y,K,J,X,Q,Z=e[9].name.tooltip+"",tt=e[9].value.tooltip+"",et=e[4](),ot=[];for(let t=0;to(20,n=t))),u(t,sc,(t=>o(2,i=t)));let{moduleId:r}=e,s=!0;function l(t,e,o,s){if(i.MODULES[r].metadata.hasOwnProperty([t.value]))return xs(`

There already exists a metadata entry with the name

\n

${t.value}

`,"danger"),void(t.value="");p(sc,i.MODULES[r].metadata[o]=s,i),p(ac,n.needToSaveCollections=!0,n),t.value="",e.value="",t.focus()}function a(t,e=!0){let o=yr.defaults.allowedTags,n={};return o=o.concat("iframe"),n={iframe:["src","width","height","frameborder","allowfullscreen"]},e||(o=[],n={}),yr(t,{allowedTags:o,allowedAttributes:n})}function c(){const t=document.getElementById(`cc-module-config-${r}-metadata-add-name`),e=document.getElementById(`cc-module-config-${r}-metadata-add-value`);return""===t.value||""===e.value}function d(t){const e=i.MODULES[r].name;Ss(`

About to delete the metadata entry
\n ${t}
for the module
\n ${e}

\n

Proceed?

`).then((e=>{if(e){let e=i.MODULES[r].metadata;delete e[t],p(sc,i.MODULES[r].metadata=e,i),p(ac,n.needToSaveCollections=!0,n)}}))}function h(t){const e=document.getElementById(`cc-module-config-${r}-metadata-${t}-name`);if(t===e.value)return;if(i.MODULES[r].metadata.hasOwnProperty([e.value]))return xs(`

There already exists a metadata entry with the name

\n
${e.value}
\n

Please choose a different name.

`,"danger"),void(e.value=t);let o=i.MODULES[r].metadata;o[e.value]=o[t],delete o[t],p(sc,i.MODULES[r].metadata=o,i),p(ac,n.needToSaveCollections=!0,n)}function f(t){const e=document.getElementById(`cc-module-config-${r}-metadata-${t}-value`),o=a(e.value);o!==e.value?Ss(`

The new metadata item value

\n
${e.value}
\n

has been sanitised to

\n
${o}
\n

Do you want to use the sanitised value?

`).then((e=>{e&&(p(sc,i.MODULES[r].metadata[t]=o,i),p(ac,n.needToSaveCollections=!0,n))})):(p(sc,i.MODULES[r].metadata[t]=o,i),p(ac,n.needToSaveCollections=!0,n))}const m={name:{tooltip:"

Each metadata value is given a name. Only certain characters can be used. No HTML tags allowed.

\n\t\t\t

Changes will only take effect when you move focus away from the name field.

",href:"https://djplaner.github.io/canvas-collections/reference/conceptual-model/objects/metadata/#name"},value:{tooltip:"

The value for the metadata element. HTML tags are allowed.

",href:"https://djplaner.github.io/canvas-collections/reference/conceptual-model/objects/metadata/#value"}};return t.$$set=t=>{"moduleId"in t&&o(0,r=t.moduleId)},[r,s,i,function(t){const e=document.getElementById(`cc-module-config-${r}-metadata-add-name`),o=document.getElementById(`cc-module-config-${r}-metadata-add-value`),n=a(e.value,!1),i=a(o.value);n!==e.value||""===n?Ss(`

The new metadata name

${e.value} has been sanitised \n (removing/replacing forbidden characters) to ${n} \n(If the sanitised name is empty, the metadata item will not be added.)

\n

Are you happy to use the sanitised name?

`).then((t=>{t&&""!==n&&l(e,o,n,i)})):l(e,o,n,i)},function(){let t=[];return Object.keys(i.MODULES[r].metadata).sort().forEach((e=>{t.push({name:e,value:i.MODULES[r].metadata[e]})})),t},c,d,h,f,m,function(e){z.call(this,t,e)},function(e){z.call(this,t,e)},function(e){z.call(this,t,e)},function(e){z.call(this,t,e)},()=>o(1,s=c()),()=>o(1,s=c()),t=>h(t),t=>f(t),t=>d(t),t=>d(t)]}class Us extends ct{constructor(t){super(),at(this,t,Ns,As,r,{moduleId:0})}}function Ps(t){let e,o,n;return{c(){e=v("div"),o=y("No collection allocated"),C(e,"class","cc-module-no-collection svelte-1s0ihn8"),C(e,"id",n="cc-module-config-no-collection-"+t[0])},m(t,n){m(t,e,n),f(e,o)},p(t,o){1&o&&n!==(n="cc-module-config-no-collection-"+t[0])&&C(e,"id",n)},d(t){t&&g(e)}}}function zs(t){let e,o,n,i,r,s,l,a,c,d,u,h,p,b,x,S,E,O,_,T,M,$,D,I,A,N,U,P,z,j,R,H,B,q,F,V,G,W,Y,K,J,X,Q,Z,tt,nt,lt,at=t[4].generalTab.tooltip+"",ct=t[4].moduleDates.tooltip+"",dt=t[4].moduleBanner.tooltip+"",ut=t[4].moduleMetaData.tooltip+"";return G=new ws({props:{moduleId:t[0]}}),K=new ce({props:{moduleId:t[0]}}),Q=new $s({props:{moduleId:t[0]}}),nt=new Us({props:{moduleId:t[0]}}),{c(){e=v("div"),o=v("sl-tab-group"),n=v("sl-tab"),i=y("General  \n "),r=v("sl-tooltip"),s=v("div"),l=w(),a=v("a"),c=v("i"),d=w(),u=v("sl-tab"),h=y("Dates  \n "),p=v("sl-tooltip"),b=v("div"),x=w(),S=v("a"),E=v("i"),O=w(),_=v("sl-tab"),T=y("Banner  \n "),M=v("sl-tooltip"),$=v("div"),D=w(),I=v("a"),A=v("i"),N=w(),U=v("sl-tab"),P=v("div"),z=y("Metadata \n "),j=v("sl-tooltip"),R=v("div"),H=w(),B=v("a"),q=v("i"),F=w(),V=v("sl-tab-panel"),it(G.$$.fragment),W=w(),Y=v("sl-tab-panel"),it(K.$$.fragment),J=w(),X=v("sl-tab-panel"),it(Q.$$.fragment),Z=w(),tt=v("sl-tab-panel"),it(nt.$$.fragment),C(s,"slot","content"),C(c,"class","icon-question"),C(a,"href",t[4].generalTab.url),C(a,"target","_blank"),C(a,"rel","noreferrer"),C(a,"class","cc-module-link"),k(r,"hoist",""),k(r,"class","svelte-1s0ihn8"),k(n,"slot","nav"),k(n,"panel","general"),L(n,"text-align","right"),k(n,"class","svelte-1s0ihn8"),C(b,"slot","content"),C(E,"class","icon-question"),C(S,"href",t[4].moduleDates.url),C(S,"target","_blank"),C(S,"rel","noreferrer"),C(S,"class","cc-module-link"),k(p,"class","svelte-1s0ihn8"),k(u,"slot","nav"),k(u,"panel","dates"),L(u,"text-align","right"),k(u,"class","svelte-1s0ihn8"),C($,"slot","content"),C(A,"class","icon-question"),C(I,"href",t[4].moduleBanner.url),C(I,"target","_blank"),C(I,"rel","noreferrer"),k(M,"class","svelte-1s0ihn8"),k(_,"slot","nav"),k(_,"panel","banner"),L(_,"text-align","right"),k(_,"class","svelte-1s0ihn8"),C(R,"slot","content"),C(q,"class","icon-question"),C(B,"href",t[4].moduleMetaData.url),C(B,"target","_blank"),C(B,"rel","noreferrer"),k(j,"class","svelte-1s0ihn8"),k(U,"slot","nav"),k(U,"panel","metadata"),L(U,"text-align","right"),k(U,"class","svelte-1s0ihn8"),k(V,"name","general"),k(Y,"name","dates"),k(X,"name","banner"),k(tt,"name","metadata"),k(o,"placement","start"),C(e,"class","cc-module-config-tabs border border-trbl svelte-1s0ihn8")},m(t,g){m(t,e,g),f(e,o),f(o,n),f(n,i),f(n,r),f(r,s),s.innerHTML=at,f(r,l),f(r,a),f(a,c),f(o,d),f(o,u),f(u,h),f(u,p),f(p,b),b.innerHTML=ct,f(p,x),f(p,S),f(S,E),f(o,O),f(o,_),f(_,T),f(_,M),f(M,$),$.innerHTML=dt,f(M,D),f(M,I),f(I,A),f(o,N),f(o,U),f(U,P),f(P,z),f(P,j),f(j,R),R.innerHTML=ut,f(j,H),f(j,B),f(B,q),f(o,F),f(o,V),rt(G,V,null),f(o,W),f(o,Y),rt(K,Y,null),f(o,J),f(o,X),rt(Q,X,null),f(o,Z),f(o,tt),rt(nt,tt,null),lt=!0},p(t,e){const o={};1&e&&(o.moduleId=t[0]),G.$set(o);const n={};1&e&&(n.moduleId=t[0]),K.$set(n);const i={};1&e&&(i.moduleId=t[0]),Q.$set(i);const r={};1&e&&(r.moduleId=t[0]),nt.$set(r)},i(t){lt||(et(G.$$.fragment,t),et(K.$$.fragment,t),et(Q.$$.fragment,t),et(nt.$$.fragment,t),lt=!0)},o(t){ot(G.$$.fragment,t),ot(K.$$.fragment,t),ot(Q.$$.fragment,t),ot(nt.$$.fragment,t),lt=!1},d(t){t&&g(e),st(G),st(K),st(Q),st(nt)}}}function js(t){let e,o,i,r,s,l,a,c,d,u,h,p,b,E,O,_,L,T,M,$,D=t[1].MODULES[t[0]].name+"",I=t[4].moduleConfiguration.tooltip+"",A=!t[2]&&Ps(t),N=t[1].MODULES[t[0]].configVisible&&zs(t);return{c(){e=v("div"),A&&A.c(),o=w(),i=v("span"),r=v("i"),a=y("\n\n Configure Collections for\n "),c=v("em"),d=w(),u=v("sl-tooltip"),h=v("div"),p=w(),b=v("a"),E=v("i"),_=w(),N&&N.c(),L=x(),C(r,"id",s="cc-module-config-"+t[0]+"-switch"),C(r,"class",l=t[1].MODULES[t[0]].configVisible?"icon-mini-arrow-down":"icon-mini-arrow-right"),C(h,"slot","content"),C(E,"class","icon-question"),C(b,"href",t[4].moduleConfiguration.url),C(b,"target","_blank"),C(b,"rel","noreferrer"),C(b,"class","cc-module-link"),k(u,"class","svelte-1s0ihn8"),C(e,"class","cc-module-config border border-trbl svelte-1s0ihn8"),C(e,"id",O="cc-module-config-"+t[0])},m(n,s){m(n,e,s),A&&A.m(e,null),f(e,o),f(e,i),f(i,r),f(i,a),f(i,c),c.innerHTML=D,f(i,d),f(i,u),f(u,h),h.innerHTML=I,f(u,p),f(u,b),f(b,E),m(n,_,s),N&&N.m(n,s),m(n,L,s),T=!0,M||($=[S(e,"click",t[3]),S(e,"keydown",t[3])],M=!0)},p(t,[n]){t[2]?A&&(A.d(1),A=null):A?A.p(t,n):(A=Ps(t),A.c(),A.m(e,o)),(!T||1&n&&s!==(s="cc-module-config-"+t[0]+"-switch"))&&C(r,"id",s),(!T||3&n&&l!==(l=t[1].MODULES[t[0]].configVisible?"icon-mini-arrow-down":"icon-mini-arrow-right"))&&C(r,"class",l),(!T||3&n)&&D!==(D=t[1].MODULES[t[0]].name+"")&&(c.innerHTML=D),(!T||1&n&&O!==(O="cc-module-config-"+t[0]))&&C(e,"id",O),t[1].MODULES[t[0]].configVisible?N?(N.p(t,n),3&n&&et(N,1)):(N=zs(t),N.c(),et(N,1),N.m(L.parentNode,L)):N&&(Z(),ot(N,1,1,(()=>{N=null})),tt())},i(t){T||(et(N),T=!0)},o(t){ot(N),T=!1},d(t){t&&g(e),A&&A.d(),t&&g(_),N&&N.d(t),t&&g(L),M=!1,n($)}}}function Rs(t,e,o){let n,i,r;u(t,ac,(t=>o(5,i=t))),u(t,sc,(t=>o(1,r=t)));let{module:s}=e;const l={moduleConfiguration:{tooltip:"

Click to open/close the Collections interface to configure data about this module

",url:"https://djplaner.github.io/canvas-collections/reference/conceptual-model/objects/overview/"},generalTab:{tooltip:"

Configure common collections settings: collection, description, label, engage button etc.

",url:"https://djplaner.github.io/canvas-collections/reference/conceptual-model/objects/general/"},moduleDates:{tooltip:"

Specify a date/time (or date/time range) for the module, including a label.

\n\t\t",url:"https://djplaner.github.io/canvas-collections/reference/conceptual-model/objects/dates/"},moduleBanner:{tooltip:"

Choose one of three possible banner types (for Card representations) and configure it. Options are:

  1. Image - a banner image
  2. Colour - a solid colour
  3. Iframe - HTML embed code (e.g. YouTube video)
\n\t\t",url:"https://djplaner.github.io/canvas-collections/reference/conceptual-model/objects/banner/"},moduleMetaData:{tooltip:"Add, delete, and modify any additional information about this module, which\n\t\tmay be used by collections and representations - or for your own purposes.",url:"https://djplaner.github.io/canvas-collections/reference/conceptual-model/objects/metadata/"}};return t.$$set=t=>{"module"in t&&o(0,s=t.module)},t.$$.update=()=>{3&t.$$.dirty&&o(2,n=null!==r.MODULES[s].collection&&""!==r.MODULES[s].collection)},[s,r,n,function(){p(sc,r.MODULES[s].configVisible=!r.MODULES[s].configVisible,r),p(ac,i.needToSaveCollections=!0,i)},l]}class Hs extends ct{constructor(t){super(),at(this,t,Rs,js,r,{module:0})}}function Bs(t,e=!1,o=!1){let n=[];const i=d(sc),r=d(ac).editMode,s=i.MODULES,l=d(lc),a={};l.forEach((t=>{a[t.id]=t}));let c={};for(const n in s)(s[n].collection===t||o&&(null===s[n].collection||""===s[n].collection))&&(r?e?(s[n].fyi||s[n].published)&&(c[s[n].moduleOrder]=n):c[s[n].moduleOrder]=n:(s[n].published||s[n].fyi)&&(c[s[n].moduleOrder]=n));for(const t in c){const e=c[t];a.hasOwnProperty(e)?n.push(a[e]):s[e].fyi&&n.push(s[e])}return n}function qs(t,e,o){let n=[];return d(ac).editMode,n=Bs(t,e,o),n}function Fs(t,e,o,n=!1){return t.hasOwnProperty("metadata")&&t.metadata.hasOwnProperty(e)?t.metadata[e]:o&&!n?`{${e}}`:""}function Vs(t){let e="";return""!==t.date.label&&(e=`${t.date.label}`),Ws(t.date)&&(e+=Gs(t.date,t.dateShow)),Ws(t.date.to)&&(e+=` to ${Gs(t.date.to,t.dateShow)}`),e}function Gs(t,e){let o="";return["time","day","date","month"].forEach((n=>{e[n]&&""!==t[n]&&(o+=` ${t[n]}`)})),o}function Ws(t){return t.hasOwnProperty("calendarDate")&&""!==t.calendarDate}function Ys(t,e){if(""===t)return;const o=d(sc).MODULES,n=d(ac),i=n.editMode,r=Bs(t).map((t=>parseInt(t.id,10)));Object.keys(o).filter((t=>!r.includes(parseInt(t,10)))).forEach((t=>{const r=document.getElementById(`context_module_${t}`);r&&(null!==o[t].collection&&""!==o[t].collection?r.style.display="none":i?(r.style.display="block",null!==n.editingOn&&Ks(parseInt(t,10))):r.style.display=e?"block":"none")})),r.forEach((t=>{i&&null!==n.editingOn&&Ks(t);const e=document.getElementById(`context_module_${t}`);e&&(o[t].fyi&&!i?e.style.display="none":e.style.display="block")}))}function Ks(t){const e=document.getElementById(`context_module_${t}`);e&&(e.style.display="block");const o=document.getElementById(`${t}`);if(o&&!document.getElementById(`cc-module-config-${t}`)){const e=document.createElement("div");e.id=`cc-module-config-${t}`,o.parentNode.insertBefore(e,o.nextSibling),new Hs({target:e,props:{module:t}})}}function Js(t){let e=new URL(document.URL);return e.search="",e.hash=`module_${t}`,e.toString()}function Xs(t,e){const o=d(ac),n=d(sc);return!!o.editMode&&(!n.MODULES[t].published||n.MODULES[t].collection!==e)}function Qs(t){const e=t.name;let o="";t.label&&(o=t.label);let n=new RegExp(`^${o}\\s*[:->]\\s*`);t.actualNum&&(n=new RegExp(`^${o}\\s*${t.actualNum}\\s*[:>-]\\s*`),o+=` ${t.actualNum}`," "===o.charAt(0)&&(o=o.substring(1))),o=`${o}: `;let i=e;return": "!==o&&(i=e.replace(n,"").trim()),i}function Zs(t){let e,o=t[3].editMode&&ol();return{c(){e=v("div"),o&&o.c(),C(e,"class","cc-banner-colour svelte-nx2v6h")},m(t,n){m(t,e,n),o&&o.m(e,null)},p(t,n){t[3].editMode?o||(o=ol(),o.c(),o.m(e,null)):o&&(o.d(1),o=null)},d(t){t&&g(e),o&&o.d()}}}function tl(t){let e,o=t[3].editMode&&nl();return{c(){e=v("div"),o&&o.c(),C(e,"class","claytons-banner-colour"),L(e,"width","100%"),L(e,"height","10rem"),L(e,"background-color","#ffffff")},m(t,n){m(t,e,n),o&&o.m(e,null)},p(t,n){t[3].editMode?o||(o=nl(),o.c(),o.m(e,null)):o&&(o.d(1),o=null)},d(t){t&&g(e),o&&o.d()}}}function el(t){let e,o,n=t[2].MODULES[t[1]].iframe+"";return{c(){e=new D(!1),o=x(),e.a=o},m(t,i){e.m(n,t,i),m(t,o,i)},p(t,o){6&o&&n!==(n=t[2].MODULES[t[1]].iframe+"")&&e.p(n)},d(t){t&&g(o),t&&e.d()}}}function ol(t){let e;return{c(){e=v("p"),e.innerHTML="(No iframe specified)",L(e,"margin","2rem")},m(t,o){m(t,e,o)},d(t){t&&g(e)}}}function nl(t){let e;return{c(){e=v("p"),e.innerHTML="(No iframe specified)",L(e,"margin","2rem")},m(t,o){m(t,e,o)},d(t){t&&g(e)}}}function il(e){let o,n;function i(t,e){return 6&e&&(o=null),null==o&&(o=!!t[4](t[2].MODULES[t[1]].iframe)),o?el:t[0]?tl:Zs}let r=i(e,-1),s=r(e);return{c(){s.c(),n=x()},m(t,e){s.m(t,e),m(t,n,e)},p(t,[e]){r===(r=i(t,e))&&s?s.p(t,e):(s.d(1),s=r(t),s&&(s.c(),s.m(n.parentNode,n)))},i:t,o:t,d(t){s.d(t),t&&g(n)}}}function rl(t,e,o){let n,i;u(t,sc,(t=>o(2,n=t))),u(t,ac,(t=>o(3,i=t)));let{moduleId:r}=e,{claytons:s}=e;return s||(s=!1),t.$$set=t=>{"moduleId"in t&&o(1,r=t.moduleId),"claytons"in t&&o(0,s=t.claytons)},[s,r,n,i,function(t){return n.MODULES[r].iframe.match(/^.*<\/iframe>$/)}]}class sl extends ct{constructor(t){super(),at(this,t,rl,il,r,{moduleId:1,claytons:0})}}function ll(t){let e,o;return{c(){e=v("div"),o=y(" "),C(e,"class","cc-banner-colour svelte-in430l"),L(e,"background-color",t[2].MODULES[t[1]].bannerColour)},m(t,n){m(t,e,n),f(e,o)},p(t,o){6&o&&L(e,"background-color",t[2].MODULES[t[1]].bannerColour)},d(t){t&&g(e)}}}function al(t){let e,o;return{c(){e=v("div"),o=y(" "),C(e,"class","claytons-banner-colour"),L(e,"width","100%"),L(e,"height","10rem"),L(e,"background-color",t[2].MODULES[t[1]].bannerColour)},m(t,n){m(t,e,n),f(e,o)},p(t,o){6&o&&L(e,"background-color",t[2].MODULES[t[1]].bannerColour)},d(t){t&&g(e)}}}function cl(e){let o;function n(t,e){return t[0]?al:ll}let i=n(e),r=i(e);return{c(){r.c(),o=x()},m(t,e){r.m(t,e),m(t,o,e)},p(t,[e]){i===(i=n(t))&&r?r.p(t,e):(r.d(1),r=i(t),r&&(r.c(),r.m(o.parentNode,o)))},i:t,o:t,d(t){r.d(t),t&&g(o)}}}function dl(t,e,o){let n;u(t,sc,(t=>o(2,n=t)));let{moduleId:i}=e,{claytons:r}=e;return r||(r=!1),t.$$set=t=>{"moduleId"in t&&o(1,i=t.moduleId),"claytons"in t&&o(0,r=t.claytons)},[r,i,n]}class ul extends ct{constructor(t){super(),at(this,t,dl,cl,r,{moduleId:1,claytons:0})}}function hl(t){let e,o,n;return{c(){e=v("img"),C(e,"class","cc-card-image svelte-1emj5tc"),a(e.src,o="https://www.signfix.com.au/wp-content/uploads/2017/09/placeholder-600x400.png")||C(e,"src","https://www.signfix.com.au/wp-content/uploads/2017/09/placeholder-600x400.png"),C(e,"data-moduleid",t[1]),C(e,"alt",n=t[2].MODULES[t[1]].altText||"Card image for the module named: "+t[2].MODULES[t[1]].name.replace(/([\"\'])/g,"\\$1"))},m(t,o){m(t,e,o)},p(t,o){2&o&&C(e,"data-moduleid",t[1]),6&o&&n!==(n=t[2].MODULES[t[1]].altText||"Card image for the module named: "+t[2].MODULES[t[1]].name.replace(/([\"\'])/g,"\\$1"))&&C(e,"alt",n)},d(t){t&&g(e)}}}function pl(t){let e,o,n,i,r;return{c(){e=v("img"),C(e,"class",o="cc-card-image "+gl(t[2].MODULES[t[1]].imageSize)+" svelte-1emj5tc"),L(e,"height","10rem"),L(e,"width","100%"),a(e.src,n=t[2].MODULES[t[1]].image)||C(e,"src",n),C(e,"data-moduleid",i="$"+t[1]),C(e,"alt",r=t[2].MODULES[t[1]].altText||"Card image for the module named: "+t[2].MODULES[t[1]].name.replace(/([\"\'])/g,"\\$1"))},m(t,o){m(t,e,o)},p(t,s){6&s&&o!==(o="cc-card-image "+gl(t[2].MODULES[t[1]].imageSize)+" svelte-1emj5tc")&&C(e,"class",o),6&s&&!a(e.src,n=t[2].MODULES[t[1]].image)&&C(e,"src",n),2&s&&i!==(i="$"+t[1])&&C(e,"data-moduleid",i),6&s&&r!==(r=t[2].MODULES[t[1]].altText||"Card image for the module named: "+t[2].MODULES[t[1]].name.replace(/([\"\'])/g,"\\$1"))&&C(e,"alt",r)},d(t){t&&g(e)}}}function fl(t){let e,o,n,i,r;return{c(){e=v("img"),C(e,"class",o="cc-card-image "+gl(t[2].MODULES[t[1]].imageSize)+" svelte-1emj5tc"),a(e.src,n=t[2].MODULES[t[1]].image)||C(e,"src",n),C(e,"data-moduleid",i="$"+t[1]),C(e,"alt",r=t[2].MODULES[t[1]].altText||"Card image for the module named: "+t[2].MODULES[t[1]].name.replace(/([\"\'])/g,"\\$1"))},m(t,o){m(t,e,o)},p(t,s){6&s&&o!==(o="cc-card-image "+gl(t[2].MODULES[t[1]].imageSize)+" svelte-1emj5tc")&&C(e,"class",o),6&s&&!a(e.src,n=t[2].MODULES[t[1]].image)&&C(e,"src",n),2&s&&i!==(i="$"+t[1])&&C(e,"data-moduleid",i),6&s&&r!==(r=t[2].MODULES[t[1]].altText||"Card image for the module named: "+t[2].MODULES[t[1]].name.replace(/([\"\'])/g,"\\$1"))&&C(e,"alt",r)},d(t){t&&g(e)}}}function ml(e){let o;function n(t,e){return t[2].MODULES[t[1]].image&&t[0]?fl:t[2].MODULES[t[1]].image&&!t[0]?pl:hl}let i=n(e),r=i(e);return{c(){r.c(),o=x()},m(t,e){r.m(t,e),m(t,o,e)},p(t,[e]){i===(i=n(t))&&r?r.p(t,e):(r.d(1),r=i(t),r&&(r.c(),r.m(o.parentNode,o)))},i:t,o:t,d(t){r.d(t),t&&g(o)}}}function gl(t){let e="";return"bg-contain"===t?e="cc-object-fit-old-kludge":["contain","cover","scale-down","fill"].includes(t)&&(e=`cc-object-fit-${t}`),e}function bl(t,e,o){let n;u(t,sc,(t=>o(2,n=t)));let{moduleId:i}=e,{claytons:r}=e;return r||(r=!1),t.$$set=t=>{"moduleId"in t&&o(1,i=t.moduleId),"claytons"in t&&o(0,r=t.claytons)},[r,i,n]}class vl extends ct{constructor(t){super(),at(this,t,bl,ml,r,{moduleId:1,claytons:0})}}function yl(t,e,o){const n=t.slice();return n[9]=e[o],n}function wl(t,e,o){const n=t.slice();return n[9]=e[o],n}function xl(t){let e,o,n,i,r,s,l,a,c,d,u,h,p,y,x,S,E,k,O,_,L=t[2].editMode&&0===t[5].length&&El(),T=t[2].editMode&&Cl(t),M=t[2].editMode&&kl(t),$=t[3]>0&&Ol(t),D=t[2].editMode&&Ll(t),I=t[4]>0&&Tl(t),A=t[5],N=[];for(let e=0;e0?$?$.p(t,n):($=Ol(t),$.c(),$.m(r,y)):$&&($.d(1),$=null),t[2].editMode?D?D.p(t,n):(D=Ll(t),D.c(),D.m(x,null)):D&&(D.d(1),D=null),t[4]>0?I?I.p(t,n):(I=Tl(t),I.c(),I.m(r,null)):I&&(I.d(1),I=null),126&n){let e;for(A=t[5],e=0;e0&&Bl(),x=t[4]&&ql(),S=t[5],E=[];for(let e=0;eTitle',s=w(),l=v("th"),l.innerHTML='Description',a=w(),y&&y.c(),c=w(),d=v("th"),d.innerHTML='Due Date',u=w(),x&&x.c(),h=w(),p=v("tbody");for(let t=0;t0?y||(y=Bl(),y.c(),y.m(i,c)):y&&(y.d(1),y=null),t[4]?x||(x=ql(),x.c(),x.m(i,null)):x&&(x.d(1),x=null),127&e){let o;for(S=t[5],o=0;oNo modules have been added to this collection.

",C(e,"class","cc-no-modules")},m(t,o){m(t,e,o)},d(t){t&&g(e)}}}function Cl(e){let o,n,i,r,s,l=e[7].TITLE.tooltip+"";return{c(){o=v("sl-tooltip"),n=v("div"),i=w(),r=v("a"),s=v("i"),C(n,"slot","content"),C(s,"class","cc-table-header-icon icon-question cc-module-icon svelte-1rik8ug"),C(r,"id","cc-about-basic-module-collection"),C(r,"href",e[7].TITLE.url),C(r,"target","_blank"),C(r,"rel","noreferrer"),C(r,"class","cc-module-link"),k(o,"class","svelte-1rik8ug")},m(t,e){m(t,o,e),f(o,n),n.innerHTML=l,f(o,i),f(o,r),f(r,s)},p:t,d(t){t&&g(o)}}}function kl(e){let o,n,i,r,s,l=e[7].DESCRIPTION.tooltip+"";return{c(){o=v("sl-tooltip"),n=v("div"),i=w(),r=v("a"),s=v("i"),C(n,"slot","content"),C(s,"class","cc-table-header-icon icon-question cc-module-icon svelte-1rik8ug"),C(r,"id","cc-about-basic-module-collection"),C(r,"href",e[7].DESCRIPTION.url),C(r,"target","_blank"),C(r,"rel","noreferrer"),C(r,"class","cc-module-link"),k(o,"class","svelte-1rik8ug")},m(t,e){m(t,o,e),f(o,n),n.innerHTML=l,f(o,i),f(o,r),f(r,s)},p:t,d(t){t&&g(o)}}}function Ol(t){let e,o,n,i=t[2].editMode&&_l(t);return{c(){e=v("th"),o=v("span"),o.textContent="Weighting",n=w(),i&&i.c(),C(o,"class","cc-table-header-text svelte-1rik8ug"),C(e,"role","columnheader"),C(e,"class","cc-weighting-col svelte-1rik8ug"),C(e,"scope","col")},m(t,r){m(t,e,r),f(e,o),f(e,n),i&&i.m(e,null)},p(t,o){t[2].editMode?i?i.p(t,o):(i=_l(t),i.c(),i.m(e,null)):i&&(i.d(1),i=null)},d(t){t&&g(e),i&&i.d()}}}function _l(e){let o,n,i,r,s,l=e[7].WEIGHTING.tooltip+"";return{c(){o=v("sl-tooltip"),n=v("div"),i=w(),r=v("a"),s=v("i"),C(n,"slot","content"),C(s,"class","cc-table-header-icon icon-question cc-module-icon svelte-1rik8ug"),C(r,"id","cc-about-basic-module-collection"),C(r,"href",e[7].WEIGHTING.url),C(r,"target","_blank"),C(r,"rel","noreferrer"),C(r,"class","cc-module-link"),k(o,"class","svelte-1rik8ug")},m(t,e){m(t,o,e),f(o,n),n.innerHTML=l,f(o,i),f(o,r),f(r,s)},p:t,d(t){t&&g(o)}}}function Ll(e){let o,n,i,r,s,l=e[7].DUE_DATE.tooltip+"";return{c(){o=v("sl-tooltip"),n=v("div"),i=w(),r=v("a"),s=v("i"),C(n,"slot","content"),C(s,"class","cc-table-header-icon icon-question cc-module-icon svelte-1rik8ug"),C(r,"id","cc-about-basic-module-collection"),C(r,"href",e[7].DUE_DATE.url),C(r,"target","_blank"),C(r,"rel","noreferrer"),C(r,"class","cc-module-link"),k(o,"class","svelte-1rik8ug")},m(t,e){m(t,o,e),f(o,n),n.innerHTML=l,f(o,i),f(o,r),f(r,s)},p:t,d(t){t&&g(o)}}}function Tl(t){let e,o,n,i=t[2].editMode&&Ml(t);return{c(){e=v("th"),o=v("span"),o.textContent="Learning Outcomes",n=w(),i&&i.c(),C(o,"class","cc-table-header-text svelte-1rik8ug"),C(e,"role","columnheader"),C(e,"scope","col"),C(e,"class","cc-learning-outcomes-col svelte-1rik8ug")},m(t,r){m(t,e,r),f(e,o),f(e,n),i&&i.m(e,null)},p(t,o){t[2].editMode?i?i.p(t,o):(i=Ml(t),i.c(),i.m(e,null)):i&&(i.d(1),i=null)},d(t){t&&g(e),i&&i.d()}}}function Ml(e){let o,n,i,r,s,l=e[7].LEARNING_OUTCOMES.tooltip+"";return{c(){o=v("sl-tooltip"),n=v("div"),i=w(),r=v("a"),s=v("i"),C(n,"slot","content"),C(s,"class","cc-table-header-icon icon-question cc-module-icon svelte-1rik8ug"),C(r,"id","cc-about-basic-module-collection"),C(r,"href",e[7].LEARNING_OUTCOMES.url),C(r,"target","_blank"),C(r,"rel","noreferrer"),C(r,"class","cc-module-link"),k(o,"class","svelte-1rik8ug")},m(t,e){m(t,o,e),f(o,n),n.innerHTML=l,f(o,i),f(o,r),f(r,s)},p:t,d(t){t&&g(o)}}}function $l(t){let e,o=t[6].MODULES[t[9].id].name+"";return{c(){e=y(o)},m(t,o){m(t,e,o)},p(t,n){96&n&&o!==(o=t[6].MODULES[t[9].id].name+"")&&O(e,o)},d(t){t&&g(e)}}}function Dl(t){let e,o,n,i=t[6].MODULES[t[9].id].name+"";return{c(){e=v("a"),o=y(i),C(e,"href",n=Js(t[9].id))},m(t,n){m(t,e,n),f(e,o)},p(t,r){96&r&&i!==(i=t[6].MODULES[t[9].id].name+"")&&O(o,i),32&r&&n!==(n=Js(t[9].id))&&C(e,"href",n)},d(t){t&&g(e)}}}function Il(t){let e;return{c(){e=v("div"),e.textContent="No collection allocated",C(e,"class","cc-unallocated svelte-1rik8ug")},m(t,o){m(t,e,o)},d(t){t&&g(e)}}}function Al(t){let e,o=(""!==t[6].MODULES[t[9].id].fyiText||t[2].editMode)&&Nl(t);return{c(){o&&o.c(),e=x()},m(t,n){o&&o.m(t,n),m(t,e,n)},p(t,n){""!==t[6].MODULES[t[9].id].fyiText||t[2].editMode?o?o.p(t,n):(o=Nl(t),o.c(),o.m(e.parentNode,e)):o&&(o.d(1),o=null)},d(t){o&&o.d(t),t&&g(e)}}}function Nl(t){let e,o;function n(t,e){return t[6].MODULES[t[9].id].fyiText?Pl:Ul}let i=n(t),r=i(t);return{c(){e=v("div"),o=v("span"),r.c(),C(o,"class","cc-fyi-text"),C(e,"class","cc-card-fyi svelte-1rik8ug")},m(t,n){m(t,e,n),f(e,o),r.m(o,null)},p(t,e){i===(i=n(t))&&r?r.p(t,e):(r.d(1),r=i(t),r&&(r.c(),r.m(o,null)))},d(t){t&&g(e),r.d()}}}function Ul(e){let o,n;return{c(){o=y("("),n=v("em"),n.textContent="FYI, no FYI text"},m(t,e){m(t,o,e),m(t,n,e)},p:t,d(t){t&&g(o),t&&g(n)}}}function Pl(t){let e,o,n=t[6].MODULES[t[9].id].fyiText+"";return{c(){e=new D(!1),o=x(),e.a=o},m(t,i){e.m(n,t,i),m(t,o,i)},p(t,o){96&o&&n!==(n=t[6].MODULES[t[9].id].fyiText+"")&&e.p(n)},d(t){t&&g(o),t&&e.d()}}}function zl(t){let e;return{c(){e=v("div"),e.textContent="Unpublished",C(e,"class","cc-published svelte-1rik8ug")},m(t,o){m(t,e,o)},d(t){t&&g(e)}}}function jl(t){let e,o,n,i,r,s,l=Fs(t[6].MODULES[t[9].id],"weighting",t[2].editMode)+"";return{c(){e=v("td"),o=v("span"),o.textContent="Weighting",n=w(),i=v("div"),r=v("p"),s=y(l),C(o,"class","cc-responsive-table__heading svelte-1rik8ug"),C(o,"aria-hidden","true"),C(r,"class","svelte-1rik8ug"),C(i,"class","cc-table-cell-text svelte-1rik8ug"),C(e,"role","cell"),C(e,"class","svelte-1rik8ug")},m(t,l){m(t,e,l),f(e,o),f(e,n),f(e,i),f(i,r),f(r,s)},p(t,e){100&e&&l!==(l=Fs(t[6].MODULES[t[9].id],"weighting",t[2].editMode)+"")&&O(s,l)},d(t){t&&g(e)}}}function Rl(t){let e,o,n,i,r,s,l=Fs(t[6].MODULES[t[9].id],"learning outcomes",t[2].editMode)+"";return{c(){e=v("td"),o=v("span"),o.textContent="Learning Outcomes",n=w(),i=v("div"),r=v("p"),s=y(l),C(o,"class","cc-responsive-table__heading svelte-1rik8ug"),C(o,"aria-hidden","true"),C(r,"class","svelte-1rik8ug"),C(i,"class","cc-table-cell-text svelte-1rik8ug"),C(e,"role","cell"),C(e,"class","svelte-1rik8ug")},m(t,l){m(t,e,l),f(e,o),f(e,n),f(e,i),f(i,r),f(r,s)},p(t,e){100&e&&l!==(l=Fs(t[6].MODULES[t[9].id],"learning outcomes",t[2].editMode)+"")&&O(s,l)},d(t){t&&g(e)}}}function Hl(t){let e,o,n,i,r,s,l,a,c,d,u,h,p,b,x,S,E,k,_,L,T,M,$,D,I,A=t[6].MODULES[t[9].id].description+"",N=Vs(t[6].MODULES[t[9].id])+"";function U(t,e){return t[6].MODULES[t[9].id].fyi?$l:Dl}let P=U(t),z=P(t),j=t[2].editMode&&t[6].MODULES[t[9].id].collection!==t[1]&&Il(),R=t[6].MODULES[t[9].id].fyi&&Al(t),H=t[2].editMode&&!t[6].MODULES[t[9].id].published&&zl(),B=t[3]>0&&jl(t),q=t[4]>0&&Rl(t);return{c(){e=v("tr"),o=v("td"),n=v("span"),n.textContent="Title",i=w(),r=v("div"),s=v("p"),z.c(),l=w(),a=v("td"),c=v("span"),c.textContent="Description",d=w(),j&&j.c(),u=w(),h=v("div"),p=v("p"),b=w(),R&&R.c(),x=w(),H&&H.c(),S=w(),B&&B.c(),E=w(),k=v("td"),_=v("span"),_.textContent="Due Date",L=w(),T=v("div"),M=v("p"),$=y(N),D=w(),q&&q.c(),I=w(),C(n,"class","cc-responsive-table__heading svelte-1rik8ug"),C(n,"aria-hidden","true"),C(s,"class","svelte-1rik8ug"),C(r,"class","cc-table-cell-text svelte-1rik8ug"),C(o,"role","cell"),C(o,"class","svelte-1rik8ug"),C(c,"class","cc-responsive-table__heading svelte-1rik8ug"),C(c,"aria-hidden","true"),C(p,"class","svelte-1rik8ug"),C(h,"class","cc-table-cell-text svelte-1rik8ug"),C(a,"role","cell"),C(a,"class","descriptionCell svelte-1rik8ug"),C(_,"class","cc-responsive-table__heading svelte-1rik8ug"),C(_,"aria-hidden","true"),C(M,"class","svelte-1rik8ug"),C(T,"class","cc-table-cell-text svelte-1rik8ug"),C(k,"role","cell"),C(k,"class","svelte-1rik8ug"),C(e,"class","svelte-1rik8ug")},m(t,g){m(t,e,g),f(e,o),f(o,n),f(o,i),f(o,r),f(r,s),z.m(s,null),f(e,l),f(e,a),f(a,c),f(a,d),j&&j.m(a,null),f(a,u),f(a,h),f(h,p),p.innerHTML=A,f(a,b),R&&R.m(a,null),f(a,x),H&&H.m(a,null),f(e,S),B&&B.m(e,null),f(e,E),f(e,k),f(k,_),f(k,L),f(k,T),f(T,M),f(M,$),f(e,D),q&&q.m(e,null),f(e,I)},p(t,o){P===(P=U(t))&&z?z.p(t,o):(z.d(1),z=P(t),z&&(z.c(),z.m(s,null))),t[2].editMode&&t[6].MODULES[t[9].id].collection!==t[1]?j||(j=Il(),j.c(),j.m(a,u)):j&&(j.d(1),j=null),96&o&&A!==(A=t[6].MODULES[t[9].id].description+"")&&(p.innerHTML=A),t[6].MODULES[t[9].id].fyi?R?R.p(t,o):(R=Al(t),R.c(),R.m(a,x)):R&&(R.d(1),R=null),t[2].editMode&&!t[6].MODULES[t[9].id].published?H||(H=zl(),H.c(),H.m(a,null)):H&&(H.d(1),H=null),t[3]>0?B?B.p(t,o):(B=jl(t),B.c(),B.m(e,E)):B&&(B.d(1),B=null),96&o&&N!==(N=Vs(t[6].MODULES[t[9].id])+"")&&O($,N),t[4]>0?q?q.p(t,o):(q=Rl(t),q.c(),q.m(e,I)):q&&(q.d(1),q=null)},d(t){t&&g(e),z.d(),j&&j.d(),R&&R.d(),H&&H.d(),B&&B.d(),q&&q.d()}}}function Bl(t){let e;return{c(){e=v("th"),e.innerHTML='Weighting',C(e,"role","columnheader"),C(e,"scope","col"),L(e,"background-color","#c02123"),C(e,"class","cc-weighting-col svelte-1rik8ug")},m(t,o){m(t,e,o)},d(t){t&&g(e)}}}function ql(t){let e;return{c(){e=v("th"),e.innerHTML='Learning Outcomes',C(e,"role","columnheader"),C(e,"scope","col"),L(e,"background-color","#c02123"),C(e,"class","cc-learning-outcomes-col svelte-1rik8ug")},m(t,o){m(t,e,o)},d(t){t&&g(e)}}}function Fl(t){let e,o,n=t[6].MODULES[t[9].id].name+"";return{c(){e=new D(!1),o=x(),e.a=o},m(t,i){e.m(n,t,i),m(t,o,i)},p(t,o){96&o&&n!==(n=t[6].MODULES[t[9].id].name+"")&&e.p(n)},d(t){t&&g(o),t&&e.d()}}}function Vl(t){let e,o,n=t[6].MODULES[t[9].id].name+"";return{c(){e=v("a"),C(e,"href",o=Js(t[9].id))},m(t,o){m(t,e,o),e.innerHTML=n},p(t,i){96&i&&n!==(n=t[6].MODULES[t[9].id].name+"")&&(e.innerHTML=n),32&i&&o!==(o=Js(t[9].id))&&C(e,"href",o)},d(t){t&&g(e)}}}function Gl(t){let e;return{c(){e=v("div"),e.textContent="Unpublished",C(e,"class","cc-published svelte-1rik8ug")},m(t,o){m(t,e,o)},d(t){t&&g(e)}}}function Wl(t){let e;return{c(){e=v("div"),e.textContent="No collection allocated",C(e,"class","cc-unallocated svelte-1rik8ug")},m(t,o){m(t,e,o)},d(t){t&&g(e)}}}function Yl(t){let e,o=(""!==t[6].MODULES[t[9].id].fyiText||t[2].editMode)&&Kl(t);return{c(){o&&o.c(),e=x()},m(t,n){o&&o.m(t,n),m(t,e,n)},p(t,n){""!==t[6].MODULES[t[9].id].fyiText||t[2].editMode?o?o.p(t,n):(o=Kl(t),o.c(),o.m(e.parentNode,e)):o&&(o.d(1),o=null)},d(t){o&&o.d(t),t&&g(e)}}}function Kl(t){let e,o;function n(t,e){return t[6].MODULES[t[9].id].fyiText?Xl:Jl}let i=n(t),r=i(t);return{c(){e=v("div"),o=v("span"),r.c(),C(o,"class","cc-fyi-text"),C(e,"class","cc-card-fyi svelte-1rik8ug"),L(e,"background","rgba(0,0,0,0.75)"),L(e,"color","white"),L(e,"font-size","x-small"),L(e,"text-align","center")},m(t,n){m(t,e,n),f(e,o),r.m(o,null)},p(t,e){i===(i=n(t))&&r?r.p(t,e):(r.d(1),r=i(t),r&&(r.c(),r.m(o,null)))},d(t){t&&g(e),r.d()}}}function Jl(e){let o,n;return{c(){o=y("("),n=v("em"),n.textContent="FYI, no FYI text"},m(t,e){m(t,o,e),m(t,n,e)},p:t,d(t){t&&g(o),t&&g(n)}}}function Xl(t){let e,o,n=t[6].MODULES[t[9].id].fyiText+"";return{c(){e=new D(!1),o=x(),e.a=o},m(t,i){e.m(n,t,i),m(t,o,i)},p(t,o){96&o&&n!==(n=t[6].MODULES[t[9].id].fyiText+"")&&e.p(n)},d(t){t&&g(o),t&&e.d()}}}function Ql(t){let e,o,n,i,r=Fs(t[6].MODULES[t[9].id],"weighting",t[2].editMode,t[0])+"";return{c(){e=v("td"),o=v("div"),n=v("p"),i=y(r),L(o,"margin","0"),L(o,"font-size","0.8rem"),C(e,"role","cell"),L(e,"display","table-cell"),L(e,"text-align","left"),L(e,"vertical-align","top"),C(e,"class","svelte-1rik8ug")},m(t,r){m(t,e,r),f(e,o),f(o,n),f(n,i)},p(t,e){101&e&&r!==(r=Fs(t[6].MODULES[t[9].id],"weighting",t[2].editMode,t[0])+"")&&O(i,r)},d(t){t&&g(e)}}}function Zl(t){let e,o,n,i,r=Fs(t[6].MODULES[t[9].id],"learning outcomes",t[2].editMode,t[0])+"";return{c(){e=v("td"),o=v("div"),n=v("p"),i=y(r),L(o,"margin","0"),L(o,"font-size","0.8rem"),C(e,"role","cell"),L(e,"display","table-cell"),L(e,"text-align","left"),L(e,"vertical-align","top"),C(e,"class","svelte-1rik8ug")},m(t,r){m(t,e,r),f(e,o),f(o,n),f(n,i)},p(t,e){101&e&&r!==(r=Fs(t[6].MODULES[t[9].id],"learning outcomes",t[2].editMode,t[0])+"")&&O(i,r)},d(t){t&&g(e)}}}function ta(t){let e,o,n,i,r,s,l,a,c,d,u,h,p,b,y,x,S,E,k=t[6].MODULES[t[9].id].description+"",O=Vs(t[6].MODULES[t[9].id])+"";function _(t,e){return t[6].MODULES[t[9].id].fyi?Fl:Vl}let T=_(t),M=T(t),$=t[2].editMode&&!t[0]&&!t[6].MODULES[t[9].id].published&&Gl(),D=t[2].editMode&&!t[0]&&t[6].MODULES[t[9].id].collection!==t[1]&&Wl(),I=t[6].MODULES[t[9].id].fyi&&Yl(t),A=t[3]>0&&Ql(t),N=t[4]&&Zl(t);return{c(){e=v("tr"),o=v("td"),n=v("div"),i=v("p"),M.c(),r=w(),s=v("td"),$&&$.c(),l=w(),D&&D.c(),a=w(),c=v("div"),d=v("p"),u=w(),I&&I.c(),h=w(),A&&A.c(),p=w(),b=v("td"),y=v("div"),x=v("p"),S=w(),N&&N.c(),E=w(),L(n,"margin","0"),L(n,"font-size","0.8rem"),C(o,"role","cell"),L(o,"display","table-cell"),L(o,"text-align","left"),L(o,"vertical-align","top"),C(o,"class","svelte-1rik8ug"),L(c,"margin","0"),L(c,"font-size","0.8rem"),C(s,"role","cell"),L(s,"display","table-cell"),L(s,"text-align","left"),L(s,"vertical-align","top"),C(s,"class","svelte-1rik8ug"),L(y,"margin","0"),L(y,"font-size","0.8rem"),C(b,"role","cell"),L(b,"display","table-cell"),L(b,"text-align","left"),L(b,"vertical-align","top"),C(b,"class","svelte-1rik8ug"),C(e,"class","svelte-1rik8ug")},m(t,g){m(t,e,g),f(e,o),f(o,n),f(n,i),M.m(i,null),f(e,r),f(e,s),$&&$.m(s,null),f(s,l),D&&D.m(s,null),f(s,a),f(s,c),f(c,d),d.innerHTML=k,f(s,u),I&&I.m(s,null),f(e,h),A&&A.m(e,null),f(e,p),f(e,b),f(b,y),f(y,x),x.innerHTML=O,f(e,S),N&&N.m(e,null),f(e,E)},p(t,o){T===(T=_(t))&&M?M.p(t,o):(M.d(1),M=T(t),M&&(M.c(),M.m(i,null))),!t[2].editMode||t[0]||t[6].MODULES[t[9].id].published?$&&($.d(1),$=null):$||($=Gl(),$.c(),$.m(s,l)),t[2].editMode&&!t[0]&&t[6].MODULES[t[9].id].collection!==t[1]?D||(D=Wl(),D.c(),D.m(s,a)):D&&(D.d(1),D=null),96&o&&k!==(k=t[6].MODULES[t[9].id].description+"")&&(d.innerHTML=k),t[6].MODULES[t[9].id].fyi?I?I.p(t,o):(I=Yl(t),I.c(),I.m(s,null)):I&&(I.d(1),I=null),t[3]>0?A?A.p(t,o):(A=Ql(t),A.c(),A.m(e,p)):A&&(A.d(1),A=null),96&o&&O!==(O=Vs(t[6].MODULES[t[9].id])+"")&&(x.innerHTML=O),t[4]?N?N.p(t,o):(N=Zl(t),N.c(),N.m(e,E)):N&&(N.d(1),N=null)},d(t){t&&g(e),M.d(),$&&$.d(),D&&D.d(),I&&I.d(),A&&A.d(),N&&N.d()}}}function ea(e){let o;function n(t,e){return t[0]?Sl:xl}let i=n(e),r=i(e);return{c(){r.c(),o=x()},m(t,e){r.m(t,e),m(t,o,e)},p(t,[e]){i===(i=n(t))&&r?r.p(t,e):(r.d(1),r=i(t),r&&(r.c(),r.m(o.parentNode,o)))},i:t,o:t,d(t){r.d(t),t&&g(o)}}}function oa(t,e,o){let n,i;u(t,sc,(t=>o(6,n=t))),u(t,ac,(t=>o(2,i=t)));let{collection:r}=e,{claytons:s}=e;s||(s=!1);let l=0,a=0,c=d(r,s);function d(t,e){let i=qs(t,e,n.COLLECTIONS[t].unallocated);return i.forEach((t=>{n.MODULES[t.id].hasOwnProperty("metadata")&&n.MODULES[t.id].metadata.hasOwnProperty("weighting")&&""!==n.MODULES[t.id].metadata.weighting&&o(3,l++,l),n.MODULES[t.id].hasOwnProperty("metadata")&&n.MODULES[t.id].metadata.hasOwnProperty("learning outcomes")&&""!==n.MODULES[t.id].metadata["learning outcomes"]&&o(4,a++,a)})),i}const h={TITLE:{tooltip:"

Will automatically use the names of modules allocated to this collection.

",url:"https://djplaner.github.io/canvas-collections/reference/representations/assessment-table/#title"},DESCRIPTION:{tooltip:"

The Canvas Collections' description you added for the relevant module.

",url:"https://djplaner.github.io/canvas-collections/reference/representations/assessment-table/#description"},WEIGHTING:{tooltip:"

Specified by the module's metadata variable weighting.

\n

If no module has a weighting, this column will not be displayed.

\n ",url:"https://djplaner.github.io/canvas-collections/reference/representations/assessment-table/#weighting-and-learning-outcomes"},DUE_DATE:{tooltip:"

Specified using the module's Canvas Collection date (range).

",url:"https://djplaner.github.io/canvas-collections/reference/representations/assessment-table/#due-date"},LEARNING_OUTCOMES:{tooltip:"

Specified by the module's metadata variable learning outcomes.

",url:"https://djplaner.github.io/canvas-collections/reference/representations/assessment-table/#weighting-and-learning-outcomes"}};return t.$$set=t=>{"collection"in t&&o(1,r=t.collection),"claytons"in t&&o(0,s=t.claytons)},t.$$.update=()=>{if(7&t.$$.dirty&&r===i.currentCollection){i.currentCollectionChanged&&p(ac,i.currentCollectionChanged=!1,i),o(5,c=d(r,s))}},[s,r,i,l,a,c,n,h]}function na(t,e,o){const n=t.slice();return n[10]=e[o],n}function ia(t,e,o){const n=t.slice();return n[10]=e[o],n}function ra(t){let e,o,n,i=t[2].editMode&&0===t[3].length&&la(),r=t[3],s=[];for(let e=0;eot(s[t],1,1,(()=>{s[t]=null}));return{c(){e=v("div"),i&&i.c(),o=w();for(let t=0;tot(i[t],1,1,(()=>{i[t]=null}));return{c(){e=v("div");for(let t=0;tNo modules have been added to this collection.

",C(e,"class","cc-no-modules")},m(t,o){m(t,e,o)},d(t){t&&g(e)}}}function aa(t){let e,o,n;return{c(){e=v("a"),o=y(" "),C(e,"class","cc-card-link svelte-d3z0jk"),C(e,"href",n=Js(t[10].id)),C(e,"style","")},m(t,n){m(t,e,n),f(e,o)},p(t,o){8&o&&n!==(n=Js(t[10].id))&&C(e,"href",n)},d(t){t&&g(e)}}}function ca(t){let e,o=(""!==t[4].MODULES[t[10].id].fyiText||t[2].editMode)&&da(t);return{c(){o&&o.c(),e=x()},m(t,n){o&&o.m(t,n),m(t,e,n)},p(t,n){""!==t[4].MODULES[t[10].id].fyiText||t[2].editMode?o?o.p(t,n):(o=da(t),o.c(),o.m(e.parentNode,e)):o&&(o.d(1),o=null)},d(t){o&&o.d(t),t&&g(e)}}}function da(t){let e,o;function n(t,e){return t[4].MODULES[t[10].id].fyiText?ha:ua}let i=n(t),r=i(t);return{c(){e=v("div"),o=v("span"),r.c(),C(o,"class","cc-fyi-text"),C(e,"class","cc-card-fyi svelte-d3z0jk")},m(t,n){m(t,e,n),f(e,o),r.m(o,null)},p(t,e){i===(i=n(t))&&r?r.p(t,e):(r.d(1),r=i(t),r&&(r.c(),r.m(o,null)))},d(t){t&&g(e),r.d()}}}function ua(e){let o,n,i,r,s,l,a,c,d,u=e[7].noFyiText.tooltip+"";return{c(){o=y("("),n=v("em"),n.textContent="FYI card, no FYI text",i=w(),r=v("sl-tooltip"),s=v("div"),l=w(),a=v("a"),c=y("❔"),d=y("\n )"),C(s,"slot","content"),L(a,"text-decoration","none"),C(a,"href",e[7].noFyiText.href),C(a,"target","_blank"),C(a,"rel","noreferrer"),k(r,"hoist",""),k(r,"class","svelte-d3z0jk")},m(t,e){m(t,o,e),m(t,n,e),m(t,i,e),m(t,r,e),f(r,s),s.innerHTML=u,f(r,l),f(r,a),f(a,c),m(t,d,e)},p:t,d(t){t&&g(o),t&&g(n),t&&g(i),t&&g(r),t&&g(d)}}}function ha(t){let e,o,n=t[4].MODULES[t[10].id].fyiText+"";return{c(){e=new D(!1),o=x(),e.a=o},m(t,i){e.m(n,t,i),m(t,o,i)},p(t,o){24&o&&n!==(n=t[4].MODULES[t[10].id].fyiText+"")&&e.p(n)},d(t){t&&g(o),t&&e.d()}}}function pa(t){let e,o,n=!t[4].MODULES[t[10].id].published&&fa(),i=t[2].editMode&&t[4].MODULES[t[10].id].collection!==t[0]&&ma();return{c(){e=v("div"),n&&n.c(),o=w(),i&&i.c(),C(e,"class","cc-card-published svelte-d3z0jk")},m(t,r){m(t,e,r),n&&n.m(e,null),f(e,o),i&&i.m(e,null)},p(t,r){t[4].MODULES[t[10].id].published?n&&(n.d(1),n=null):n||(n=fa(),n.c(),n.m(e,o)),t[2].editMode&&t[4].MODULES[t[10].id].collection!==t[0]?i||(i=ma(),i.c(),i.m(e,null)):i&&(i.d(1),i=null)},d(t){t&&g(e),n&&n.d(),i&&i.d()}}}function fa(t){let e;return{c(){e=y("Unpublished.")},m(t,o){m(t,e,o)},d(t){t&&g(e)}}}function ma(t){let e;return{c(){e=y("No collection allocated.")},m(t,o){m(t,e,o)},d(t){t&&g(e)}}}function ga(t){let e,o,n,i,r,s,l,a=t[4].MODULES[t[10].id].engageText+"";return{c(){e=v("div"),o=v("div"),n=v("a"),i=y(" "),s=w(),l=y(a),C(n,"href",r=Js(t[10].id)),C(n,"class","gu-engage svelte-d3z0jk"),C(o,"class","cc-card-engage-button svelte-d3z0jk"),C(e,"class","cc-card-engage svelte-d3z0jk")},m(t,r){m(t,e,r),f(e,o),f(o,n),f(n,i),f(o,s),f(o,l)},p(t,e){8&e&&r!==(r=Js(t[10].id))&&C(n,"href",r),24&e&&a!==(a=t[4].MODULES[t[10].id].engageText+"")&&O(l,a)},d(t){t&&g(e)}}}function ba(t){let e,o,n,i,r,s,l,a,c=Ma(t[10])+"",d=Ta(t[10])+"";return{c(){e=v("div"),o=v("sl-tooltip"),n=v("div"),i=w(),r=v("sl-progress-ring"),s=y(d),l=y("%"),C(n,"slot","content"),k(r,"value",a=Ta(t[10])),k(r,"class","progress-ring-values svelte-d3z0jk"),k(o,"class","svelte-d3z0jk"),C(e,"class","cc-progress svelte-d3z0jk")},m(t,a){m(t,e,a),f(e,o),f(o,n),n.innerHTML=c,f(o,i),f(o,r),f(r,s),f(r,l)},p(t,e){8&e&&c!==(c=Ma(t[10])+"")&&(n.innerHTML=c),8&e&&d!==(d=Ta(t[10])+"")&&O(s,d),8&e&&a!==(a=Ta(t[10]))&&k(r,"value",a)},d(t){t&&g(e)}}}function va(t){let e,o,i,r,s,l,a,c,d,u,p,b,x,E,k,_,L,T,M,$,A,N,U,P,z,j,R,H,B,q,F,V,G,W,Y,K,J,X=Xs(t[10].id,t[0]),Q=t[4].MODULES[t[10].id].label+"",nt=t[4].MODULES[t[10].id].actualNum+"",lt=Qs(t[4].MODULES[t[10].id])+"",at=t[4].MODULES[t[10].id].description+"",ct=t[10].hasOwnProperty("completion_summary")&&t[10].completion_summary.completion_count>0,dt=!t[4].MODULES[t[10].id].fyi&&aa(t);var ut=t[5][t[4].MODULES[t[10].id].banner];function ht(t){return{props:{moduleId:t[10].id}}}ut&&(l=I(ut,ht(t))),c=new ne({props:{date:t[4].MODULES[t[10].id].date,dateShow:t[4].MODULES[t[10].id].dateShow}});let pt=t[4].MODULES[t[10].id].fyi&&ca(t),ft=X&&pa(t),mt=t[4].MODULES[t[10].id].engage&&!t[4].MODULES[t[10].id].fyi&&ga(t),gt=ct&&ba(t);return{c(){e=v("div"),o=v("div"),i=v("div"),r=v("div"),dt&&dt.c(),s=w(),l&&it(l.$$.fragment),a=w(),it(c.$$.fragment),d=w(),pt&&pt.c(),u=w(),ft&&ft.c(),x=w(),E=v("div"),k=v("div"),_=v("div"),L=v("span"),T=new D(!1),M=w(),$=y(nt),A=w(),N=v("h3"),P=w(),z=v("div"),R=w(),H=v("div"),mt&&mt.c(),B=w(),gt&>.c(),V=w(),C(r,"class","cc-card-banner-container svelte-d3z0jk"),C(r,"data-moduleid",p=t[10].id),C(r,"style",b=t[6](t[10].id)),T.a=M,C(L,"class","cc-card-label svelte-d3z0jk"),C(N,"class","cc-card-title svelte-d3z0jk"),C(N,"data-moduleid",U=t[10].id),C(_,"class","cc-card-label svelte-d3z0jk"),C(z,"class","cc-card-description svelte-d3z0jk"),C(k,"class",j=h(t[4].MODULES[t[10].id].fyi?"cc-card-content":"cc-unclickable-card-content")+" svelte-d3z0jk"),C(E,"class","cc-card-content-height svelte-d3z0jk"),C(H,"class","cc-card-footer svelte-d3z0jk"),C(i,"class","cc-card-flex svelte-d3z0jk"),C(o,"id",q="cc_module_"+t[10].id),C(o,"class",F=h(t[4].MODULES[t[10].id].fyi?"cc-fyi-card":"cc-card")+" svelte-d3z0jk"),C(e,"id",G="cc_module_"+t[10].id),C(e,"class",W=h(t[4].MODULES[t[10].id].fyi?"cc-unclickable-card":"cc-clickable-card")+" svelte-d3z0jk")},m(t,n){m(t,e,n),f(e,o),f(o,i),f(i,r),dt&&dt.m(r,null),f(r,s),l&&rt(l,r,null),f(r,a),rt(c,r,null),f(r,d),pt&&pt.m(r,null),f(r,u),ft&&ft.m(r,null),f(i,x),f(i,E),f(E,k),f(k,_),f(_,L),T.m(Q,L),f(L,M),f(L,$),f(_,A),f(_,N),N.innerHTML=lt,f(k,P),f(k,z),z.innerHTML=at,f(i,R),f(i,H),mt&&mt.m(H,null),f(H,B),gt&>.m(H,null),f(e,V),Y=!0,K||(J=[S(e,"click",La,{once:!0}),S(e,"keydown",La,{once:!0})],K=!0)},p(t,n){t[4].MODULES[t[10].id].fyi?dt&&(dt.d(1),dt=null):dt?dt.p(t,n):(dt=aa(t),dt.c(),dt.m(r,s));const i={};if(8&n&&(i.moduleId=t[10].id),24&n&&ut!==(ut=t[5][t[4].MODULES[t[10].id].banner])){if(l){Z();const t=l;ot(t.$$.fragment,1,0,(()=>{st(t,1)})),tt()}ut?(l=I(ut,ht(t)),it(l.$$.fragment),et(l.$$.fragment,1),rt(l,r,a)):l=null}else ut&&l.$set(i);const d={};24&n&&(d.date=t[4].MODULES[t[10].id].date),24&n&&(d.dateShow=t[4].MODULES[t[10].id].dateShow),c.$set(d),t[4].MODULES[t[10].id].fyi?pt?pt.p(t,n):(pt=ca(t),pt.c(),pt.m(r,u)):pt&&(pt.d(1),pt=null),9&n&&(X=Xs(t[10].id,t[0])),X?ft?ft.p(t,n):(ft=pa(t),ft.c(),ft.m(r,null)):ft&&(ft.d(1),ft=null),(!Y||8&n&&p!==(p=t[10].id))&&C(r,"data-moduleid",p),(!Y||8&n&&b!==(b=t[6](t[10].id)))&&C(r,"style",b),(!Y||24&n)&&Q!==(Q=t[4].MODULES[t[10].id].label+"")&&T.p(Q),(!Y||24&n)&&nt!==(nt=t[4].MODULES[t[10].id].actualNum+"")&&O($,nt),(!Y||24&n)&<!==(lt=Qs(t[4].MODULES[t[10].id])+"")&&(N.innerHTML=lt),(!Y||8&n&&U!==(U=t[10].id))&&C(N,"data-moduleid",U),(!Y||24&n)&&at!==(at=t[4].MODULES[t[10].id].description+"")&&(z.innerHTML=at),(!Y||24&n&&j!==(j=h(t[4].MODULES[t[10].id].fyi?"cc-card-content":"cc-unclickable-card-content")+" svelte-d3z0jk"))&&C(k,"class",j),t[4].MODULES[t[10].id].engage&&!t[4].MODULES[t[10].id].fyi?mt?mt.p(t,n):(mt=ga(t),mt.c(),mt.m(H,B)):mt&&(mt.d(1),mt=null),8&n&&(ct=t[10].hasOwnProperty("completion_summary")&&t[10].completion_summary.completion_count>0),ct?gt?gt.p(t,n):(gt=ba(t),gt.c(),gt.m(H,null)):gt&&(gt.d(1),gt=null),(!Y||8&n&&q!==(q="cc_module_"+t[10].id))&&C(o,"id",q),(!Y||24&n&&F!==(F=h(t[4].MODULES[t[10].id].fyi?"cc-fyi-card":"cc-card")+" svelte-d3z0jk"))&&C(o,"class",F),(!Y||8&n&&G!==(G="cc_module_"+t[10].id))&&C(e,"id",G),(!Y||24&n&&W!==(W=h(t[4].MODULES[t[10].id].fyi?"cc-unclickable-card":"cc-clickable-card")+" svelte-d3z0jk"))&&C(e,"class",W)},i(t){Y||(l&&et(l.$$.fragment,t),et(c.$$.fragment,t),Y=!0)},o(t){l&&ot(l.$$.fragment,t),ot(c.$$.fragment,t),Y=!1},d(t){t&&g(e),dt&&dt.d(),l&&st(l),st(c),pt&&pt.d(),ft&&ft.d(),mt&&mt.d(),gt&>.d(),K=!1,n(J)}}}function ya(t){let e,o,n;return{c(){e=v("a"),o=y(" "),C(e,"class","claytons-card-link"),C(e,"href",n=Js(t[10].id)),C(e,"style","position:absolute;:width:100%;height:100%;top:0;left:0;z-index:1;text-decoration:none;")},m(t,n){m(t,e,n),f(e,o)},p(t,o){8&o&&n!==(n=Js(t[10].id))&&C(e,"href",n)},d(t){t&&g(e)}}}function wa(t){let e,o=t[4].MODULES[t[10].id].fyiText&&xa(t);return{c(){o&&o.c(),e=x()},m(t,n){o&&o.m(t,n),m(t,e,n)},p(t,n){t[4].MODULES[t[10].id].fyiText?o?o.p(t,n):(o=xa(t),o.c(),o.m(e.parentNode,e)):o&&(o.d(1),o=null)},d(t){o&&o.d(t),t&&g(e)}}}function xa(t){let e,o,n=t[4].MODULES[t[10].id].fyiText+"";return{c(){e=v("div"),o=v("span"),C(o,"class","claytons-fyi-text"),C(e,"class","claytons-card-fyi"),L(e,"position","absolute"),L(e,"background","rgba(0,0,0,0.75)"),L(e,"color","white"),L(e,"width","100%"),L(e,"padding","0.25rem"),L(e,"font-size","x-small"),L(e,"text-align","center")},m(t,i){m(t,e,i),f(e,o),o.innerHTML=n},p(t,e){24&e&&n!==(n=t[4].MODULES[t[10].id].fyiText+"")&&(o.innerHTML=n)},d(t){t&&g(e)}}}function Sa(t){let e,o,n;return{c(){e=v("a"),o=y(" "),C(e,"class","claytons-card-link"),C(e,"href",n=Js(t[10].id)),C(e,"style","position:absolute;:width:100%;height:100%;top:0;left:0;z-index:1;text-decoration:none;")},m(t,n){m(t,e,n),f(e,o)},p(t,o){8&o&&n!==(n=Js(t[10].id))&&C(e,"href",n)},d(t){t&&g(e)}}}function Ea(t){let e,o,n=Qs(t[4].MODULES[t[10].id])+"";return{c(){e=new D(!1),o=x(),e.a=o},m(t,i){e.m(n,t,i),m(t,o,i)},p(t,o){24&o&&n!==(n=Qs(t[4].MODULES[t[10].id])+"")&&e.p(n)},d(t){t&&g(o),t&&e.d()}}}function Ca(t){let e,o,n=Qs(t[4].MODULES[t[10].id])+"";return{c(){e=v("a"),C(e,"class","claytons-card-link"),C(e,"href",o=Js(t[10].id)),L(e,"text-decoration","none")},m(t,o){m(t,e,o),e.innerHTML=n},p(t,i){24&i&&n!==(n=Qs(t[4].MODULES[t[10].id])+"")&&(e.innerHTML=n),8&i&&o!==(o=Js(t[10].id))&&C(e,"href",o)},d(t){t&&g(e)}}}function ka(t){let e,o,n,i,r,s=t[4].MODULES[t[10].id].engageText+"";return{c(){e=v("div"),o=v("div"),n=v("a"),i=y(s),C(n,"href",r=Js(t[10].id)),C(n,"class","claytons-gu-engage"),L(n,"text-decoration","none"),C(o,"class","claytons-card-engage-button"),L(o,"float","right"),L(o,"position","relative"),L(o,"color","rgba(30,58,138,1)"),L(o,"border-radius","0.25rem"),L(o,"padding","0.5rem 1rem 0.5rem 1rem"),L(o,"border","1px solid rgba(30,58,138,1)"),C(e,"class","claytons-card-engage"),L(e,"padding-right","1rem")},m(t,r){m(t,e,r),f(e,o),f(o,n),f(n,i)},p(t,e){24&e&&s!==(s=t[4].MODULES[t[10].id].engageText+"")&&O(i,s),8&e&&r!==(r=Js(t[10].id))&&C(n,"href",r)},d(t){t&&g(e)}}}function Oa(t){let e,o,n,i,r,s,l,a,c,d,u,h,p,b,x,S,E,k,_,T,M,$,A,N,U,P,z,j,R,H,B,q,F=t[4].MODULES[t[10].id].label+"",V=t[4].MODULES[t[10].id].actualNum+"",G=t[4].MODULES[t[10].id].description+"",W=!t[4].MODULES[t[10].id].fyi&&ya(t);var Y=t[5][t[4].MODULES[t[10].id].banner];function K(t){return{props:{moduleId:t[10].id,claytons:t[1]}}}Y&&(s=I(Y,K(t))),a=new ne({props:{date:t[4].MODULES[t[10].id].date,dateShow:t[4].MODULES[t[10].id].dateShow}});let J=t[4].MODULES[t[10].id].fyi&&""!==t[4].MODULES[t[10].id].fyiText&&wa(t),X=!t[4].MODULES[t[10].id].fyi&&Sa(t);function Q(t,e){return t[4].MODULES[t[10].id].fyi?Ea:Ca}let nt=Q(t),lt=nt(t),at=t[4].MODULES[t[10].id].engage&&!t[4].MODULES[t[10].id].fyi&&ka(t);return{c(){e=v("div"),o=v("div"),n=v("div"),i=v("div"),W&&W.c(),r=w(),s&&it(s.$$.fragment),l=w(),it(a.$$.fragment),c=w(),J&&J.c(),h=w(),p=v("div"),X&&X.c(),b=w(),x=v("div"),S=v("div"),E=v("span"),k=new D(!1),_=w(),T=y(V),M=w(),$=v("h3"),lt.c(),N=w(),U=v("div"),z=w(),j=v("div"),at&&at.c(),H=w(),C(i,"class","claytons-card-banner-container"),C(i,"data-moduleid",d=t[10].id),C(i,"style",u="position:relative; "+t[6](t[10].id)),k.a=_,C(E,"class","claytons-card-label"),L(E,"font-size","0.9rem"),C($,"class","claytons-card-title"),C($,"data-moduleid",A=t[10].id),L($,"font-size","1rem"),L($,"font-weight","strong"),C(S,"class","claytons-card-label"),L(S,"font-size","0.9rem"),C(U,"class","claytons-card-description"),L(U,"font-size","0.75rem"),C(x,"class",P=t[4].MODULES[t[10].id].fyi?"claytons-card-content":"claytons-unclickable-card-content"),L(x,"padding","0.5rem"),L(x,"flex","1 1 0%"),L(x,"display","flex"),L(x,"flex-direction","column"),C(p,"class","claytons-card-content-height"),L(p,"height","12rem"),L(p,"overflow","auto"),L(p,"position","relative"),C(j,"class","claytons-card-footer"),L(j,"height","4rem"),L(j,"position","relative"),C(n,"class","claytons-card-flex"),L(n,"overflow","hidden"),L(n,"flex-direction","column"),L(n,"flex","1 1 0%"),L(n,"display","flex"),L(n,"position","relative"),L(n,"border-style","outset"),L(n,"border-radius","1em"),C(o,"id",R="cc_module_"+t[10].id),C(o,"class","claytons-card svelte-d3z0jk"),L(o,"background-color","#fff"),L(o,"border-radius","1em"),C(e,"id",B="cc_module_"+t[10].id),L(e,"width","100%"),C(e,"class","svelte-d3z0jk")},m(t,d){m(t,e,d),f(e,o),f(o,n),f(n,i),W&&W.m(i,null),f(i,r),s&&rt(s,i,null),f(i,l),rt(a,i,null),f(i,c),J&&J.m(i,null),f(n,h),f(n,p),X&&X.m(p,null),f(p,b),f(p,x),f(x,S),f(S,E),k.m(F,E),f(E,_),f(E,T),f(S,M),f(S,$),lt.m($,null),f(x,N),f(x,U),U.innerHTML=G,f(n,z),f(n,j),at&&at.m(j,null),f(e,H),q=!0},p(t,n){t[4].MODULES[t[10].id].fyi?W&&(W.d(1),W=null):W?W.p(t,n):(W=ya(t),W.c(),W.m(i,r));const c={};if(8&n&&(c.moduleId=t[10].id),2&n&&(c.claytons=t[1]),24&n&&Y!==(Y=t[5][t[4].MODULES[t[10].id].banner])){if(s){Z();const t=s;ot(t.$$.fragment,1,0,(()=>{st(t,1)})),tt()}Y?(s=I(Y,K(t)),it(s.$$.fragment),et(s.$$.fragment,1),rt(s,i,l)):s=null}else Y&&s.$set(c);const h={};24&n&&(h.date=t[4].MODULES[t[10].id].date),24&n&&(h.dateShow=t[4].MODULES[t[10].id].dateShow),a.$set(h),t[4].MODULES[t[10].id].fyi&&""!==t[4].MODULES[t[10].id].fyiText?J?J.p(t,n):(J=wa(t),J.c(),J.m(i,null)):J&&(J.d(1),J=null),(!q||8&n&&d!==(d=t[10].id))&&C(i,"data-moduleid",d),(!q||8&n&&u!==(u="position:relative; "+t[6](t[10].id)))&&C(i,"style",u),t[4].MODULES[t[10].id].fyi?X&&(X.d(1),X=null):X?X.p(t,n):(X=Sa(t),X.c(),X.m(p,b)),(!q||24&n)&&F!==(F=t[4].MODULES[t[10].id].label+"")&&k.p(F),(!q||24&n)&&V!==(V=t[4].MODULES[t[10].id].actualNum+"")&&O(T,V),nt===(nt=Q(t))&<?lt.p(t,n):(lt.d(1),lt=nt(t),lt&&(lt.c(),lt.m($,null))),(!q||8&n&&A!==(A=t[10].id))&&C($,"data-moduleid",A),(!q||24&n)&&G!==(G=t[4].MODULES[t[10].id].description+"")&&(U.innerHTML=G),(!q||24&n&&P!==(P=t[4].MODULES[t[10].id].fyi?"claytons-card-content":"claytons-unclickable-card-content"))&&C(x,"class",P),t[4].MODULES[t[10].id].engage&&!t[4].MODULES[t[10].id].fyi?at?at.p(t,n):(at=ka(t),at.c(),at.m(j,null)):at&&(at.d(1),at=null),(!q||8&n&&R!==(R="cc_module_"+t[10].id))&&C(o,"id",R),(!q||8&n&&B!==(B="cc_module_"+t[10].id))&&C(e,"id",B)},i(t){q||(s&&et(s.$$.fragment,t),et(a.$$.fragment,t),q=!0)},o(t){s&&ot(s.$$.fragment,t),ot(a.$$.fragment,t),q=!1},d(t){t&&g(e),W&&W.d(),s&&st(s),st(a),J&&J.d(),X&&X.d(),lt.d(),at&&at.d()}}}function _a(t){let e,o,n,i;const r=[sa,ra],s=[];function l(t,e){return t[1]?0:1}return e=l(t),o=s[e]=r[e](t),{c(){o.c(),n=x()},m(t,o){s[e].m(t,o),m(t,n,o),i=!0},p(t,[i]){let a=e;e=l(t),e===a?s[e].p(t,i):(Z(),ot(s[a],1,1,(()=>{s[a]=null})),tt(),o=s[e],o?o.p(t,i):(o=s[e]=r[e](t),o.c()),et(o,1),o.m(n.parentNode,n))},i(t){i||(et(o),i=!0)},o(t){ot(o),i=!1},d(t){s[e].d(t),t&&g(n)}}}function La(t){let e=t.target.closest("div.cc-clickable-card");if(e){let t=e.querySelector("a.cc-card-link");t&&t.click()}}function Ta(t){if(t.completion_summary){const e=t.completion_summary.completed_count,o=t.completion_summary.completion_count;if(o>0)return Math.round(e/o*100)}return 0}function Ma(t){if(t.completion_summary){const e=t.completion_summary.completed_count,o=t.completion_summary.completion_count;if(o>0)return`

Completed ${e} of ${o}

`}return""}function $a(t,e,o){let n,i;u(t,sc,(t=>o(4,n=t))),u(t,ac,(t=>o(2,i=t)));let{collection:r}=e,{claytons:s=!1}=e;const l={image:vl,colour:ul,iframe:sl};let a=c();function c(){return qs(r,s,n.COLLECTIONS[r].unallocated)}const d={noFyiText:{tooltip:"

Module set as an FYI module, but no explanatory FYI text has been provided.

\n

This reminder only visible to staff.

",href:"https://djplaner.github.io/canvas-collections/reference/conceptual-model/objects/general/#fyi"}};return t.$$set=t=>{"collection"in t&&o(0,r=t.collection),"claytons"in t&&o(1,s=t.claytons)},t.$$.update=()=>{if(5&t.$$.dirty&&r===i.currentCollection){i.currentCollectionChanged&&p(ac,i.currentCollectionChanged=!1,i),o(3,a=c())}},[r,s,i,a,n,l,function(t){const e=n.MODULES[t];return e.imageBackgroundColour&&""!==e.bannerColour?`background: ${e.bannerColour};`:""},d]}function Da(t){let e;return{c(){e=v("div"),e.innerHTML='

Current representation: CollectionsOnly

',C(e,"class","cc-collections-online")},m(t,o){m(t,e,o)},d(t){t&&g(e)}}}function Ia(t){let e;return{c(){e=v("div"),e.innerHTML="

No modules have been added to this collection.

",C(e,"class","cc-no-modules")},m(t,o){m(t,e,o)},d(t){t&&g(e)}}}function Aa(e){let o;function n(t,e){return t[0].editMode&&0===t[1].length?Ia:t[0].editMode?Da:void 0}let i=n(e),r=i&&i(e);return{c(){r&&r.c(),o=x()},m(t,e){r&&r.m(t,e),m(t,o,e)},p(t,[e]){i!==(i=n(t))&&(r&&r.d(1),r=i&&i(t),r&&(r.c(),r.m(o.parentNode,o)))},i:t,o:t,d(t){r&&r.d(t),t&&g(o)}}}function Na(t,e,o){let n,i;u(t,sc,(t=>o(4,n=t))),u(t,ac,(t=>o(0,i=t)));let{collection:r}=e,{claytons:s=!1}=e;const l=qs(r,s,n.COLLECTIONS[r].unallocated);return t.$$set=t=>{"collection"in t&&o(2,r=t.collection),"claytons"in t&&o(3,s=t.claytons)},[i,l,r,s]}function Ua(t,e,o){const n=t.slice();return n[7]=e[o],n}function Pa(t){let e;return{c(){e=v("div"),e.innerHTML="

No modules have been added to this collection.

",C(e,"class","cc-no-modules")},m(t,o){m(t,e,o)},d(t){t&&g(e)}}}function za(t){let e,o,n,i,r,s,l,a,c,d,u,h,p,b,x,S,E,k,_,T,M,$,A=t[4].MODULES[t[7].id].label+"",N=t[4].MODULES[t[7].id].actualNum+"",U=t[4].MODULES[t[7].id].description+"";n=new ne({props:{date:t[4].MODULES[t[7].id].date,dateShow:t[4].MODULES[t[7].id].dateShow,flow:"normal",claytons:t[1]}});var P=t[5][t[4].MODULES[t[7].id].banner];function z(t){return{props:{moduleId:t[7].id,claytons:t[1]}}}function j(t,e){return t[4].MODULES[t[7].id].fyi?Ra:Ha}P&&(s=I(P,z(t)));let R=j(t),H=R(t),B=t[4].MODULES[t[7].id].fyi&&Ba(t),q=t[4].MODULES[t[7].id].engage&&!t[4].MODULES[t[7].id].fyi&&Ga(t);return{c(){e=v("div"),o=v("div"),it(n.$$.fragment),i=w(),r=v("div"),s&&it(s.$$.fragment),l=w(),a=v("div"),c=v("div"),d=v("span"),u=y(A),h=w(),p=y(N),b=w(),x=v("h3"),H.c(),S=w(),E=v("div"),B&&B.c(),k=w(),_=new D(!1),T=w(),q&&q.c(),M=w(),C(o,"class","horizontal-card-date"),L(o,"float","left"),L(o,"padding-right","1rem"),L(o,"display","block"),C(r,"class","horizontal-card-image"),L(r,"float","right"),L(r,"padding-left","1rem"),L(r,"text-align","right"),L(r,"width","30%"),L(r,"height","15rem"),L(r,"max-height","15rem"),L(r,"overflow","scroll"),C(d,"class","cc-card-label svelte-1bswwix"),C(x,"class","cc-card-title svelte-1bswwix"),C(x,"data-moduleid","1"),C(c,"class","cc-card-label svelte-1bswwix width:100%"),_.a=T,C(E,"class","horizontal-card-description svelte-167kt0h"),L(E,"overflow","hidden"),C(a,"class","content"),C(e,"class","horizontal-card-row"),L(e,"width","90%"),L(e,"border","1px solid #ccc"),L(e,"box-shadow","rgba(0, 0, 0, 0.35) 0px 0.4rem 1rem"),L(e,"border-radius","1rem"),L(e,"padding","1rem"),L(e,"margin","1rem"),L(e,"overflow","hidden")},m(t,g){m(t,e,g),f(e,o),rt(n,o,null),f(e,i),f(e,r),s&&rt(s,r,null),f(e,l),f(e,a),f(a,c),f(c,d),f(d,u),f(d,h),f(d,p),f(c,b),f(c,x),H.m(x,null),f(a,S),f(a,E),B&&B.m(E,null),f(E,k),_.m(U,E),f(E,T),q&&q.m(E,null),f(e,M),$=!0},p(t,e){const o={};24&e&&(o.date=t[4].MODULES[t[7].id].date),24&e&&(o.dateShow=t[4].MODULES[t[7].id].dateShow),2&e&&(o.claytons=t[1]),n.$set(o);const i={};if(8&e&&(i.moduleId=t[7].id),2&e&&(i.claytons=t[1]),24&e&&P!==(P=t[5][t[4].MODULES[t[7].id].banner])){if(s){Z();const t=s;ot(t.$$.fragment,1,0,(()=>{st(t,1)})),tt()}P?(s=I(P,z(t)),it(s.$$.fragment),et(s.$$.fragment,1),rt(s,r,null)):s=null}else P&&s.$set(i);(!$||24&e)&&A!==(A=t[4].MODULES[t[7].id].label+"")&&O(u,A),(!$||24&e)&&N!==(N=t[4].MODULES[t[7].id].actualNum+"")&&O(p,N),R===(R=j(t))&&H?H.p(t,e):(H.d(1),H=R(t),H&&(H.c(),H.m(x,null))),t[4].MODULES[t[7].id].fyi?B?B.p(t,e):(B=Ba(t),B.c(),B.m(E,k)):B&&(B.d(1),B=null),(!$||24&e)&&U!==(U=t[4].MODULES[t[7].id].description+"")&&_.p(U),t[4].MODULES[t[7].id].engage&&!t[4].MODULES[t[7].id].fyi?q?q.p(t,e):(q=Ga(t),q.c(),q.m(E,null)):q&&(q.d(1),q=null)},i(t){$||(et(n.$$.fragment,t),s&&et(s.$$.fragment,t),$=!0)},o(t){ot(n.$$.fragment,t),s&&ot(s.$$.fragment,t),$=!1},d(t){t&&g(e),st(n),s&&st(s),H.d(),B&&B.d(),q&&q.d()}}}function ja(t){let e,o,n,i,r,s,l,a,c,d,u,h,p,b,x,S,E,k,_,T,M,$,A,N=t[4].MODULES[t[7].id].label+"",U=t[4].MODULES[t[7].id].actualNum+"",P=Xs(t[7].id,t[0]),z=t[4].MODULES[t[7].id].description+"";n=new ne({props:{date:t[4].MODULES[t[7].id].date,dateShow:t[4].MODULES[t[7].id].dateShow,flow:"normal"}});var j=t[5][t[4].MODULES[t[7].id].banner];function R(t){return{props:{moduleId:t[7].id,claytons:t[1]}}}function H(t,e){return t[4].MODULES[t[7].id].fyi?Wa:Ya}j&&(s=I(j,R(t)));let B=H(t),q=B(t),F=t[4].MODULES[t[7].id].fyi&&Ka(t),V=P&&Za(t),G=t[4].MODULES[t[7].id].engage&&!t[4].MODULES[t[7].id].fyi&&oc(t);return{c(){e=v("div"),o=v("div"),it(n.$$.fragment),i=w(),r=v("div"),s&&it(s.$$.fragment),l=w(),a=v("div"),c=v("div"),d=v("span"),u=y(N),h=w(),p=y(U),b=w(),x=v("h3"),q.c(),S=w(),E=v("div"),F&&F.c(),k=w(),V&&V.c(),_=w(),T=new D(!1),M=w(),G&&G.c(),$=w(),C(o,"class","horizontal-card-date"),L(o,"float","left"),L(o,"padding-right","1rem"),C(r,"class","horizontal-card-image"),L(r,"float","right"),L(r,"padding-left","1rem"),L(r,"text-align","right"),L(r,"width","30%"),C(d,"class","cc-card-label svelte-1bswwix"),C(x,"class","cc-card-title svelte-1bswwix"),C(x,"data-moduleid","1"),C(c,"class","cc-card-label svelte-1bswwix width:100%"),T.a=M,C(E,"class","horizontal-card-description svelte-167kt0h"),C(a,"class","content"),C(e,"class","horizontal-card-row"),L(e,"width","90%"),L(e,"border","1px solid #ccc"),L(e,"box-shadow","rgba(0, 0, 0, 0.35) 0px 0.4rem 1rem"),L(e,"border-radius","1rem"),L(e,"padding","1rem"),L(e,"margin","1rem"),L(e,"overflow","hidden")},m(t,g){m(t,e,g),f(e,o),rt(n,o,null),f(e,i),f(e,r),s&&rt(s,r,null),f(e,l),f(e,a),f(a,c),f(c,d),f(d,u),f(d,h),f(d,p),f(c,b),f(c,x),q.m(x,null),f(a,S),f(a,E),F&&F.m(E,null),f(E,k),V&&V.m(E,null),f(E,_),T.m(z,E),f(E,M),G&&G.m(E,null),m(t,$,g),A=!0},p(t,e){const o={};24&e&&(o.date=t[4].MODULES[t[7].id].date),24&e&&(o.dateShow=t[4].MODULES[t[7].id].dateShow),n.$set(o);const i={};if(8&e&&(i.moduleId=t[7].id),2&e&&(i.claytons=t[1]),24&e&&j!==(j=t[5][t[4].MODULES[t[7].id].banner])){if(s){Z();const t=s;ot(t.$$.fragment,1,0,(()=>{st(t,1)})),tt()}j?(s=I(j,R(t)),it(s.$$.fragment),et(s.$$.fragment,1),rt(s,r,null)):s=null}else j&&s.$set(i);(!A||24&e)&&N!==(N=t[4].MODULES[t[7].id].label+"")&&O(u,N),(!A||24&e)&&U!==(U=t[4].MODULES[t[7].id].actualNum+"")&&O(p,U),B===(B=H(t))&&q?q.p(t,e):(q.d(1),q=B(t),q&&(q.c(),q.m(x,null))),t[4].MODULES[t[7].id].fyi?F?F.p(t,e):(F=Ka(t),F.c(),F.m(E,k)):F&&(F.d(1),F=null),9&e&&(P=Xs(t[7].id,t[0])),P?V?V.p(t,e):(V=Za(t),V.c(),V.m(E,_)):V&&(V.d(1),V=null),(!A||24&e)&&z!==(z=t[4].MODULES[t[7].id].description+"")&&T.p(z),t[4].MODULES[t[7].id].engage&&!t[4].MODULES[t[7].id].fyi?G?G.p(t,e):(G=oc(t),G.c(),G.m(E,null)):G&&(G.d(1),G=null)},i(t){A||(et(n.$$.fragment,t),s&&et(s.$$.fragment,t),A=!0)},o(t){ot(n.$$.fragment,t),s&&ot(s.$$.fragment,t),A=!1},d(t){t&&g(e),st(n),s&&st(s),q.d(),F&&F.d(),V&&V.d(),G&&G.d(),t&&g($)}}}function Ra(t){let e,o=Qs(t[4].MODULES[t[7].id])+"";return{c(){e=y(o)},m(t,o){m(t,e,o)},p(t,n){24&n&&o!==(o=Qs(t[4].MODULES[t[7].id])+"")&&O(e,o)},d(t){t&&g(e)}}}function Ha(t){let e,o,n,i=Qs(t[4].MODULES[t[7].id])+"";return{c(){e=v("a"),o=y(i),C(e,"href",n=Js(t[7].id))},m(t,n){m(t,e,n),f(e,o)},p(t,r){24&r&&i!==(i=Qs(t[4].MODULES[t[7].id])+"")&&O(o,i),8&r&&n!==(n=Js(t[7].id))&&C(e,"href",n)},d(t){t&&g(e)}}}function Ba(t){let e,o=(""!==t[4].MODULES[t[7].id].fyiText||t[2].editMode)&&qa(t);return{c(){o&&o.c(),e=x()},m(t,n){o&&o.m(t,n),m(t,e,n)},p(t,n){""!==t[4].MODULES[t[7].id].fyiText||t[2].editMode?o?o.p(t,n):(o=qa(t),o.c(),o.m(e.parentNode,e)):o&&(o.d(1),o=null)},d(t){o&&o.d(t),t&&g(e)}}}function qa(t){let e,o;function n(t,e){return t[4].MODULES[t[7].id].fyiText?Va:Fa}let i=n(t),r=i(t);return{c(){e=v("div"),o=v("span"),r.c(),C(o,"class","cc-fyi-text"),C(e,"class","cc-card-fyi svelte-17wa3z1 svelte-167kt0h"),L(e,"background","#ccc"),L(e,"color","black"),L(e,"width","100%"),L(e,"padding","0.25rem"),L(e,"font-size","0.85rem"),L(e,"text-align","center")},m(t,n){m(t,e,n),f(e,o),r.m(o,null)},p(t,e){i===(i=n(t))&&r?r.p(t,e):(r.d(1),r=i(t),r&&(r.c(),r.m(o,null)))},d(t){t&&g(e),r.d()}}}function Fa(e){let o,n,i;return{c(){o=y("("),n=v("em"),n.textContent="FYI card, no FYI text",i=y(")")},m(t,e){m(t,o,e),m(t,n,e),m(t,i,e)},p:t,d(t){t&&g(o),t&&g(n),t&&g(i)}}}function Va(t){let e,o,n=t[4].MODULES[t[7].id].fyiText+"";return{c(){e=new D(!1),o=x(),e.a=o},m(t,i){e.m(n,t,i),m(t,o,i)},p(t,o){24&o&&n!==(n=t[4].MODULES[t[7].id].fyiText+"")&&e.p(n)},d(t){t&&g(o),t&&e.d()}}}function Ga(t){let e,o,n,i,r,s=t[4].MODULES[t[7].id].engageText+"";return{c(){e=v("div"),o=v("div"),n=v("a"),i=y(s),C(n,"href",r=Js(t[7].id)),C(n,"class","claytons-gu-engage"),L(n,"text-decoration","none"),C(o,"class","claytons-card-engage-button"),L(o,"float","right"),L(o,"position","relative"),L(o,"color","rgba(30,58,138,1)"),L(o,"border-radius","0.25rem"),L(o,"padding","0.5rem 1rem 0.5rem 1rem"),L(o,"border","1px solid rgba(30,58,138,1)"),C(e,"class","claytons-card-engage"),L(e,"padding-right","1rem")},m(t,r){m(t,e,r),f(e,o),f(o,n),f(n,i)},p(t,e){24&e&&s!==(s=t[4].MODULES[t[7].id].engageText+"")&&O(i,s),8&e&&r!==(r=Js(t[7].id))&&C(n,"href",r)},d(t){t&&g(e)}}}function Wa(t){let e,o=Qs(t[4].MODULES[t[7].id])+"";return{c(){e=y(o)},m(t,o){m(t,e,o)},p(t,n){24&n&&o!==(o=Qs(t[4].MODULES[t[7].id])+"")&&O(e,o)},d(t){t&&g(e)}}}function Ya(t){let e,o,n,i=Qs(t[4].MODULES[t[7].id])+"";return{c(){e=v("a"),o=y(i),C(e,"href",n=Js(t[7].id))},m(t,n){m(t,e,n),f(e,o)},p(t,r){24&r&&i!==(i=Qs(t[4].MODULES[t[7].id])+"")&&O(o,i),8&r&&n!==(n=Js(t[7].id))&&C(e,"href",n)},d(t){t&&g(e)}}}function Ka(t){let e,o=(""!==t[4].MODULES[t[7].id].fyiText||t[2].editMode)&&Ja(t);return{c(){o&&o.c(),e=x()},m(t,n){o&&o.m(t,n),m(t,e,n)},p(t,n){""!==t[4].MODULES[t[7].id].fyiText||t[2].editMode?o?o.p(t,n):(o=Ja(t),o.c(),o.m(e.parentNode,e)):o&&(o.d(1),o=null)},d(t){o&&o.d(t),t&&g(e)}}}function Ja(t){let e,o;function n(t,e){return t[4].MODULES[t[7].id].fyiText?Qa:Xa}let i=n(t),r=i(t);return{c(){e=v("div"),o=v("span"),r.c(),C(o,"class","cc-fyi-text"),C(e,"class","cc-card-fyi svelte-167kt0h")},m(t,n){m(t,e,n),f(e,o),r.m(o,null)},p(t,e){i===(i=n(t))&&r?r.p(t,e):(r.d(1),r=i(t),r&&(r.c(),r.m(o,null)))},d(t){t&&g(e),r.d()}}}function Xa(e){let o,n,i;return{c(){o=y("("),n=v("em"),n.textContent="FYI card, no FYI text",i=y("\n \n )")},m(t,e){m(t,o,e),m(t,n,e),m(t,i,e)},p:t,d(t){t&&g(o),t&&g(n),t&&g(i)}}}function Qa(t){let e,o,n=t[4].MODULES[t[7].id].fyiText+"";return{c(){e=new D(!1),o=x(),e.a=o},m(t,i){e.m(n,t,i),m(t,o,i)},p(t,o){24&o&&n!==(n=t[4].MODULES[t[7].id].fyiText+"")&&e.p(n)},d(t){t&&g(o),t&&e.d()}}}function Za(t){let e,o,n=!t[4].MODULES[t[7].id].published&&tc(),i=t[2].editMode&&t[4].MODULES[t[7].id].collection!==t[0]&&ec();return{c(){e=v("div"),n&&n.c(),o=w(),i&&i.c(),C(e,"class","cc-card-published svelte-167kt0h")},m(t,r){m(t,e,r),n&&n.m(e,null),f(e,o),i&&i.m(e,null)},p(t,r){t[4].MODULES[t[7].id].published?n&&(n.d(1),n=null):n||(n=tc(),n.c(),n.m(e,o)),t[2].editMode&&t[4].MODULES[t[7].id].collection!==t[0]?i||(i=ec(),i.c(),i.m(e,null)):i&&(i.d(1),i=null)},d(t){t&&g(e),n&&n.d(),i&&i.d()}}}function tc(t){let e;return{c(){e=y("Unpublished.")},m(t,o){m(t,e,o)},d(t){t&&g(e)}}}function ec(t){let e;return{c(){e=y("No collection allocated.")},m(t,o){m(t,e,o)},d(t){t&&g(e)}}}function oc(t){let e,o,n,i,r,s=t[4].MODULES[t[7].id].engageText+"";return{c(){e=v("div"),o=v("div"),n=v("a"),i=y(s),C(n,"href",r=Js(t[7].id)),C(n,"class","claytons-gu-engage"),L(n,"text-decoration","none"),C(o,"class","claytons-card-engage-button"),L(o,"float","right"),L(o,"position","relative"),L(o,"color","rgba(30,58,138,1)"),L(o,"border-radius","0.25rem"),L(o,"padding","0.5rem 1rem 0.5rem 1rem"),L(o,"border","1px solid rgba(30,58,138,1)"),C(e,"class","claytons-card-engage"),L(e,"padding-right","1rem")},m(t,r){m(t,e,r),f(e,o),f(o,n),f(n,i)},p(t,e){24&e&&s!==(s=t[4].MODULES[t[7].id].engageText+"")&&O(i,s),8&e&&r!==(r=Js(t[7].id))&&C(n,"href",r)},d(t){t&&g(e)}}}function nc(t){let e,o,n,i;const r=[ja,za],s=[];function l(t,e){return t[1]?1:0}return e=l(t),o=s[e]=r[e](t),{c(){o.c(),n=x()},m(t,o){s[e].m(t,o),m(t,n,o),i=!0},p(t,i){let a=e;e=l(t),e===a?s[e].p(t,i):(Z(),ot(s[a],1,1,(()=>{s[a]=null})),tt(),o=s[e],o?o.p(t,i):(o=s[e]=r[e](t),o.c()),et(o,1),o.m(n.parentNode,n))},i(t){i||(et(o),i=!0)},o(t){ot(o),i=!1},d(t){s[e].d(t),t&&g(n)}}}function ic(t){let e,o,n,i=t[2].editMode&&0===t[3].length&&Pa(),r=t[3],s=[];for(let e=0;eot(s[t],1,1,(()=>{s[t]=null}));return{c(){i&&i.c(),e=w();for(let t=0;to(4,n=t))),u(t,ac,(t=>o(2,i=t)));let{collection:r}=e,{claytons:s=!1}=e;const l={image:vl,colour:ul,iframe:sl};let a=c();function c(){return qs(r,s,n.COLLECTIONS[r].unallocated)}return t.$$set=t=>{"collection"in t&&o(0,r=t.collection),"claytons"in t&&o(1,s=t.claytons)},t.$$.update=()=>{if(5&t.$$.dirty&&r===i.currentCollection){i.currentCollectionChanged&&p(ac,i.currentCollectionChanged=!1,i),o(3,a=c())}},[r,s,i,a,n,l]}const sc=ut({}),lc=ut([]),ac=ut({courseId:null,editMode:!1,editingOn:null,csrfToken:null,modulesPage:!1,currentCollection:null,currentCollectionChanged:!1,needToSaveCollections:!1,ccOn:!1,studyPeriod:null,baseApiUrl:""}),cc=ut({GriffithCards:class extends ct{constructor(t){super(),at(this,t,$a,_a,r,{collection:0,claytons:1})}},CollectionOnly:class extends ct{constructor(t){super(),at(this,t,Na,Aa,r,{collection:2,claytons:3})}},AssessmentTable:class extends ct{constructor(t){super(),at(this,t,oa,ea,r,{collection:1,claytons:0})}},HorizontalCards:class extends ct{constructor(t){super(),at(this,t,rc,ic,r,{collection:0,claytons:1})}}});function dc(t,e,o){const n=t.slice();return n[17]=e[o],n}function uc(t,e,o){const n=t.slice();return n[17]=e[o],n}function hc(t,e,o){const n=t.slice();return n[22]=e[o],n}function pc(e){let o;return{c(){o=v("sl-tab"),o.textContent=`Imported modules matched (n=${e[7]})`,k(o,"slot","nav"),k(o,"panel","importedMatched")},m(t,e){m(t,o,e)},p:t,d(t){t&&g(o)}}}function fc(e){let o;return{c(){o=v("sl-tab"),o.textContent="Imported modules matched (n=0})",k(o,"slot","nav"),k(o,"panel","importedMatched"),k(o,"disabled","")},m(t,e){m(t,o,e)},p:t,d(t){t&&g(o)}}}function mc(e){let o;return{c(){o=v("sl-tab"),o.textContent=`Imported modules not matched (n=${e[9].length-e[7]})`,k(o,"slot","nav"),k(o,"panel","importedNotMatched")},m(t,e){m(t,o,e)},p:t,d(t){t&&g(o)}}}function gc(e){let o;return{c(){o=v("sl-tab"),o.textContent="Imported modules not matched (n=0)",k(o,"slot","nav"),k(o,"panel","importedNotMatched"),k(o,"disabled","")},m(t,e){m(t,o,e)},p:t,d(t){t&&g(o)}}}function bc(e){let o;return{c(){o=v("sl-tab"),o.textContent=`Current modules not matched (n=${e[4].length-e[8]})`,k(o,"slot","nav"),k(o,"panel","currentNotMatched")},m(t,e){m(t,o,e)},p:t,d(t){t&&g(o)}}}function vc(e){let o;return{c(){o=v("sl-tab"),o.textContent="Current modules not matched (n=0)",k(o,"slot","nav"),k(o,"panel","currentNotMatched"),k(o,"disabled","")},m(t,e){m(t,o,e)},p:t,d(t){t&&g(o)}}}function yc(t){let e,o=t[10][t[22]].matched&&function(t){let e,o,n,i,r,s,l,a,c,d,u=t[2].collections.MODULES[t[22]].name+"",h=t[3][t[10][t[22]].currentModuleId].name+"";return{c(){e=v("tr"),o=v("td"),n=v("a"),i=y(u),s=w(),l=v("a"),a=y(h),d=w(),C(n,"target","_blank"),C(n,"rel","noreferrer"),C(n,"href",r="/courses/"+t[1]+"/modules/#module_"+t[22]),C(o,"class","svelte-o99kza"),C(l,"target","_blank"),C(l,"rel","noreferrer"),C(l,"href",c="/courses/"+t[0]+"/modules/#module_"+t[10][t[22]].currentModuleId),C(e,"class","svelte-o99kza")},m(t,r){m(t,e,r),f(e,o),f(o,n),f(n,i),f(e,s),f(e,l),f(l,a),f(e,d)},p(t,e){4&e&&u!==(u=t[2].collections.MODULES[t[22]].name+"")&&O(i,u),2&e&&r!==(r="/courses/"+t[1]+"/modules/#module_"+t[22])&&C(n,"href",r),8&e&&h!==(h=t[3][t[10][t[22]].currentModuleId].name+"")&&O(a,h),1&e&&c!==(c="/courses/"+t[0]+"/modules/#module_"+t[10][t[22]].currentModuleId)&&C(l,"href",c)},d(t){t&&g(e)}}}(t);return{c(){o&&o.c(),e=x()},m(t,n){o&&o.m(t,n),m(t,e,n)},p(t,e){t[10][t[22]].matched&&o.p(t,e)},d(t){o&&o.d(t),t&&g(e)}}}function wc(e){let o,n=!e[17].matched&&function(e){let o,n,i=e[17].importedModuleId+"";return{c(){o=v("p"),n=y(i)},m(t,e){m(t,o,e),f(o,n)},p:t,d(t){t&&g(o)}}}(e);return{c(){n&&n.c(),o=x()},m(t,e){n&&n.m(t,e),m(t,o,e)},p(t,e){t[17].matched||n.p(t,e)},d(t){n&&n.d(t),t&&g(o)}}}function xc(e){let o,n=!e[17].matched&&function(e){let o,n,i=e[17].currentModuleId+"";return{c(){o=v("p"),n=y(i)},m(t,e){m(t,o,e),f(o,n)},p:t,d(t){t&&g(o)}}}(e);return{c(){n&&n.c(),o=x()},m(t,e){n&&n.m(t,e),m(t,o,e)},p(t,e){t[17].matched||n.p(t,e)},d(t){n&&n.d(t),t&&g(o)}}}function Sc(e){let o,n,i,r,s,l,a,c,d,u,h=e[5]!==e[6]&&function(e){let o,n,i,r,s,l;return{c(){o=v("p"),o.textContent="Warning: the number of modules does not match:",n=w(),i=v("ol"),r=v("li"),r.textContent=`# current modules: ${e[5]}`,s=w(),l=v("li"),l.textContent=`# import modules: ${e[6]}`},m(t,e){m(t,o,e),m(t,n,e),m(t,i,e),f(i,r),f(i,s),f(i,l)},p:t,d(t){t&&g(o),t&&g(n),t&&g(i)}}}(e);let p=function(t,e){return 0===t[7]?fc:pc}(e),y=p(e);let x=function(t,e){return t[6]-t[7]==0?gc:mc}(e),S=x(e);let E=function(t,e){return 0!==t[8]?vc:bc}(e),O=E(e),_=e[7]>0&&function(t){let e,o,n,i=t[9],r=[];for(let e=0;eImported module \n Current Module",n=w();for(let t=0;t0&&_.p(t,e),1024&e){let o;for(L=Object.values(t[10]),o=0;oo(13,n=t)));let{modulesCompleteStatus:i=0}=e,{currentCourseId:r=null}=e,{importCourseId:s=null}=e,{collectionsDetails:l=null}=e,a={};n.forEach((t=>{o(3,a[t.id]=t,a)}));let c=Object.keys(a);l.initialiseModules(n),l.matchModuleNames(n);let d=l.getNumCurrentModules(),h=l.getNumImportedModules(),p=l.getNumImportsMatched(),f=l.getNumCurrentMatched();const m=l.getImportedModuleIds(),g=l.getImportModuleDetails(),b=l.getCurrentModuleDetails();let v=p===l.getNumImportedModules()?"disabled":"",y=l.getNumImportedModules()-p==0?"disabled":"";return l.getNumCurrentMatched(),!v&&y&&disableCurrentNotMatched&&(i=1),i=1,t.$$set=t=>{"modulesCompleteStatus"in t&&o(12,i=t.modulesCompleteStatus),"currentCourseId"in t&&o(0,r=t.currentCourseId),"importCourseId"in t&&o(1,s=t.importCourseId),"collectionsDetails"in t&&o(2,l=t.collectionsDetails)},[r,s,l,a,c,d,h,p,f,m,g,b,i]}class Cc extends ct{constructor(t){super(),at(this,t,Ec,Sc,r,{modulesCompleteStatus:12,currentCourseId:0,importCourseId:1,collectionsDetails:2})}}function kc(t,e,o){const n=t.slice();return n[11]=e[o],n}function Oc(t){let e,o=t[2],n=[];for(let e=0;e',C(o,"class","svelte-vcb9m3")},m(t,e){m(t,o,e)},p:t,d(t){t&&g(o)}}}function Lc(e){let o,n,i,r,s,l,a,c,d,u;return{c(){o=v("tr"),n=v("td"),n.innerHTML=' Other course image',i=w(),r=v("td"),s=v("a"),l=y("Image"),a=y(" is from\n "),c=v("a"),d=y("another course"),u=w(),C(n,"class","cc-error svelte-vcb9m3"),C(s,"href",e[11].src),C(s,"target","_blank"),C(s,"rel","noreferrer"),C(c,"href","https://"+e[1]+"/courses/"+e[11].otherCourse),C(c,"target","_blank"),C(c,"rel","noreferrer"),C(r,"colspan","4"),C(r,"class","svelte-vcb9m3"),C(o,"class","svelte-vcb9m3")},m(t,e){m(t,o,e),f(o,n),f(o,i),f(o,r),f(r,s),f(s,l),f(r,a),f(r,c),f(c,d),f(o,u)},p:t,d(t){t&&g(o)}}}function Tc(e){let o,n,i,r,s,l,a,c,d,u,h,p,b,x,S,E,k=e[11].moduleName+"",O=e[11].display_name+"",_=e[11].size+"",L=e[11]["content-type"]+"";return{c(){o=v("tr"),n=v("td"),n.innerHTML='',i=w(),r=v("td"),s=y(k),l=w(),a=v("td"),c=v("a"),d=y(O),u=w(),h=v("td"),p=y(_),b=w(),x=v("td"),S=y(L),E=w(),C(n,"class","cc-success svelte-vcb9m3"),C(r,"class","svelte-vcb9m3"),C(c,"href",e[11].src),C(c,"target","_blank"),C(c,"rel","noreferrer"),C(a,"class","svelte-vcb9m3"),C(h,"class","svelte-vcb9m3"),C(x,"class","svelte-vcb9m3"),C(o,"class","svelte-vcb9m3")},m(t,e){m(t,o,e),f(o,n),f(o,i),f(o,r),f(r,s),f(o,l),f(o,a),f(a,c),f(c,d),f(o,u),f(o,h),f(h,p),f(o,b),f(o,x),f(x,S),f(o,E)},p:t,d(t){t&&g(o)}}}function Mc(t){let e;let o=function(t,e){return t[11].courseImage?Tc:Lc}(t),n=o(t);return{c(){n.c(),e=x()},m(t,o){n.m(t,o),m(t,e,o)},p(t,e){n.p(t,e)},d(t){n.d(t),t&&g(e)}}}function $c(e){let o,n,i;function r(t,e){return t[0]?Oc:_c}let s=r(e),l=s(e);return{c(){o=v("table"),n=v("tr"),n.innerHTML="Status \n Module Name \n Image \n Size \n Type",i=w(),l.c(),C(n,"class","svelte-vcb9m3"),C(o,"class","cc-import-table svelte-vcb9m3")},m(t,e){m(t,o,e),f(o,n),f(o,i),l.m(o,null)},p(t,[e]){s===(s=r(t))&&l?l.p(t,e):(l.d(1),l=s(t),l&&(l.c(),l.m(o,null)))},i:t,o:t,d(t){t&&g(o),l.d()}}}function Dc(t,e,o){let n;u(t,ac,(t=>o(8,n=t)));let{imagesCompleteStatus:i=0}=e,{currentCourseId:r}=e,{collectionsDetails:s}=e,l=!1,a=0,c=0;const d=document.location.hostname,h=n.baseApiUrl;let p=s.getImportedImages();return p.forEach((t=>{t.otherCourse=null;let e=t.src;const n=new RegExp(`${d}/courses/([0-9]+)/files/([0-9]+)/`);let i=e.match(n);if(i){const e=i[1];t.fileId=i[2],e!==r?(t.courseImage=!1,t.otherCourse=parseInt(e),o(7,c++,c)):(t.courseImage=!0,he(`${h}/courses/${r}/files/${t.fileId}`).then((e=>{200===e.status&&(["size","content-type","display_name"].forEach((o=>{t[o]=e.body[o]})),t.details=!0),o(6,a++,a)})))}else t.courseImage=!1})),t.$$set=t=>{"imagesCompleteStatus"in t&&o(3,i=t.imagesCompleteStatus),"currentCourseId"in t&&o(4,r=t.currentCourseId),"collectionsDetails"in t&&o(5,s=t.collectionsDetails)},t.$$.update=()=>{193&t.$$.dirty&&(o(0,l=a+c>=p.length),console.log(`imageDataGenerated: ${l} numOtherImages ${c} numImagesReceived: ${a} images.length: ${p.length}`),l&&(a===p.length?o(3,i=1):o(3,i=-1)))},[l,d,p,i,r,s,a,c]}class Ic extends ct{constructor(t){super(),at(this,t,Dc,$c,r,{imagesCompleteStatus:3,currentCourseId:4,collectionsDetails:5})}}function Ac(t){let e,o,i,r,s,l,a,c,d,u,h,p,b,x,E,O,_,T,M,$,D,I,A,N,U,P,z,j,H,B,q,F,V,W,Y,K,J,X,Q,Z,tt,lt,at,ct,dt,ut,ht,pt,ft,mt,gt,bt,vt,yt,wt,xt,St,Et,Ct,kt,Ot,_t,Lt,Tt,Mt,$t,Dt,It,At,Nt,Ut,Pt,zt,jt,Rt,Ht,Bt,qt,Ft,Vt,Gt,Wt,Yt,Kt,Jt,Xt,Qt,Zt=t[8].summary.tooltip+"",te=t[8].proceed.tooltip+"",ee=t[8].cancel.tooltip+"",oe=t[8].refresh.tooltip+"",ne=t[8].modules.tooltip+"",ie=t[8].images.tooltip+"";function re(t,e){return 1===t[1]?zc:-1===t[1]?Pc:Uc}let se=re(t),le=se(t);function ae(t,e){return 1===t[2]?Hc:-1===t[2]?Rc:jc}let ce=ae(t),de=ce(t),ue=t[3]&&Bc(t);function he(e){t[17](e)}let pe={currentCourseId:t[5],importCourseId:t[6],collectionsDetails:t[0]};function fe(e){t[18](e)}void 0!==t[1]&&(pe.modulesCompleteStatus=t[1]),Ut=new Cc({props:pe}),R.push((()=>nt(Ut,"modulesCompleteStatus",he)));let me={currentCourseId:t[5],importCourseId:t[6],collectionsDetails:t[0]};return void 0!==t[2]&&(me.imagesCompleteStatus=t[2]),Yt=new Ic({props:me}),R.push((()=>nt(Yt,"imagesCompleteStatus",fe))),{c(){e=v("sl-dialog"),o=v("div"),i=v("sl-tab-group"),r=v("sl-tab"),r.textContent="  Summary",s=w(),l=v("sl-tab"),a=y("  Modules  \n "),le.c(),c=w(),d=v("sl-tab"),u=y("  Images  \n "),de.c(),h=w(),p=v("sl-tab-panel"),b=v("div"),x=v("h3"),E=v("sl-tooltip"),O=v("div"),_=w(),T=v("a"),M=v("i"),$=y("\n Summary"),D=w(),I=v("p"),A=v("a"),N=y("Collections configuration page"),U=y("\n has been imported from another course\n "),ue&&ue.c(),P=y(". Check the status and details here and choose whether to"),z=w(),j=v("ul"),H=v("li"),B=v("sl-tooltip"),q=v("div"),F=w(),V=v("a"),W=v("i"),Y=y("\n   Proceed"),K=w(),J=v("li"),X=v("sl-tooltip"),Q=v("div"),Z=w(),tt=v("a"),lt=v("i"),at=y("\n   Cancel"),ct=w(),dt=v("li"),ut=v("sl-tooltip"),ht=v("div"),pt=w(),ft=v("a"),mt=v("i"),gt=y("\n   Refresh"),bt=w(),vt=v("div"),yt=v("sl-button"),yt.textContent="Proceed",wt=w(),xt=v("sl-button"),xt.textContent="Cancel",St=w(),Et=v("sl-button"),Et.textContent="Refresh",Ct=w(),kt=v("p"),Ot=w(),_t=v("sl-tab-panel"),Lt=v("h3"),Tt=v("sl-tooltip"),Mt=v("div"),$t=w(),Dt=v("a"),It=v("i"),At=y("\n Modules"),Nt=w(),it(Ut.$$.fragment),zt=w(),jt=v("sl-tab-panel"),Rt=v("h3"),Ht=v("sl-tooltip"),Bt=v("div"),qt=w(),Ft=v("a"),Vt=v("i"),Gt=y("\n Images"),Wt=w(),it(Yt.$$.fragment),k(r,"slot","nav"),k(r,"panel","summary"),k(l,"slot","nav"),k(l,"panel","modules"),k(d,"slot","nav"),k(d,"panel","images"),C(O,"slot","content"),C(M,"class","icon-question cc-module-icon"),C(T,"target","_blank"),C(T,"rel","noreferrer"),C(T,"href",t[8].summary.url),C(A,"href","/courses/"+t[5]+"/pages/canvas-collections-configuration"),C(A,"target","_blank"),C(A,"rel","noreferrer"),C(q,"slot","content"),C(W,"class","icon-question cc-module-icon"),C(V,"target","_blank"),C(V,"rel","noreferrer"),C(V,"href",t[8].proceed.url),C(H,"class","svelte-lrirqe"),C(Q,"slot","content"),C(lt,"class","icon-question cc-module-icon"),C(tt,"target","_blank"),C(tt,"rel","noreferrer"),C(tt,"href",t[8].cancel.url),C(J,"class","svelte-lrirqe"),C(ht,"slot","content"),C(mt,"class","icon-question cc-module-icon"),C(ft,"target","_blank"),C(ft,"rel","noreferrer"),C(ft,"href",t[8].refresh.url),C(dt,"class","svelte-lrirqe"),C(j,"class","cc-horizontal-list svelte-lrirqe"),k(yt,"slot","footer"),k(yt,"variant","success"),k(yt,"type","submit"),k(xt,"slot","footer"),k(xt,"variant","warning"),k(xt,"type","submit"),k(Et,"slot","footer"),k(Et,"variant","danger"),k(Et,"type","submit"),C(vt,"class","cc-footer svelte-lrirqe"),C(b,"class","cc-import-intro svelte-lrirqe"),k(p,"name","summary"),C(Mt,"slot","content"),C(It,"class","icon-question cc-module-icon"),C(Dt,"target","_blank"),C(Dt,"rel","noreferrer"),C(Dt,"href",t[8].modules.url),k(_t,"name","modules"),C(Bt,"slot","content"),C(Vt,"class","icon-question cc-module-icon"),C(Ft,"target","_blank"),C(Ft,"rel","noreferrer"),C(Ft,"href",t[8].images.url),k(jt,"name","images"),k(i,"placement","start"),C(o,"class","cc-process-import svelte-lrirqe"),k(e,"class","cc-dialog svelte-lrirqe"),L(e,"--width","75vw"),k(e,"label","How to proceed with the import of Canvas Collections' configuration?"),k(e,"open","")},m(n,g){m(n,e,g),f(e,o),f(o,i),f(i,r),f(i,s),f(i,l),f(l,a),le.m(l,null),f(i,c),f(i,d),f(d,u),de.m(d,null),f(i,h),f(i,p),f(p,b),f(b,x),f(x,E),f(E,O),O.innerHTML=Zt,f(E,_),f(E,T),f(T,M),f(x,$),f(b,D),f(b,I),f(I,A),f(A,N),f(I,U),ue&&ue.m(I,null),f(I,P),f(b,z),f(b,j),f(j,H),f(H,B),f(B,q),q.innerHTML=te,f(B,F),f(B,V),f(V,W),f(H,Y),f(j,K),f(j,J),f(J,X),f(X,Q),Q.innerHTML=ee,f(X,Z),f(X,tt),f(tt,lt),f(J,at),f(j,ct),f(j,dt),f(dt,ut),f(ut,ht),ht.innerHTML=oe,f(ut,pt),f(ut,ft),f(ft,mt),f(dt,gt),f(b,bt),f(b,vt),f(vt,yt),f(vt,wt),f(vt,xt),f(vt,St),f(vt,Et),f(p,Ct),f(p,kt),f(i,Ot),f(i,_t),f(_t,Lt),f(Lt,Tt),f(Tt,Mt),Mt.innerHTML=ne,f(Tt,$t),f(Tt,Dt),f(Dt,It),f(Lt,At),f(_t,Nt),rt(Ut,_t,null),f(i,zt),f(i,jt),f(jt,Rt),f(Rt,Ht),f(Ht,Bt),Bt.innerHTML=ie,f(Ht,qt),f(Ht,Ft),f(Ft,Vt),f(Rt,Gt),f(jt,Wt),rt(Yt,jt,null),Jt=!0,Xt||(Qt=[S(yt,"click",t[11]),S(yt,"keydown",t[12]),S(xt,"click",t[13]),S(xt,"keydown",t[14]),S(Et,"click",t[15]),S(Et,"keydown",t[16])],Xt=!0)},p(t,e){se!==(se=re(t))&&(le.d(1),le=se(t),le&&(le.c(),le.m(l,null))),ce!==(ce=ae(t))&&(de.d(1),de=ce(t),de&&(de.c(),de.m(d,null))),t[3]?ue?ue.p(t,e):(ue=Bc(t),ue.c(),ue.m(I,P)):ue&&(ue.d(1),ue=null);const o={};1&e&&(o.collectionsDetails=t[0]),!Pt&&2&e&&(Pt=!0,o.modulesCompleteStatus=t[1],G((()=>Pt=!1))),Ut.$set(o);const n={};1&e&&(n.collectionsDetails=t[0]),!Kt&&4&e&&(Kt=!0,n.imagesCompleteStatus=t[2],G((()=>Kt=!1))),Yt.$set(n)},i(t){Jt||(et(Ut.$$.fragment,t),et(Yt.$$.fragment,t),Jt=!0)},o(t){ot(Ut.$$.fragment,t),ot(Yt.$$.fragment,t),Jt=!1},d(t){t&&g(e),le.d(),de.d(),ue&&ue.d(),st(Ut),st(Yt),Xt=!1,n(Qt)}}}function Nc(e){let o,i,r,s,l,a,c,d,u,h,p,b,x,E,O,_,T,M,$,D,I;function A(t,e){return t[4].editingOn===Lr.YOU_EDITING_ELSEWHERE?Fc:qc}let N=A(e),U=N(e);return{c(){o=v("sl-dialog"),i=v("div"),r=v("h2"),r.textContent="Import required",s=w(),l=v("p"),l.textContent="The existing Canvas Collections' configuration is from another course.\n It needs to be imported into this course.",a=w(),c=v("h2"),c.textContent="Problem - you don't have edit access",d=w(),u=v("p"),h=y("This can't be currently done because the import process has already been\n started\n "),U.c(),p=w(),b=v("h2"),b.textContent="Next step?",x=w(),E=v("p"),E.innerHTML="Click the Return button. Wait for the import process to be completed.",O=w(),_=v("p"),_.textContent="Once the import is complete, you can refresh the Modules page and use\n Collections.",T=w(),M=v("div"),$=v("sl-button"),$.textContent="Return",C(i,"class","cc-process-import svelte-lrirqe"),k($,"slot","footer"),k($,"variant","success"),k($,"type","submit"),C(M,"class","cc-footer svelte-lrirqe"),k(o,"class","cc-dialog svelte-lrirqe"),L(o,"--width","75vw"),k(o,"label","Unable to import Canvas Collections' configuration?"),k(o,"open","")},m(t,n){m(t,o,n),f(o,i),f(i,r),f(i,s),f(i,l),f(i,a),f(i,c),f(i,d),f(i,u),f(u,h),U.m(u,null),f(i,p),f(i,b),f(i,x),f(i,E),f(i,O),f(i,_),f(o,T),f(o,M),f(M,$),D||(I=[S($,"click",e[9]),S($,"keydown",e[10])],D=!0)},p(t,e){N!==(N=A(t))&&(U.d(1),U=N(t),U&&(U.c(),U.m(u,null)))},i:t,o:t,d(t){t&&g(o),U.d(),D=!1,n(I)}}}function Uc(t){let e;return{c(){e=v("sl-spinner")},m(t,o){m(t,e,o)},d(t){t&&g(e)}}}function Pc(t){let e;return{c(){e=v("sl-badge"),e.textContent="Warning",k(e,"variant","warning")},m(t,o){m(t,e,o)},d(t){t&&g(e)}}}function zc(t){let e;return{c(){e=v("sl-badge"),e.textContent="Ok",k(e,"variant","success")},m(t,o){m(t,e,o)},d(t){t&&g(e)}}}function jc(t){let e;return{c(){e=v("sl-spinner")},m(t,o){m(t,e,o)},d(t){t&&g(e)}}}function Rc(t){let e;return{c(){e=v("sl-badge"),e.textContent="Warning",k(e,"variant","warning")},m(t,o){m(t,e,o)},d(t){t&&g(e)}}}function Hc(t){let e;return{c(){e=v("sl-badge"),e.textContent="Ok",k(e,"variant","success")},m(t,o){m(t,e,o)},d(t){t&&g(e)}}}function Bc(t){let e,o,n,i,r,s,l=t[3].course_code+"",a=t[3].name+"";return{c(){e=y("(\n "),o=v("a"),n=y(l),i=y(" - "),r=y(a),s=y("\n )\n "),C(o,"href","/courses/"+t[6]+"/"),C(o,"target","_blank"),C(o,"rel","noreferrer")},m(t,l){m(t,e,l),m(t,o,l),f(o,n),f(o,i),f(o,r),m(t,s,l)},p(t,e){8&e&&l!==(l=t[3].course_code+"")&&O(n,l),8&e&&a!==(a=t[3].name+"")&&O(r,a)},d(t){t&&g(e),t&&g(o),t&&g(s)}}}function qc(t){let e;return{c(){e=y("by someone else is editing the course.")},m(t,o){m(t,e,o)},d(t){t&&g(e)}}}function Fc(t){let e;return{c(){e=y("by you in another tab.")},m(t,o){m(t,e,o)},d(t){t&&g(e)}}}function Vc(t){let e,o,n,i,r;const s=[Nc,Ac],l=[];function a(t,e){return t[4].editingOn===Lr.YOU_EDITING_ELSEWHERE||t[4].editingOn===Lr.SOMEONE_ELSE_EDITING?0:1}return o=a(t),n=l[o]=s[o](t),{c(){e=y("NO_ONE_EDITING = 0, SOMEONE_ELSE_EDITING = 1, YOU_EDITING_ELSEWHERE = 2,\nYOU_EDITING = 3,\n"),n.c(),i=x()},m(t,n){m(t,e,n),l[o].m(t,n),m(t,i,n),r=!0},p(t,[e]){let r=o;o=a(t),o===r?l[o].p(t,e):(Z(),ot(l[r],1,1,(()=>{l[r]=null})),tt(),n=l[o],n?n.p(t,e):(n=l[o]=s[o](t),n.c()),et(n,1),n.m(i.parentNode,i))},i(t){r||(et(n),r=!0)},o(t){ot(n),r=!1},d(t){t&&g(e),l[o].d(t),t&&g(i)}}}function Gc(t,e,o){let n;u(t,ac,(t=>o(4,n=t)));let{collectionsDetails:i}=e;document.location.hostname;const r=n.baseApiUrl;let s,l,a=n.courseId,c=i.getImportedCourseId(),d=null;function h(t){document.querySelector(".cc-dialog").remove(),p(ac,n.migrationOutcome=t,n)}he(`${r}/courses/${a}`).then((t=>{200===t.status&&t.body})),he(`${r}/courses/${c}`).then((t=>{200===t.status&&o(3,d=t.body)}));const f={summary:{tooltip:"

It appears Collections has been copied from another course. Details on the \n source/destination courses below.

How do you wish to proceed?

",url:"https://djplaner.github.io/canvas-collections/reference/lifecycle/course-copy/how-does-import-work/"},modules:{tooltip:'

Analysis of the "imported" modules (in Collections configuration) and "current" modules\n (in the current course). Decide if any action is required before import.

',url:"https://djplaner.github.io/canvas-collections/reference/lifecycle/course-copy/import/#modules"},images:{tooltip:"

Status of any course-based module module images in Collections configuration

",url:"https://djplaner.github.io/canvas-collections/reference/lifecycle/course-copy/import/#images"},proceed:{tooltip:"

Start the Collections import process. Modify the Collections configuration to match the new course. \n (Note: use Canvas history to restore previous configuration, if there are problems)

",url:"https://djplaner.github.io/canvas-collections/reference/lifecycle/course-copy/import/#proceed"},cancel:{tooltip:"

Cancel the import, return to the course make any changes, and then recommence the import.

\n\t

You cannot use Collections in this courses until the migration process is complete.

",url:"https://djplaner.github.io/canvas-collections/reference/lifecycle/course-copy/import/#cancel"},refresh:{tooltip:"

Refresh Collections configuration to a blank state. Allowing you to start fresh \n\t\t\tand use the Collections interface to customise design for the new course.

",url:"https://djplaner.github.io/canvas-collections/reference/lifecycle/course-copy/import/#refresh"}};return t.$$set=t=>{"collectionsDetails"in t&&o(0,i=t.collectionsDetails)},[i,s,l,d,n,a,c,h,f,()=>h("cancel"),()=>h("cancel"),()=>h("proceed"),()=>h("proceed"),()=>h("cancel"),()=>h("cancel"),()=>h("refresh"),()=>h("refresh"),function(t){s=t,o(1,s)},function(t){l=t,o(2,l)}]}class Wc extends ct{constructor(t){super(),at(this,t,Gc,Vc,r,{collectionsDetails:0})}}function Yc(t){let e,o,n;var i=t[2];function r(t){return{props:{collection:t[1],claytons:t[0]}}}return i&&(e=I(i,r(t))),{c(){e&&it(e.$$.fragment),o=x()},m(t,i){e&&rt(e,t,i),m(t,o,i),n=!0},p(t,[n]){const s={};if(2&n&&(s.collection=t[1]),1&n&&(s.claytons=t[0]),4&n&&i!==(i=t[2])){if(e){Z();const t=e;ot(t.$$.fragment,1,0,(()=>{st(t,1)})),tt()}i?(e=I(i,r(t)),it(e.$$.fragment),et(e.$$.fragment,1),rt(e,o.parentNode,o)):e=null}else i&&e.$set(s)},i(t){n||(e&&et(e.$$.fragment,t),n=!0)},o(t){e&&ot(e.$$.fragment,t),n=!1},d(t){t&&g(o),e&&st(e,t)}}}function Kc(t,e,o){let n,i,r;u(t,ac,(t=>o(3,n=t))),u(t,sc,(t=>o(4,i=t))),u(t,cc,(t=>o(5,r=t)));let s,{collectionName:l}=e,{claytons:a}=e;return a||(a=!1),t.$$set=t=>{"collectionName"in t&&o(1,l=t.collectionName),"claytons"in t&&o(0,a=t.claytons)},t.$$.update=()=>{if(58&t.$$.dirty&&""!==l&&i.COLLECTIONS.hasOwnProperty(l)&&i.COLLECTIONS[l].hasOwnProperty("representation")){const t=i.COLLECTIONS[l].representation;r.hasOwnProperty(t)||alert(`CollectionRepresentation component requires a valid representation prop. ${t} is not valid`),o(2,s=r[t]),n.ccOn&&"CollectionsTable"!==i.COLLECTIONS[n.currentCollection].representation&&Ys(n.currentCollection,i.COLLECTIONS[n.currentCollection].unallocated)}},[a,l,s,n,i,r]}class Jc extends ct{constructor(t){super(),at(this,t,Kc,Yc,r,{collectionName:1,claytons:0})}}function Xc(t,e,o){const n=t.slice();return n[7]=e[o],n[9]=o,n}function Qc(t){let e,o,n,i,r,s,l,a,c=t[7]+"";function d(){return t[6](t[7])}let u=t[1].COLLECTIONS[t[7]].hide&&Zc();return{c(){e=v("li"),o=v("a"),n=y(c),i=w(),u&&u.c(),r=w(),C(o,"href","#cc-collection-"+t[9]),C(o,"class","svelte-1qvz01g"),C(e,"class",s="cc-nav-collection "+t[2][t[7]]+" svelte-1qvz01g")},m(t,s){m(t,e,s),f(e,o),f(o,n),f(e,i),u&&u.m(e,null),f(e,r),l||(a=S(o,"click",E(d)),l=!0)},p(o,i){t=o,1&i&&c!==(c=t[7]+"")&&O(n,c),t[1].COLLECTIONS[t[7]].hide?u||(u=Zc(),u.c(),u.m(e,r)):u&&(u.d(1),u=null),5&i&&s!==(s="cc-nav-collection "+t[2][t[7]]+" svelte-1qvz01g")&&C(e,"class",s)},d(t){t&&g(e),u&&u.d(),l=!1,a()}}}function Zc(t){let e;return{c(){e=v("div"),e.textContent="Hidden",C(e,"class","cc-collection-hidden svelte-1qvz01g")},m(t,o){m(t,e,o)},d(t){t&&g(e)}}}function td(t){let e,o=!(t[1].COLLECTIONS[t[7]].hide&&!t[3].editMode)&&Qc(t);return{c(){o&&o.c(),e=x()},m(t,n){o&&o.m(t,n),m(t,e,n)},p(t,n){!t[1].COLLECTIONS[t[7]].hide||t[3].editMode?o?o.p(t,n):(o=Qc(t),o.c(),o.m(e.parentNode,e)):o&&(o.d(1),o=null)},d(t){o&&o.d(t),t&&g(e)}}}function ed(e){let o,n,i=e[0],r=[];for(let t=0;to(3,n=t))),u(t,sc,(t=>o(1,i=t)));let{activeCollectionName:r}=e,s=[],l={};function a(t){o(2,l[r]="",l),p(ac,n.currentCollection=t,n),o(2,l[t]="cc-active",l),o(5,r=t)}return t.$$set=t=>{"activeCollectionName"in t&&o(5,r=t.activeCollectionName)},t.$$.update=()=>{35&t.$$.dirty&&(o(0,s=i.COLLECTIONS_ORDER),s.forEach((t=>{o(2,l[t]=t===r?"cc-active":"",l)})),o(5,r),o(1,i),o(0,s))},[s,i,l,n,a,r,t=>a(t)]}class nd extends ct{constructor(t){super(),at(this,t,od,ed,r,{activeCollectionName:5})}}function id(t){let e;function o(t,e){return t[3]?sd:rd}let n=o(t),i=n(t);return{c(){i.c(),e=x()},m(t,o){i.m(t,o),m(t,e,o)},p(t,r){n===(n=o(t))&&i?i.p(t,r):(i.d(1),i=n(t),i&&(i.c(),i.m(e.parentNode,e)))},d(t){i.d(t),t&&g(e)}}}function rd(t){let e,o,n,i,r,s,l,a=t[6].includePage.tooltip+"",c=void 0!==t[5]&&ld(t);return{c(){e=v("div"),o=v("sl-tooltip"),n=v("div"),i=w(),c&&c.c(),r=w(),s=v("a"),l=v("i"),C(n,"slot","content"),C(l,"class","icon-question cc-module-icon"),C(s,"target","_blank"),C(s,"rel","noreferrer"),C(s,"href",t[6].includePage.url),C(e,"class","cc-include-help svelte-1wjn86a")},m(t,d){m(t,e,d),f(e,o),f(o,n),n.innerHTML=a,f(o,i),c&&c.m(o,null),f(o,r),f(o,s),f(s,l)},p(t,e){void 0!==t[5]?c?c.p(t,e):(c=ld(t),c.c(),c.m(o,r)):c&&(c.d(1),c=null)},d(t){t&&g(e),c&&c.d()}}}function sd(t){let e,o,n,i,r,s,l,a,c,d,u,h,p,b,x,S,E,k=t[6].includePageError.tooltip+"";return{c(){e=v("div"),o=v("p"),n=v("sl-tooltip"),i=v("div"),r=w(),s=v("a"),l=v("i"),a=y("\n Following error reported trying to retrieve "),c=v("a"),d=y("the include page ("),u=v("em"),h=y(t[0]),p=y(")"),b=y("."),x=w(),S=v("p"),E=y(t[4]),C(i,"slot","content"),C(l,"class","icon-question cc-module-icon"),C(s,"target","_blank"),C(s,"rel","noreferrer"),C(s,"href",t[6].includePageError.url),C(c,"target","_blank"),C(c,"href",t[5]),C(S,"class","cc-error-message svelte-1wjn86a"),C(e,"class","cc-error svelte-1wjn86a")},m(t,g){m(t,e,g),f(e,o),f(o,n),f(n,i),i.innerHTML=k,f(n,r),f(n,s),f(s,l),f(o,a),f(o,c),f(c,d),f(c,u),f(u,h),f(c,p),f(o,b),f(e,x),f(e,S),f(S,E)},p(t,e){1&e&&O(h,t[0]),32&e&&C(c,"href",t[5]),16&e&&O(E,t[4])},d(t){t&&g(e)}}}function ld(t){let e,o,n,i,r,s;return{c(){e=y("Include page "),o=v("a"),n=y("("),i=v("em"),r=y(t[0]),s=y(")"),C(o,"href",t[5]),C(o,"target","_blank"),C(o,"rel","noreferrer")},m(t,l){m(t,e,l),m(t,o,l),f(o,n),f(o,i),f(i,r),f(o,s)},p(t,e){1&e&&O(r,t[0]),32&e&&C(o,"href",t[5])},d(t){t&&g(e),t&&g(o)}}}function ad(e){let o,n,i,r=e[1].editMode&&id(e);return{c(){o=v("div"),r&&r.c(),n=w(),i=new D(!1),i.a=null,C(o,"class","cc-include-page svelte-1wjn86a"),C(o,"id","cc-include-page")},m(t,s){m(t,o,s),r&&r.m(o,null),f(o,n),i.m(e[2],o)},p(t,[e]){t[1].editMode?r?r.p(t,e):(r=id(t),r.c(),r.m(o,n)):r&&(r.d(1),r=null),4&e&&i.p(t[2])},i:t,o:t,d(t){t&&g(o),r&&r.d()}}}function cd(t,e,o){let n,i;u(t,ac,(t=>o(1,n=t))),u(t,sc,(t=>o(8,i=t)));let r,{collectionName:s=""}=e,l="",a="",c=!1,d="";function h(t,e){e.hasOwnProperty("body")?(o(2,a=e.body||""),o(5,r=e.html_url||void 0),o(3,c=!1),o(4,d="")):(o(2,a=""),o(3,c=!0),o(4,d=e.message))}const p={includePage:{tooltip:"

This content from the collection's include page. Edit that page to change this content.

\n ",url:"https://djplaner.github.io/canvas-collections/reference/conceptual-model/collections/existing-collections/#include-page"},includePageError:{tooltip:"

Most likely unable to find the provided include page amongst this course's pages.

",url:"https://djplaner.github.io/canvas-collections/reference/conceptual-model/collections/existing-collections/#include-page"}};return t.$$set=t=>{"collectionName"in t&&o(7,s=t.collectionName)},t.$$.update=()=>{387&t.$$.dirty&&""!==s&&i.COLLECTIONS.hasOwnProperty(s)&&i.COLLECTIONS[s].hasOwnProperty("includePage")&&(o(0,l=i.COLLECTIONS[s].includePage),""!==l?(o(5,r=ye(l,n.courseId,!1)),ve(l,n.courseId,h)):o(2,a=""))},[l,n,a,c,d,r,p,s,i]}class dd extends ct{constructor(t){super(),at(this,t,cd,ad,r,{collectionName:7})}}function ud(t){let e,o,n,i,r,s;e=new nd({props:{activeCollectionName:t[0].currentCollection}});let l=!t[1].COLLECTIONS[t[0].currentCollection].includeAfter&&hd(t),a=""!==t[0].currentCollection&&pd(t),c=t[1].COLLECTIONS[t[0].currentCollection].includeAfter&&fd(t);return{c(){it(e.$$.fragment),o=w(),l&&l.c(),n=w(),a&&a.c(),i=w(),c&&c.c(),r=x()},m(t,d){rt(e,t,d),m(t,o,d),l&&l.m(t,d),m(t,n,d),a&&a.m(t,d),m(t,i,d),c&&c.m(t,d),m(t,r,d),s=!0},p(t,o){const s={};1&o&&(s.activeCollectionName=t[0].currentCollection),e.$set(s),t[1].COLLECTIONS[t[0].currentCollection].includeAfter?l&&(Z(),ot(l,1,1,(()=>{l=null})),tt()):l?(l.p(t,o),3&o&&et(l,1)):(l=hd(t),l.c(),et(l,1),l.m(n.parentNode,n)),""!==t[0].currentCollection?a?(a.p(t,o),1&o&&et(a,1)):(a=pd(t),a.c(),et(a,1),a.m(i.parentNode,i)):a&&(Z(),ot(a,1,1,(()=>{a=null})),tt()),t[1].COLLECTIONS[t[0].currentCollection].includeAfter?c?(c.p(t,o),3&o&&et(c,1)):(c=fd(t),c.c(),et(c,1),c.m(r.parentNode,r)):c&&(Z(),ot(c,1,1,(()=>{c=null})),tt())},i(t){s||(et(e.$$.fragment,t),et(l),et(a),et(c),s=!0)},o(t){ot(e.$$.fragment,t),ot(l),ot(a),ot(c),s=!1},d(t){st(e,t),t&&g(o),l&&l.d(t),t&&g(n),a&&a.d(t),t&&g(i),c&&c.d(t),t&&g(r)}}}function hd(t){let e,o;return e=new dd({props:{collectionName:t[0].currentCollection}}),{c(){it(e.$$.fragment)},m(t,n){rt(e,t,n),o=!0},p(t,o){const n={};1&o&&(n.collectionName=t[0].currentCollection),e.$set(n)},i(t){o||(et(e.$$.fragment,t),o=!0)},o(t){ot(e.$$.fragment,t),o=!1},d(t){st(e,t)}}}function pd(t){let e,o;return e=new Jc({props:{collectionName:t[0].currentCollection,claytons:!1}}),{c(){it(e.$$.fragment)},m(t,n){rt(e,t,n),o=!0},p(t,o){const n={};1&o&&(n.collectionName=t[0].currentCollection),e.$set(n)},i(t){o||(et(e.$$.fragment,t),o=!0)},o(t){ot(e.$$.fragment,t),o=!1},d(t){st(e,t)}}}function fd(t){let e,o;return e=new dd({props:{collectionName:t[0].currentCollection}}),{c(){it(e.$$.fragment)},m(t,n){rt(e,t,n),o=!0},p(t,o){const n={};1&o&&(n.collectionName=t[0].currentCollection),e.$set(n)},i(t){o||(et(e.$$.fragment,t),o=!0)},o(t){ot(e.$$.fragment,t),o=!1},d(t){st(e,t)}}}function md(t){let e,o,n=t[1].COLLECTIONS_ORDER.length>0&&ud(t);return{c(){n&&n.c(),e=x()},m(t,i){n&&n.m(t,i),m(t,e,i),o=!0},p(t,[o]){t[1].COLLECTIONS_ORDER.length>0?n?(n.p(t,o),2&o&&et(n,1)):(n=ud(t),n.c(),et(n,1),n.m(e.parentNode,e)):n&&(Z(),ot(n,1,1,(()=>{n=null})),tt())},i(t){o||(et(n),o=!0)},o(t){ot(n),o=!1},d(t){n&&n.d(t),t&&g(e)}}}function gd(t,e,o){let n,i;u(t,ac,(t=>o(0,n=t))),u(t,sc,(t=>o(1,i=t)));let r=!1;var s;return s=()=>{r||function(){const t=window.location.hash.match(/^#module_(\d+)$/);if(t){const e=t[1],o=i.MODULES[e].collection;if(o!==n.currentCollection)return void p(ac,n.currentCollection=o,n);const r=document.getElementById(e);r&&"none"!==r.style.display&&r.scrollIntoView()}r=!0}()},N().$$.after_update.push(s),t.$$.update=()=>{3&t.$$.dirty&&(n.currentCollection||i.COLLECTIONS_ORDER.length>0&&p(ac,n.currentCollection=i.COLLECTIONS_ORDER[0],n))},[n,i]}class bd extends ct{constructor(t){super(),at(this,t,gd,md,r,{})}}class vd{constructor(t=void 0,e=void 0,o=void 0){this.navOption=o,this.singleCollectionName=t,this.completedCallback=e,this.configStore=d(ac),this.collectionsStore=d(sc),this.tasks=[],this.completedTasks=[],this.errors=[],this.createTaskLists(),this.checkTaskList()}getNumErrors(){this.errors=[];for(let t of this.completedTasks)t.error&&(this.errors=this.errors.concat(t.errors));return this.errors.length}execute(){0!==this.errors.length?this.complete():this.startUpdate()}complete(){this.completedCallback&&this.completedCallback(this)}getCollectionNamesUpdated(){let t=[];for(let e of this.completedTasks)e.collection&&t.push(e.collection);return t}getPageNamesUpdated(){let t={};for(let e of this.completedTasks)e.outputPage&&(t[e.outputPage]=e.outputPage);return Object.keys(t)}createTaskLists(){if(this.singleCollectionName){const t=this.collectionsStore.COLLECTIONS[this.singleCollectionName],e=t.outputPage,o=t.representation,n=e.toLowerCase().replace(/ /g,"-");return this.navOption=1,void this.tasks.push({collection:this.singleCollectionName,outputPage:e,outputPageUrl:n,representation:o,pageObject:null,completed:!1,error:!1,errors:[]})}const t=this.collectionsStore.COLLECTIONS_ORDER.filter((t=>{if(this.collectionsStore.COLLECTIONS[t].hasOwnProperty("outputPage")&&""!==this.collectionsStore.COLLECTIONS[t].outputPage&&!this.collectionsStore.COLLECTIONS[t].hide)return t}));for(let e of t){const t=this.collectionsStore.COLLECTIONS[e],o=t.outputPage,n=t.representation,i=o.toLowerCase().replace(/ /g,"-");this.tasks.push({collection:e,outputPage:o,outputPageUrl:i,representation:n,completed:!1,error:!1,errors:[]})}if(3!==this.navOption)return;const e=this.getPagesWithMultipleCollections();for(let t in e){const o=e[t],n=t.toLowerCase().replace(/ /g,"-");this.tasks.push({collections:o,outputPage:t,outputPageUrl:n,completed:!1,error:!1,errors:[]})}}getPagesWithMultipleCollections(){const t=this.collectionsStore.COLLECTIONS_ORDER,e=this.collectionsStore.COLLECTIONS,o={};t.forEach((t=>{e[t].hasOwnProperty("outputPage")&&""!==e[t].outputPage&&!e[t].hide&&(o.hasOwnProperty(e[t].outputPage)?o[e[t].outputPage].push(t):o[e[t].outputPage]=[t])}));for(let t in o)o[t].length<2&&delete o[t];return o}checkTaskList(){if(2===this.navOption&&this.tasks.length>1){const t=this.tasks.map((t=>t.outputPage)),e=[...new Set(t)];t.length!==e.length&&(this.errors.push(`"Pages" nav option doesn't work with pages used by multiple collections\nPage(s) used multiple times include: ${e.toString()}`),this.completedTasks=this.tasks,this.tasks=[])}}startUpdate(){if(0!==this.tasks.length)if(this.tasks[0].hasOwnProperty("collection")&&this.collectionsStore.COLLECTIONS[this.tasks[0].collection].hasOwnProperty("includePage")&&""!==this.collectionsStore.COLLECTIONS[this.tasks[0].collection].includePage){let t=this.collectionsStore.COLLECTIONS[this.tasks[0].collection].includePage;t=t.toLowerCase().replace(/ /g,"-"),this.getIncludePageContent(t)}else this.getOutputPage();else this.complete()}errorFirstTask(t){let e=this.tasks.shift();e.error=!0,e.errors.push(t),this.completedTasks.push(e),this.startUpdate()}generateOutcomesString(t){let e=this.completedTasks.length,o=this.completedTasks.filter((t=>!0===t.completed)).length,n=this.completedTasks.filter((t=>!0===t.error)).length,i="";n>0&&(i=` with ${n} errors`);let r=`${t} completed ${o} of ${e} tasks${i}.`;this.completedTasks.length>0&&(r+="
    ");for(let t of this.completedTasks)t.error?r+=`
  • ${t.collection} - ${t.outputPageUrl} - errors - ${t.errors.join("\n ")}
  • `:t.completed&&(t.hasOwnProperty("collection")?r+=`
  • ${t.collection} - \n\t\t ${t.outputPage} - \n\t\t success\n\t\t
  • `:t.hasOwnProperty("collections")&&(r+=`
  • Tab navigation -\n\t\t ${t.outputPage} - \n\t\t success
  • `));if(this.completedTasks.length>0&&(r+="
"),this.errors.length>0){r+='

Errors:

    ';for(let t of this.errors)r+=`
  • ${t}
  • `;r+="
"}return r}async getIncludePageContent(t){let e=`/api/v1/courses/${this.configStore.courseId}/pages/${t}`;const o=await fetch(e,{method:"GET",credentials:"include",headers:{"Content-Type":"application/json",Accept:"application/json","X-CSRF-Token":this.configStore.csrfToken}});if(o.ok){const t=await o.json();this.tasks[0].includePageContent=`\n\t\t
\n\t\t ${t.body}\n\t\t
`}else this.tasks[0].includePageContent="";this.getOutputPage()}async getOutputPage(){let t=`/api/v1/courses/${this.configStore.courseId}/pages/${this.tasks[0].outputPageUrl}`,e=await fetch(t,{method:"GET",credentials:"include",headers:{"Content-Type":"application/json",Accept:"application/json","X-CSRF-Token":this.configStore.csrfToken}});if(200===e.status||404===e.status){const t=await e.json();this.tasks[0].pageObject=t,this.tasks[0].hasOwnProperty("collection")?this.updateOutputContent():this.updateTabContent()}}updateTabContent(){if(!this.tasks[0].hasOwnProperty("pageObject"))return void this.errorFirstTask(`No pageObject for ${this.tasks[0].outputPageUrl}`);const t=this.tasks[0].pageObject,e=this.tasks[0].collections,o=e.map((t=>t.replace(/ /g,"-"))),n=t.body,i=(new DOMParser).parseFromString(n,"text/html");let r="";for(let t=0;t\n ${e}`}return`\n
\n
    \n ${o}\n
\n\n ${e}\n
`}updateOutputContent(){if(!this.tasks[0].hasOwnProperty("pageObject"))return void this.errorFirstTask(`No pageObject for ${this.tasks[0].outputPageUrl}`);let t="";this.tasks[0].pageObject.hasOwnProperty("message")||"page not found"===this.tasks[0].pageObject.message||(t=this.tasks[0].pageObject.body);let e=this.tasks[0].collection;const o=e.replace(/ /g,"-"),n=this.generateClaytons(e),i=`cc-output-${o}`,r=(new DOMParser).parseFromString(t,"text/html"),s=r.getElementById(i);if(s)s.innerHTML=n;else{const t=r.createElement("div");t.id=i,t.innerHTML=n,r.body.appendChild(t)}if(this.tasks[0].hasOwnProperty("includePageContent")&&this.tasks[0].includePageContent){const t=r.getElementById(i),o=t.getElementsByClassName("cc-includePage");for(let t=0;tUpdated \n\t\t\n\t\t${this.tasks[0].outputPage}\n\t\tfor the collection ${this.tasks[0].collection}

`,"success")}else if(3===this.navOption&&this.tasks[0].hasOwnProperty("collections")){xs(`

Added tab navigation to \n\t\t\n\t\t${this.tasks[0].outputPage}

`,"success")}let t=this.tasks.shift();t.completed=!0,this.completedTasks.push(t),this.startUpdate()}else this.errorFirstTask(`No data provided for page ${o}`);else this.errorFirstTask(`Unable to update page ${o} in Canvas`)}}function yd(t,e,o){const n=t.slice();return n[30]=e[o],n}function wd(t){let e,o,i,r;return{c(){e=v("i"),C(e,"class","icon-arrow-up cc-move-collection svelte-pbiojg"),C(e,"id",o="cc-collection-$"+t[0]+"-up")},m(o,n){m(o,e,n),i||(r=[S(e,"click",t[10]),S(e,"keydown",t[10])],i=!0)},p(t,n){33&n[0]&&o!==(o="cc-collection-$"+t[0]+"-up")&&C(e,"id",o)},d(t){t&&g(e),i=!1,n(r)}}}function xd(t){let e,o,i,r;return{c(){e=v("i"),C(e,"class","icon-arrow-down cc-move-collection svelte-pbiojg"),C(e,"id",o="cc-collection-$"+t[0]+"-down")},m(o,n){m(o,e,n),i||(r=[S(e,"click",t[11]),S(e,"keydown",t[11])],i=!0)},p(t,n){33&n[0]&&o!==(o="cc-collection-$"+t[0]+"-down")&&C(e,"id",o)},d(t){t&&g(e),i=!1,n(r)}}}function Sd(t){let e,o,n,i=t[30]+"";return{c(){e=v("option"),o=y(i),e.__value=n=t[30],e.value=e.__value},m(t,n){m(t,e,n),f(e,o)},p(t,r){32&r[0]&&i!==(i=t[30]+"")&&O(o,i),32&r[0]&&n!==(n=t[30])&&(e.__value=n,e.value=e.__value)},d(t){t&&g(e)}}}function Ed(e){let o,i,r,s,l,a,c,d,u,h,p,x,E,_,L,M,$,D,I,A,N,U,P,z,j,R,H,B,q,F,G,W,Y,K,J,X,Q,Z,tt,et,ot,nt,it,rt,st,lt,at,ct,dt,ut,ht,pt,ft,mt,gt,bt,vt,yt,wt,xt,St,Et,Ct,kt,Ot,_t,Lt,Tt,Mt,$t,Dt,It,At,Nt,Ut,Pt,zt,jt,Rt,Ht,Bt,qt,Ft,Vt,Gt,Wt,Yt,Kt,Jt,Xt,Qt,Zt,te,ee,oe,ne,ie,re,se,le,ae,ce,de,ue,he,pe,fe,me,ge,be,ve,ye,we,xe,Se,Ee,Ce,ke,Oe,_e,Le,Te,Me,$e,De,Ie,Ae,Ne,Ue,Pe,ze,je,Re,He,Be,qe,Fe,Ve,Ge,We,Ye,Ke,Je,Xe,Qe,Ze,to,eo,oo,no,io=e[15].configName.tooltip+"",ro=e[15].configRepresentation.tooltip+"",so=e[15].configDefault.tooltip+"",lo=e[15].configHide.tooltip+"",ao=e[15].configUnallocated.tooltip+"",co=e[15].configIncludePage.tooltip+"",uo=e[15].configIncludePageAfter.tooltip+"",ho=e[15].configOutputPage.tooltip+"",po=e[1]>0&&wd(e),fo=e[1]\n ");for(let t=0;te[18].call(rt))),C(it,"class","cc-collection-input svelte-pbiojg"),C(G,"class","cc-collection-form svelte-pbiojg"),C(ut,"for",pt="cc-config-collection-"+e[0]+"-default"),C(ut,"class","svelte-pbiojg"),C(gt,"slot","content"),C(yt,"class","icon-question cc-module-icon svelte-pbiojg"),C(vt,"href",e[15].configDefault.url),C(vt,"target","_blank"),C(vt,"rel","noreferrer"),k(mt,"class","svelte-pbiojg"),C(xt,"type","checkbox"),C(xt,"id",St="cc-config-collection-"+e[0]+"-default"),xt.checked=Et=e[7].DEFAULT_ACTIVE_COLLECTION===e[0],C(xt,"class","svelte-pbiojg"),C(Ot,"for",Lt="cc-config-collection-"+e[0]+"-hide"),C(Ot,"class","svelte-pbiojg"),C($t,"slot","content"),C(At,"class","icon-question cc-module-icon svelte-pbiojg"),C(It,"target","_blank"),C(It,"href",e[15].configHide.url),C(It,"rel","noreferrer"),k(Mt,"class","svelte-pbiojg"),C(Ut,"type","checkbox"),C(Ut,"class","cc-config-collection-hide svelte-pbiojg"),Ut.disabled=Pt=e[7].DEFAULT_ACTIVE_COLLECTION===e[0],C(kt,"class","cc-collection-double-center svelte-pbiojg"),C(Rt,"for",Bt="cc-config-collection-"+e[0]+"-unallocated"),C(Rt,"class","svelte-pbiojg"),C(Vt,"slot","content"),C(Yt,"class","icon-question cc-module-icon svelte-pbiojg"),C(Wt,"href",e[15].configUnallocated.url),C(Wt,"target","_blank"),C(Wt,"rel","noreferrer"),k(Ft,"class","svelte-pbiojg"),C(Jt,"type","checkbox"),C(Jt,"id",Xt="cc-config-collection-"+e[0]+"-unallocated"),C(Jt,"class","svelte-pbiojg"),C(ct,"class","cc-collection-double svelte-pbiojg"),C(ee,"for",ne="cc-collection-"+e[0]+"-include-page"),C(ee,"class","svelte-pbiojg"),C(se,"slot","content"),C(ce,"class","icon-question cc-module-icon svelte-pbiojg"),C(ae,"id","cc-about-include-page"),C(ae,"rel","noreferrer"),C(ae,"target","_blank"),C(ae,"href",e[15].configIncludePage.url),k(re,"class","svelte-pbiojg"),C(te,"class","cc-collection-two-line-header svelte-pbiojg"),C(fe,"id",me="cc-collection-"+e[0]+"-includePage"),fe.value=ge=e[7].COLLECTIONS[e[0]].includePage,C(fe,"class","svelte-pbiojg"),C(ye,"for",xe="cc-config-collection-"+e[0]+"-include-after"),C(ye,"class","svelte-pbiojg"),C(Ce,"slot","content"),C(_e,"class","icon-question cc-module-icon svelte-pbiojg"),C(Oe,"id","cc-about-include-after"),C(Oe,"href",e[15].configIncludePageAfter.url),C(Oe,"target","_blank"),C(Oe,"rel","noreferrer"),k(Ee,"class","svelte-pbiojg"),C(Te,"type","checkbox"),C(Te,"id",Me="cc-config-collection-"+e[0]+"-include-after"),C(Te,"class","cc-config-collection-include-after svelte-pbiojg"),C(ve,"class","cc-collection-label svelte-pbiojg"),C(pe,"class","cc-collection-two-line-body svelte-pbiojg"),C(Zt,"class","cc-collection-two-line svelte-pbiojg"),C(Ae,"for",Ue="cc-collection-"+e[0]+"-output-page"),C(Ae,"class","svelte-pbiojg"),C(je,"slot","content"),C(Be,"class","icon-question cc-module-icon svelte-pbiojg"),C(He,"id","cc-about-update-output-page"),C(He,"target","_blank"),C(He,"href",e[15].configOutputPage.url),C(He,"rel","noreferrer"),k(ze,"class","svelte-pbiojg"),C(Ie,"class","cc-collection-two-line-header svelte-pbiojg"),C(We,"id",Ye="cc-collection-"+e[0]+"-outputPage"),We.value=Ke=e[7].COLLECTIONS[e[0]].outputPage,C(We,"class","svelte-pbiojg"),C(Xe,"id",Ze="cc-collection-"+e[0]+"-output-page-update"),C(Xe,"class","btn svelte-pbiojg"),Xe.disabled=to=""===e[7].COLLECTIONS[e[0]].outputPage,C(Ge,"class","cc-collection-two-line-body svelte-pbiojg"),C(De,"class","cc-collection-two-line svelte-pbiojg"),C(o,"class","cc-existing-collection border border-trbl svelte-pbiojg"),C(o,"id",eo="cc-collection-"+e[0])},m(t,n){m(t,o,n),f(o,i),f(i,r),f(i,s),f(i,l),f(i,a),f(i,c),f(i,d),f(i,u),po&&po.m(u,null),f(u,h),fo&&fo.m(u,null),f(u,p),f(u,x),f(o,_),f(o,L),f(L,M),f(M,$),f($,D),f(M,A),f(M,N),f(N,U),U.innerHTML=io,f(N,P),f(N,z),f(z,j),f(L,R),f(L,H),f(H,B),f(o,F),f(o,G),f(G,W),f(W,Y),f(Y,K),f(W,X),f(W,Q),f(Q,Z),Z.innerHTML=ro,f(Q,tt),f(Q,et),f(et,ot),f(G,nt),f(G,it),f(it,rt),f(rt,st);for(let t=0;t0?po?po.p(t,e):(po=wd(t),po.c(),po.m(u,h)):po&&(po.d(1),po=null),t[1]o(6,n=t))),u(t,sc,(t=>o(7,i=t))),u(t,cc,(t=>o(17,r=t)));let{collectionName:s}=e,{order:l}=e,{numCollections:a}=e;const c=P();["includePage","outputPage"].forEach((t=>{i.COLLECTIONS[s].hasOwnProperty(t)||p(sc,i.COLLECTIONS[s][t]="",i)}));let d,h={},f=0,m="modules";function g(t){new vd(t,b).execute()}function b(t){const e=t.getPageNamesUpdated();e.forEach((t=>{c("message",{msgType:"updatePage",pageType:"outputPage",pageName:t})})),xs(`

Updating the following pages

\n ${e.map((t=>`

${t}

`)).join("")}`)}const v={configName:{tooltip:"A collection's name will be used to navigate between collections",url:"https://djplaner.github.io/canvas-collections/reference/conceptual-model/collections/existing-collections/#name"},configRepresentation:{tooltip:"Specify how the collection will be displayed by choosing one of the available representations. Representations can be changed at any time.",url:"https://djplaner.github.io/canvas-collections/reference/conceptual-model/collections/existing-collections/#representation"},configDefault:{tooltip:"The default collection will be the first people see when the visit for the first time.",url:"https://djplaner.github.io/canvas-collections/reference/conceptual-model/collections/existing-collections/#default"},configHide:{tooltip:"

Make collection invisible to students. \n\t\t(Note: can't hide the default collection)

\n\t\t

Also unpublish all the collection's modules to be ensure they are hidden.",url:"https://djplaner.github.io/canvas-collections/reference/conceptual-model/collections/existing-collections/#hide"},configUnallocated:{tooltip:"

When students view this collection, include modules not allocated to any collection.

",url:"https://djplaner.github.io/canvas-collections/reference/conceptual-model/collections/existing-collections/#add-unallocated"},configIncludePage:{tooltip:"Specify the name of an existing Canvas page and the content of that page\n\t\twill be displayed before the current collection's representation \n\t\t(it is included)",url:"https://djplaner.github.io/canvas-collections/reference/conceptual-model/collections/existing-collections/#include-page"},configIncludePageAfter:{tooltip:"

By default, include page contents placed before the collection. When selected\n\t\twill place the include page contents after the collection.

",url:"https://djplaner.github.io/canvas-collections/reference/conceptual-model/collections/existing-collections/#include-page"},configOutputPage:{tooltip:"Update the output page with the collection's current representation.\n\t\t

Note: This is how you can use Collections with students without it being\n\t\tinstalled by your institution.

\n\t\t",url:"https://djplaner.github.io/canvas-collections/reference/conceptual-model/collections/existing-collections/#output-page"}};return t.$$set=t=>{"collectionName"in t&&o(0,s=t.collectionName),"order"in t&&o(1,l=t.order),"numCollections"in t&&o(2,a=t.numCollections)},t.$$.update=()=>{196617&t.$$.dirty[0]&&(o(16,h=Bs(s)),o(3,f=h.length),o(4,m=1===f?"module":"modules"),o(5,d=Object.getOwnPropertyNames(r)))},[s,l,a,f,m,d,n,i,function(t){const e=t.target.value;let o=t.target.id.split("-")[3];const n=i.COLLECTIONS[s][o]||"";["includePage","outputPage"].includes(o)?e!==n&&c("message",{msgType:"changeName",pageType:o,collectionName:s,pageName:e}):xs(`Unknown page type ${o}`,"error")},function(t){if(!t.srcElement.checked)return t.preventDefault(),xs("

There must always be a default collection. \n Change the default collection by selecting another collection as the new default.

","warning"),!1;p(ac,n.needToSaveCollections=!0,n),p(sc,i.DEFAULT_ACTIVE_COLLECTION=s,i)},function(){let t=i.COLLECTIONS_ORDER.indexOf(s);i.COLLECTIONS_ORDER.splice(t,1),i.COLLECTIONS_ORDER.splice(t-1,0,s),sc.set(i),p(sc,i.DEFAULT_ACTIVE_COLLECTION=s,i),p(ac,n.needToSaveCollections=!0,n)},function(){let t=i.COLLECTIONS_ORDER.indexOf(s);i.COLLECTIONS_ORDER.splice(t,1),i.COLLECTIONS_ORDER.splice(t+1,0,s),sc.set(i),p(sc,i.DEFAULT_ACTIVE_COLLECTION=s,i),p(ac,n.needToSaveCollections=!0,n)},function(){Ss(`

Are you sure you want to delete the collection ${s}?

`).then((t=>{if(t){let t=i.COLLECTIONS_ORDER.indexOf(s);i.COLLECTIONS_ORDER.splice(t,1),sc.set(i),i.DEFAULT_ACTIVE_COLLECTION===s&&p(sc,i.DEFAULT_ACTIVE_COLLECTION=i.COLLECTIONS_ORDER[0],i),n.currentCollection===s&&p(ac,n.currentCollection=i.DEFAULT_ACTIVE_COLLECTION,n);for(const t in i.MODULES)i.MODULES[t].collection===s&&p(sc,i.MODULES[t].collection=null,i);delete i.COLLECTIONS[s],p(ac,n.needToSaveCollections=!0,n)}}))},function(t){const e=t.target.value;Ss(`

Are you sure you want to change the collection's name from \n ${s} to ${e}

`).then((o=>{if(o){let t=i.COLLECTIONS_ORDER.indexOf(s);p(sc,i.COLLECTIONS_ORDER[t]=e,i),i.DEFAULT_ACTIVE_COLLECTION===s&&p(sc,i.DEFAULT_ACTIVE_COLLECTION=e,i),n.currentCollection===s&&p(ac,n.currentCollection=i.DEFAULT_ACTIVE_COLLECTION,n);for(const t in i.MODULES)i.MODULES[t].collection===s&&p(sc,i.MODULES[t].collection=e,i);p(sc,i.COLLECTIONS[e]=i.COLLECTIONS[s],i),delete i.COLLECTIONS[s],p(ac,n.needToSaveCollections=!0,n)}else t.target.value=s}))},g,v,h,r,function(){i.COLLECTIONS[s].representation=M(this),sc.set(i),o(5,d),o(0,s),o(16,h),o(3,f),o(17,r)},()=>p(ac,n.needToSaveCollections=!0,n),function(){i.COLLECTIONS[s].hide=this.checked,sc.set(i),o(5,d),o(0,s),o(16,h),o(3,f),o(17,r)},()=>p(ac,n.needToSaveCollections=!0,n),function(){i.COLLECTIONS[s].unallocated=this.checked,sc.set(i),o(5,d),o(0,s),o(16,h),o(3,f),o(17,r)},()=>p(ac,n.needToSaveCollections=!0,n),()=>p(ac,n.needToSaveCollections=!0,n),()=>p(ac,n.needToSaveCollections=!0,n),function(){i.COLLECTIONS[s].includeAfter=this.checked,sc.set(i),o(5,d),o(0,s),o(16,h),o(3,f),o(17,r)},()=>{g(s)}]}class kd extends ct{constructor(t){super(),at(this,t,Cd,Ed,r,{collectionName:0,order:1,numCollections:2},null,[-1,-1])}}function Od(t,e,o){const n=t.slice();return n[7]=e[o],n[8]=e,n[9]=o,n}function _d(t){let e;return{c(){e=v("p"),e.textContent="No collections have been defined",C(e,"class","svelte-hus6yv")},m(t,o){m(t,e,o)},d(t){t&&g(e)}}}function Ld(t){let e,o,n,i;function r(e){t[4](e,t[7])}function s(e){t[5](e,t[7])}let l={collectionName:t[7],order:t[9],numCollections:t[2].COLLECTIONS_ORDER.length};return void 0!==t[0][t[7]]&&(l.includePageExists=t[0][t[7]]),void 0!==t[1][t[7]]&&(l.outputPageExists=t[1][t[7]]),e=new kd({props:l}),R.push((()=>nt(e,"includePageExists",r))),R.push((()=>nt(e,"outputPageExists",s))),e.$on("message",t[6]),{c(){it(e.$$.fragment)},m(t,o){rt(e,t,o),i=!0},p(i,r){t=i;const s={};4&r&&(s.collectionName=t[7]),4&r&&(s.numCollections=t[2].COLLECTIONS_ORDER.length),!o&&5&r&&(o=!0,s.includePageExists=t[0][t[7]],G((()=>o=!1))),!n&&6&r&&(n=!0,s.outputPageExists=t[1][t[7]],G((()=>n=!1))),e.$set(s)},i(t){i||(et(e.$$.fragment,t),i=!0)},o(t){ot(e.$$.fragment,t),i=!1},d(t){st(e,t)}}}function Td(t){let e,o,n,i,r,s,l,a,c,d,u,h=t[3].existing.tooltip+"",p=0===t[2].COLLECTIONS_ORDER.length&&_d(),y=t[2].COLLECTIONS_ORDER,S=[];for(let e=0;eot(S[t],1,1,(()=>{S[t]=null}));return{c(){e=v("strong"),e.textContent="Existing collections",o=w(),n=v("sl-tooltip"),i=v("div"),r=w(),s=v("a"),l=v("i"),a=w(),p&&p.c(),c=w();for(let t=0;to(2,n=t)));let{includePageExists:i={}}=e,{outputPageExists:r={}}=e;return t.$$set=t=>{"includePageExists"in t&&o(0,i=t.includePageExists),"outputPageExists"in t&&o(1,r=t.outputPageExists)},[i,r,n,{existing:{url:"https://djplaner.github.io/canvas-collections/reference/conceptual-model/collections/existing-collections/",tooltip:"

The collections already defined for this course.

"}},function(e,n){t.$$.not_equal(i[n],e)&&(i[n]=e,o(0,i))},function(e,n){t.$$.not_equal(r[n],e)&&(r[n]=e,o(1,r))},function(e){z.call(this,t,e)}]}class $d extends ct{constructor(t){super(),at(this,t,Md,Td,r,{includePageExists:0,outputPageExists:1})}}function Dd(t,e,o){const n=t.slice();return n[1]=e[o],n}function Id(e){let o,n,i=e[1]+"";return{c(){o=v("option"),n=y(i),o.__value=e[1],o.value=o.__value},m(t,e){m(t,o,e),f(o,n)},p:t,d(t){t&&g(o)}}}function Ad(e){let o,i,r,s,l,a,c,d,u,h,p,y,x,k,O,M,$,D,I,A,N,U,P,z,j,R,H,B=e[4].newCollection.tooltip+"",q=e[4].representation.tooltip+"",F=e[2],G=[];for(let t=0;te[6].call(U))),C(x,"class","cc-collection-representation svelte-ngt5p6"),C(j,"class","btn btn-primary svelte-ngt5p6"),C(j,"id","cc-config-new-collection-button"),C(z,"class","ic-Fieldset ic-Fieldset--radio-checkbox"),C(u,"class","cc-config-collection border border-trbl svelte-ngt5p6")},m(t,n){m(t,o,n),m(t,i,n),m(t,r,n),f(r,s),s.innerHTML=B,f(r,l),f(r,a),f(a,c),m(t,d,n),m(t,u,n),f(u,h),f(h,p),_(p,e[0]),f(u,y),f(u,x),f(x,k),f(x,O),f(x,M),f(M,$),$.innerHTML=q,f(M,D),f(M,I),f(I,A),f(x,N),f(x,U);for(let t=0;to(7,n=t))),u(t,sc,(t=>o(8,i=t))),u(t,cc,(t=>o(9,r=t)));let s="",l="",a=Object.getOwnPropertyNames(r);const c={name:"",representation:"",outputPage:"",hide:!1,includePage:"",includeAfter:!1};return[s,l,a,function(){if(""===s||""===l)return""===s&&xs("

Please enter a name for the new collection

","danger"),void(""===l&&xs("

Please select a representation for the new collection

","danger"));if(i.COLLECTIONS[s])return void xs(`

Collection name ${s} already exists

`,"danger");let t=Object.assign({},c);t.name=s,t.representation=l,p(sc,i.COLLECTIONS[s]=t,i),""===i.DEFAULT_ACTIVE_COLLECTION&&p(sc,i.DEFAULT_ACTIVE_COLLECTION=s,i),i.COLLECTIONS_ORDER.push(s),""===n.currentCollection&&p(ac,n.currentCollection=s,n),o(0,s=""),o(1,l=""),function(){ge();let t=me();t&&new bd({target:t})}(),p(ac,n.needToSaveCollections=!0,n)},{newCollection:{url:"https://djplaner.github.io/canvas-collections/reference/conceptual-model/collections/add-a-new-collection/",tooltip:"

Create a new collection

"},representation:{url:"https://djplaner.github.io/canvas-collections/reference/conceptual-model/collections/add-a-new-collection/#representation",tooltip:"

Choose an initial representation. Can be changed later.

"}},function(){s=this.value,o(0,s)},function(){l=M(this),o(1,l),o(2,a)}]}class Ud extends ct{constructor(t){super(),at(this,t,Nd,Ad,r,{})}}function Pd(e){let o,i,r,s,l,a,c,d,u,h,p,b,y,x,E,k,O,_,T,M,$,D,I,A,N,U,P,z=e[1].fullClaytons.tooltip+"",j=e[1].navBarOptions.tooltip+"";return{c(){o=v("div"),i=v("div"),r=v("strong"),r.textContent='Full "Claytons"',s=w(),l=v("sl-tooltip"),a=v("div"),c=w(),d=v("a"),u=v("i"),h=w(),p=v("div"),b=v("label"),b.textContent="Navigation Bar Options",y=w(),x=v("sl-tooltip"),E=v("div"),k=w(),O=v("a"),_=v("i"),T=w(),M=v("div"),$=v("button"),$.textContent="None",D=w(),I=v("button"),I.textContent="Pages",A=w(),N=v("button"),N.textContent="Tabs",C(a,"slot","content"),C(u,"class","icon-question cc-module-icon"),C(d,"target","_blank"),C(d,"rel","noreferrer"),C(d,"href",e[1].fullClaytons.url),C(b,"for","cc-config-full-claytons-navigation-option"),C(E,"slot","content"),C(_,"class","icon-question cc-module-icon"),C(O,"target","_blank"),C(O,"rel","noreferrer"),C(O,"href",e[1].navBarOptions.url),C($,"class","btn svelte-9blo5x"),C(I,"class","btn svelte-9blo5x"),C(N,"class","btn svelte-9blo5x"),C(M,"class","cc-config-full-claytons-navigation-option svelte-9blo5x"),C(p,"class","border border-trbl"),L(p,"padding","0.5em"),L(o,"margin-top","0.5em")},m(t,n){m(t,o,n),f(o,i),f(i,r),f(i,s),f(i,l),f(l,a),a.innerHTML=z,f(l,c),f(l,d),f(d,u),f(o,h),f(o,p),f(p,b),f(p,y),f(p,x),f(x,E),E.innerHTML=j,f(x,k),f(x,O),f(O,_),f(p,T),f(p,M),f(M,$),f(M,D),f(M,I),f(M,A),f(M,N),U||(P=[S($,"click",e[2]),S(I,"click",e[3]),S(N,"click",e[4])],U=!0)},p:t,i:t,o:t,d(t){t&&g(o),U=!1,n(P)}}}function zd(t){const e=P();function o(t){const e=["none","pages","tabs"].indexOf(t)+1;new vd(void 0,n,e).execute()}function n(t){let o=t.generateOutcomesString("Full Claytons update");if(t.getPageNamesUpdated().forEach((t=>{e("message",{msgType:"updatePage",pageType:"outputPage",pageName:t})})),!t.singleCollection){xs(o,t.getNumErrors()>0?"danger":"success")}}return[o,{fullClaytons:{tooltip:"

Update all the specified output pages with static representations of each collection using the selected navigation options.

",url:"https://djplaner.github.io/canvas-collections/reference/conceptual-model/collections/full-claytons/"},navBarOptions:{tooltip:"

There are three navigation bar options:

\n\t\t
    \n\t\t
  1. None - no navigation between pages/collections.
  2. \n\t\t
  3. Pages - collections on separate pages with navigation between.
  4. \n\t\t
  5. Tabs - multiple collections on a page with tab navigation.
  6. \n\t\t
",url:"https://djplaner.github.io/canvas-collections/reference/conceptual-model/collections/full-claytons/#navigation-bar-options"}},()=>o("none"),()=>o("pages"),()=>o("tabs")]}class jd extends ct{constructor(t){super(),at(this,t,zd,Pd,r,{})}}function Rd(t,e,o){const n=t.slice();return n[14]=e[o],n}function Hd(e){let o,n,i=e[14]+"";return{c(){o=v("option"),n=y(i),o.__value=e[14],o.value=o.__value},m(t,e){m(t,o,e),f(o,n)},p:t,d(t){t&&g(o)}}}function Bd(t){let e,o,i,r,s,l,a,c,d,u,h,p,y,x,E,k,O,_,L,M,$,D,I,A,N,U,P,z,j=t[6].visibility.tooltip+"",H=t[4],B=[];for(let e=0;ent(_,"includePageExists",q))),R.push((()=>nt(_,"outputPageExists",F))),_.$on("message",t[5]),I=new Ud({}),N=new jd({}),N.$on("message",t[5]),{c(){e=v("div"),o=v("div"),o.innerHTML='

Configure Canvas Collections

',i=w(),r=v("div"),s=v("small"),s.textContent="Visibility",l=w(),a=v("sl-tooltip"),c=v("div"),d=w(),u=v("a"),h=v("i"),p=w(),y=v("select");for(let t=0;tt[7].call(y))),C(r,"class","cc-collections-input"),C(e,"class","cc-header-grid svelte-1yieix7"),C(O,"id","cc-config-existing-collections"),C(D,"id","cc-config-new-collection"),C(k,"id","cc-config-body"),C(k,"class","svelte-1yieix7"),C(E,"class","cc-box-body svelte-1yieix7")},m(n,g){m(n,e,g),f(e,o),f(e,i),f(e,r),f(r,s),f(r,l),f(r,a),f(a,c),c.innerHTML=j,f(a,d),f(a,u),f(u,h),f(r,p),f(r,y);for(let t=0;tL=!1))),!M&&2&e&&(M=!0,o.outputPageExists=t[1],G((()=>M=!1))),_.$set(o)},i(t){U||(et(_.$$.fragment,t),et(I.$$.fragment,t),et(N.$$.fragment,t),U=!0)},o(t){ot(_.$$.fragment,t),ot(I.$$.fragment,t),ot(N.$$.fragment,t),U=!1},d(t){t&&g(e),b(B,t),t&&g(x),t&&g(E),st(_),st(I),st(N),P=!1,n(z)}}}function qd(t,e,o){let n,i;u(t,ac,(t=>o(2,n=t))),u(t,sc,(t=>o(3,i=t)));const r=["no-one","students","teachers","all"];let s={},l={};i.COLLECTIONS_ORDER.forEach((t=>{o(0,s[t]=!0,s),o(1,l[t]=!0,l)}));let a=c();function c(){let t={};return i.COLLECTIONS_ORDER.forEach((e=>{["includePage","outputPage"].forEach((o=>{const n=i.COLLECTIONS[e][o],r={pageType:o,collectionName:e};n&&""!==n&&(t.hasOwnProperty(n)||(t[n]=[]),t[n].push(r))}))})),t}function d(t,e){const n=e.body;let i=!1;n&&(i=!0),a[t].forEach((t=>{const e=t.pageType,n=t.collectionName;"includePage"===e?o(0,s[n]=i,s):o(1,l[n]=i,l)}))}Object.keys(a).forEach((t=>{ve(t,n.courseId,d)}));return[s,l,n,i,r,function(t){"changeName"===t.detail.msgType&&(p(sc,i.COLLECTIONS[t.detail.collectionName][t.detail.pageType]=t.detail.pageName,i),p(ac,n.needToSaveCollections=!0,n),a=c()),ve(t.detail.pageName,n.courseId,d)},{visibility:{tooltip:"

For whom are Collections changes visible?

\n
    \n
  • no-one - no changes made for anyone
  • \n
  • students - only student, not teachers
  • \n
  • teachers - only teachers/designers
  • \n
  • all - all users
  • \n
",url:"https://djplaner.github.io/canvas-collections/reference/lifecycle/visibility/live/"}},function(){i.VISIBILITY=M(this),sc.set(i),o(4,r)},()=>p(ac,n.needToSaveCollections=!0,n),function(t){s=t,o(0,s)},function(t){l=t,o(1,l)}]}class Fd extends ct{constructor(t){super(),at(this,t,qd,Bd,r,{})}}class Vd{constructor(t,e){this.configStore=d(ac),this.baseApiUrl=this.configStore.baseApiUrl,this.isStudent=!this.configStore.editMode,this.finishedCallBack=t,this.config=e,this.currentHostName=document.location.hostname,this.config.courseId=parseInt(this.config.courseId),this.requestCourseObject()}refreshCanvasDetails(t){this.finishedCallBack=t,this.requestCourseObject()}requestCourseObject(){he(`${this.baseApiUrl}/courses/${this.config.courseId}`).then((t=>{200===t.status&&(this.courseObject=t.body,this.requestModulesItems())}))}requestModulesItems(){he(`${this.baseApiUrl}/courses/${this.config.courseId}/modules?include=items&per_page=500`).then((t=>{200===t.status&&(this.courseModules=t.body,this.requestModulesCompletion())}))}requestModulesCompletion(){const t=ENV.current_user_id;this.isStudent?he(`${this.baseApiUrl}/courses/${this.config.courseId}/modules?include=items&per_page=500&student_id=${t}`).then((t=>{200===t.status&&(this.courseModuleItems=t.body,this.summariseCompletion(),this.finishedCallBack())})):this.finishedCallBack()}summariseCompletion(){const t={};this.courseModules.forEach((e=>{t[e.id]=e}));const e={};this.courseModuleItems.forEach((t=>{e[t.id]=t}));for(const o in t)t[o].completion_summary={completion_count:0,completed_count:0},e.hasOwnProperty(o)&&e[o].items.forEach((e=>{e.hasOwnProperty("completion_requirement")&&(t[o].completion_summary.completion_count++,e.completion_requirement.completed&&t[o].completion_summary.completed_count++)}))}}class Gd{constructor(){this.userId="",this.courseId="",this.isStudent=!1,this.currentUser={},this.userId=ENV.current_user_id,this.courseId=ENV.course_id,this.isStudent=ENV.IS_STUDENT,this.currentUser=ENV.current_user}}var Wd=Object.defineProperty,Yd=Object.defineProperties,Kd=Object.getOwnPropertyDescriptor,Jd=Object.getOwnPropertyDescriptors,Xd=Object.getOwnPropertySymbols,Qd=Object.prototype.hasOwnProperty,Zd=Object.prototype.propertyIsEnumerable,tu=(t,e,o)=>e in t?Wd(t,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[e]=o,eu=(t,e)=>{for(var o in e||(e={}))Qd.call(e,o)&&tu(t,o,e[o]);if(Xd)for(var o of Xd(e))Zd.call(e,o)&&tu(t,o,e[o]);return t},ou=(t,e)=>Yd(t,Jd(e)),nu=(t,e,o,n)=>{for(var i,r=n>1?void 0:n?Kd(e,o):e,s=t.length-1;s>=0;s--)(i=t[s])&&(r=(n?i(e,o,r):i(r))||r);return n&&r&&Wd(e,o,r),r}; /** * @license * Copyright 2017 Google LLC * SPDX-License-Identifier: BSD-3-Clause */ const iu=t=>e=>"function"==typeof e?((t,e)=>(customElements.define(t,e),e))(t,e):((t,e)=>{const{kind:o,elements:n}=e;return{kind:o,elements:n,finisher(e){customElements.define(t,e)}}})(t,e) /** * @license * Copyright 2017 Google LLC * SPDX-License-Identifier: BSD-3-Clause */,ru=(t,e)=>"method"===e.kind&&e.descriptor&&!("value"in e.descriptor)?{...e,finisher(o){o.createProperty(e.key,t)}}:{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:e.key,initializer(){"function"==typeof e.initializer&&(this[e.key]=e.initializer.call(this))},finisher(o){o.createProperty(e.key,t)}},su=(t,e,o)=>{e.constructor.createProperty(o,t)};function lu(t){return(e,o)=>void 0!==o?su(t,e,o):ru(t,e) /** * @license * Copyright 2017 Google LLC * SPDX-License-Identifier: BSD-3-Clause */}function au(t){return lu({...t,state:!0})} /** * @license * Copyright 2017 Google LLC * SPDX-License-Identifier: BSD-3-Clause */ /** * @license * Copyright 2017 Google LLC * SPDX-License-Identifier: BSD-3-Clause */ function cu(t,e){return(({finisher:t,descriptor:e})=>(o,n)=>{var i;if(void 0===n){const n=null!==(i=o.originalKey)&&void 0!==i?i:o.key,r=null!=e?{kind:"method",placement:"prototype",key:n,descriptor:e(o.key)}:{...o,key:n};return null!=t&&(r.finisher=function(e){t(e,n)}),r}{const i=o.constructor;void 0!==e&&Object.defineProperty(o,n,e(n)),null==t||t(i,n)}})({descriptor:o=>{const n={get(){var e,o;return null!==(o=null===(e=this.renderRoot)||void 0===e?void 0:e.querySelector(t))&&void 0!==o?o:null},enumerable:!0,configurable:!0};if(e){const e="symbol"==typeof o?Symbol():"__"+o;n.get=function(){var o,n;return void 0===this[e]&&(this[e]=null!==(n=null===(o=this.renderRoot)||void 0===o?void 0:o.querySelector(t))&&void 0!==n?n:null),this[e]}}return n}})} /** * @license * Copyright 2021 Google LLC * SPDX-License-Identifier: BSD-3-Clause */var du;null===(du=window.HTMLSlotElement)||void 0===du||du.prototype.assignedElements;let uu="";function hu(t){uu=t}const pu={name:"default",resolver:t=>function(t=""){if(!uu){const t=[...document.getElementsByTagName("script")],e=t.find((t=>t.hasAttribute("data-shoelace")));if(e)hu(e.getAttribute("data-shoelace"));else{const e=t.find((t=>/shoelace(\.min)?\.js($|\?)/.test(t.src)||/shoelace-autoloader(\.min)?\.js($|\?)/.test(t.src)));let o="";e&&(o=e.getAttribute("src")),hu(o.split("/").slice(0,-1).join("/"))}}return uu.replace(/\/$/,"")+(t?`/${t.replace(/^\//,"")}`:"")}(`assets/icons/${t}.svg`)};const fu={caret:'\n \n \n \n ',check:'\n \n \n \n \n \n \n \n \n \n \n ',"chevron-down":'\n \n \n \n ',"chevron-left":'\n \n \n \n ',"chevron-right":'\n \n \n \n ',eye:'\n \n \n \n \n ',"eye-slash":'\n \n \n \n \n \n ',eyedropper:'\n \n \n \n ',"grip-vertical":'\n \n \n \n ',indeterminate:'\n \n \n \n \n \n \n \n \n \n ',"person-fill":'\n \n \n \n ',"play-fill":'\n \n \n \n ',"pause-fill":'\n \n \n \n ',radio:'\n \n \n \n \n \n \n \n ',"star-fill":'\n \n \n \n ',"x-lg":'\n \n \n \n ',"x-circle-fill":'\n \n \n \n '};let mu=[pu,{name:"system",resolver:t=>t in fu?`data:image/svg+xml,${encodeURIComponent(fu[t])}`:""}],gu=[];function bu(t){return mu.find((e=>e.name===t))} /** * @license * Copyright 2019 Google LLC * SPDX-License-Identifier: BSD-3-Clause */const vu=window,yu=vu.ShadowRoot&&(void 0===vu.ShadyCSS||vu.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,wu=Symbol(),xu=new WeakMap;class Su{constructor(t,e,o){if(this._$cssResult$=!0,o!==wu)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(yu&&void 0===t){const o=void 0!==e&&1===e.length;o&&(t=xu.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),o&&xu.set(e,t))}return t}toString(){return this.cssText}}const Eu=(t,...e)=>{const o=1===t.length?t[0]:e.reduce(((e,o,n)=>e+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(o)+t[n+1]),t[0]);return new Su(o,t,wu)},Cu=yu?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const o of t.cssRules)e+=o.cssText;return(t=>new Su("string"==typeof t?t:t+"",void 0,wu))(e)})(t):t /** * @license * Copyright 2017 Google LLC * SPDX-License-Identifier: BSD-3-Clause */;var ku;const Ou=window,_u=Ou.trustedTypes,Lu=_u?_u.emptyScript:"",Tu=Ou.reactiveElementPolyfillSupport,Mu={toAttribute(t,e){switch(e){case Boolean:t=t?Lu:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let o=t;switch(e){case Boolean:o=null!==t;break;case Number:o=null===t?null:Number(t);break;case Object:case Array:try{o=JSON.parse(t)}catch(t){o=null}}return o}},$u=(t,e)=>e!==t&&(e==e||t==t),Du={attribute:!0,type:String,converter:Mu,reflect:!1,hasChanged:$u},Iu="finalized";class Au extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this._$Eu()}static addInitializer(t){var e;this.finalize(),(null!==(e=this.h)&&void 0!==e?e:this.h=[]).push(t)}static get observedAttributes(){this.finalize();const t=[];return this.elementProperties.forEach(((e,o)=>{const n=this._$Ep(o,e);void 0!==n&&(this._$Ev.set(n,o),t.push(n))})),t}static createProperty(t,e=Du){if(e.state&&(e.attribute=!1),this.finalize(),this.elementProperties.set(t,e),!e.noAccessor&&!this.prototype.hasOwnProperty(t)){const o="symbol"==typeof t?Symbol():"__"+t,n=this.getPropertyDescriptor(t,o,e);void 0!==n&&Object.defineProperty(this.prototype,t,n)}}static getPropertyDescriptor(t,e,o){return{get(){return this[e]},set(n){const i=this[t];this[e]=n,this.requestUpdate(t,i,o)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||Du}static finalize(){if(this.hasOwnProperty(Iu))return!1;this[Iu]=!0;const t=Object.getPrototypeOf(this);if(t.finalize(),void 0!==t.h&&(this.h=[...t.h]),this.elementProperties=new Map(t.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const t=this.properties,e=[...Object.getOwnPropertyNames(t),...Object.getOwnPropertySymbols(t)];for(const o of e)this.createProperty(o,t[o])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const o=new Set(t.flat(1/0).reverse());for(const t of o)e.unshift(Cu(t))}else void 0!==t&&e.push(Cu(t));return e}static _$Ep(t,e){const o=e.attribute;return!1===o?void 0:"string"==typeof o?o:"string"==typeof t?t.toLowerCase():void 0}_$Eu(){var t;this._$E_=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$Eg(),this.requestUpdate(),null===(t=this.constructor.h)||void 0===t||t.forEach((t=>t(this)))}addController(t){var e,o;(null!==(e=this._$ES)&&void 0!==e?e:this._$ES=[]).push(t),void 0!==this.renderRoot&&this.isConnected&&(null===(o=t.hostConnected)||void 0===o||o.call(t))}removeController(t){var e;null===(e=this._$ES)||void 0===e||e.splice(this._$ES.indexOf(t)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach(((t,e)=>{this.hasOwnProperty(e)&&(this._$Ei.set(e,this[e]),delete this[e])}))}createRenderRoot(){var t;const e=null!==(t=this.shadowRoot)&&void 0!==t?t:this.attachShadow(this.constructor.shadowRootOptions);return((t,e)=>{yu?t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):e.forEach((e=>{const o=document.createElement("style"),n=vu.litNonce;void 0!==n&&o.setAttribute("nonce",n),o.textContent=e.cssText,t.appendChild(o)}))})(e,this.constructor.elementStyles),e}connectedCallback(){var t;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostConnected)||void 0===e?void 0:e.call(t)}))}enableUpdating(t){}disconnectedCallback(){var t;null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostDisconnected)||void 0===e?void 0:e.call(t)}))}attributeChangedCallback(t,e,o){this._$AK(t,o)}_$EO(t,e,o=Du){var n;const i=this.constructor._$Ep(t,o);if(void 0!==i&&!0===o.reflect){const r=(void 0!==(null===(n=o.converter)||void 0===n?void 0:n.toAttribute)?o.converter:Mu).toAttribute(e,o.type);this._$El=t,null==r?this.removeAttribute(i):this.setAttribute(i,r),this._$El=null}}_$AK(t,e){var o;const n=this.constructor,i=n._$Ev.get(t);if(void 0!==i&&this._$El!==i){const t=n.getPropertyOptions(i),r="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==(null===(o=t.converter)||void 0===o?void 0:o.fromAttribute)?t.converter:Mu;this._$El=i,this[i]=r.fromAttribute(e,t.type),this._$El=null}}requestUpdate(t,e,o){let n=!0;void 0!==t&&(((o=o||this.constructor.getPropertyOptions(t)).hasChanged||$u)(this[t],e)?(this._$AL.has(t)||this._$AL.set(t,e),!0===o.reflect&&this._$El!==t&&(void 0===this._$EC&&(this._$EC=new Map),this._$EC.set(t,o))):n=!1),!this.isUpdatePending&&n&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach(((t,e)=>this[e]=t)),this._$Ei=void 0);let e=!1;const o=this._$AL;try{e=this.shouldUpdate(o),e?(this.willUpdate(o),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostUpdate)||void 0===e?void 0:e.call(t)})),this.update(o)):this._$Ek()}catch(t){throw e=!1,this._$Ek(),t}e&&this._$AE(o)}willUpdate(t){}_$AE(t){var e;null===(e=this._$ES)||void 0===e||e.forEach((t=>{var e;return null===(e=t.hostUpdated)||void 0===e?void 0:e.call(t)})),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(t){return!0}update(t){void 0!==this._$EC&&(this._$EC.forEach(((t,e)=>this._$EO(e,this[e],t))),this._$EC=void 0),this._$Ek()}updated(t){}firstUpdated(t){}} /** * @license * Copyright 2017 Google LLC * SPDX-License-Identifier: BSD-3-Clause */ var Nu;Au[Iu]=!0,Au.elementProperties=new Map,Au.elementStyles=[],Au.shadowRootOptions={mode:"open"},null==Tu||Tu({ReactiveElement:Au}),(null!==(ku=Ou.reactiveElementVersions)&&void 0!==ku?ku:Ou.reactiveElementVersions=[]).push("1.6.3");const Uu=window,Pu=Uu.trustedTypes,zu=Pu?Pu.createPolicy("lit-html",{createHTML:t=>t}):void 0,ju="$lit$",Ru=`lit$${(Math.random()+"").slice(9)}$`,Hu="?"+Ru,Bu=`<${Hu}>`,qu=document,Fu=()=>qu.createComment(""),Vu=t=>null===t||"object"!=typeof t&&"function"!=typeof t,Gu=Array.isArray,Wu="[ \t\n\f\r]",Yu=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Ku=/-->/g,Ju=/>/g,Xu=RegExp(`>|${Wu}(?:([^\\s"'>=/]+)(${Wu}*=${Wu}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),Qu=/'/g,Zu=/"/g,th=/^(?:script|style|textarea|title)$/i,eh=(t=>(e,...o)=>({_$litType$:t,strings:e,values:o}))(1),oh=Symbol.for("lit-noChange"),nh=Symbol.for("lit-nothing"),ih=new WeakMap,rh=qu.createTreeWalker(qu,129,null,!1);function sh(t,e){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==zu?zu.createHTML(e):e}const lh=(t,e)=>{const o=t.length-1,n=[];let i,r=2===e?"":"",s=Yu;for(let e=0;e"===a[0]?(s=null!=i?i:Yu,c=-1):void 0===a[1]?c=-2:(c=s.lastIndex-a[2].length,l=a[1],s=void 0===a[3]?Xu:'"'===a[3]?Zu:Qu):s===Zu||s===Qu?s=Xu:s===Ku||s===Ju?s=Yu:(s=Xu,i=void 0);const u=s===Xu&&t[e+1].startsWith("/>")?" ":"";r+=s===Yu?o+Bu:c>=0?(n.push(l),o.slice(0,c)+ju+o.slice(c)+Ru+u):o+Ru+(-2===c?(n.push(void 0),e):u)}return[sh(t,r+(t[o]||"")+(2===e?"":"")),n]};class ah{constructor({strings:t,_$litType$:e},o){let n;this.parts=[];let i=0,r=0;const s=t.length-1,l=this.parts,[a,c]=lh(t,e);if(this.el=ah.createElement(a,o),rh.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(n=rh.nextNode())&&l.length0){n.textContent=Pu?Pu.emptyScript:"";for(let o=0;oGu(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]))(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==nh&&Vu(this._$AH)?this._$AA.nextSibling.data=t:this.$(qu.createTextNode(t)),this._$AH=t}g(t){var e;const{values:o,_$litType$:n}=t,i="number"==typeof n?this._$AC(t):(void 0===n.el&&(n.el=ah.createElement(sh(n.h,n.h[0]),this.options)),n);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===i)this._$AH.v(o);else{const t=new dh(i,this),e=t.u(this.options);t.v(o),this.$(e),this._$AH=t}}_$AC(t){let e=ih.get(t.strings);return void 0===e&&ih.set(t.strings,e=new ah(t)),e}T(t){Gu(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let o,n=0;for(const i of t)n===e.length?e.push(o=new uh(this.k(Fu()),this.k(Fu()),this,this.options)):o=e[n],o._$AI(i),n++;n2||""!==o[0]||""!==o[1]?(this._$AH=Array(o.length-1).fill(new String),this.strings=o):this._$AH=nh}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,o,n){const i=this.strings;let r=!1;if(void 0===i)t=ch(this,t,e,0),r=!Vu(t)||t!==this._$AH&&t!==oh,r&&(this._$AH=t);else{const n=t;let s,l;for(t=i[0],s=0;s{var n,i;const r=null!==(n=null==o?void 0:o.renderBefore)&&void 0!==n?n:e;let s=r._$litPart$;if(void 0===s){const t=null!==(i=null==o?void 0:o.renderBefore)&&void 0!==i?i:null;r._$litPart$=s=new uh(e.insertBefore(Fu(),t),t,void 0,null!=o?o:{})}return s._$AI(t),s})(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!1)}render(){return oh}}xh.finalized=!0,xh._$litElement$=!0,null===(yh=globalThis.litElementHydrateSupport)||void 0===yh||yh.call(globalThis,{LitElement:xh});const Sh=globalThis.litElementPolyfillSupport;null==Sh||Sh({LitElement:xh}),(null!==(wh=globalThis.litElementVersions)&&void 0!==wh?wh:globalThis.litElementVersions=[]).push("3.3.3"); /** * @license * Copyright 2020 Google LLC * SPDX-License-Identifier: BSD-3-Clause */ const Eh={};function Ch(t,e){const o=Object.assign({waitUntilFirstUpdate:!1},e);return(e,n)=>{const{update:i}=e,r=Array.isArray(t)?t:[t];e.update=function(t){r.forEach((e=>{const i=e;if(t.has(i)){const e=t.get(i),r=this[i];e!==r&&(o.waitUntilFirstUpdate&&!this.hasUpdated||this[n](e,r))}})),i.call(this,t)}}}var kh=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var l=t.length-1;l>=0;l--)(i=t[l])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s};class Oh extends xh{emit(t,e){const o=new CustomEvent(t,Object.assign({bubbles:!0,cancelable:!1,composed:!0,detail:{}},e));return this.dispatchEvent(o),o}}kh([lu()],Oh.prototype,"dir",void 0),kh([lu()],Oh.prototype,"lang",void 0);var _h=Eu` :host { box-sizing: border-box; } :host *, :host *::before, :host *::after { box-sizing: inherit; } [hidden] { display: none !important; } `,Lh=Eu` ${_h} :host { display: inline-block; width: 1em; height: 1em; box-sizing: content-box !important; } svg { display: block; height: 100%; width: 100%; } `;const Th=Symbol(),Mh=Symbol();let $h;const Dh=new Map;let Ih=class extends Oh{constructor(){super(...arguments),this.initialRender=!1,this.svg=null,this.label="",this.library="default"}async resolveIcon(t,e){var o;let n;if(null==e?void 0:e.spriteSheet)return eh` `;try{if(n=await fetch(t,{mode:"cors"}),!n.ok)return 410===n.status?Th:Mh}catch(t){return Mh}try{const t=document.createElement("div");t.innerHTML=await n.text();const e=t.firstElementChild;if("svg"!==(null==(o=null==e?void 0:e.tagName)?void 0:o.toLowerCase()))return Th;$h||($h=new DOMParser);const i=$h.parseFromString(e.outerHTML,"text/html").body.querySelector("svg");return i?(i.part.add("svg"),document.adoptNode(i)):Th}catch(t){return Th}}connectedCallback(){var t;super.connectedCallback(),t=this,gu.push(t)}firstUpdated(){this.initialRender=!0,this.setIcon()}disconnectedCallback(){var t;super.disconnectedCallback(),t=this,gu=gu.filter((e=>e!==t))}getUrl(){const t=bu(this.library);return this.name&&t?t.resolver(this.name):this.src}handleLabelChange(){"string"==typeof this.label&&this.label.length>0?(this.setAttribute("role","img"),this.setAttribute("aria-label",this.label),this.removeAttribute("aria-hidden")):(this.removeAttribute("role"),this.removeAttribute("aria-label"),this.setAttribute("aria-hidden","true"))}async setIcon(){var t;const e=bu(this.library),o=this.getUrl();if(!o)return void(this.svg=null);let n=Dh.get(o);if(n||(n=this.resolveIcon(o,e),Dh.set(o,n)),!this.initialRender)return;const i=await n;if(i===Mh&&Dh.delete(o),o===this.getUrl())if(((t,e)=>void 0===e?void 0!==(null==t?void 0:t._$litType$):(null==t?void 0:t._$litType$)===e)(i))this.svg=i;else switch(i){case Mh:case Th:this.svg=null,this.emit("sl-error");break;default:this.svg=i.cloneNode(!0),null==(t=null==e?void 0:e.mutator)||t.call(e,this.svg),this.emit("sl-load")}}render(){return this.svg}};Ih.styles=Lh,nu([au()],Ih.prototype,"svg",2),nu([lu({reflect:!0})],Ih.prototype,"name",2),nu([lu()],Ih.prototype,"src",2),nu([lu()],Ih.prototype,"label",2),nu([lu({reflect:!0})],Ih.prototype,"library",2),nu([Ch("label")],Ih.prototype,"handleLabelChange",1),nu([Ch(["name","src","library"])],Ih.prototype,"setIcon",1),Ih=nu([iu("sl-icon")],Ih); /** * @license * Copyright 2017 Google LLC * SPDX-License-Identifier: BSD-3-Clause */ const Ah=1,Nh=3,Uh=4,Ph=t=>(...e)=>({_$litDirective$:t,values:e});class zh{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,o){this._$Ct=t,this._$AM=e,this._$Ci=o}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}} /** * @license * Copyright 2018 Google LLC * SPDX-License-Identifier: BSD-3-Clause */const jh=Ph(class extends zh{constructor(t){var e;if(super(t),t.type!==Ah||"class"!==t.name||(null===(e=t.strings)||void 0===e?void 0:e.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter((e=>t[e])).join(" ")+" "}update(t,[e]){var o,n;if(void 0===this.it){this.it=new Set,void 0!==t.strings&&(this.nt=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in e)e[t]&&!(null===(o=this.nt)||void 0===o?void 0:o.has(t))&&this.it.add(t);return this.render(e)}const i=t.element.classList;this.it.forEach((t=>{t in e||(i.remove(t),this.it.delete(t))}));for(const t in e){const o=!!e[t];o===this.it.has(t)||(null===(n=this.nt)||void 0===n?void 0:n.has(t))||(o?(i.add(t),this.it.add(t)):(i.remove(t),this.it.delete(t)))}return oh}}),Rh=Symbol.for(""),Hh=t=>{if((null==t?void 0:t.r)===Rh)return null==t?void 0:t._$litStatic$},Bh=(t,...e)=>({_$litStatic$:e.reduce(((e,o,n)=>e+(t=>{if(void 0!==t._$litStatic$)return t._$litStatic$;throw Error(`Value passed to 'literal' function must be a 'literal' result: ${t}. Use 'unsafeStatic' to pass non-literal values, but\n take care to ensure page security.`)})(o)+t[n+1]),t[0]),r:Rh}),qh=new Map,Fh=(t=>(e,...o)=>{const n=o.length;let i,r;const s=[],l=[];let a,c=0,d=!1;for(;cnull!=t?t:nh; /** * @license * Copyright 2020 Google LLC * SPDX-License-Identifier: BSD-3-Clause */var Gh=Eu` ${_h} :host { display: inline-block; color: var(--sl-color-neutral-600); } .icon-button { flex: 0 0 auto; display: flex; align-items: center; background: none; border: none; border-radius: var(--sl-border-radius-medium); font-size: inherit; color: inherit; padding: var(--sl-spacing-x-small); cursor: pointer; transition: var(--sl-transition-x-fast) color; -webkit-appearance: none; } .icon-button:hover:not(.icon-button--disabled), .icon-button:focus-visible:not(.icon-button--disabled) { color: var(--sl-color-primary-600); } .icon-button:active:not(.icon-button--disabled) { color: var(--sl-color-primary-700); } .icon-button:focus { outline: none; } .icon-button--disabled { opacity: 0.5; cursor: not-allowed; } .icon-button:focus-visible { outline: var(--sl-focus-ring); outline-offset: var(--sl-focus-ring-offset); } .icon-button__icon { pointer-events: none; } `;let Wh=class extends Oh{constructor(){super(...arguments),this.hasFocus=!1,this.label="",this.disabled=!1}handleBlur(){this.hasFocus=!1,this.emit("sl-blur")}handleFocus(){this.hasFocus=!0,this.emit("sl-focus")}handleClick(t){this.disabled&&(t.preventDefault(),t.stopPropagation())}click(){this.button.click()}focus(t){this.button.focus(t)}blur(){this.button.blur()}render(){const t=!!this.href,e=t?Bh`a`:Bh`button`;return Fh` <${e} part="base" class=${jh({"icon-button":!0,"icon-button--disabled":!t&&this.disabled,"icon-button--focused":this.hasFocus})} ?disabled=${Vh(t?void 0:this.disabled)} type=${Vh(t?void 0:"button")} href=${Vh(t?this.href:void 0)} target=${Vh(t?this.target:void 0)} download=${Vh(t?this.download:void 0)} rel=${Vh(t&&this.target?"noreferrer noopener":void 0)} role=${Vh(t?void 0:"button")} aria-disabled=${this.disabled?"true":"false"} aria-label="${this.label}" tabindex=${this.disabled?"-1":"0"} @blur=${this.handleBlur} @focus=${this.handleFocus} @click=${this.handleClick} > `}};function Yh(t,e,o){return new Promise((n=>{if((null==o?void 0:o.duration)===1/0)throw new Error("Promise-based animations must be finite.");const i=t.animate(e,Object.assign(Object.assign({},o),{duration:Jh()?0:o.duration}));i.addEventListener("cancel",n,{once:!0}),i.addEventListener("finish",n,{once:!0})}))}function Kh(t){return(t=t.toString().toLowerCase()).indexOf("ms")>-1?parseFloat(t):t.indexOf("s")>-1?1e3*parseFloat(t):parseFloat(t)}function Jh(){return window.matchMedia("(prefers-reduced-motion: reduce)").matches}function Xh(t){return Promise.all(t.getAnimations().map((t=>new Promise((e=>{const o=requestAnimationFrame(e);t.addEventListener("cancel",(()=>o),{once:!0}),t.addEventListener("finish",(()=>o),{once:!0}),t.cancel()})))))}Wh.styles=Gh,nu([cu(".icon-button")],Wh.prototype,"button",2),nu([au()],Wh.prototype,"hasFocus",2),nu([lu()],Wh.prototype,"name",2),nu([lu()],Wh.prototype,"library",2),nu([lu()],Wh.prototype,"src",2),nu([lu()],Wh.prototype,"href",2),nu([lu()],Wh.prototype,"target",2),nu([lu()],Wh.prototype,"download",2),nu([lu()],Wh.prototype,"label",2),nu([lu({type:Boolean,reflect:!0})],Wh.prototype,"disabled",2),Wh=nu([iu("sl-icon-button")],Wh);const Qh=new Map,Zh=new WeakMap;function tp(t,e){return"rtl"===e.toLowerCase()?{keyframes:t.rtlKeyframes||t.keyframes,options:t.options}:t}function ep(t,e){Qh.set(t,function(t){return null!=t?t:{keyframes:[],options:{duration:0}}}(e))}function op(t,e,o){const n=Zh.get(t);if(null==n?void 0:n[e])return tp(n[e],o.dir);const i=Qh.get(e);return i?tp(i,o.dir):{keyframes:[],options:{duration:0}}}class np{constructor(t,...e){this.slotNames=[],(this.host=t).addController(this),this.slotNames=e,this.handleSlotChange=this.handleSlotChange.bind(this)}hasDefaultSlot(){return[...this.host.childNodes].some((t=>{if(t.nodeType===t.TEXT_NODE&&""!==t.textContent.trim())return!0;if(t.nodeType===t.ELEMENT_NODE){const e=t;if("sl-visually-hidden"===e.tagName.toLowerCase())return!1;if(!e.hasAttribute("slot"))return!0}return!1}))}hasNamedSlot(t){return null!==this.host.querySelector(`:scope > [slot="${t}"]`)}test(t){return"[default]"===t?this.hasDefaultSlot():this.hasNamedSlot(t)}hostConnected(){this.host.shadowRoot.addEventListener("slotchange",this.handleSlotChange)}hostDisconnected(){this.host.shadowRoot.removeEventListener("slotchange",this.handleSlotChange)}handleSlotChange(t){const e=t.target;(this.slotNames.includes("[default]")&&!e.name||e.name&&this.slotNames.includes(e.name))&&this.host.requestUpdate()}}const ip=new Set,rp=new MutationObserver(dp),sp=new Map;let lp,ap=document.documentElement.dir||"ltr",cp=document.documentElement.lang||navigator.language;function dp(){ap=document.documentElement.dir||"ltr",cp=document.documentElement.lang||navigator.language,[...ip.keys()].map((t=>{"function"==typeof t.requestUpdate&&t.requestUpdate()}))}rp.observe(document.documentElement,{attributes:!0,attributeFilter:["dir","lang"]});class up{constructor(t){this.host=t,this.host.addController(this)}hostConnected(){ip.add(this.host)}hostDisconnected(){ip.delete(this.host)}dir(){return`${this.host.dir||ap}`.toLowerCase()}lang(){return`${this.host.lang||cp}`.toLowerCase()}getTranslationData(t){var e,o;const n=new Intl.Locale(t),i=null==n?void 0:n.language.toLowerCase(),r=null!==(o=null===(e=null==n?void 0:n.region)||void 0===e?void 0:e.toLowerCase())&&void 0!==o?o:"";return{locale:n,language:i,region:r,primary:sp.get(`${i}-${r}`),secondary:sp.get(i)}}exists(t,e){var o;const{primary:n,secondary:i}=this.getTranslationData(null!==(o=e.lang)&&void 0!==o?o:this.lang());return e=Object.assign({includeFallback:!1},e),!!(n&&n[t]||i&&i[t]||e.includeFallback&&lp&&lp[t])}term(t,...e){const{primary:o,secondary:n}=this.getTranslationData(this.lang());let i;if(o&&o[t])i=o[t];else if(n&&n[t])i=n[t];else{if(!lp||!lp[t])return console.error(`No translation found for: ${String(t)}`),String(t);i=lp[t]}return"function"==typeof i?i(...e):i}date(t,e){return t=new Date(t),new Intl.DateTimeFormat(this.lang(),e).format(t)}number(t,e){return t=Number(t),isNaN(t)?"":new Intl.NumberFormat(this.lang(),e).format(t)}relativeTime(t,e,o){return new Intl.RelativeTimeFormat(this.lang(),o).format(t,e)}}!function(...t){t.map((t=>{const e=t.$code.toLowerCase();sp.has(e)?sp.set(e,Object.assign(Object.assign({},sp.get(e)),t)):sp.set(e,t),lp||(lp=t)})),dp()}({$code:"en",$name:"English",$dir:"ltr",carousel:"Carousel",clearEntry:"Clear entry",close:"Close",copy:"Copy",currentValue:"Current value",goToSlide:(t,e)=>`Go to slide ${t} of ${e}`,hidePassword:"Hide password",loading:"Loading",nextSlide:"Next slide",numOptionsSelected:t=>0===t?"No options selected":1===t?"1 option selected":`${t} options selected`,previousSlide:"Previous slide",progress:"Progress",remove:"Remove",resize:"Resize",scrollToEnd:"Scroll to end",scrollToStart:"Scroll to start",selectAColorFromTheScreen:"Select a color from the screen",showPassword:"Show password",slideNum:t=>`Slide ${t}`,toggleColorFormat:"Toggle color format"});class hp extends up{}function pp(t,e){return new Promise((o=>{t.addEventListener(e,(function n(i){i.target===t&&(t.removeEventListener(e,n),o())}))}))}var fp=Eu` ${_h} :host { display: contents; /* For better DX, we'll reset the margin here so the base part can inherit it */ margin: 0; } .alert { position: relative; display: flex; align-items: stretch; background-color: var(--sl-panel-background-color); border: solid var(--sl-panel-border-width) var(--sl-panel-border-color); border-top-width: calc(var(--sl-panel-border-width) * 3); border-radius: var(--sl-border-radius-medium); font-family: var(--sl-font-sans); font-size: var(--sl-font-size-small); font-weight: var(--sl-font-weight-normal); line-height: 1.6; color: var(--sl-color-neutral-700); margin: inherit; } .alert:not(.alert--has-icon) .alert__icon, .alert:not(.alert--closable) .alert__close-button { display: none; } .alert__icon { flex: 0 0 auto; display: flex; align-items: center; font-size: var(--sl-font-size-large); padding-inline-start: var(--sl-spacing-large); } .alert--primary { border-top-color: var(--sl-color-primary-600); } .alert--primary .alert__icon { color: var(--sl-color-primary-600); } .alert--success { border-top-color: var(--sl-color-success-600); } .alert--success .alert__icon { color: var(--sl-color-success-600); } .alert--neutral { border-top-color: var(--sl-color-neutral-600); } .alert--neutral .alert__icon { color: var(--sl-color-neutral-600); } .alert--warning { border-top-color: var(--sl-color-warning-600); } .alert--warning .alert__icon { color: var(--sl-color-warning-600); } .alert--danger { border-top-color: var(--sl-color-danger-600); } .alert--danger .alert__icon { color: var(--sl-color-danger-600); } .alert__message { flex: 1 1 auto; display: block; padding: var(--sl-spacing-large); overflow: hidden; } .alert__close-button { flex: 0 0 auto; display: flex; align-items: center; font-size: var(--sl-font-size-medium); padding-inline-end: var(--sl-spacing-medium); } `;const mp=Object.assign(document.createElement("div"),{className:"sl-toast-stack"});let gp=class extends Oh{constructor(){super(...arguments),this.hasSlotController=new np(this,"icon","suffix"),this.localize=new hp(this),this.open=!1,this.closable=!1,this.variant="primary",this.duration=1/0}firstUpdated(){this.base.hidden=!this.open}restartAutoHide(){clearTimeout(this.autoHideTimeout),this.open&&this.duration<1/0&&(this.autoHideTimeout=window.setTimeout((()=>this.hide()),this.duration))}handleCloseClick(){this.hide()}handleMouseMove(){this.restartAutoHide()}async handleOpenChange(){if(this.open){this.emit("sl-show"),this.duration<1/0&&this.restartAutoHide(),await Xh(this.base),this.base.hidden=!1;const{keyframes:t,options:e}=op(this,"alert.show",{dir:this.localize.dir()});await Yh(this.base,t,e),this.emit("sl-after-show")}else{this.emit("sl-hide"),clearTimeout(this.autoHideTimeout),await Xh(this.base);const{keyframes:t,options:e}=op(this,"alert.hide",{dir:this.localize.dir()});await Yh(this.base,t,e),this.base.hidden=!0,this.emit("sl-after-hide")}}handleDurationChange(){this.restartAutoHide()}async show(){if(!this.open)return this.open=!0,pp(this,"sl-after-show")}async hide(){if(this.open)return this.open=!1,pp(this,"sl-after-hide")}async toast(){return new Promise((t=>{null===mp.parentElement&&document.body.append(mp),mp.appendChild(this),requestAnimationFrame((()=>{this.clientWidth,this.show()})),this.addEventListener("sl-after-hide",(()=>{mp.removeChild(this),t(),null===mp.querySelector("sl-alert")&&mp.remove()}),{once:!0})}))}render(){return eh` `}};gp.styles=fp,nu([cu('[part~="base"]')],gp.prototype,"base",2),nu([lu({type:Boolean,reflect:!0})],gp.prototype,"open",2),nu([lu({type:Boolean,reflect:!0})],gp.prototype,"closable",2),nu([lu({reflect:!0})],gp.prototype,"variant",2),nu([lu({type:Number})],gp.prototype,"duration",2),nu([Ch("open",{waitUntilFirstUpdate:!0})],gp.prototype,"handleOpenChange",1),nu([Ch("duration")],gp.prototype,"handleDurationChange",1),gp=nu([iu("sl-alert")],gp),ep("alert.show",{keyframes:[{opacity:0,scale:.8},{opacity:1,scale:1}],options:{duration:250,easing:"ease"}}),ep("alert.hide",{keyframes:[{opacity:1,scale:1},{opacity:0,scale:.8}],options:{duration:250,easing:"ease"}});var bp=Eu` ${_h} :host { display: inline-flex; } .badge { display: inline-flex; align-items: center; justify-content: center; font-size: max(12px, 0.75em); font-weight: var(--sl-font-weight-semibold); letter-spacing: var(--sl-letter-spacing-normal); line-height: 1; border-radius: var(--sl-border-radius-small); border: solid 1px var(--sl-color-neutral-0); white-space: nowrap; padding: 0.35em 0.6em; user-select: none; cursor: inherit; } /* Variant modifiers */ .badge--primary { background-color: var(--sl-color-primary-600); color: var(--sl-color-neutral-0); } .badge--success { background-color: var(--sl-color-success-600); color: var(--sl-color-neutral-0); } .badge--neutral { background-color: var(--sl-color-neutral-600); color: var(--sl-color-neutral-0); } .badge--warning { background-color: var(--sl-color-warning-600); color: var(--sl-color-neutral-0); } .badge--danger { background-color: var(--sl-color-danger-600); color: var(--sl-color-neutral-0); } /* Pill modifier */ .badge--pill { border-radius: var(--sl-border-radius-pill); } /* Pulse modifier */ .badge--pulse { animation: pulse 1.5s infinite; } .badge--pulse.badge--primary { --pulse-color: var(--sl-color-primary-600); } .badge--pulse.badge--success { --pulse-color: var(--sl-color-success-600); } .badge--pulse.badge--neutral { --pulse-color: var(--sl-color-neutral-600); } .badge--pulse.badge--warning { --pulse-color: var(--sl-color-warning-600); } .badge--pulse.badge--danger { --pulse-color: var(--sl-color-danger-600); } @keyframes pulse { 0% { box-shadow: 0 0 0 0 var(--pulse-color); } 70% { box-shadow: 0 0 0 0.5rem transparent; } 100% { box-shadow: 0 0 0 0 transparent; } } `;let vp=class extends Oh{constructor(){super(...arguments),this.variant="primary",this.pill=!1,this.pulse=!1}render(){return eh` `}};vp.styles=bp,nu([lu({reflect:!0})],vp.prototype,"variant",2),nu([lu({type:Boolean,reflect:!0})],vp.prototype,"pill",2),nu([lu({type:Boolean,reflect:!0})],vp.prototype,"pulse",2),vp=nu([iu("sl-badge")],vp);var yp=Eu` ${_h} :host { --track-width: 2px; --track-color: rgb(128 128 128 / 25%); --indicator-color: var(--sl-color-primary-600); --speed: 2s; display: inline-flex; width: 1em; height: 1em; } .spinner { flex: 1 1 auto; height: 100%; width: 100%; } .spinner__track, .spinner__indicator { fill: none; stroke-width: var(--track-width); r: calc(0.5em - var(--track-width) / 2); cx: 0.5em; cy: 0.5em; transform-origin: 50% 50%; } .spinner__track { stroke: var(--track-color); transform-origin: 0% 0%; } .spinner__indicator { stroke: var(--indicator-color); stroke-linecap: round; stroke-dasharray: 150% 75%; animation: spin var(--speed) linear infinite; } @keyframes spin { 0% { transform: rotate(0deg); stroke-dasharray: 0.01em, 2.75em; } 50% { transform: rotate(450deg); stroke-dasharray: 1.375em, 1.375em; } 100% { transform: rotate(1080deg); stroke-dasharray: 0.01em, 2.75em; } } `;let wp=class extends Oh{constructor(){super(...arguments),this.localize=new hp(this)}render(){return eh` `}};wp.styles=yp,wp=nu([iu("sl-spinner")],wp);const xp=new WeakMap,Sp=new WeakMap,Ep=new WeakSet,Cp=new WeakMap;class kp{constructor(t,e){(this.host=t).addController(this),this.options=Object.assign({form:t=>{if(t.hasAttribute("form")&&""!==t.getAttribute("form")){const e=t.getRootNode(),o=t.getAttribute("form");if(o)return e.getElementById(o)}return t.closest("form")},name:t=>t.name,value:t=>t.value,defaultValue:t=>t.defaultValue,disabled:t=>{var e;return null!==(e=t.disabled)&&void 0!==e&&e},reportValidity:t=>"function"!=typeof t.reportValidity||t.reportValidity(),setValue:(t,e)=>t.value=e,assumeInteractionOn:["sl-input"]},e),this.handleFormData=this.handleFormData.bind(this),this.handleFormSubmit=this.handleFormSubmit.bind(this),this.handleFormReset=this.handleFormReset.bind(this),this.reportFormValidity=this.reportFormValidity.bind(this),this.handleInteraction=this.handleInteraction.bind(this)}hostConnected(){const t=this.options.form(this.host);t&&this.attachForm(t),Cp.set(this.host,[]),this.options.assumeInteractionOn.forEach((t=>{this.host.addEventListener(t,this.handleInteraction)}))}hostDisconnected(){this.detachForm(),Cp.delete(this.host),this.options.assumeInteractionOn.forEach((t=>{this.host.removeEventListener(t,this.handleInteraction)}))}hostUpdated(){const t=this.options.form(this.host);t||this.detachForm(),t&&this.form!==t&&(this.detachForm(),this.attachForm(t)),this.host.hasUpdated&&this.setValidity(this.host.validity.valid)}attachForm(t){t?(this.form=t,xp.has(this.form)?xp.get(this.form).add(this.host):xp.set(this.form,new Set([this.host])),this.form.addEventListener("formdata",this.handleFormData),this.form.addEventListener("submit",this.handleFormSubmit),this.form.addEventListener("reset",this.handleFormReset),Sp.has(this.form)||(Sp.set(this.form,this.form.reportValidity),this.form.reportValidity=()=>this.reportFormValidity())):this.form=void 0}detachForm(){var t;this.form&&(null===(t=xp.get(this.form))||void 0===t||t.delete(this.host),this.form.removeEventListener("formdata",this.handleFormData),this.form.removeEventListener("submit",this.handleFormSubmit),this.form.removeEventListener("reset",this.handleFormReset),Sp.has(this.form)&&(this.form.reportValidity=Sp.get(this.form),Sp.delete(this.form))),this.form=void 0}handleFormData(t){const e=this.options.disabled(this.host),o=this.options.name(this.host),n=this.options.value(this.host),i="sl-button"===this.host.tagName.toLowerCase();!e&&!i&&"string"==typeof o&&o.length>0&&void 0!==n&&(Array.isArray(n)?n.forEach((e=>{t.formData.append(o,e.toString())})):t.formData.append(o,n.toString()))}handleFormSubmit(t){var e;const o=this.options.disabled(this.host),n=this.options.reportValidity;this.form&&!this.form.noValidate&&(null===(e=xp.get(this.form))||void 0===e||e.forEach((t=>{this.setUserInteracted(t,!0)}))),!this.form||this.form.noValidate||o||n(this.host)||(t.preventDefault(),t.stopImmediatePropagation())}handleFormReset(){this.options.setValue(this.host,this.options.defaultValue(this.host)),this.setUserInteracted(this.host,!1),Cp.set(this.host,[])}handleInteraction(t){const e=Cp.get(this.host);e.includes(t.type)||e.push(t.type),e.length===this.options.assumeInteractionOn.length&&this.setUserInteracted(this.host,!0)}reportFormValidity(){if(this.form&&!this.form.noValidate){const t=this.form.querySelectorAll("*");for(const e of t)if("function"==typeof e.reportValidity&&!e.reportValidity())return!1}return!0}setUserInteracted(t,e){e?Ep.add(t):Ep.delete(t),t.requestUpdate()}doAction(t,e){if(this.form){const o=document.createElement("button");o.type=t,o.style.position="absolute",o.style.width="0",o.style.height="0",o.style.clipPath="inset(50%)",o.style.overflow="hidden",o.style.whiteSpace="nowrap",e&&(o.name=e.name,o.value=e.value,["formaction","formenctype","formmethod","formnovalidate","formtarget"].forEach((t=>{e.hasAttribute(t)&&o.setAttribute(t,e.getAttribute(t))}))),this.form.append(o),o.click(),o.remove()}}getForm(){var t;return null!==(t=this.form)&&void 0!==t?t:null}reset(t){this.doAction("reset",t)}submit(t){this.doAction("submit",t)}setValidity(t){const e=this.host,o=Boolean(Ep.has(e)),n=Boolean(e.required);e.toggleAttribute("data-required",n),e.toggleAttribute("data-optional",!n),e.toggleAttribute("data-invalid",!t),e.toggleAttribute("data-valid",t),e.toggleAttribute("data-user-invalid",!t&&o),e.toggleAttribute("data-user-valid",t&&o)}updateValidity(){const t=this.host;this.setValidity(t.validity.valid)}emitInvalidEvent(t){const e=new CustomEvent("sl-invalid",{bubbles:!1,composed:!1,cancelable:!0,detail:{}});t||e.preventDefault(),this.host.dispatchEvent(e)||null==t||t.preventDefault()}}const Op=Object.freeze({badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valid:!0,valueMissing:!1});Object.freeze(Object.assign(Object.assign({},Op),{valid:!1,valueMissing:!0})),Object.freeze(Object.assign(Object.assign({},Op),{valid:!1,customError:!0}));var _p=Eu` ${_h} :host { display: inline-block; position: relative; width: auto; cursor: pointer; } .button { display: inline-flex; align-items: stretch; justify-content: center; width: 100%; border-style: solid; border-width: var(--sl-input-border-width); font-family: var(--sl-input-font-family); font-weight: var(--sl-font-weight-semibold); text-decoration: none; user-select: none; white-space: nowrap; vertical-align: middle; padding: 0; transition: var(--sl-transition-x-fast) background-color, var(--sl-transition-x-fast) color, var(--sl-transition-x-fast) border, var(--sl-transition-x-fast) box-shadow; cursor: inherit; } .button::-moz-focus-inner { border: 0; } .button:focus { outline: none; } .button:focus-visible { outline: var(--sl-focus-ring); outline-offset: var(--sl-focus-ring-offset); } .button--disabled { opacity: 0.5; cursor: not-allowed; } /* When disabled, prevent mouse events from bubbling up from children */ .button--disabled * { pointer-events: none; } .button__prefix, .button__suffix { flex: 0 0 auto; display: flex; align-items: center; pointer-events: none; } .button__label { display: inline-block; } .button__label::slotted(sl-icon) { vertical-align: -2px; } /* * Standard buttons */ /* Default */ .button--standard.button--default { background-color: var(--sl-color-neutral-0); border-color: var(--sl-color-neutral-300); color: var(--sl-color-neutral-700); } .button--standard.button--default:hover:not(.button--disabled) { background-color: var(--sl-color-primary-50); border-color: var(--sl-color-primary-300); color: var(--sl-color-primary-700); } .button--standard.button--default:active:not(.button--disabled) { background-color: var(--sl-color-primary-100); border-color: var(--sl-color-primary-400); color: var(--sl-color-primary-700); } /* Primary */ .button--standard.button--primary { background-color: var(--sl-color-primary-600); border-color: var(--sl-color-primary-600); color: var(--sl-color-neutral-0); } .button--standard.button--primary:hover:not(.button--disabled) { background-color: var(--sl-color-primary-500); border-color: var(--sl-color-primary-500); color: var(--sl-color-neutral-0); } .button--standard.button--primary:active:not(.button--disabled) { background-color: var(--sl-color-primary-600); border-color: var(--sl-color-primary-600); color: var(--sl-color-neutral-0); } /* Success */ .button--standard.button--success { background-color: var(--sl-color-success-600); border-color: var(--sl-color-success-600); color: var(--sl-color-neutral-0); } .button--standard.button--success:hover:not(.button--disabled) { background-color: var(--sl-color-success-500); border-color: var(--sl-color-success-500); color: var(--sl-color-neutral-0); } .button--standard.button--success:active:not(.button--disabled) { background-color: var(--sl-color-success-600); border-color: var(--sl-color-success-600); color: var(--sl-color-neutral-0); } /* Neutral */ .button--standard.button--neutral { background-color: var(--sl-color-neutral-600); border-color: var(--sl-color-neutral-600); color: var(--sl-color-neutral-0); } .button--standard.button--neutral:hover:not(.button--disabled) { background-color: var(--sl-color-neutral-500); border-color: var(--sl-color-neutral-500); color: var(--sl-color-neutral-0); } .button--standard.button--neutral:active:not(.button--disabled) { background-color: var(--sl-color-neutral-600); border-color: var(--sl-color-neutral-600); color: var(--sl-color-neutral-0); } /* Warning */ .button--standard.button--warning { background-color: var(--sl-color-warning-600); border-color: var(--sl-color-warning-600); color: var(--sl-color-neutral-0); } .button--standard.button--warning:hover:not(.button--disabled) { background-color: var(--sl-color-warning-500); border-color: var(--sl-color-warning-500); color: var(--sl-color-neutral-0); } .button--standard.button--warning:active:not(.button--disabled) { background-color: var(--sl-color-warning-600); border-color: var(--sl-color-warning-600); color: var(--sl-color-neutral-0); } /* Danger */ .button--standard.button--danger { background-color: var(--sl-color-danger-600); border-color: var(--sl-color-danger-600); color: var(--sl-color-neutral-0); } .button--standard.button--danger:hover:not(.button--disabled) { background-color: var(--sl-color-danger-500); border-color: var(--sl-color-danger-500); color: var(--sl-color-neutral-0); } .button--standard.button--danger:active:not(.button--disabled) { background-color: var(--sl-color-danger-600); border-color: var(--sl-color-danger-600); color: var(--sl-color-neutral-0); } /* * Outline buttons */ .button--outline { background: none; border: solid 1px; } /* Default */ .button--outline.button--default { border-color: var(--sl-color-neutral-300); color: var(--sl-color-neutral-700); } .button--outline.button--default:hover:not(.button--disabled), .button--outline.button--default.button--checked:not(.button--disabled) { border-color: var(--sl-color-primary-600); background-color: var(--sl-color-primary-600); color: var(--sl-color-neutral-0); } .button--outline.button--default:active:not(.button--disabled) { border-color: var(--sl-color-primary-700); background-color: var(--sl-color-primary-700); color: var(--sl-color-neutral-0); } /* Primary */ .button--outline.button--primary { border-color: var(--sl-color-primary-600); color: var(--sl-color-primary-600); } .button--outline.button--primary:hover:not(.button--disabled), .button--outline.button--primary.button--checked:not(.button--disabled) { background-color: var(--sl-color-primary-600); color: var(--sl-color-neutral-0); } .button--outline.button--primary:active:not(.button--disabled) { border-color: var(--sl-color-primary-700); background-color: var(--sl-color-primary-700); color: var(--sl-color-neutral-0); } /* Success */ .button--outline.button--success { border-color: var(--sl-color-success-600); color: var(--sl-color-success-600); } .button--outline.button--success:hover:not(.button--disabled), .button--outline.button--success.button--checked:not(.button--disabled) { background-color: var(--sl-color-success-600); color: var(--sl-color-neutral-0); } .button--outline.button--success:active:not(.button--disabled) { border-color: var(--sl-color-success-700); background-color: var(--sl-color-success-700); color: var(--sl-color-neutral-0); } /* Neutral */ .button--outline.button--neutral { border-color: var(--sl-color-neutral-600); color: var(--sl-color-neutral-600); } .button--outline.button--neutral:hover:not(.button--disabled), .button--outline.button--neutral.button--checked:not(.button--disabled) { background-color: var(--sl-color-neutral-600); color: var(--sl-color-neutral-0); } .button--outline.button--neutral:active:not(.button--disabled) { border-color: var(--sl-color-neutral-700); background-color: var(--sl-color-neutral-700); color: var(--sl-color-neutral-0); } /* Warning */ .button--outline.button--warning { border-color: var(--sl-color-warning-600); color: var(--sl-color-warning-600); } .button--outline.button--warning:hover:not(.button--disabled), .button--outline.button--warning.button--checked:not(.button--disabled) { background-color: var(--sl-color-warning-600); color: var(--sl-color-neutral-0); } .button--outline.button--warning:active:not(.button--disabled) { border-color: var(--sl-color-warning-700); background-color: var(--sl-color-warning-700); color: var(--sl-color-neutral-0); } /* Danger */ .button--outline.button--danger { border-color: var(--sl-color-danger-600); color: var(--sl-color-danger-600); } .button--outline.button--danger:hover:not(.button--disabled), .button--outline.button--danger.button--checked:not(.button--disabled) { background-color: var(--sl-color-danger-600); color: var(--sl-color-neutral-0); } .button--outline.button--danger:active:not(.button--disabled) { border-color: var(--sl-color-danger-700); background-color: var(--sl-color-danger-700); color: var(--sl-color-neutral-0); } @media (forced-colors: active) { .button.button--outline.button--checked:not(.button--disabled) { outline: solid 2px transparent; } } /* * Text buttons */ .button--text { background-color: transparent; border-color: transparent; color: var(--sl-color-primary-600); } .button--text:hover:not(.button--disabled) { background-color: transparent; border-color: transparent; color: var(--sl-color-primary-500); } .button--text:focus-visible:not(.button--disabled) { background-color: transparent; border-color: transparent; color: var(--sl-color-primary-500); } .button--text:active:not(.button--disabled) { background-color: transparent; border-color: transparent; color: var(--sl-color-primary-700); } /* * Size modifiers */ .button--small { height: auto; min-height: var(--sl-input-height-small); font-size: var(--sl-button-font-size-small); line-height: calc(var(--sl-input-height-small) - var(--sl-input-border-width) * 2); border-radius: var(--sl-input-border-radius-small); } .button--medium { height: auto; min-height: var(--sl-input-height-medium); font-size: var(--sl-button-font-size-medium); line-height: calc(var(--sl-input-height-medium) - var(--sl-input-border-width) * 2); border-radius: var(--sl-input-border-radius-medium); } .button--large { height: auto; min-height: var(--sl-input-height-large); font-size: var(--sl-button-font-size-large); line-height: calc(var(--sl-input-height-large) - var(--sl-input-border-width) * 2); border-radius: var(--sl-input-border-radius-large); } /* * Pill modifier */ .button--pill.button--small { border-radius: var(--sl-input-height-small); } .button--pill.button--medium { border-radius: var(--sl-input-height-medium); } .button--pill.button--large { border-radius: var(--sl-input-height-large); } /* * Circle modifier */ .button--circle { padding-left: 0; padding-right: 0; } .button--circle.button--small { width: var(--sl-input-height-small); border-radius: 50%; } .button--circle.button--medium { width: var(--sl-input-height-medium); border-radius: 50%; } .button--circle.button--large { width: var(--sl-input-height-large); border-radius: 50%; } .button--circle .button__prefix, .button--circle .button__suffix, .button--circle .button__caret { display: none; } /* * Caret modifier */ .button--caret .button__suffix { display: none; } .button--caret .button__caret { height: auto; } /* * Loading modifier */ .button--loading { position: relative; cursor: wait; } .button--loading .button__prefix, .button--loading .button__label, .button--loading .button__suffix, .button--loading .button__caret { visibility: hidden; } .button--loading sl-spinner { --indicator-color: currentColor; position: absolute; font-size: 1em; height: 1em; width: 1em; top: calc(50% - 0.5em); left: calc(50% - 0.5em); } /* * Badges */ .button ::slotted(sl-badge) { position: absolute; top: 0; right: 0; translate: 50% -50%; pointer-events: none; } .button--rtl ::slotted(sl-badge) { right: auto; left: 0; translate: -50% -50%; } /* * Button spacing */ .button--has-label.button--small .button__label { padding: 0 var(--sl-spacing-small); } .button--has-label.button--medium .button__label { padding: 0 var(--sl-spacing-medium); } .button--has-label.button--large .button__label { padding: 0 var(--sl-spacing-large); } .button--has-prefix.button--small { padding-inline-start: var(--sl-spacing-x-small); } .button--has-prefix.button--small .button__label { padding-inline-start: var(--sl-spacing-x-small); } .button--has-prefix.button--medium { padding-inline-start: var(--sl-spacing-small); } .button--has-prefix.button--medium .button__label { padding-inline-start: var(--sl-spacing-small); } .button--has-prefix.button--large { padding-inline-start: var(--sl-spacing-small); } .button--has-prefix.button--large .button__label { padding-inline-start: var(--sl-spacing-small); } .button--has-suffix.button--small, .button--caret.button--small { padding-inline-end: var(--sl-spacing-x-small); } .button--has-suffix.button--small .button__label, .button--caret.button--small .button__label { padding-inline-end: var(--sl-spacing-x-small); } .button--has-suffix.button--medium, .button--caret.button--medium { padding-inline-end: var(--sl-spacing-small); } .button--has-suffix.button--medium .button__label, .button--caret.button--medium .button__label { padding-inline-end: var(--sl-spacing-small); } .button--has-suffix.button--large, .button--caret.button--large { padding-inline-end: var(--sl-spacing-small); } .button--has-suffix.button--large .button__label, .button--caret.button--large .button__label { padding-inline-end: var(--sl-spacing-small); } /* * Button groups support a variety of button types (e.g. buttons with tooltips, buttons as dropdown triggers, etc.). * This means buttons aren't always direct descendants of the button group, thus we can't target them with the * ::slotted selector. To work around this, the button group component does some magic to add these special classes to * buttons and we style them here instead. */ :host(.sl-button-group__button--first:not(.sl-button-group__button--last)) .button { border-start-end-radius: 0; border-end-end-radius: 0; } :host(.sl-button-group__button--inner) .button { border-radius: 0; } :host(.sl-button-group__button--last:not(.sl-button-group__button--first)) .button { border-start-start-radius: 0; border-end-start-radius: 0; } /* All except the first */ :host(.sl-button-group__button:not(.sl-button-group__button--first)) { margin-inline-start: calc(-1 * var(--sl-input-border-width)); } /* Add a visual separator between solid buttons */ :host( .sl-button-group__button:not( .sl-button-group__button--first, .sl-button-group__button--radio, [variant='default'] ):not(:hover) ) .button:after { content: ''; position: absolute; top: 0; inset-inline-start: 0; bottom: 0; border-left: solid 1px rgb(128 128 128 / 33%); mix-blend-mode: multiply; } /* Bump hovered, focused, and checked buttons up so their focus ring isn't clipped */ :host(.sl-button-group__button--hover) { z-index: 1; } /* Focus and checked are always on top */ :host(.sl-button-group__button--focus), :host(.sl-button-group__button[checked]) { z-index: 2; } `;let Lp=class extends Oh{constructor(){super(),this.formControlController=new kp(this,{form:t=>{if(t.hasAttribute("form")){const e=t.getRootNode(),o=t.getAttribute("form");return e.getElementById(o)}return t.closest("form")},assumeInteractionOn:["click"]}),this.hasSlotController=new np(this,"[default]","prefix","suffix"),this.localize=new hp(this),this.hasFocus=!1,this.invalid=!1,this.title="",this.variant="default",this.size="medium",this.caret=!1,this.disabled=!1,this.loading=!1,this.outline=!1,this.pill=!1,this.circle=!1,this.type="button",this.name="",this.value="",this.href="",this.rel="noreferrer noopener",this.handleHostClick=t=>{(this.disabled||this.loading)&&(t.preventDefault(),t.stopImmediatePropagation())},this.addEventListener("click",this.handleHostClick)}get validity(){return this.isButton()?this.button.validity:Op}get validationMessage(){return this.isButton()?this.button.validationMessage:""}firstUpdated(){this.isButton()&&this.formControlController.updateValidity()}handleBlur(){this.hasFocus=!1,this.emit("sl-blur")}handleFocus(){this.hasFocus=!0,this.emit("sl-focus")}handleClick(){"submit"===this.type&&this.formControlController.submit(this),"reset"===this.type&&this.formControlController.reset(this)}handleInvalid(t){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(t)}isButton(){return!this.href}isLink(){return!!this.href}handleDisabledChange(){this.isButton()&&this.formControlController.setValidity(this.disabled)}click(){this.button.click()}focus(t){this.button.focus(t)}blur(){this.button.blur()}checkValidity(){return!this.isButton()||this.button.checkValidity()}getForm(){return this.formControlController.getForm()}reportValidity(){return!this.isButton()||this.button.reportValidity()}setCustomValidity(t){this.isButton()&&(this.button.setCustomValidity(t),this.formControlController.updateValidity())}render(){const t=this.isLink(),e=t?Bh`a`:Bh`button`;return Fh` <${e} part="base" class=${jh({button:!0,"button--default":"default"===this.variant,"button--primary":"primary"===this.variant,"button--success":"success"===this.variant,"button--neutral":"neutral"===this.variant,"button--warning":"warning"===this.variant,"button--danger":"danger"===this.variant,"button--text":"text"===this.variant,"button--small":"small"===this.size,"button--medium":"medium"===this.size,"button--large":"large"===this.size,"button--caret":this.caret,"button--circle":this.circle,"button--disabled":this.disabled,"button--focused":this.hasFocus,"button--loading":this.loading,"button--standard":!this.outline,"button--outline":this.outline,"button--pill":this.pill,"button--rtl":"rtl"===this.localize.dir(),"button--has-label":this.hasSlotController.test("[default]"),"button--has-prefix":this.hasSlotController.test("prefix"),"button--has-suffix":this.hasSlotController.test("suffix")})} ?disabled=${Vh(t?void 0:this.disabled)} type=${Vh(t?void 0:this.type)} title=${this.title} name=${Vh(t?void 0:this.name)} value=${Vh(t?void 0:this.value)} href=${Vh(t?this.href:void 0)} target=${Vh(t?this.target:void 0)} download=${Vh(t?this.download:void 0)} rel=${Vh(t?this.rel:void 0)} role=${Vh(t?void 0:"button")} aria-disabled=${this.disabled?"true":"false"} tabindex=${this.disabled?"-1":"0"} @blur=${this.handleBlur} @focus=${this.handleFocus} @invalid=${this.isButton()?this.handleInvalid:null} @click=${this.handleClick} > ${this.caret?Fh` `:""} ${this.loading?Fh``:""} `}};Lp.styles=_p,nu([cu(".button")],Lp.prototype,"button",2),nu([au()],Lp.prototype,"hasFocus",2),nu([au()],Lp.prototype,"invalid",2),nu([lu()],Lp.prototype,"title",2),nu([lu({reflect:!0})],Lp.prototype,"variant",2),nu([lu({reflect:!0})],Lp.prototype,"size",2),nu([lu({type:Boolean,reflect:!0})],Lp.prototype,"caret",2),nu([lu({type:Boolean,reflect:!0})],Lp.prototype,"disabled",2),nu([lu({type:Boolean,reflect:!0})],Lp.prototype,"loading",2),nu([lu({type:Boolean,reflect:!0})],Lp.prototype,"outline",2),nu([lu({type:Boolean,reflect:!0})],Lp.prototype,"pill",2),nu([lu({type:Boolean,reflect:!0})],Lp.prototype,"circle",2),nu([lu()],Lp.prototype,"type",2),nu([lu()],Lp.prototype,"name",2),nu([lu()],Lp.prototype,"value",2),nu([lu()],Lp.prototype,"href",2),nu([lu()],Lp.prototype,"target",2),nu([lu()],Lp.prototype,"rel",2),nu([lu()],Lp.prototype,"download",2),nu([lu()],Lp.prototype,"form",2),nu([lu({attribute:"formaction"})],Lp.prototype,"formAction",2),nu([lu({attribute:"formenctype"})],Lp.prototype,"formEnctype",2),nu([lu({attribute:"formmethod"})],Lp.prototype,"formMethod",2),nu([lu({attribute:"formnovalidate",type:Boolean})],Lp.prototype,"formNoValidate",2),nu([lu({attribute:"formtarget"})],Lp.prototype,"formTarget",2),nu([Ch("disabled",{waitUntilFirstUpdate:!0})],Lp.prototype,"handleDisabledChange",1),Lp=nu([iu("sl-button")],Lp);const Tp=new Set;function Mp(t){if(Tp.add(t),!document.body.classList.contains("sl-scroll-lock")){const t=function(){const t=document.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}();document.body.classList.add("sl-scroll-lock"),document.body.style.setProperty("--sl-scroll-lock-size",`${t}px`)}}function $p(t){Tp.delete(t),0===Tp.size&&(document.body.classList.remove("sl-scroll-lock"),document.body.style.removeProperty("--sl-scroll-lock-size"))}function Dp(t,e,o="vertical",n="smooth"){const i=function(t,e){return{top:Math.round(t.getBoundingClientRect().top-e.getBoundingClientRect().top),left:Math.round(t.getBoundingClientRect().left-e.getBoundingClientRect().left)}}(t,e),r=i.top+e.scrollTop,s=i.left+e.scrollLeft,l=e.scrollLeft,a=e.scrollLeft+e.offsetWidth,c=e.scrollTop,d=e.scrollTop+e.offsetHeight;"horizontal"!==o&&"both"!==o||(sa&&e.scrollTo({left:s-e.offsetWidth+t.clientWidth,behavior:n})),"vertical"!==o&&"both"!==o||(rd&&e.scrollTo({top:r-e.offsetHeight+t.clientHeight,behavior:n}))}function Ip(t){const e=t.tagName.toLowerCase();return"-1"!==t.getAttribute("tabindex")&&(!t.hasAttribute("disabled")&&((!t.hasAttribute("aria-disabled")||"false"===t.getAttribute("aria-disabled"))&&(!("input"===e&&"radio"===t.getAttribute("type")&&!t.hasAttribute("checked"))&&(null!==t.offsetParent&&("hidden"!==window.getComputedStyle(t).visibility&&(!("audio"!==e&&"video"!==e||!t.hasAttribute("controls"))||(!!t.hasAttribute("tabindex")||(!(!t.hasAttribute("contenteditable")||"false"===t.getAttribute("contenteditable"))||["button","input","select","textarea","a","audio","video","summary"].includes(e)))))))))}function Ap(t){var e,o;const n=[];!function t(e){e instanceof HTMLElement&&(n.push(e),null!==e.shadowRoot&&"open"===e.shadowRoot.mode&&t(e.shadowRoot)),[...e.children].forEach((e=>t(e)))}(t);return{start:null!==(e=n.find((t=>Ip(t))))&&void 0!==e?e:null,end:null!==(o=n.reverse().find((t=>Ip(t))))&&void 0!==o?o:null}}let Np=[];class Up{constructor(t){this.tabDirection="forward",this.element=t,this.handleFocusIn=this.handleFocusIn.bind(this),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleKeyUp=this.handleKeyUp.bind(this)}activate(){Np.push(this.element),document.addEventListener("focusin",this.handleFocusIn),document.addEventListener("keydown",this.handleKeyDown),document.addEventListener("keyup",this.handleKeyUp)}deactivate(){Np=Np.filter((t=>t!==this.element)),document.removeEventListener("focusin",this.handleFocusIn),document.removeEventListener("keydown",this.handleKeyDown),document.removeEventListener("keyup",this.handleKeyUp)}isActive(){return Np[Np.length-1]===this.element}checkFocus(){if(this.isActive()&&!this.element.matches(":focus-within")){const{start:t,end:e}=Ap(this.element),o="forward"===this.tabDirection?t:e;"function"==typeof(null==o?void 0:o.focus)&&o.focus({preventScroll:!0})}}handleFocusIn(){this.checkFocus()}handleKeyDown(t){"Tab"===t.key&&t.shiftKey&&(this.tabDirection="backward",requestAnimationFrame((()=>this.checkFocus())))}handleKeyUp(){this.tabDirection="forward"}}var Pp=Eu` ${_h} :host { --width: 31rem; --header-spacing: var(--sl-spacing-large); --body-spacing: var(--sl-spacing-large); --footer-spacing: var(--sl-spacing-large); display: contents; } .dialog { display: flex; align-items: center; justify-content: center; position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: var(--sl-z-index-dialog); } .dialog__panel { display: flex; flex-direction: column; z-index: 2; width: var(--width); max-width: calc(100% - var(--sl-spacing-2x-large)); max-height: calc(100% - var(--sl-spacing-2x-large)); background-color: var(--sl-panel-background-color); border-radius: var(--sl-border-radius-medium); box-shadow: var(--sl-shadow-x-large); } .dialog__panel:focus { outline: none; } /* Ensure there's enough vertical padding for phones that don't update vh when chrome appears (e.g. iPhone) */ @media screen and (max-width: 420px) { .dialog__panel { max-height: 80vh; } } .dialog--open .dialog__panel { display: flex; opacity: 1; } .dialog__header { flex: 0 0 auto; display: flex; } .dialog__title { flex: 1 1 auto; font: inherit; font-size: var(--sl-font-size-large); line-height: var(--sl-line-height-dense); padding: var(--header-spacing); margin: 0; } .dialog__header-actions { flex-shrink: 0; display: flex; flex-wrap: wrap; justify-content: end; gap: var(--sl-spacing-2x-small); padding: 0 var(--header-spacing); } .dialog__header-actions sl-icon-button, .dialog__header-actions ::slotted(sl-icon-button) { flex: 0 0 auto; display: flex; align-items: center; font-size: var(--sl-font-size-medium); } .dialog__body { flex: 1 1 auto; display: block; padding: var(--body-spacing); overflow: auto; -webkit-overflow-scrolling: touch; } .dialog__footer { flex: 0 0 auto; text-align: right; padding: var(--footer-spacing); } .dialog__footer ::slotted(sl-button:not(:first-of-type)) { margin-inline-start: var(--sl-spacing-x-small); } .dialog:not(.dialog--has-footer) .dialog__footer { display: none; } .dialog__overlay { position: fixed; top: 0; right: 0; bottom: 0; left: 0; background-color: var(--sl-overlay-background-color); } @media (forced-colors: active) { .dialog__panel { border: solid 1px var(--sl-color-neutral-0); } } `;let zp=class extends Oh{constructor(){super(...arguments),this.hasSlotController=new np(this,"footer"),this.localize=new hp(this),this.modal=new Up(this),this.open=!1,this.label="",this.noHeader=!1,this.handleDocumentKeyDown=t=>{this.open&&"Escape"===t.key&&(t.stopPropagation(),this.requestClose("keyboard"))}}firstUpdated(){this.dialog.hidden=!this.open,this.open&&(this.addOpenListeners(),this.modal.activate(),Mp(this))}disconnectedCallback(){super.disconnectedCallback(),$p(this)}requestClose(t){if(this.emit("sl-request-close",{cancelable:!0,detail:{source:t}}).defaultPrevented){const t=op(this,"dialog.denyClose",{dir:this.localize.dir()});Yh(this.panel,t.keyframes,t.options)}else this.hide()}addOpenListeners(){document.addEventListener("keydown",this.handleDocumentKeyDown)}removeOpenListeners(){document.removeEventListener("keydown",this.handleDocumentKeyDown)}async handleOpenChange(){if(this.open){this.emit("sl-show"),this.addOpenListeners(),this.originalTrigger=document.activeElement,this.modal.activate(),Mp(this);const t=this.querySelector("[autofocus]");t&&t.removeAttribute("autofocus"),await Promise.all([Xh(this.dialog),Xh(this.overlay)]),this.dialog.hidden=!1,requestAnimationFrame((()=>{this.emit("sl-initial-focus",{cancelable:!0}).defaultPrevented||(t?t.focus({preventScroll:!0}):this.panel.focus({preventScroll:!0})),t&&t.setAttribute("autofocus","")}));const e=op(this,"dialog.show",{dir:this.localize.dir()}),o=op(this,"dialog.overlay.show",{dir:this.localize.dir()});await Promise.all([Yh(this.panel,e.keyframes,e.options),Yh(this.overlay,o.keyframes,o.options)]),this.emit("sl-after-show")}else{this.emit("sl-hide"),this.removeOpenListeners(),this.modal.deactivate(),await Promise.all([Xh(this.dialog),Xh(this.overlay)]);const t=op(this,"dialog.hide",{dir:this.localize.dir()}),e=op(this,"dialog.overlay.hide",{dir:this.localize.dir()});await Promise.all([Yh(this.overlay,e.keyframes,e.options).then((()=>{this.overlay.hidden=!0})),Yh(this.panel,t.keyframes,t.options).then((()=>{this.panel.hidden=!0}))]),this.dialog.hidden=!0,this.overlay.hidden=!1,this.panel.hidden=!1,$p(this);const o=this.originalTrigger;"function"==typeof(null==o?void 0:o.focus)&&setTimeout((()=>o.focus())),this.emit("sl-after-hide")}}async show(){if(!this.open)return this.open=!0,pp(this,"sl-after-show")}async hide(){if(this.open)return this.open=!1,pp(this,"sl-after-hide")}render(){return eh`
this.requestClose("overlay")} tabindex="-1">
`}};zp.styles=Pp,nu([cu(".dialog")],zp.prototype,"dialog",2),nu([cu(".dialog__panel")],zp.prototype,"panel",2),nu([cu(".dialog__overlay")],zp.prototype,"overlay",2),nu([lu({type:Boolean,reflect:!0})],zp.prototype,"open",2),nu([lu({reflect:!0})],zp.prototype,"label",2),nu([lu({attribute:"no-header",type:Boolean,reflect:!0})],zp.prototype,"noHeader",2),nu([Ch("open",{waitUntilFirstUpdate:!0})],zp.prototype,"handleOpenChange",1),zp=nu([iu("sl-dialog")],zp),ep("dialog.show",{keyframes:[{opacity:0,scale:.8},{opacity:1,scale:1}],options:{duration:250,easing:"ease"}}),ep("dialog.hide",{keyframes:[{opacity:1,scale:1},{opacity:0,scale:.8}],options:{duration:250,easing:"ease"}}),ep("dialog.denyClose",{keyframes:[{scale:1},{scale:1.02},{scale:1}],options:{duration:250}}),ep("dialog.overlay.show",{keyframes:[{opacity:0},{opacity:1}],options:{duration:250}}),ep("dialog.overlay.hide",{keyframes:[{opacity:1},{opacity:0}],options:{duration:250}});var jp=Eu` ${_h} :host { display: inline-block; } .button-group { display: flex; flex-wrap: nowrap; } `;let Rp=class extends Oh{constructor(){super(...arguments),this.disableRole=!1,this.label=""}handleFocus(t){const e=Hp(t.target);null==e||e.classList.add("sl-button-group__button--focus")}handleBlur(t){const e=Hp(t.target);null==e||e.classList.remove("sl-button-group__button--focus")}handleMouseOver(t){const e=Hp(t.target);null==e||e.classList.add("sl-button-group__button--hover")}handleMouseOut(t){const e=Hp(t.target);null==e||e.classList.remove("sl-button-group__button--hover")}handleSlotChange(){const t=[...this.defaultSlot.assignedElements({flatten:!0})];t.forEach((e=>{const o=t.indexOf(e),n=Hp(e);null!==n&&(n.classList.add("sl-button-group__button"),n.classList.toggle("sl-button-group__button--first",0===o),n.classList.toggle("sl-button-group__button--inner",o>0&&o `}};function Hp(t){var e;const o="sl-button, sl-radio-button";return null!=(e=t.closest(o))?e:t.querySelector(o)}Rp.styles=jp,nu([cu("slot")],Rp.prototype,"defaultSlot",2),nu([au()],Rp.prototype,"disableRole",2),nu([lu()],Rp.prototype,"label",2),Rp=nu([iu("sl-button-group")],Rp);const Bp=Math.min,qp=Math.max,Fp=Math.round,Vp=Math.floor,Gp=t=>({x:t,y:t}),Wp={left:"right",right:"left",bottom:"top",top:"bottom"},Yp={start:"end",end:"start"};function Kp(t,e,o){return qp(t,Bp(e,o))}function Jp(t,e){return"function"==typeof t?t(e):t}function Xp(t){return t.split("-")[0]}function Qp(t){return t.split("-")[1]}function Zp(t){return"x"===t?"y":"x"}function tf(t){return"y"===t?"height":"width"}function ef(t){return["top","bottom"].includes(Xp(t))?"y":"x"}function of(t){return Zp(ef(t))}function nf(t){return t.replace(/start|end/g,(t=>Yp[t]))}function rf(t){return t.replace(/left|right|bottom|top/g,(t=>Wp[t]))}function sf(t){return"number"!=typeof t?function(t){return{top:0,right:0,bottom:0,left:0,...t}}(t):{top:t,right:t,bottom:t,left:t}}function lf(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}function af(t,e,o){let{reference:n,floating:i}=t;const r=ef(e),s=of(e),l=tf(s),a=Xp(e),c="y"===r,d=n.x+n.width/2-i.width/2,u=n.y+n.height/2-i.height/2,h=n[l]/2-i[l]/2;let p;switch(a){case"top":p={x:d,y:n.y-i.height};break;case"bottom":p={x:d,y:n.y+n.height};break;case"right":p={x:n.x+n.width,y:u};break;case"left":p={x:n.x-i.width,y:u};break;default:p={x:n.x,y:n.y}}switch(Qp(e)){case"start":p[s]-=h*(o&&c?-1:1);break;case"end":p[s]+=h*(o&&c?-1:1)}return p}async function cf(t,e){var o;void 0===e&&(e={});const{x:n,y:i,platform:r,rects:s,elements:l,strategy:a}=t,{boundary:c="clippingAncestors",rootBoundary:d="viewport",elementContext:u="floating",altBoundary:h=!1,padding:p=0}=Jp(e,t),f=sf(p),m=l[h?"floating"===u?"reference":"floating":u],g=lf(await r.getClippingRect({element:null==(o=await(null==r.isElement?void 0:r.isElement(m)))||o?m:m.contextElement||await(null==r.getDocumentElement?void 0:r.getDocumentElement(l.floating)),boundary:c,rootBoundary:d,strategy:a})),b="floating"===u?{...s.floating,x:n,y:i}:s.reference,v=await(null==r.getOffsetParent?void 0:r.getOffsetParent(l.floating)),y=await(null==r.isElement?void 0:r.isElement(v))&&await(null==r.getScale?void 0:r.getScale(v))||{x:1,y:1},w=lf(r.convertOffsetParentRelativeRectToViewportRelativeRect?await r.convertOffsetParentRelativeRectToViewportRelativeRect({rect:b,offsetParent:v,strategy:a}):b);return{top:(g.top-w.top+f.top)/y.y,bottom:(w.bottom-g.bottom+f.bottom)/y.y,left:(g.left-w.left+f.left)/y.x,right:(w.right-g.right+f.right)/y.x}}const df=function(t){return void 0===t&&(t={}),{name:"flip",options:t,async fn(e){var o;const{placement:n,middlewareData:i,rects:r,initialPlacement:s,platform:l,elements:a}=e,{mainAxis:c=!0,crossAxis:d=!0,fallbackPlacements:u,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:p="none",flipAlignment:f=!0,...m}=Jp(t,e),g=Xp(n),b=Xp(s)===s,v=await(null==l.isRTL?void 0:l.isRTL(a.floating)),y=u||(b||!f?[rf(s)]:function(t){const e=rf(t);return[nf(t),e,nf(e)]}(s));u||"none"===p||y.push(...function(t,e,o,n){const i=Qp(t);let r=function(t,e,o){const n=["left","right"],i=["right","left"],r=["top","bottom"],s=["bottom","top"];switch(t){case"top":case"bottom":return o?e?i:n:e?n:i;case"left":case"right":return e?r:s;default:return[]}}(Xp(t),"start"===o,n);return i&&(r=r.map((t=>t+"-"+i)),e&&(r=r.concat(r.map(nf)))),r}(s,f,p,v));const w=[s,...y],x=await cf(e,m),S=[];let E=(null==(o=i.flip)?void 0:o.overflows)||[];if(c&&S.push(x[g]),d){const t=function(t,e,o){void 0===o&&(o=!1);const n=Qp(t),i=of(t),r=tf(i);let s="x"===i?n===(o?"end":"start")?"right":"left":"start"===n?"bottom":"top";return e.reference[r]>e.floating[r]&&(s=rf(s)),[s,rf(s)]}(n,r,v);S.push(x[t[0]],x[t[1]])}if(E=[...E,{placement:n,overflows:S}],!S.every((t=>t<=0))){var C,k;const t=((null==(C=i.flip)?void 0:C.index)||0)+1,e=w[t];if(e)return{data:{index:t,overflows:E},reset:{placement:e}};let o=null==(k=E.filter((t=>t.overflows[0]<=0)).sort(((t,e)=>t.overflows[1]-e.overflows[1]))[0])?void 0:k.placement;if(!o)switch(h){case"bestFit":{var O;const t=null==(O=E.map((t=>[t.placement,t.overflows.filter((t=>t>0)).reduce(((t,e)=>t+e),0)])).sort(((t,e)=>t[1]-e[1]))[0])?void 0:O[0];t&&(o=t);break}case"initialPlacement":o=s}if(n!==o)return{reset:{placement:o}}}return{}}}};const uf=function(t){return void 0===t&&(t=0),{name:"offset",options:t,async fn(e){const{x:o,y:n}=e,i=await async function(t,e){const{placement:o,platform:n,elements:i}=t,r=await(null==n.isRTL?void 0:n.isRTL(i.floating)),s=Xp(o),l=Qp(o),a="y"===ef(o),c=["left","top"].includes(s)?-1:1,d=r&&a?-1:1,u=Jp(e,t);let{mainAxis:h,crossAxis:p,alignmentAxis:f}="number"==typeof u?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...u};return l&&"number"==typeof f&&(p="end"===l?-1*f:f),a?{x:p*d,y:h*c}:{x:h*c,y:p*d}}(e,t);return{x:o+i.x,y:n+i.y,data:i}}}},hf=function(t){return void 0===t&&(t={}),{name:"size",options:t,async fn(e){const{placement:o,rects:n,platform:i,elements:r}=e,{apply:s=(()=>{}),...l}=Jp(t,e),a=await cf(e,l),c=Xp(o),d=Qp(o),u="y"===ef(o),{width:h,height:p}=n.floating;let f,m;"top"===c||"bottom"===c?(f=c,m=d===(await(null==i.isRTL?void 0:i.isRTL(r.floating))?"start":"end")?"left":"right"):(m=c,f="end"===d?"top":"bottom");const g=p-a[f],b=h-a[m],v=!e.middlewareData.shift;let y=g,w=b;if(u){const t=h-a.left-a.right;w=d||v?Bp(b,t):t}else{const t=p-a.top-a.bottom;y=d||v?Bp(g,t):t}if(v&&!d){const t=qp(a.left,0),e=qp(a.right,0),o=qp(a.top,0),n=qp(a.bottom,0);u?w=h-2*(0!==t||0!==e?t+e:qp(a.left,a.right)):y=p-2*(0!==o||0!==n?o+n:qp(a.top,a.bottom))}await s({...e,availableWidth:w,availableHeight:y});const x=await i.getDimensions(r.floating);return h!==x.width||p!==x.height?{reset:{rects:!0}}:{}}}};function pf(t){return gf(t)?(t.nodeName||"").toLowerCase():"#document"}function ff(t){var e;return(null==t||null==(e=t.ownerDocument)?void 0:e.defaultView)||window}function mf(t){var e;return null==(e=(gf(t)?t.ownerDocument:t.document)||window.document)?void 0:e.documentElement}function gf(t){return t instanceof Node||t instanceof ff(t).Node}function bf(t){return t instanceof Element||t instanceof ff(t).Element}function vf(t){return t instanceof HTMLElement||t instanceof ff(t).HTMLElement}function yf(t){return"undefined"!=typeof ShadowRoot&&(t instanceof ShadowRoot||t instanceof ff(t).ShadowRoot)}function wf(t){const{overflow:e,overflowX:o,overflowY:n,display:i}=kf(t);return/auto|scroll|overlay|hidden|clip/.test(e+n+o)&&!["inline","contents"].includes(i)}function xf(t){return["table","td","th"].includes(pf(t))}function Sf(t){const e=Ef(),o=kf(t);return"none"!==o.transform||"none"!==o.perspective||!!o.containerType&&"normal"!==o.containerType||!e&&!!o.backdropFilter&&"none"!==o.backdropFilter||!e&&!!o.filter&&"none"!==o.filter||["transform","perspective","filter"].some((t=>(o.willChange||"").includes(t)))||["paint","layout","strict","content"].some((t=>(o.contain||"").includes(t)))}function Ef(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function Cf(t){return["html","body","#document"].includes(pf(t))}function kf(t){return ff(t).getComputedStyle(t)}function Of(t){return bf(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function _f(t){if("html"===pf(t))return t;const e=t.assignedSlot||t.parentNode||yf(t)&&t.host||mf(t);return yf(e)?e.host:e}function Lf(t){const e=_f(t);return Cf(e)?t.ownerDocument?t.ownerDocument.body:t.body:vf(e)&&wf(e)?e:Lf(e)}function Tf(t,e){var o;void 0===e&&(e=[]);const n=Lf(t),i=n===(null==(o=t.ownerDocument)?void 0:o.body),r=ff(n);return i?e.concat(r,r.visualViewport||[],wf(n)?n:[]):e.concat(n,Tf(n))}function Mf(t){const e=kf(t);let o=parseFloat(e.width)||0,n=parseFloat(e.height)||0;const i=vf(t),r=i?t.offsetWidth:o,s=i?t.offsetHeight:n,l=Fp(o)!==r||Fp(n)!==s;return l&&(o=r,n=s),{width:o,height:n,$:l}}function $f(t){return bf(t)?t:t.contextElement}function Df(t){const e=$f(t);if(!vf(e))return Gp(1);const o=e.getBoundingClientRect(),{width:n,height:i,$:r}=Mf(e);let s=(r?Fp(o.width):o.width)/n,l=(r?Fp(o.height):o.height)/i;return s&&Number.isFinite(s)||(s=1),l&&Number.isFinite(l)||(l=1),{x:s,y:l}}const If=Gp(0);function Af(t){const e=ff(t);return Ef()&&e.visualViewport?{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}:If}function Nf(t,e,o,n){void 0===e&&(e=!1),void 0===o&&(o=!1);const i=t.getBoundingClientRect(),r=$f(t);let s=Gp(1);e&&(n?bf(n)&&(s=Df(n)):s=Df(t));const l=function(t,e,o){return void 0===e&&(e=!1),!(!o||e&&o!==ff(t))&&e}(r,o,n)?Af(r):Gp(0);let a=(i.left+l.x)/s.x,c=(i.top+l.y)/s.y,d=i.width/s.x,u=i.height/s.y;if(r){const t=ff(r),e=n&&bf(n)?ff(n):n;let o=t.frameElement;for(;o&&n&&e!==t;){const t=Df(o),e=o.getBoundingClientRect(),n=kf(o),i=e.left+(o.clientLeft+parseFloat(n.paddingLeft))*t.x,r=e.top+(o.clientTop+parseFloat(n.paddingTop))*t.y;a*=t.x,c*=t.y,d*=t.x,u*=t.y,a+=i,c+=r,o=ff(o).frameElement}}return lf({width:d,height:u,x:a,y:c})}function Uf(t){return Nf(mf(t)).left+Of(t).scrollLeft}function Pf(t,e,o){let n;if("viewport"===e)n=function(t,e){const o=ff(t),n=mf(t),i=o.visualViewport;let r=n.clientWidth,s=n.clientHeight,l=0,a=0;if(i){r=i.width,s=i.height;const t=Ef();(!t||t&&"fixed"===e)&&(l=i.offsetLeft,a=i.offsetTop)}return{width:r,height:s,x:l,y:a}}(t,o);else if("document"===e)n=function(t){const e=mf(t),o=Of(t),n=t.ownerDocument.body,i=qp(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),r=qp(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight);let s=-o.scrollLeft+Uf(t);const l=-o.scrollTop;return"rtl"===kf(n).direction&&(s+=qp(e.clientWidth,n.clientWidth)-i),{width:i,height:r,x:s,y:l}}(mf(t));else if(bf(e))n=function(t,e){const o=Nf(t,!0,"fixed"===e),n=o.top+t.clientTop,i=o.left+t.clientLeft,r=vf(t)?Df(t):Gp(1);return{width:t.clientWidth*r.x,height:t.clientHeight*r.y,x:i*r.x,y:n*r.y}}(e,o);else{const o=Af(t);n={...e,x:e.x-o.x,y:e.y-o.y}}return lf(n)}function zf(t,e){const o=_f(t);return!(o===e||!bf(o)||Cf(o))&&("fixed"===kf(o).position||zf(o,e))}function jf(t,e,o){const n=vf(e),i=mf(e),r="fixed"===o,s=Nf(t,!0,r,e);let l={scrollLeft:0,scrollTop:0};const a=Gp(0);if(n||!n&&!r)if(("body"!==pf(e)||wf(i))&&(l=Of(e)),n){const t=Nf(e,!0,r,e);a.x=t.x+e.clientLeft,a.y=t.y+e.clientTop}else i&&(a.x=Uf(i));return{x:s.left+l.scrollLeft-a.x,y:s.top+l.scrollTop-a.y,width:s.width,height:s.height}}function Rf(t,e){return vf(t)&&"fixed"!==kf(t).position?e?e(t):t.offsetParent:null}function Hf(t,e){const o=ff(t);if(!vf(t))return o;let n=Rf(t,e);for(;n&&xf(n)&&"static"===kf(n).position;)n=Rf(n,e);return n&&("html"===pf(n)||"body"===pf(n)&&"static"===kf(n).position&&!Sf(n))?o:n||function(t){let e=_f(t);for(;vf(e)&&!Cf(e);){if(Sf(e))return e;e=_f(e)}return null}(t)||o}const Bf={convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{rect:e,offsetParent:o,strategy:n}=t;const i=vf(o),r=mf(o);if(o===r)return e;let s={scrollLeft:0,scrollTop:0},l=Gp(1);const a=Gp(0);if((i||!i&&"fixed"!==n)&&(("body"!==pf(o)||wf(r))&&(s=Of(o)),vf(o))){const t=Nf(o);l=Df(o),a.x=t.x+o.clientLeft,a.y=t.y+o.clientTop}return{width:e.width*l.x,height:e.height*l.y,x:e.x*l.x-s.scrollLeft*l.x+a.x,y:e.y*l.y-s.scrollTop*l.y+a.y}},getDocumentElement:mf,getClippingRect:function(t){let{element:e,boundary:o,rootBoundary:n,strategy:i}=t;const r="clippingAncestors"===o?function(t,e){const o=e.get(t);if(o)return o;let n=Tf(t).filter((t=>bf(t)&&"body"!==pf(t))),i=null;const r="fixed"===kf(t).position;let s=r?_f(t):t;for(;bf(s)&&!Cf(s);){const e=kf(s),o=Sf(s);o||"fixed"!==e.position||(i=null),(r?!o&&!i:!o&&"static"===e.position&&i&&["absolute","fixed"].includes(i.position)||wf(s)&&!o&&zf(t,s))?n=n.filter((t=>t!==s)):i=e,s=_f(s)}return e.set(t,n),n}(e,this._c):[].concat(o),s=[...r,n],l=s[0],a=s.reduce(((t,o)=>{const n=Pf(e,o,i);return t.top=qp(n.top,t.top),t.right=Bp(n.right,t.right),t.bottom=Bp(n.bottom,t.bottom),t.left=qp(n.left,t.left),t}),Pf(e,l,i));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}},getOffsetParent:Hf,getElementRects:async function(t){let{reference:e,floating:o,strategy:n}=t;const i=this.getOffsetParent||Hf,r=this.getDimensions;return{reference:jf(e,await i(o),n),floating:{x:0,y:0,...await r(o)}}},getClientRects:function(t){return Array.from(t.getClientRects())},getDimensions:function(t){return Mf(t)},getScale:Df,isElement:bf,isRTL:function(t){return"rtl"===kf(t).direction}};function qf(t,e,o,n){void 0===n&&(n={});const{ancestorScroll:i=!0,ancestorResize:r=!0,elementResize:s="function"==typeof ResizeObserver,layoutShift:l="function"==typeof IntersectionObserver,animationFrame:a=!1}=n,c=$f(t),d=i||r?[...c?Tf(c):[],...Tf(e)]:[];d.forEach((t=>{i&&t.addEventListener("scroll",o,{passive:!0}),r&&t.addEventListener("resize",o)}));const u=c&&l?function(t,e){let o,n=null;const i=mf(t);function r(){clearTimeout(o),n&&n.disconnect(),n=null}return function s(l,a){void 0===l&&(l=!1),void 0===a&&(a=1),r();const{left:c,top:d,width:u,height:h}=t.getBoundingClientRect();if(l||e(),!u||!h)return;const p={rootMargin:-Vp(d)+"px "+-Vp(i.clientWidth-(c+u))+"px "+-Vp(i.clientHeight-(d+h))+"px "+-Vp(c)+"px",threshold:qp(0,Bp(1,a))||1};let f=!0;function m(t){const e=t[0].intersectionRatio;if(e!==a){if(!f)return s();e?s(!1,e):o=setTimeout((()=>{s(!1,1e-7)}),100)}f=!1}try{n=new IntersectionObserver(m,{...p,root:i.ownerDocument})}catch(t){n=new IntersectionObserver(m,p)}n.observe(t)}(!0),r}(c,o):null;let h,p=-1,f=null;s&&(f=new ResizeObserver((t=>{let[n]=t;n&&n.target===c&&f&&(f.unobserve(e),cancelAnimationFrame(p),p=requestAnimationFrame((()=>{f&&f.observe(e)}))),o()})),c&&!a&&f.observe(c),f.observe(e));let m=a?Nf(t):null;return a&&function e(){const n=Nf(t);!m||n.x===m.x&&n.y===m.y&&n.width===m.width&&n.height===m.height||o();m=n,h=requestAnimationFrame(e)}(),o(),()=>{d.forEach((t=>{i&&t.removeEventListener("scroll",o),r&&t.removeEventListener("resize",o)})),u&&u(),f&&f.disconnect(),f=null,a&&cancelAnimationFrame(h)}}const Ff=(t,e,o)=>{const n=new Map,i={platform:Bf,...o},r={...i.platform,_c:n};return(async(t,e,o)=>{const{placement:n="bottom",strategy:i="absolute",middleware:r=[],platform:s}=o,l=r.filter(Boolean),a=await(null==s.isRTL?void 0:s.isRTL(e));let c=await s.getElementRects({reference:t,floating:e,strategy:i}),{x:d,y:u}=af(c,n,a),h=n,p={},f=0;for(let o=0;o{this.reposition()})))}async stop(){return new Promise((t=>{this.cleanup?(this.cleanup(),this.cleanup=void 0,this.removeAttribute("data-current-placement"),this.style.removeProperty("--auto-size-available-width"),this.style.removeProperty("--auto-size-available-height"),requestAnimationFrame((()=>t()))):t()}))}reposition(){if(!this.active||!this.anchorEl)return;const t=[uf({mainAxis:this.distance,crossAxis:this.skidding})];var e;this.sync?t.push(hf({apply:({rects:t})=>{const e="width"===this.sync||"both"===this.sync,o="height"===this.sync||"both"===this.sync;this.popup.style.width=e?`${t.reference.width}px`:"",this.popup.style.height=o?`${t.reference.height}px`:""}})):(this.popup.style.width="",this.popup.style.height=""),this.flip&&t.push(df({boundary:this.flipBoundary,fallbackPlacements:this.flipFallbackPlacements,fallbackStrategy:"best-fit"===this.flipFallbackStrategy?"bestFit":"initialPlacement",padding:this.flipPadding})),this.shift&&t.push((void 0===(e={boundary:this.shiftBoundary,padding:this.shiftPadding})&&(e={}),{name:"shift",options:e,async fn(t){const{x:o,y:n,placement:i}=t,{mainAxis:r=!0,crossAxis:s=!1,limiter:l={fn:t=>{let{x:e,y:o}=t;return{x:e,y:o}}},...a}=Jp(e,t),c={x:o,y:n},d=await cf(t,a),u=ef(Xp(i)),h=Zp(u);let p=c[h],f=c[u];if(r){const t="y"===h?"bottom":"right";p=Kp(p+d["y"===h?"top":"left"],p,p-d[t])}if(s){const t="y"===u?"bottom":"right";f=Kp(f+d["y"===u?"top":"left"],f,f-d[t])}const m=l.fn({...t,[h]:p,[u]:f});return{...m,data:{x:m.x-o,y:m.y-n}}}})),this.autoSize?t.push(hf({boundary:this.autoSizeBoundary,padding:this.autoSizePadding,apply:({availableWidth:t,availableHeight:e})=>{"vertical"===this.autoSize||"both"===this.autoSize?this.style.setProperty("--auto-size-available-height",`${e}px`):this.style.removeProperty("--auto-size-available-height"),"horizontal"===this.autoSize||"both"===this.autoSize?this.style.setProperty("--auto-size-available-width",`${t}px`):this.style.removeProperty("--auto-size-available-width")}})):(this.style.removeProperty("--auto-size-available-width"),this.style.removeProperty("--auto-size-available-height")),this.arrow&&t.push((t=>({name:"arrow",options:t,async fn(e){const{x:o,y:n,placement:i,rects:r,platform:s,elements:l}=e,{element:a,padding:c=0}=Jp(t,e)||{};if(null==a)return{};const d=sf(c),u={x:o,y:n},h=of(i),p=tf(h),f=await s.getDimensions(a),m="y"===h,g=m?"top":"left",b=m?"bottom":"right",v=m?"clientHeight":"clientWidth",y=r.reference[p]+r.reference[h]-u[h]-r.floating[p],w=u[h]-r.reference[h],x=await(null==s.getOffsetParent?void 0:s.getOffsetParent(a));let S=x?x[v]:0;S&&await(null==s.isElement?void 0:s.isElement(x))||(S=l.floating[v]||r.floating[p]);const E=y/2-w/2,C=S/2-f[p]/2-1,k=Bp(d[g],C),O=Bp(d[b],C),_=k,L=S-f[p]-O,T=S/2-f[p]/2+E,M=Kp(_,T,L),$=null!=Qp(i)&&T!=M&&r.reference[p]/2-(T<_?k:O)-f[p]/2<0?T<_?_-T:L-T:0;return{[h]:u[h]-$,data:{[h]:M,centerOffset:T-M+$}}}}))({element:this.arrowEl,padding:this.arrowPadding}));const o="absolute"===this.strategy?t=>Bf.getOffsetParent(t,Vf):Bf.getOffsetParent;Ff(this.anchorEl,this.popup,{placement:this.placement,middleware:t,strategy:this.strategy,platform:ou(eu({},Bf),{getOffsetParent:o})}).then((({x:t,y:e,middlewareData:o,placement:n})=>{const i="rtl"===getComputedStyle(this).direction,r={top:"bottom",right:"left",bottom:"top",left:"right"}[n.split("-")[0]];if(this.setAttribute("data-current-placement",n),Object.assign(this.popup.style,{left:`${t}px`,top:`${e}px`}),this.arrow){const t=o.arrow.x,e=o.arrow.y;let n="",s="",l="",a="";if("start"===this.arrowPlacement){const o="number"==typeof t?`calc(${this.arrowPadding}px - var(--arrow-padding-offset))`:"";n="number"==typeof e?`calc(${this.arrowPadding}px - var(--arrow-padding-offset))`:"",s=i?o:"",a=i?"":o}else if("end"===this.arrowPlacement){const o="number"==typeof t?`calc(${this.arrowPadding}px - var(--arrow-padding-offset))`:"";s=i?"":o,a=i?o:"",l="number"==typeof e?`calc(${this.arrowPadding}px - var(--arrow-padding-offset))`:""}else"center"===this.arrowPlacement?(a="number"==typeof t?"calc(50% - var(--arrow-size-diagonal))":"",n="number"==typeof e?"calc(50% - var(--arrow-size-diagonal))":""):(a="number"==typeof t?`${t}px`:"",n="number"==typeof e?`${e}px`:"");Object.assign(this.arrowEl.style,{top:n,right:s,bottom:l,left:a,[r]:"calc(var(--arrow-size-diagonal) * -1)"})}})),this.emit("sl-reposition")}render(){return eh`
${this.arrow?eh``:""}
`}};Yf.styles=Wf,nu([cu(".popup")],Yf.prototype,"popup",2),nu([cu(".popup__arrow")],Yf.prototype,"arrowEl",2),nu([lu()],Yf.prototype,"anchor",2),nu([lu({type:Boolean,reflect:!0})],Yf.prototype,"active",2),nu([lu({reflect:!0})],Yf.prototype,"placement",2),nu([lu({reflect:!0})],Yf.prototype,"strategy",2),nu([lu({type:Number})],Yf.prototype,"distance",2),nu([lu({type:Number})],Yf.prototype,"skidding",2),nu([lu({type:Boolean})],Yf.prototype,"arrow",2),nu([lu({attribute:"arrow-placement"})],Yf.prototype,"arrowPlacement",2),nu([lu({attribute:"arrow-padding",type:Number})],Yf.prototype,"arrowPadding",2),nu([lu({type:Boolean})],Yf.prototype,"flip",2),nu([lu({attribute:"flip-fallback-placements",converter:{fromAttribute:t=>t.split(" ").map((t=>t.trim())).filter((t=>""!==t)),toAttribute:t=>t.join(" ")}})],Yf.prototype,"flipFallbackPlacements",2),nu([lu({attribute:"flip-fallback-strategy"})],Yf.prototype,"flipFallbackStrategy",2),nu([lu({type:Object})],Yf.prototype,"flipBoundary",2),nu([lu({attribute:"flip-padding",type:Number})],Yf.prototype,"flipPadding",2),nu([lu({type:Boolean})],Yf.prototype,"shift",2),nu([lu({type:Object})],Yf.prototype,"shiftBoundary",2),nu([lu({attribute:"shift-padding",type:Number})],Yf.prototype,"shiftPadding",2),nu([lu({attribute:"auto-size"})],Yf.prototype,"autoSize",2),nu([lu()],Yf.prototype,"sync",2),nu([lu({type:Object})],Yf.prototype,"autoSizeBoundary",2),nu([lu({attribute:"auto-size-padding",type:Number})],Yf.prototype,"autoSizePadding",2),Yf=nu([iu("sl-popup")],Yf);var Kf=Eu` ${_h} :host { display: inline-block; } .dropdown::part(popup) { z-index: var(--sl-z-index-dropdown); } .dropdown[data-current-placement^='top']::part(popup) { transform-origin: bottom; } .dropdown[data-current-placement^='bottom']::part(popup) { transform-origin: top; } .dropdown[data-current-placement^='left']::part(popup) { transform-origin: right; } .dropdown[data-current-placement^='right']::part(popup) { transform-origin: left; } .dropdown__trigger { display: block; } .dropdown__panel { font-family: var(--sl-font-sans); font-size: var(--sl-font-size-medium); font-weight: var(--sl-font-weight-normal); box-shadow: var(--sl-shadow-large); border-radius: var(--sl-border-radius-medium); pointer-events: none; } .dropdown--open .dropdown__panel { display: block; pointer-events: all; } /* When users slot a menu, make sure it conforms to the popup's auto-size */ ::slotted(sl-menu) { max-width: var(--auto-size-available-width) !important; max-height: var(--auto-size-available-height) !important; } `;let Jf=class extends Oh{constructor(){super(...arguments),this.localize=new hp(this),this.open=!1,this.placement="bottom-start",this.disabled=!1,this.stayOpenOnSelect=!1,this.distance=0,this.skidding=0,this.hoist=!1,this.handleKeyDown=t=>{this.open&&"Escape"===t.key&&(t.stopPropagation(),this.hide(),this.focusOnTrigger())},this.handleDocumentKeyDown=t=>{var e;if("Escape"===t.key&&this.open)return t.stopPropagation(),this.focusOnTrigger(),void this.hide();if("Tab"===t.key){if(this.open&&"sl-menu-item"===(null==(e=document.activeElement)?void 0:e.tagName.toLowerCase()))return t.preventDefault(),this.hide(),void this.focusOnTrigger();setTimeout((()=>{var t,e,o;const n=(null==(t=this.containingElement)?void 0:t.getRootNode())instanceof ShadowRoot?null==(o=null==(e=document.activeElement)?void 0:e.shadowRoot)?void 0:o.activeElement:document.activeElement;this.containingElement&&(null==n?void 0:n.closest(this.containingElement.tagName.toLowerCase()))===this.containingElement||this.hide()}))}},this.handleDocumentMouseDown=t=>{const e=t.composedPath();this.containingElement&&!e.includes(this.containingElement)&&this.hide()},this.handlePanelSelect=t=>{const e=t.target;this.stayOpenOnSelect||"sl-menu"!==e.tagName.toLowerCase()||(this.hide(),this.focusOnTrigger())}}connectedCallback(){super.connectedCallback(),this.containingElement||(this.containingElement=this)}firstUpdated(){this.panel.hidden=!this.open,this.open&&(this.addOpenListeners(),this.popup.active=!0)}disconnectedCallback(){super.disconnectedCallback(),this.removeOpenListeners(),this.hide()}focusOnTrigger(){const t=this.trigger.assignedElements({flatten:!0})[0];"function"==typeof(null==t?void 0:t.focus)&&t.focus()}getMenu(){return this.panel.assignedElements({flatten:!0}).find((t=>"sl-menu"===t.tagName.toLowerCase()))}handleTriggerClick(){this.open?this.hide():(this.show(),this.focusOnTrigger())}handleTriggerKeyDown(t){if([" ","Enter"].includes(t.key))return t.preventDefault(),void this.handleTriggerClick();const e=this.getMenu();if(e){const o=e.getAllItems(),n=o[0],i=o[o.length-1];["ArrowDown","ArrowUp","Home","End"].includes(t.key)&&(t.preventDefault(),this.open||this.show(),o.length>0&&this.updateComplete.then((()=>{"ArrowDown"!==t.key&&"Home"!==t.key||(e.setCurrentItem(n),n.focus()),"ArrowUp"!==t.key&&"End"!==t.key||(e.setCurrentItem(i),i.focus())})))}}handleTriggerKeyUp(t){" "===t.key&&t.preventDefault()}handleTriggerSlotChange(){this.updateAccessibleTrigger()}updateAccessibleTrigger(){const t=this.trigger.assignedElements({flatten:!0}).find((t=>Ap(t).start));let e;if(t){switch(t.tagName.toLowerCase()){case"sl-button":case"sl-icon-button":e=t.button;break;default:e=t}e.setAttribute("aria-haspopup","true"),e.setAttribute("aria-expanded",this.open?"true":"false")}}async show(){if(!this.open)return this.open=!0,pp(this,"sl-after-show")}async hide(){if(this.open)return this.open=!1,pp(this,"sl-after-hide")}reposition(){this.popup.reposition()}addOpenListeners(){this.panel.addEventListener("sl-select",this.handlePanelSelect),this.panel.addEventListener("keydown",this.handleKeyDown),document.addEventListener("keydown",this.handleDocumentKeyDown),document.addEventListener("mousedown",this.handleDocumentMouseDown)}removeOpenListeners(){this.panel&&(this.panel.removeEventListener("sl-select",this.handlePanelSelect),this.panel.removeEventListener("keydown",this.handleKeyDown)),document.removeEventListener("keydown",this.handleDocumentKeyDown),document.removeEventListener("mousedown",this.handleDocumentMouseDown)}async handleOpenChange(){if(this.disabled)this.open=!1;else if(this.updateAccessibleTrigger(),this.open){this.emit("sl-show"),this.addOpenListeners(),await Xh(this),this.panel.hidden=!1,this.popup.active=!0;const{keyframes:t,options:e}=op(this,"dropdown.show",{dir:this.localize.dir()});await Yh(this.popup.popup,t,e),this.emit("sl-after-show")}else{this.emit("sl-hide"),this.removeOpenListeners(),await Xh(this);const{keyframes:t,options:e}=op(this,"dropdown.hide",{dir:this.localize.dir()});await Yh(this.popup.popup,t,e),this.panel.hidden=!0,this.popup.active=!1,this.emit("sl-after-hide")}}render(){return eh` `}};Jf.styles=Kf,nu([cu(".dropdown")],Jf.prototype,"popup",2),nu([cu(".dropdown__trigger")],Jf.prototype,"trigger",2),nu([cu(".dropdown__panel")],Jf.prototype,"panel",2),nu([lu({type:Boolean,reflect:!0})],Jf.prototype,"open",2),nu([lu({reflect:!0})],Jf.prototype,"placement",2),nu([lu({type:Boolean,reflect:!0})],Jf.prototype,"disabled",2),nu([lu({attribute:"stay-open-on-select",type:Boolean,reflect:!0})],Jf.prototype,"stayOpenOnSelect",2),nu([lu({attribute:!1})],Jf.prototype,"containingElement",2),nu([lu({type:Number})],Jf.prototype,"distance",2),nu([lu({type:Number})],Jf.prototype,"skidding",2),nu([lu({type:Boolean})],Jf.prototype,"hoist",2),nu([Ch("open",{waitUntilFirstUpdate:!0})],Jf.prototype,"handleOpenChange",1),Jf=nu([iu("sl-dropdown")],Jf),ep("dropdown.show",{keyframes:[{opacity:0,scale:.9},{opacity:1,scale:1}],options:{duration:100,easing:"ease"}}),ep("dropdown.hide",{keyframes:[{opacity:1,scale:1},{opacity:0,scale:.9}],options:{duration:100,easing:"ease"}});const Xf=(t="value")=>(e,o)=>{const n=e.constructor,i=n.prototype.attributeChangedCallback;n.prototype.attributeChangedCallback=function(e,r,s){var l;const a=n.getPropertyOptions(t);if(e===("string"==typeof a.attribute?a.attribute:t)){const e=a.converter||Mu,n=("function"==typeof e?e:null!==(l=null==e?void 0:e.fromAttribute)&&void 0!==l?l:Mu.fromAttribute)(s,a.type);this[t]!==n&&(this[o]=n)}i.call(this,e,r,s)}} /** * @license * Copyright 2020 Google LLC * SPDX-License-Identifier: BSD-3-Clause */,Qf=Ph(class extends zh{constructor(t){if(super(t),t.type!==Nh&&t.type!==Ah&&t.type!==Uh)throw Error("The `live` directive is not allowed on child or event bindings");if(!(t=>void 0===t.strings)(t))throw Error("`live` bindings can only contain a single expression")}render(t){return t}update(t,[e]){if(e===oh||e===nh)return e;const o=t.element,n=t.name;if(t.type===Nh){if(e===o[n])return oh}else if(t.type===Uh){if(!!e===o.hasAttribute(n))return oh}else if(t.type===Ah&&o.getAttribute(n)===e+"")return oh;return((t,e=Eh)=>{t._$AH=e})(t),e}});var Zf=Eu` ${_h} ${Eu` .form-control .form-control__label { display: none; } .form-control .form-control__help-text { display: none; } /* Label */ .form-control--has-label .form-control__label { display: inline-block; color: var(--sl-input-label-color); margin-bottom: var(--sl-spacing-3x-small); } .form-control--has-label.form-control--small .form-control__label { font-size: var(--sl-input-label-font-size-small); } .form-control--has-label.form-control--medium .form-control__label { font-size: var(--sl-input-label-font-size-medium); } .form-control--has-label.form-control--large .form-control__label { font-size: var(--sl-input-label-font-size-large); } :host([required]) .form-control--has-label .form-control__label::after { content: var(--sl-input-required-content); margin-inline-start: var(--sl-input-required-content-offset); color: var(--sl-input-required-content-color); } /* Help text */ .form-control--has-help-text .form-control__help-text { display: block; color: var(--sl-input-help-text-color); margin-top: var(--sl-spacing-3x-small); } .form-control--has-help-text.form-control--small .form-control__help-text { font-size: var(--sl-input-help-text-font-size-small); } .form-control--has-help-text.form-control--medium .form-control__help-text { font-size: var(--sl-input-help-text-font-size-medium); } .form-control--has-help-text.form-control--large .form-control__help-text { font-size: var(--sl-input-help-text-font-size-large); } .form-control--has-help-text.form-control--radio-group .form-control__help-text { margin-top: var(--sl-spacing-2x-small); } `} :host { display: block; } .input { flex: 1 1 auto; display: inline-flex; align-items: stretch; justify-content: start; position: relative; width: 100%; font-family: var(--sl-input-font-family); font-weight: var(--sl-input-font-weight); letter-spacing: var(--sl-input-letter-spacing); vertical-align: middle; overflow: hidden; cursor: text; transition: var(--sl-transition-fast) color, var(--sl-transition-fast) border, var(--sl-transition-fast) box-shadow, var(--sl-transition-fast) background-color; } /* Standard inputs */ .input--standard { background-color: var(--sl-input-background-color); border: solid var(--sl-input-border-width) var(--sl-input-border-color); } .input--standard:hover:not(.input--disabled) { background-color: var(--sl-input-background-color-hover); border-color: var(--sl-input-border-color-hover); } .input--standard.input--focused:not(.input--disabled) { background-color: var(--sl-input-background-color-focus); border-color: var(--sl-input-border-color-focus); box-shadow: 0 0 0 var(--sl-focus-ring-width) var(--sl-input-focus-ring-color); } .input--standard.input--focused:not(.input--disabled) .input__control { color: var(--sl-input-color-focus); } .input--standard.input--disabled { background-color: var(--sl-input-background-color-disabled); border-color: var(--sl-input-border-color-disabled); opacity: 0.5; cursor: not-allowed; } .input--standard.input--disabled .input__control { color: var(--sl-input-color-disabled); } .input--standard.input--disabled .input__control::placeholder { color: var(--sl-input-placeholder-color-disabled); } /* Filled inputs */ .input--filled { border: none; background-color: var(--sl-input-filled-background-color); color: var(--sl-input-color); } .input--filled:hover:not(.input--disabled) { background-color: var(--sl-input-filled-background-color-hover); } .input--filled.input--focused:not(.input--disabled) { background-color: var(--sl-input-filled-background-color-focus); outline: var(--sl-focus-ring); outline-offset: var(--sl-focus-ring-offset); } .input--filled.input--disabled { background-color: var(--sl-input-filled-background-color-disabled); opacity: 0.5; cursor: not-allowed; } .input__control { flex: 1 1 auto; font-family: inherit; font-size: inherit; font-weight: inherit; min-width: 0; height: 100%; color: var(--sl-input-color); border: none; background: inherit; box-shadow: none; padding: 0; margin: 0; cursor: inherit; -webkit-appearance: none; } .input__control::-webkit-search-decoration, .input__control::-webkit-search-cancel-button, .input__control::-webkit-search-results-button, .input__control::-webkit-search-results-decoration { -webkit-appearance: none; } .input__control:-webkit-autofill, .input__control:-webkit-autofill:hover, .input__control:-webkit-autofill:focus, .input__control:-webkit-autofill:active { box-shadow: 0 0 0 var(--sl-input-height-large) var(--sl-input-background-color-hover) inset !important; -webkit-text-fill-color: var(--sl-color-primary-500); caret-color: var(--sl-input-color); } .input--filled .input__control:-webkit-autofill, .input--filled .input__control:-webkit-autofill:hover, .input--filled .input__control:-webkit-autofill:focus, .input--filled .input__control:-webkit-autofill:active { box-shadow: 0 0 0 var(--sl-input-height-large) var(--sl-input-filled-background-color) inset !important; } .input__control::placeholder { color: var(--sl-input-placeholder-color); user-select: none; } .input:hover:not(.input--disabled) .input__control { color: var(--sl-input-color-hover); } .input__control:focus { outline: none; } .input__prefix, .input__suffix { display: inline-flex; flex: 0 0 auto; align-items: center; cursor: default; } .input__prefix::slotted(sl-icon), .input__suffix::slotted(sl-icon) { color: var(--sl-input-icon-color); } /* * Size modifiers */ .input--small { border-radius: var(--sl-input-border-radius-small); font-size: var(--sl-input-font-size-small); height: var(--sl-input-height-small); } .input--small .input__control { height: calc(var(--sl-input-height-small) - var(--sl-input-border-width) * 2); padding: 0 var(--sl-input-spacing-small); } .input--small .input__clear, .input--small .input__password-toggle { width: calc(1em + var(--sl-input-spacing-small) * 2); } .input--small .input__prefix::slotted(*) { margin-inline-start: var(--sl-input-spacing-small); } .input--small .input__suffix::slotted(*) { margin-inline-end: var(--sl-input-spacing-small); } .input--medium { border-radius: var(--sl-input-border-radius-medium); font-size: var(--sl-input-font-size-medium); height: var(--sl-input-height-medium); } .input--medium .input__control { height: calc(var(--sl-input-height-medium) - var(--sl-input-border-width) * 2); padding: 0 var(--sl-input-spacing-medium); } .input--medium .input__clear, .input--medium .input__password-toggle { width: calc(1em + var(--sl-input-spacing-medium) * 2); } .input--medium .input__prefix::slotted(*) { margin-inline-start: var(--sl-input-spacing-medium); } .input--medium .input__suffix::slotted(*) { margin-inline-end: var(--sl-input-spacing-medium); } .input--large { border-radius: var(--sl-input-border-radius-large); font-size: var(--sl-input-font-size-large); height: var(--sl-input-height-large); } .input--large .input__control { height: calc(var(--sl-input-height-large) - var(--sl-input-border-width) * 2); padding: 0 var(--sl-input-spacing-large); } .input--large .input__clear, .input--large .input__password-toggle { width: calc(1em + var(--sl-input-spacing-large) * 2); } .input--large .input__prefix::slotted(*) { margin-inline-start: var(--sl-input-spacing-large); } .input--large .input__suffix::slotted(*) { margin-inline-end: var(--sl-input-spacing-large); } /* * Pill modifier */ .input--pill.input--small { border-radius: var(--sl-input-height-small); } .input--pill.input--medium { border-radius: var(--sl-input-height-medium); } .input--pill.input--large { border-radius: var(--sl-input-height-large); } /* * Clearable + Password Toggle */ .input__clear, .input__password-toggle { display: inline-flex; align-items: center; justify-content: center; font-size: inherit; color: var(--sl-input-icon-color); border: none; background: none; padding: 0; transition: var(--sl-transition-fast) color; cursor: pointer; } .input__clear:hover, .input__password-toggle:hover { color: var(--sl-input-icon-color-hover); } .input__clear:focus, .input__password-toggle:focus { outline: none; } .input--empty .input__clear { visibility: hidden; } /* Don't show the browser's password toggle in Edge */ ::-ms-reveal { display: none; } /* Hide the built-in number spinner */ .input--no-spin-buttons input[type='number']::-webkit-outer-spin-button, .input--no-spin-buttons input[type='number']::-webkit-inner-spin-button { -webkit-appearance: none; display: none; } .input--no-spin-buttons input[type='number'] { -moz-appearance: textfield; } `;let tm=class extends Oh{constructor(){super(...arguments),this.formControlController=new kp(this,{assumeInteractionOn:["sl-blur","sl-input"]}),this.hasSlotController=new np(this,"help-text","label"),this.localize=new hp(this),this.hasFocus=!1,this.title="",this.__numberInput=Object.assign(document.createElement("input"),{type:"number"}),this.__dateInput=Object.assign(document.createElement("input"),{type:"date"}),this.type="text",this.name="",this.value="",this.defaultValue="",this.size="medium",this.filled=!1,this.pill=!1,this.label="",this.helpText="",this.clearable=!1,this.disabled=!1,this.placeholder="",this.readonly=!1,this.passwordToggle=!1,this.passwordVisible=!1,this.noSpinButtons=!1,this.form="",this.required=!1,this.spellcheck=!0}get valueAsDate(){var t;return this.__dateInput.value=this.value,(null==(t=this.input)?void 0:t.valueAsDate)||this.__dateInput.valueAsDate}set valueAsDate(t){this.__dateInput.valueAsDate=t,this.value=this.__dateInput.value}get valueAsNumber(){var t;return this.__numberInput.value=this.value,(null==(t=this.input)?void 0:t.valueAsNumber)||this.__numberInput.valueAsNumber}set valueAsNumber(t){this.__numberInput.valueAsNumber=t,this.value=this.__numberInput.value}get validity(){return this.input.validity}get validationMessage(){return this.input.validationMessage}firstUpdated(){this.formControlController.updateValidity()}handleBlur(){this.hasFocus=!1,this.emit("sl-blur")}handleChange(){this.value=this.input.value,this.emit("sl-change")}handleClearClick(t){this.value="",this.emit("sl-clear"),this.emit("sl-input"),this.emit("sl-change"),this.input.focus(),t.stopPropagation()}handleFocus(){this.hasFocus=!0,this.emit("sl-focus")}handleInput(){this.value=this.input.value,this.formControlController.updateValidity(),this.emit("sl-input")}handleInvalid(t){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(t)}handleKeyDown(t){const e=t.metaKey||t.ctrlKey||t.shiftKey||t.altKey;"Enter"!==t.key||e||setTimeout((()=>{t.defaultPrevented||t.isComposing||this.formControlController.submit()}))}handlePasswordToggle(){this.passwordVisible=!this.passwordVisible}handleDisabledChange(){this.formControlController.setValidity(this.disabled)}handleStepChange(){this.input.step=String(this.step),this.formControlController.updateValidity()}async handleValueChange(){await this.updateComplete,this.formControlController.updateValidity()}focus(t){this.input.focus(t)}blur(){this.input.blur()}select(){this.input.select()}setSelectionRange(t,e,o="none"){this.input.setSelectionRange(t,e,o)}setRangeText(t,e,o,n){this.input.setRangeText(t,e,o,n),this.value!==this.input.value&&(this.value=this.input.value)}showPicker(){"showPicker"in HTMLInputElement.prototype&&this.input.showPicker()}stepUp(){this.input.stepUp(),this.value!==this.input.value&&(this.value=this.input.value)}stepDown(){this.input.stepDown(),this.value!==this.input.value&&(this.value=this.input.value)}checkValidity(){return this.input.checkValidity()}getForm(){return this.formControlController.getForm()}reportValidity(){return this.input.reportValidity()}setCustomValidity(t){this.input.setCustomValidity(t),this.formControlController.updateValidity()}render(){const t=this.hasSlotController.test("label"),e=this.hasSlotController.test("help-text"),o=!!this.label||!!t,n=!!this.helpText||!!e,i=this.clearable&&!this.disabled&&!this.readonly&&("number"==typeof this.value||this.value.length>0);return eh`
${i?eh` `:""} ${this.passwordToggle&&!this.disabled?eh` `:""}
${this.helpText}
`}};tm.styles=Zf,nu([cu(".input__control")],tm.prototype,"input",2),nu([au()],tm.prototype,"hasFocus",2),nu([lu()],tm.prototype,"title",2),nu([lu({reflect:!0})],tm.prototype,"type",2),nu([lu()],tm.prototype,"name",2),nu([lu()],tm.prototype,"value",2),nu([Xf()],tm.prototype,"defaultValue",2),nu([lu({reflect:!0})],tm.prototype,"size",2),nu([lu({type:Boolean,reflect:!0})],tm.prototype,"filled",2),nu([lu({type:Boolean,reflect:!0})],tm.prototype,"pill",2),nu([lu()],tm.prototype,"label",2),nu([lu({attribute:"help-text"})],tm.prototype,"helpText",2),nu([lu({type:Boolean})],tm.prototype,"clearable",2),nu([lu({type:Boolean,reflect:!0})],tm.prototype,"disabled",2),nu([lu()],tm.prototype,"placeholder",2),nu([lu({type:Boolean,reflect:!0})],tm.prototype,"readonly",2),nu([lu({attribute:"password-toggle",type:Boolean})],tm.prototype,"passwordToggle",2),nu([lu({attribute:"password-visible",type:Boolean})],tm.prototype,"passwordVisible",2),nu([lu({attribute:"no-spin-buttons",type:Boolean})],tm.prototype,"noSpinButtons",2),nu([lu({reflect:!0})],tm.prototype,"form",2),nu([lu({type:Boolean,reflect:!0})],tm.prototype,"required",2),nu([lu()],tm.prototype,"pattern",2),nu([lu({type:Number})],tm.prototype,"minlength",2),nu([lu({type:Number})],tm.prototype,"maxlength",2),nu([lu()],tm.prototype,"min",2),nu([lu()],tm.prototype,"max",2),nu([lu()],tm.prototype,"step",2),nu([lu()],tm.prototype,"autocapitalize",2),nu([lu()],tm.prototype,"autocorrect",2),nu([lu()],tm.prototype,"autocomplete",2),nu([lu({type:Boolean})],tm.prototype,"autofocus",2),nu([lu()],tm.prototype,"enterkeyhint",2),nu([lu({type:Boolean,converter:{fromAttribute:t=>!(!t||"false"===t),toAttribute:t=>t?"true":"false"}})],tm.prototype,"spellcheck",2),nu([lu()],tm.prototype,"inputmode",2),nu([Ch("disabled",{waitUntilFirstUpdate:!0})],tm.prototype,"handleDisabledChange",1),nu([Ch("step",{waitUntilFirstUpdate:!0})],tm.prototype,"handleStepChange",1),nu([Ch("value",{waitUntilFirstUpdate:!0})],tm.prototype,"handleValueChange",1),tm=nu([iu("sl-input")],tm);var em=Eu` ${_h} :host(:not(:focus-within)) { position: absolute !important; width: 1px !important; height: 1px !important; clip: rect(0 0 0 0) !important; clip-path: inset(50%) !important; border: none !important; overflow: hidden !important; white-space: nowrap !important; padding: 0 !important; } `;let om=class extends Oh{render(){return eh` `}};function nm(t,e,o){const n=t=>Object.is(t,-0)?0:t;return n(to?o:t)}function im(t,e){function o(o){const n=t.getBoundingClientRect(),i=t.ownerDocument.defaultView,r=n.left+i.pageXOffset,s=n.top+i.pageYOffset,l=o.pageX-r,a=o.pageY-s;(null==e?void 0:e.onMove)&&e.onMove(l,a)}document.addEventListener("pointermove",o,{passive:!0}),document.addEventListener("pointerup",(function t(){document.removeEventListener("pointermove",o),document.removeEventListener("pointerup",t),(null==e?void 0:e.onStop)&&e.onStop()})),(null==e?void 0:e.initialEvent)instanceof PointerEvent&&o(e.initialEvent)} /** * @license * Copyright 2018 Google LLC * SPDX-License-Identifier: BSD-3-Clause */om.styles=em,om=nu([iu("sl-visually-hidden")],om);const rm="important",sm=" !"+rm,lm=Ph(class extends zh{constructor(t){var e;if(super(t),t.type!==Ah||"style"!==t.name||(null===(e=t.strings)||void 0===e?void 0:e.length)>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(t){return Object.keys(t).reduce(((e,o)=>{const n=t[o];return null==n?e:e+`${o=o.includes("-")?o:o.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${n};`}),"")}update(t,[e]){const{style:o}=t.element;if(void 0===this.ht){this.ht=new Set;for(const t in e)this.ht.add(t);return this.render(e)}this.ht.forEach((t=>{null==e[t]&&(this.ht.delete(t),t.includes("-")?o.removeProperty(t):o[t]="")}));for(const t in e){const n=e[t];if(null!=n){this.ht.add(t);const e="string"==typeof n&&n.endsWith(sm);t.includes("-")||e?o.setProperty(t,e?n.slice(0,-11):n,e?rm:""):o[t]=n}}return oh}});function am(t,e){(function(t){return"string"==typeof t&&-1!==t.indexOf(".")&&1===parseFloat(t)})(t)&&(t="100%");var o=function(t){return"string"==typeof t&&-1!==t.indexOf("%")}(t);return t=360===e?t:Math.min(e,Math.max(0,parseFloat(t))),o&&(t=parseInt(String(t*e),10)/100),Math.abs(t-e)<1e-6?1:t=360===e?(t<0?t%e+e:t%e)/parseFloat(String(e)):t%e/parseFloat(String(e))}function cm(t){return Math.min(1,Math.max(0,t))}function dm(t){return t=parseFloat(t),(isNaN(t)||t<0||t>1)&&(t=1),t}function um(t){return t<=1?"".concat(100*Number(t),"%"):t}function hm(t){return 1===t.length?"0"+t:String(t)}function pm(t,e,o){t=am(t,255),e=am(e,255),o=am(o,255);var n=Math.max(t,e,o),i=Math.min(t,e,o),r=0,s=0,l=(n+i)/2;if(n===i)s=0,r=0;else{var a=n-i;switch(s=l>.5?a/(2-n-i):a/(n+i),n){case t:r=(e-o)/a+(e1&&(o-=1),o<1/6?t+6*o*(e-t):o<.5?e:o<2/3?t+(e-t)*(2/3-o)*6:t}function mm(t,e,o){t=am(t,255),e=am(e,255),o=am(o,255);var n=Math.max(t,e,o),i=Math.min(t,e,o),r=0,s=n,l=n-i,a=0===n?0:l/n;if(n===i)r=0;else{switch(n){case t:r=(e-o)/l+(e>16,g:(65280&t)>>8,b:255&t}}(e)),this.originalInput=e;var i=xm(e);this.originalInput=e,this.r=i.r,this.g=i.g,this.b=i.b,this.a=i.a,this.roundA=Math.round(100*this.a)/100,this.format=null!==(n=o.format)&&void 0!==n?n:i.format,this.gradientType=o.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=i.ok}return t.prototype.isDark=function(){return this.getBrightness()<128},t.prototype.isLight=function(){return!this.isDark()},t.prototype.getBrightness=function(){var t=this.toRgb();return(299*t.r+587*t.g+114*t.b)/1e3},t.prototype.getLuminance=function(){var t=this.toRgb(),e=t.r/255,o=t.g/255,n=t.b/255;return.2126*(e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4))+.7152*(o<=.03928?o/12.92:Math.pow((o+.055)/1.055,2.4))+.0722*(n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4))},t.prototype.getAlpha=function(){return this.a},t.prototype.setAlpha=function(t){return this.a=dm(t),this.roundA=Math.round(100*this.a)/100,this},t.prototype.isMonochrome=function(){return 0===this.toHsl().s},t.prototype.toHsv=function(){var t=mm(this.r,this.g,this.b);return{h:360*t.h,s:t.s,v:t.v,a:this.a}},t.prototype.toHsvString=function(){var t=mm(this.r,this.g,this.b),e=Math.round(360*t.h),o=Math.round(100*t.s),n=Math.round(100*t.v);return 1===this.a?"hsv(".concat(e,", ").concat(o,"%, ").concat(n,"%)"):"hsva(".concat(e,", ").concat(o,"%, ").concat(n,"%, ").concat(this.roundA,")")},t.prototype.toHsl=function(){var t=pm(this.r,this.g,this.b);return{h:360*t.h,s:t.s,l:t.l,a:this.a}},t.prototype.toHslString=function(){var t=pm(this.r,this.g,this.b),e=Math.round(360*t.h),o=Math.round(100*t.s),n=Math.round(100*t.l);return 1===this.a?"hsl(".concat(e,", ").concat(o,"%, ").concat(n,"%)"):"hsla(".concat(e,", ").concat(o,"%, ").concat(n,"%, ").concat(this.roundA,")")},t.prototype.toHex=function(t){return void 0===t&&(t=!1),gm(this.r,this.g,this.b,t)},t.prototype.toHexString=function(t){return void 0===t&&(t=!1),"#"+this.toHex(t)},t.prototype.toHex8=function(t){return void 0===t&&(t=!1),function(t,e,o,n,i){var r=[hm(Math.round(t).toString(16)),hm(Math.round(e).toString(16)),hm(Math.round(o).toString(16)),hm(bm(n))];return i&&r[0].startsWith(r[0].charAt(1))&&r[1].startsWith(r[1].charAt(1))&&r[2].startsWith(r[2].charAt(1))&&r[3].startsWith(r[3].charAt(1))?r[0].charAt(0)+r[1].charAt(0)+r[2].charAt(0)+r[3].charAt(0):r.join("")}(this.r,this.g,this.b,this.a,t)},t.prototype.toHex8String=function(t){return void 0===t&&(t=!1),"#"+this.toHex8(t)},t.prototype.toHexShortString=function(t){return void 0===t&&(t=!1),1===this.a?this.toHexString(t):this.toHex8String(t)},t.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},t.prototype.toRgbString=function(){var t=Math.round(this.r),e=Math.round(this.g),o=Math.round(this.b);return 1===this.a?"rgb(".concat(t,", ").concat(e,", ").concat(o,")"):"rgba(".concat(t,", ").concat(e,", ").concat(o,", ").concat(this.roundA,")")},t.prototype.toPercentageRgb=function(){var t=function(t){return"".concat(Math.round(100*am(t,255)),"%")};return{r:t(this.r),g:t(this.g),b:t(this.b),a:this.a}},t.prototype.toPercentageRgbString=function(){var t=function(t){return Math.round(100*am(t,255))};return 1===this.a?"rgb(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%)"):"rgba(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%, ").concat(this.roundA,")")},t.prototype.toName=function(){if(0===this.a)return"transparent";if(this.a<1)return!1;for(var t="#"+gm(this.r,this.g,this.b,!1),e=0,o=Object.entries(wm);e=0;return e||!n||!t.startsWith("hex")&&"name"!==t?("rgb"===t&&(o=this.toRgbString()),"prgb"===t&&(o=this.toPercentageRgbString()),"hex"!==t&&"hex6"!==t||(o=this.toHexString()),"hex3"===t&&(o=this.toHexString(!0)),"hex4"===t&&(o=this.toHex8String(!0)),"hex8"===t&&(o=this.toHex8String()),"name"===t&&(o=this.toName()),"hsl"===t&&(o=this.toHslString()),"hsv"===t&&(o=this.toHsvString()),o||this.toHexString()):"name"===t&&0===this.a?this.toName():this.toRgbString()},t.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},t.prototype.clone=function(){return new t(this.toString())},t.prototype.lighten=function(e){void 0===e&&(e=10);var o=this.toHsl();return o.l+=e/100,o.l=cm(o.l),new t(o)},t.prototype.brighten=function(e){void 0===e&&(e=10);var o=this.toRgb();return o.r=Math.max(0,Math.min(255,o.r-Math.round(-e/100*255))),o.g=Math.max(0,Math.min(255,o.g-Math.round(-e/100*255))),o.b=Math.max(0,Math.min(255,o.b-Math.round(-e/100*255))),new t(o)},t.prototype.darken=function(e){void 0===e&&(e=10);var o=this.toHsl();return o.l-=e/100,o.l=cm(o.l),new t(o)},t.prototype.tint=function(t){return void 0===t&&(t=10),this.mix("white",t)},t.prototype.shade=function(t){return void 0===t&&(t=10),this.mix("black",t)},t.prototype.desaturate=function(e){void 0===e&&(e=10);var o=this.toHsl();return o.s-=e/100,o.s=cm(o.s),new t(o)},t.prototype.saturate=function(e){void 0===e&&(e=10);var o=this.toHsl();return o.s+=e/100,o.s=cm(o.s),new t(o)},t.prototype.greyscale=function(){return this.desaturate(100)},t.prototype.spin=function(e){var o=this.toHsl(),n=(o.h+e)%360;return o.h=n<0?360+n:n,new t(o)},t.prototype.mix=function(e,o){void 0===o&&(o=50);var n=this.toRgb(),i=new t(e).toRgb(),r=o/100;return new t({r:(i.r-n.r)*r+n.r,g:(i.g-n.g)*r+n.g,b:(i.b-n.b)*r+n.b,a:(i.a-n.a)*r+n.a})},t.prototype.analogous=function(e,o){void 0===e&&(e=6),void 0===o&&(o=30);var n=this.toHsl(),i=360/o,r=[this];for(n.h=(n.h-(i*e>>1)+720)%360;--e;)n.h=(n.h+i)%360,r.push(new t(n));return r},t.prototype.complement=function(){var e=this.toHsl();return e.h=(e.h+180)%360,new t(e)},t.prototype.monochromatic=function(e){void 0===e&&(e=6);for(var o=this.toHsv(),n=o.h,i=o.s,r=o.v,s=[],l=1/e;e--;)s.push(new t({h:n,s:i,v:r})),r=(r+l)%1;return s},t.prototype.splitcomplement=function(){var e=this.toHsl(),o=e.h;return[this,new t({h:(o+72)%360,s:e.s,l:e.l}),new t({h:(o+216)%360,s:e.s,l:e.l})]},t.prototype.onBackground=function(e){var o=this.toRgb(),n=new t(e).toRgb(),i=o.a+n.a*(1-o.a);return new t({r:(o.r*o.a+n.r*n.a*(1-o.a))/i,g:(o.g*o.a+n.g*n.a*(1-o.a))/i,b:(o.b*o.a+n.b*n.a*(1-o.a))/i,a:i})},t.prototype.triad=function(){return this.polyad(3)},t.prototype.tetrad=function(){return this.polyad(4)},t.prototype.polyad=function(e){for(var o=this.toHsl(),n=o.h,i=[this],r=360/e,s=1;s{this.hasFocus=!0,this.emit("sl-focus")},this.handleFocusOut=()=>{this.hasFocus=!1,this.emit("sl-blur")},this.addEventListener("focusin",this.handleFocusIn),this.addEventListener("focusout",this.handleFocusOut)}get validity(){return this.input.validity}get validationMessage(){return this.input.validationMessage}firstUpdated(){this.input.updateComplete.then((()=>{this.formControlController.updateValidity()}))}handleCopy(){this.input.select(),document.execCommand("copy"),this.previewButton.focus(),this.previewButton.classList.add("color-picker__preview-color--copied"),this.previewButton.addEventListener("animationend",(()=>{this.previewButton.classList.remove("color-picker__preview-color--copied")}))}handleFormatToggle(){const t=["hex","rgb","hsl","hsv"],e=(t.indexOf(this.format)+1)%t.length;this.format=t[e],this.setColor(this.value),this.emit("sl-change"),this.emit("sl-input")}handleAlphaDrag(t){const e=this.shadowRoot.querySelector(".color-picker__slider.color-picker__alpha"),o=e.querySelector(".color-picker__slider-handle"),{width:n}=e.getBoundingClientRect();let i=this.value;o.focus(),t.preventDefault(),im(e,{onMove:t=>{this.alpha=nm(t/n*100,0,100),this.syncValues(),this.value!==i&&(i=this.value,this.emit("sl-change"),this.emit("sl-input"))},initialEvent:t})}handleHueDrag(t){const e=this.shadowRoot.querySelector(".color-picker__slider.color-picker__hue"),o=e.querySelector(".color-picker__slider-handle"),{width:n}=e.getBoundingClientRect();let i=this.value;o.focus(),t.preventDefault(),im(e,{onMove:t=>{this.hue=nm(t/n*360,0,360),this.syncValues(),this.value!==i&&(i=this.value,this.emit("sl-change"),this.emit("sl-input"))},initialEvent:t})}handleGridDrag(t){const e=this.shadowRoot.querySelector(".color-picker__grid"),o=e.querySelector(".color-picker__grid-handle"),{width:n,height:i}=e.getBoundingClientRect();let r=this.value;o.focus(),t.preventDefault(),this.isDraggingGridHandle=!0,im(e,{onMove:(t,e)=>{this.saturation=nm(t/n*100,0,100),this.brightness=nm(100-e/i*100,0,100),this.syncValues(),this.value!==r&&(r=this.value,this.emit("sl-change"),this.emit("sl-input"))},onStop:()=>this.isDraggingGridHandle=!1,initialEvent:t})}handleAlphaKeyDown(t){const e=t.shiftKey?10:1,o=this.value;"ArrowLeft"===t.key&&(t.preventDefault(),this.alpha=nm(this.alpha-e,0,100),this.syncValues()),"ArrowRight"===t.key&&(t.preventDefault(),this.alpha=nm(this.alpha+e,0,100),this.syncValues()),"Home"===t.key&&(t.preventDefault(),this.alpha=0,this.syncValues()),"End"===t.key&&(t.preventDefault(),this.alpha=100,this.syncValues()),this.value!==o&&(this.emit("sl-change"),this.emit("sl-input"))}handleHueKeyDown(t){const e=t.shiftKey?10:1,o=this.value;"ArrowLeft"===t.key&&(t.preventDefault(),this.hue=nm(this.hue-e,0,360),this.syncValues()),"ArrowRight"===t.key&&(t.preventDefault(),this.hue=nm(this.hue+e,0,360),this.syncValues()),"Home"===t.key&&(t.preventDefault(),this.hue=0,this.syncValues()),"End"===t.key&&(t.preventDefault(),this.hue=360,this.syncValues()),this.value!==o&&(this.emit("sl-change"),this.emit("sl-input"))}handleGridKeyDown(t){const e=t.shiftKey?10:1,o=this.value;"ArrowLeft"===t.key&&(t.preventDefault(),this.saturation=nm(this.saturation-e,0,100),this.syncValues()),"ArrowRight"===t.key&&(t.preventDefault(),this.saturation=nm(this.saturation+e,0,100),this.syncValues()),"ArrowUp"===t.key&&(t.preventDefault(),this.brightness=nm(this.brightness+e,0,100),this.syncValues()),"ArrowDown"===t.key&&(t.preventDefault(),this.brightness=nm(this.brightness-e,0,100),this.syncValues()),this.value!==o&&(this.emit("sl-change"),this.emit("sl-input"))}handleInputChange(t){const e=t.target,o=this.value;t.stopPropagation(),this.input.value?(this.setColor(e.value),e.value=this.value):this.value="",this.value!==o&&(this.emit("sl-change"),this.emit("sl-input"))}handleInputInput(t){this.formControlController.updateValidity(),t.stopPropagation()}handleInputKeyDown(t){if("Enter"===t.key){const t=this.value;this.input.value?(this.setColor(this.input.value),this.input.value=this.value,this.value!==t&&(this.emit("sl-change"),this.emit("sl-input")),setTimeout((()=>this.input.select()))):this.hue=0}}handleInputInvalid(t){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(t)}handleTouchMove(t){t.preventDefault()}parseColor(t){const e=new _m(t);if(!e.isValid)return null;const o=e.toHsl(),n={h:o.h,s:100*o.s,l:100*o.l,a:o.a},i=e.toRgb(),r=e.toHexString(),s=e.toHex8String(),l=e.toHsv(),a={h:l.h,s:100*l.s,v:100*l.v,a:l.a};return{hsl:{h:n.h,s:n.s,l:n.l,string:this.setLetterCase(`hsl(${Math.round(n.h)}, ${Math.round(n.s)}%, ${Math.round(n.l)}%)`)},hsla:{h:n.h,s:n.s,l:n.l,a:n.a,string:this.setLetterCase(`hsla(${Math.round(n.h)}, ${Math.round(n.s)}%, ${Math.round(n.l)}%, ${n.a.toFixed(2).toString()})`)},hsv:{h:a.h,s:a.s,v:a.v,string:this.setLetterCase(`hsv(${Math.round(a.h)}, ${Math.round(a.s)}%, ${Math.round(a.v)}%)`)},hsva:{h:a.h,s:a.s,v:a.v,a:a.a,string:this.setLetterCase(`hsva(${Math.round(a.h)}, ${Math.round(a.s)}%, ${Math.round(a.v)}%, ${a.a.toFixed(2).toString()})`)},rgb:{r:i.r,g:i.g,b:i.b,string:this.setLetterCase(`rgb(${Math.round(i.r)}, ${Math.round(i.g)}, ${Math.round(i.b)})`)},rgba:{r:i.r,g:i.g,b:i.b,a:i.a,string:this.setLetterCase(`rgba(${Math.round(i.r)}, ${Math.round(i.g)}, ${Math.round(i.b)}, ${i.a.toFixed(2).toString()})`)},hex:this.setLetterCase(r),hexa:this.setLetterCase(s)}}setColor(t){const e=this.parseColor(t);return null!==e&&(this.hue=e.hsva.h,this.saturation=e.hsva.s,this.brightness=e.hsva.v,this.alpha=this.opacity?100*e.hsva.a:100,this.syncValues(),!0)}setLetterCase(t){return"string"!=typeof t?"":this.uppercase?t.toUpperCase():t.toLowerCase()}async syncValues(){const t=this.parseColor(`hsva(${this.hue}, ${this.saturation}%, ${this.brightness}%, ${this.alpha/100})`);null!==t&&("hsl"===this.format?this.inputValue=this.opacity?t.hsla.string:t.hsl.string:"rgb"===this.format?this.inputValue=this.opacity?t.rgba.string:t.rgb.string:"hsv"===this.format?this.inputValue=this.opacity?t.hsva.string:t.hsv.string:this.inputValue=this.opacity?t.hexa:t.hex,this.isSafeValue=!0,this.value=this.inputValue,await this.updateComplete,this.isSafeValue=!1)}handleAfterHide(){this.previewButton.classList.remove("color-picker__preview-color--copied")}handleEyeDropper(){if(!Tm)return;(new EyeDropper).open().then((t=>{const e=this.value;this.setColor(t.sRGBHex),this.value!==e&&(this.emit("sl-change"),this.emit("sl-input"))})).catch((()=>{}))}selectSwatch(t){const e=this.value;this.disabled||(this.setColor(t),this.value!==e&&(this.emit("sl-change"),this.emit("sl-input")))}getHexString(t,e,o,n=100){const i=new _m(`hsva(${t}, ${e}, ${o}, ${n/100})`);return i.isValid?i.toHex8String():""}stopNestedEventPropagation(t){t.stopImmediatePropagation()}handleFormatChange(){this.syncValues()}handleOpacityChange(){this.alpha=100}handleValueChange(t,e){if(this.isEmpty=!e,e||(this.hue=0,this.saturation=0,this.brightness=100,this.alpha=100),!this.isSafeValue){const o=this.parseColor(e);null!==o?(this.inputValue=this.value,this.hue=o.hsva.h,this.saturation=o.hsva.s,this.brightness=o.hsva.v,this.alpha=100*o.hsva.a,this.syncValues()):this.inputValue=null!=t?t:""}}focus(t){this.inline?this.base.focus(t):this.trigger.focus(t)}blur(){var t;const e=this.inline?this.base:this.trigger;this.hasFocus&&(e.focus({preventScroll:!0}),e.blur()),(null==(t=this.dropdown)?void 0:t.open)&&this.dropdown.hide()}getFormattedValue(t="hex"){const e=this.parseColor(`hsva(${this.hue}, ${this.saturation}%, ${this.brightness}%, ${this.alpha/100})`);if(null===e)return"";switch(t){case"hex":return e.hex;case"hexa":return e.hexa;case"rgb":return e.rgb.string;case"rgba":return e.rgba.string;case"hsl":return e.hsl.string;case"hsla":return e.hsla.string;case"hsv":return e.hsv.string;case"hsva":return e.hsva.string;default:return""}}checkValidity(){return this.input.checkValidity()}getForm(){return this.formControlController.getForm()}reportValidity(){return this.inline||this.validity.valid?this.input.reportValidity():(this.dropdown.show(),this.addEventListener("sl-after-show",(()=>this.input.reportValidity()),{once:!0}),this.disabled||this.formControlController.emitInvalidEvent(),!1)}setCustomValidity(t){this.input.setCustomValidity(t),this.formControlController.updateValidity()}render(){const t=this.saturation,e=100-this.brightness,o=Array.isArray(this.swatches)?this.swatches:this.swatches.split(";").filter((t=>""!==t.trim())),n=eh`
${this.inline?eh` ${this.label} `:null}
${this.opacity?eh`
`:""}
${this.noFormatToggle?"":eh` ${this.setLetterCase(this.format)} `} ${Tm?eh` `:""}
${o.length>0?eh`
${o.map((t=>{const e=this.parseColor(t);return e?eh`
this.selectSwatch(t)} @keydown=${t=>!this.disabled&&"Enter"===t.key&&this.setColor(e.hexa)} >
`:(console.error(`Unable to parse swatch color: "${t}"`,this),"")}))}
`:""}
`;return this.inline?n:eh` ${n} `}};Mm.styles=Lm,nu([cu('[part~="base"]')],Mm.prototype,"base",2),nu([cu('[part~="input"]')],Mm.prototype,"input",2),nu([cu(".color-dropdown")],Mm.prototype,"dropdown",2),nu([cu('[part~="preview"]')],Mm.prototype,"previewButton",2),nu([cu('[part~="trigger"]')],Mm.prototype,"trigger",2),nu([au()],Mm.prototype,"hasFocus",2),nu([au()],Mm.prototype,"isDraggingGridHandle",2),nu([au()],Mm.prototype,"isEmpty",2),nu([au()],Mm.prototype,"inputValue",2),nu([au()],Mm.prototype,"hue",2),nu([au()],Mm.prototype,"saturation",2),nu([au()],Mm.prototype,"brightness",2),nu([au()],Mm.prototype,"alpha",2),nu([lu()],Mm.prototype,"value",2),nu([Xf()],Mm.prototype,"defaultValue",2),nu([lu()],Mm.prototype,"label",2),nu([lu()],Mm.prototype,"format",2),nu([lu({type:Boolean,reflect:!0})],Mm.prototype,"inline",2),nu([lu({reflect:!0})],Mm.prototype,"size",2),nu([lu({attribute:"no-format-toggle",type:Boolean})],Mm.prototype,"noFormatToggle",2),nu([lu()],Mm.prototype,"name",2),nu([lu({type:Boolean,reflect:!0})],Mm.prototype,"disabled",2),nu([lu({type:Boolean})],Mm.prototype,"hoist",2),nu([lu({type:Boolean})],Mm.prototype,"opacity",2),nu([lu({type:Boolean})],Mm.prototype,"uppercase",2),nu([lu()],Mm.prototype,"swatches",2),nu([lu({reflect:!0})],Mm.prototype,"form",2),nu([lu({type:Boolean,reflect:!0})],Mm.prototype,"required",2),nu([Ch("format",{waitUntilFirstUpdate:!0})],Mm.prototype,"handleFormatChange",1),nu([Ch("opacity",{waitUntilFirstUpdate:!0})],Mm.prototype,"handleOpacityChange",1),nu([Ch("value")],Mm.prototype,"handleValueChange",1),Mm=nu([iu("sl-color-picker")],Mm);var $m=Eu` ${_h} :host { --indicator-color: var(--sl-color-primary-600); --track-color: var(--sl-color-neutral-200); --track-width: 2px; display: block; } .tab-group { display: flex; border-radius: 0; } .tab-group__tabs { display: flex; position: relative; } .tab-group__indicator { position: absolute; transition: var(--sl-transition-fast) translate ease, var(--sl-transition-fast) width ease; } .tab-group--has-scroll-controls .tab-group__nav-container { position: relative; padding: 0 var(--sl-spacing-x-large); } .tab-group__body { display: block; overflow: auto; } .tab-group__scroll-button { display: flex; align-items: center; justify-content: center; position: absolute; top: 0; bottom: 0; width: var(--sl-spacing-x-large); } .tab-group__scroll-button--start { left: 0; } .tab-group__scroll-button--end { right: 0; } .tab-group--rtl .tab-group__scroll-button--start { left: auto; right: 0; } .tab-group--rtl .tab-group__scroll-button--end { left: 0; right: auto; } /* * Top */ .tab-group--top { flex-direction: column; } .tab-group--top .tab-group__nav-container { order: 1; } .tab-group--top .tab-group__nav { display: flex; overflow-x: auto; /* Hide scrollbar in Firefox */ scrollbar-width: none; } /* Hide scrollbar in Chrome/Safari */ .tab-group--top .tab-group__nav::-webkit-scrollbar { width: 0; height: 0; } .tab-group--top .tab-group__tabs { flex: 1 1 auto; position: relative; flex-direction: row; border-bottom: solid var(--track-width) var(--track-color); } .tab-group--top .tab-group__indicator { bottom: calc(-1 * var(--track-width)); border-bottom: solid var(--track-width) var(--indicator-color); } .tab-group--top .tab-group__body { order: 2; } .tab-group--top ::slotted(sl-tab-panel) { --padding: var(--sl-spacing-medium) 0; } /* * Bottom */ .tab-group--bottom { flex-direction: column; } .tab-group--bottom .tab-group__nav-container { order: 2; } .tab-group--bottom .tab-group__nav { display: flex; overflow-x: auto; /* Hide scrollbar in Firefox */ scrollbar-width: none; } /* Hide scrollbar in Chrome/Safari */ .tab-group--bottom .tab-group__nav::-webkit-scrollbar { width: 0; height: 0; } .tab-group--bottom .tab-group__tabs { flex: 1 1 auto; position: relative; flex-direction: row; border-top: solid var(--track-width) var(--track-color); } .tab-group--bottom .tab-group__indicator { top: calc(-1 * var(--track-width)); border-top: solid var(--track-width) var(--indicator-color); } .tab-group--bottom .tab-group__body { order: 1; } .tab-group--bottom ::slotted(sl-tab-panel) { --padding: var(--sl-spacing-medium) 0; } /* * Start */ .tab-group--start { flex-direction: row; } .tab-group--start .tab-group__nav-container { order: 1; } .tab-group--start .tab-group__tabs { flex: 0 0 auto; flex-direction: column; border-inline-end: solid var(--track-width) var(--track-color); } .tab-group--start .tab-group__indicator { right: calc(-1 * var(--track-width)); border-right: solid var(--track-width) var(--indicator-color); } .tab-group--start.tab-group--rtl .tab-group__indicator { right: auto; left: calc(-1 * var(--track-width)); } .tab-group--start .tab-group__body { flex: 1 1 auto; order: 2; } .tab-group--start ::slotted(sl-tab-panel) { --padding: 0 var(--sl-spacing-medium); } /* * End */ .tab-group--end { flex-direction: row; } .tab-group--end .tab-group__nav-container { order: 2; } .tab-group--end .tab-group__tabs { flex: 0 0 auto; flex-direction: column; border-left: solid var(--track-width) var(--track-color); } .tab-group--end .tab-group__indicator { left: calc(-1 * var(--track-width)); border-inline-start: solid var(--track-width) var(--indicator-color); } .tab-group--end.tab-group--rtl .tab-group__indicator { right: calc(-1 * var(--track-width)); left: auto; } .tab-group--end .tab-group__body { flex: 1 1 auto; order: 1; } .tab-group--end ::slotted(sl-tab-panel) { --padding: 0 var(--sl-spacing-medium); } `;let Dm=class extends Oh{constructor(){super(...arguments),this.localize=new hp(this),this.tabs=[],this.panels=[],this.hasScrollControls=!1,this.placement="top",this.activation="auto",this.noScrollControls=!1}connectedCallback(){const t=Promise.all([customElements.whenDefined("sl-tab"),customElements.whenDefined("sl-tab-panel")]);super.connectedCallback(),this.resizeObserver=new ResizeObserver((()=>{this.repositionIndicator(),this.updateScrollControls()})),this.mutationObserver=new MutationObserver((t=>{t.some((t=>!["aria-labelledby","aria-controls"].includes(t.attributeName)))&&setTimeout((()=>this.setAriaLabels())),t.some((t=>"disabled"===t.attributeName))&&this.syncTabsAndPanels()})),this.updateComplete.then((()=>{this.syncTabsAndPanels(),this.mutationObserver.observe(this,{attributes:!0,childList:!0,subtree:!0}),this.resizeObserver.observe(this.nav),t.then((()=>{new IntersectionObserver(((t,e)=>{var o;t[0].intersectionRatio>0&&(this.setAriaLabels(),this.setActiveTab(null!=(o=this.getActiveTab())?o:this.tabs[0],{emitEvents:!1}),e.unobserve(t[0].target))})).observe(this.tabGroup)}))}))}disconnectedCallback(){this.mutationObserver.disconnect(),this.resizeObserver.unobserve(this.nav)}getAllTabs(t={includeDisabled:!0}){return[...this.shadowRoot.querySelector('slot[name="nav"]').assignedElements()].filter((e=>t.includeDisabled?"sl-tab"===e.tagName.toLowerCase():"sl-tab"===e.tagName.toLowerCase()&&!e.disabled))}getAllPanels(){return[...this.body.assignedElements()].filter((t=>"sl-tab-panel"===t.tagName.toLowerCase()))}getActiveTab(){return this.tabs.find((t=>t.active))}handleClick(t){const e=t.target.closest("sl-tab");(null==e?void 0:e.closest("sl-tab-group"))===this&&null!==e&&this.setActiveTab(e,{scrollBehavior:"smooth"})}handleKeyDown(t){const e=t.target.closest("sl-tab");if((null==e?void 0:e.closest("sl-tab-group"))===this&&(["Enter"," "].includes(t.key)&&null!==e&&(this.setActiveTab(e,{scrollBehavior:"smooth"}),t.preventDefault()),["ArrowLeft","ArrowRight","ArrowUp","ArrowDown","Home","End"].includes(t.key))){const e=this.tabs.find((t=>t.matches(":focus"))),o="rtl"===this.localize.dir();if("sl-tab"===(null==e?void 0:e.tagName.toLowerCase())){let n=this.tabs.indexOf(e);"Home"===t.key?n=0:"End"===t.key?n=this.tabs.length-1:["top","bottom"].includes(this.placement)&&t.key===(o?"ArrowRight":"ArrowLeft")||["start","end"].includes(this.placement)&&"ArrowUp"===t.key?n--:(["top","bottom"].includes(this.placement)&&t.key===(o?"ArrowLeft":"ArrowRight")||["start","end"].includes(this.placement)&&"ArrowDown"===t.key)&&n++,n<0&&(n=this.tabs.length-1),n>this.tabs.length-1&&(n=0),this.tabs[n].focus({preventScroll:!0}),"auto"===this.activation&&this.setActiveTab(this.tabs[n],{scrollBehavior:"smooth"}),["top","bottom"].includes(this.placement)&&Dp(this.tabs[n],this.nav,"horizontal"),t.preventDefault()}}}handleScrollToStart(){this.nav.scroll({left:"rtl"===this.localize.dir()?this.nav.scrollLeft+this.nav.clientWidth:this.nav.scrollLeft-this.nav.clientWidth,behavior:"smooth"})}handleScrollToEnd(){this.nav.scroll({left:"rtl"===this.localize.dir()?this.nav.scrollLeft-this.nav.clientWidth:this.nav.scrollLeft+this.nav.clientWidth,behavior:"smooth"})}setActiveTab(t,e){if(e=eu({emitEvents:!0,scrollBehavior:"auto"},e),t!==this.activeTab&&!t.disabled){const o=this.activeTab;this.activeTab=t,this.tabs.forEach((t=>t.active=t===this.activeTab)),this.panels.forEach((t=>{var e;return t.active=t.name===(null==(e=this.activeTab)?void 0:e.panel)})),this.syncIndicator(),["top","bottom"].includes(this.placement)&&Dp(this.activeTab,this.nav,"horizontal",e.scrollBehavior),e.emitEvents&&(o&&this.emit("sl-tab-hide",{detail:{name:o.panel}}),this.emit("sl-tab-show",{detail:{name:this.activeTab.panel}}))}}setAriaLabels(){this.tabs.forEach((t=>{const e=this.panels.find((e=>e.name===t.panel));e&&(t.setAttribute("aria-controls",e.getAttribute("id")),e.setAttribute("aria-labelledby",t.getAttribute("id")))}))}repositionIndicator(){const t=this.getActiveTab();if(!t)return;const e=t.clientWidth,o=t.clientHeight,n="rtl"===this.localize.dir(),i=this.getAllTabs(),r=i.slice(0,i.indexOf(t)).reduce(((t,e)=>({left:t.left+e.clientWidth,top:t.top+e.clientHeight})),{left:0,top:0});switch(this.placement){case"top":case"bottom":this.indicator.style.width=`${e}px`,this.indicator.style.height="auto",this.indicator.style.translate=n?-1*r.left+"px":`${r.left}px`;break;case"start":case"end":this.indicator.style.width="auto",this.indicator.style.height=`${o}px`,this.indicator.style.translate=`0 ${r.top}px`}}syncTabsAndPanels(){this.tabs=this.getAllTabs({includeDisabled:!1}),this.panels=this.getAllPanels(),this.syncIndicator(),this.updateComplete.then((()=>this.updateScrollControls()))}updateScrollControls(){this.noScrollControls?this.hasScrollControls=!1:this.hasScrollControls=["top","bottom"].includes(this.placement)&&this.nav.scrollWidth>this.nav.clientWidth}syncIndicator(){this.getActiveTab()?(this.indicator.style.display="block",this.repositionIndicator()):this.indicator.style.display="none"}show(t){const e=this.tabs.find((e=>e.panel===t));e&&this.setActiveTab(e,{scrollBehavior:"smooth"})}render(){const t="rtl"===this.localize.dir();return eh`
${this.hasScrollControls?eh` `:""}
${this.hasScrollControls?eh` `:""}
`}};Dm.styles=$m,nu([cu(".tab-group")],Dm.prototype,"tabGroup",2),nu([cu(".tab-group__body")],Dm.prototype,"body",2),nu([cu(".tab-group__nav")],Dm.prototype,"nav",2),nu([cu(".tab-group__indicator")],Dm.prototype,"indicator",2),nu([au()],Dm.prototype,"hasScrollControls",2),nu([lu()],Dm.prototype,"placement",2),nu([lu()],Dm.prototype,"activation",2),nu([lu({attribute:"no-scroll-controls",type:Boolean})],Dm.prototype,"noScrollControls",2),nu([Ch("noScrollControls",{waitUntilFirstUpdate:!0})],Dm.prototype,"updateScrollControls",1),nu([Ch("placement",{waitUntilFirstUpdate:!0})],Dm.prototype,"syncIndicator",1),Dm=nu([iu("sl-tab-group")],Dm);var Im=Eu` ${_h} :host { display: inline-block; } .tab { display: inline-flex; align-items: center; font-family: var(--sl-font-sans); font-size: var(--sl-font-size-small); font-weight: var(--sl-font-weight-semibold); border-radius: var(--sl-border-radius-medium); color: var(--sl-color-neutral-600); padding: var(--sl-spacing-medium) var(--sl-spacing-large); white-space: nowrap; user-select: none; cursor: pointer; transition: var(--transition-speed) box-shadow, var(--transition-speed) color; } .tab:hover:not(.tab--disabled) { color: var(--sl-color-primary-600); } .tab:focus { outline: none; } .tab:focus-visible:not(.tab--disabled) { color: var(--sl-color-primary-600); } .tab:focus-visible { outline: var(--sl-focus-ring); outline-offset: calc(-1 * var(--sl-focus-ring-width) - var(--sl-focus-ring-offset)); } .tab.tab--active:not(.tab--disabled) { color: var(--sl-color-primary-600); } .tab.tab--closable { padding-inline-end: var(--sl-spacing-small); } .tab.tab--disabled { opacity: 0.5; cursor: not-allowed; } .tab__close-button { font-size: var(--sl-font-size-small); margin-inline-start: var(--sl-spacing-small); } .tab__close-button::part(base) { padding: var(--sl-spacing-3x-small); } @media (forced-colors: active) { .tab.tab--active:not(.tab--disabled) { outline: solid 1px transparent; outline-offset: -3px; } } `;let Am=0,Nm=class extends Oh{constructor(){super(...arguments),this.localize=new hp(this),this.attrId=++Am,this.componentId=`sl-tab-${this.attrId}`,this.panel="",this.active=!1,this.closable=!1,this.disabled=!1}connectedCallback(){super.connectedCallback(),this.setAttribute("role","tab")}handleCloseClick(t){t.stopPropagation(),this.emit("sl-close")}handleActiveChange(){this.setAttribute("aria-selected",this.active?"true":"false")}handleDisabledChange(){this.setAttribute("aria-disabled",this.disabled?"true":"false")}focus(t){this.tab.focus(t)}blur(){this.tab.blur()}render(){return this.id=this.id.length>0?this.id:this.componentId,eh`
${this.closable?eh` `:""}
`}};Nm.styles=Im,nu([cu(".tab")],Nm.prototype,"tab",2),nu([lu({reflect:!0})],Nm.prototype,"panel",2),nu([lu({type:Boolean,reflect:!0})],Nm.prototype,"active",2),nu([lu({type:Boolean})],Nm.prototype,"closable",2),nu([lu({type:Boolean,reflect:!0})],Nm.prototype,"disabled",2),nu([Ch("active")],Nm.prototype,"handleActiveChange",1),nu([Ch("disabled")],Nm.prototype,"handleDisabledChange",1),Nm=nu([iu("sl-tab")],Nm);var Um=Eu` ${_h} :host { --padding: 0; display: none; } :host([active]) { display: block; } .tab-panel { display: block; padding: var(--padding); } `;let Pm=0,zm=class extends Oh{constructor(){super(...arguments),this.attrId=++Pm,this.componentId=`sl-tab-panel-${this.attrId}`,this.name="",this.active=!1}connectedCallback(){super.connectedCallback(),this.id=this.id.length>0?this.id:this.componentId,this.setAttribute("role","tabpanel")}handleActiveChange(){this.setAttribute("aria-hidden",this.active?"false":"true")}render(){return eh` `}};zm.styles=Um,nu([lu({reflect:!0})],zm.prototype,"name",2),nu([lu({type:Boolean,reflect:!0})],zm.prototype,"active",2),nu([Ch("active")],zm.prototype,"handleActiveChange",1),zm=nu([iu("sl-tab-panel")],zm);var jm=Eu` ${_h} :host { --max-width: 20rem; --hide-delay: 0ms; --show-delay: 150ms; display: contents; } .tooltip { --arrow-size: var(--sl-tooltip-arrow-size); --arrow-color: var(--sl-tooltip-background-color); } .tooltip::part(popup) { pointer-events: none; z-index: var(--sl-z-index-tooltip); } .tooltip[placement^='top']::part(popup) { transform-origin: bottom; } .tooltip[placement^='bottom']::part(popup) { transform-origin: top; } .tooltip[placement^='left']::part(popup) { transform-origin: right; } .tooltip[placement^='right']::part(popup) { transform-origin: left; } .tooltip__body { display: block; width: max-content; max-width: var(--max-width); border-radius: var(--sl-tooltip-border-radius); background-color: var(--sl-tooltip-background-color); font-family: var(--sl-tooltip-font-family); font-size: var(--sl-tooltip-font-size); font-weight: var(--sl-tooltip-font-weight); line-height: var(--sl-tooltip-line-height); color: var(--sl-tooltip-color); padding: var(--sl-tooltip-padding); pointer-events: none; } `;let Rm=class extends Oh{constructor(){super(),this.localize=new hp(this),this.content="",this.placement="top",this.disabled=!1,this.distance=8,this.open=!1,this.skidding=0,this.trigger="hover focus",this.hoist=!1,this.handleBlur=()=>{this.hasTrigger("focus")&&this.hide()},this.handleClick=()=>{this.hasTrigger("click")&&(this.open?this.hide():this.show())},this.handleFocus=()=>{this.hasTrigger("focus")&&this.show()},this.handleKeyDown=t=>{this.open&&"Escape"===t.key&&(t.stopPropagation(),this.hide())},this.handleMouseOver=()=>{if(this.hasTrigger("hover")){const t=Kh(getComputedStyle(this).getPropertyValue("--show-delay"));clearTimeout(this.hoverTimeout),this.hoverTimeout=window.setTimeout((()=>this.show()),t)}},this.handleMouseOut=()=>{if(this.hasTrigger("hover")){const t=Kh(getComputedStyle(this).getPropertyValue("--hide-delay"));clearTimeout(this.hoverTimeout),this.hoverTimeout=window.setTimeout((()=>this.hide()),t)}},this.addEventListener("blur",this.handleBlur,!0),this.addEventListener("focus",this.handleFocus,!0),this.addEventListener("click",this.handleClick),this.addEventListener("keydown",this.handleKeyDown),this.addEventListener("mouseover",this.handleMouseOver),this.addEventListener("mouseout",this.handleMouseOut)}connectedCallback(){super.connectedCallback()}firstUpdated(){this.body.hidden=!this.open,this.open&&(this.popup.active=!0,this.popup.reposition())}hasTrigger(t){return this.trigger.split(" ").includes(t)}async handleOpenChange(){if(this.open){if(this.disabled)return;this.emit("sl-show"),await Xh(this.body),this.body.hidden=!1,this.popup.active=!0;const{keyframes:t,options:e}=op(this,"tooltip.show",{dir:this.localize.dir()});await Yh(this.popup.popup,t,e),this.emit("sl-after-show")}else{this.emit("sl-hide"),await Xh(this.body);const{keyframes:t,options:e}=op(this,"tooltip.hide",{dir:this.localize.dir()});await Yh(this.popup.popup,t,e),this.popup.active=!1,this.body.hidden=!0,this.emit("sl-after-hide")}}async handleOptionsChange(){this.hasUpdated&&(await this.updateComplete,this.popup.reposition())}handleDisabledChange(){this.disabled&&this.open&&this.hide()}async show(){if(!this.open)return this.open=!0,pp(this,"sl-after-show")}async hide(){if(this.open)return this.open=!1,pp(this,"sl-after-hide")}render(){return eh` ${this.content} `}};Rm.styles=jm,nu([cu("slot:not([name])")],Rm.prototype,"defaultSlot",2),nu([cu(".tooltip__body")],Rm.prototype,"body",2),nu([cu("sl-popup")],Rm.prototype,"popup",2),nu([lu()],Rm.prototype,"content",2),nu([lu()],Rm.prototype,"placement",2),nu([lu({type:Boolean,reflect:!0})],Rm.prototype,"disabled",2),nu([lu({type:Number})],Rm.prototype,"distance",2),nu([lu({type:Boolean,reflect:!0})],Rm.prototype,"open",2),nu([lu({type:Number})],Rm.prototype,"skidding",2),nu([lu()],Rm.prototype,"trigger",2),nu([lu({type:Boolean})],Rm.prototype,"hoist",2),nu([Ch("open",{waitUntilFirstUpdate:!0})],Rm.prototype,"handleOpenChange",1),nu([Ch(["content","distance","hoist","placement","skidding"])],Rm.prototype,"handleOptionsChange",1),nu([Ch("disabled")],Rm.prototype,"handleDisabledChange",1),Rm=nu([iu("sl-tooltip")],Rm),ep("tooltip.show",{keyframes:[{opacity:0,scale:.8},{opacity:1,scale:1}],options:{duration:150,easing:"ease"}}),ep("tooltip.hide",{keyframes:[{opacity:1,scale:1},{opacity:0,scale:.8}],options:{duration:150,easing:"ease"}});var Hm=Eu` ${_h} :host { display: inline-block; } :host([size='small']) { --height: var(--sl-toggle-size-small); --thumb-size: calc(var(--sl-toggle-size-small) + 4px); --width: calc(var(--height) * 2); font-size: var(--sl-input-font-size-small); } :host([size='medium']) { --height: var(--sl-toggle-size-medium); --thumb-size: calc(var(--sl-toggle-size-medium) + 4px); --width: calc(var(--height) * 2); font-size: var(--sl-input-font-size-medium); } :host([size='large']) { --height: var(--sl-toggle-size-large); --thumb-size: calc(var(--sl-toggle-size-large) + 4px); --width: calc(var(--height) * 2); font-size: var(--sl-input-font-size-large); } .switch { position: relative; display: inline-flex; align-items: center; font-family: var(--sl-input-font-family); font-size: inherit; font-weight: var(--sl-input-font-weight); color: var(--sl-input-label-color); vertical-align: middle; cursor: pointer; } .switch__control { flex: 0 0 auto; position: relative; display: inline-flex; align-items: center; justify-content: center; width: var(--width); height: var(--height); background-color: var(--sl-color-neutral-400); border: solid var(--sl-input-border-width) var(--sl-color-neutral-400); border-radius: var(--height); transition: var(--sl-transition-fast) border-color, var(--sl-transition-fast) background-color; } .switch__control .switch__thumb { width: var(--thumb-size); height: var(--thumb-size); background-color: var(--sl-color-neutral-0); border-radius: 50%; border: solid var(--sl-input-border-width) var(--sl-color-neutral-400); translate: calc((var(--width) - var(--height)) / -2); transition: var(--sl-transition-fast) translate ease, var(--sl-transition-fast) background-color, var(--sl-transition-fast) border-color, var(--sl-transition-fast) box-shadow; } .switch__input { position: absolute; opacity: 0; padding: 0; margin: 0; pointer-events: none; } /* Hover */ .switch:not(.switch--checked):not(.switch--disabled) .switch__control:hover { background-color: var(--sl-color-neutral-400); border-color: var(--sl-color-neutral-400); } .switch:not(.switch--checked):not(.switch--disabled) .switch__control:hover .switch__thumb { background-color: var(--sl-color-neutral-0); border-color: var(--sl-color-neutral-400); } /* Focus */ .switch:not(.switch--checked):not(.switch--disabled) .switch__input:focus-visible ~ .switch__control { background-color: var(--sl-color-neutral-400); border-color: var(--sl-color-neutral-400); } .switch:not(.switch--checked):not(.switch--disabled) .switch__input:focus-visible ~ .switch__control .switch__thumb { background-color: var(--sl-color-neutral-0); border-color: var(--sl-color-primary-600); outline: var(--sl-focus-ring); outline-offset: var(--sl-focus-ring-offset); } /* Checked */ .switch--checked .switch__control { background-color: var(--sl-color-primary-600); border-color: var(--sl-color-primary-600); } .switch--checked .switch__control .switch__thumb { background-color: var(--sl-color-neutral-0); border-color: var(--sl-color-primary-600); translate: calc((var(--width) - var(--height)) / 2); } /* Checked + hover */ .switch.switch--checked:not(.switch--disabled) .switch__control:hover { background-color: var(--sl-color-primary-600); border-color: var(--sl-color-primary-600); } .switch.switch--checked:not(.switch--disabled) .switch__control:hover .switch__thumb { background-color: var(--sl-color-neutral-0); border-color: var(--sl-color-primary-600); } /* Checked + focus */ .switch.switch--checked:not(.switch--disabled) .switch__input:focus-visible ~ .switch__control { background-color: var(--sl-color-primary-600); border-color: var(--sl-color-primary-600); } .switch.switch--checked:not(.switch--disabled) .switch__input:focus-visible ~ .switch__control .switch__thumb { background-color: var(--sl-color-neutral-0); border-color: var(--sl-color-primary-600); outline: var(--sl-focus-ring); outline-offset: var(--sl-focus-ring-offset); } /* Disabled */ .switch--disabled { opacity: 0.5; cursor: not-allowed; } .switch__label { display: inline-block; line-height: var(--height); margin-inline-start: 0.5em; user-select: none; } :host([required]) .switch__label::after { content: var(--sl-input-required-content); margin-inline-start: var(--sl-input-required-content-offset); } @media (forced-colors: active) { .switch.switch--checked:not(.switch--disabled) .switch__control:hover .switch__thumb, .switch--checked .switch__control .switch__thumb { background-color: ButtonText; } } `;let Bm=class extends Oh{constructor(){super(...arguments),this.formControlController=new kp(this,{value:t=>t.checked?t.value||"on":void 0,defaultValue:t=>t.defaultChecked,setValue:(t,e)=>t.checked=e}),this.hasFocus=!1,this.title="",this.name="",this.size="medium",this.disabled=!1,this.checked=!1,this.defaultChecked=!1,this.form="",this.required=!1}get validity(){return this.input.validity}get validationMessage(){return this.input.validationMessage}firstUpdated(){this.formControlController.updateValidity()}handleBlur(){this.hasFocus=!1,this.emit("sl-blur")}handleInput(){this.emit("sl-input")}handleInvalid(t){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(t)}handleClick(){this.checked=!this.checked,this.emit("sl-change")}handleFocus(){this.hasFocus=!0,this.emit("sl-focus")}handleKeyDown(t){"ArrowLeft"===t.key&&(t.preventDefault(),this.checked=!1,this.emit("sl-change"),this.emit("sl-input")),"ArrowRight"===t.key&&(t.preventDefault(),this.checked=!0,this.emit("sl-change"),this.emit("sl-input"))}handleCheckedChange(){this.input.checked=this.checked,this.formControlController.updateValidity()}handleDisabledChange(){this.formControlController.setValidity(!0)}click(){this.input.click()}focus(t){this.input.focus(t)}blur(){this.input.blur()}checkValidity(){return this.input.checkValidity()}getForm(){return this.formControlController.getForm()}reportValidity(){return this.input.reportValidity()}setCustomValidity(t){this.input.setCustomValidity(t),this.formControlController.updateValidity()}render(){return eh` `}};Bm.styles=Hm,nu([cu('input[type="checkbox"]')],Bm.prototype,"input",2),nu([au()],Bm.prototype,"hasFocus",2),nu([lu()],Bm.prototype,"title",2),nu([lu()],Bm.prototype,"name",2),nu([lu()],Bm.prototype,"value",2),nu([lu({reflect:!0})],Bm.prototype,"size",2),nu([lu({type:Boolean,reflect:!0})],Bm.prototype,"disabled",2),nu([lu({type:Boolean,reflect:!0})],Bm.prototype,"checked",2),nu([Xf("checked")],Bm.prototype,"defaultChecked",2),nu([lu({reflect:!0})],Bm.prototype,"form",2),nu([lu({type:Boolean,reflect:!0})],Bm.prototype,"required",2),nu([Ch("checked",{waitUntilFirstUpdate:!0})],Bm.prototype,"handleCheckedChange",1),nu([Ch("disabled",{waitUntilFirstUpdate:!0})],Bm.prototype,"handleDisabledChange",1),Bm=nu([iu("sl-switch")],Bm);var qm=Eu` ${_h} :host { --size: 128px; --track-width: 4px; --track-color: var(--sl-color-neutral-200); --indicator-width: var(--track-width); --indicator-color: var(--sl-color-primary-600); --indicator-transition-duration: 0.35s; display: inline-flex; } .progress-ring { display: inline-flex; align-items: center; justify-content: center; position: relative; } .progress-ring__image { width: var(--size); height: var(--size); rotate: -90deg; transform-origin: 50% 50%; } .progress-ring__track, .progress-ring__indicator { --radius: calc(var(--size) / 2 - max(var(--track-width), var(--indicator-width)) * 0.5); --circumference: calc(var(--radius) * 2 * 3.141592654); fill: none; r: var(--radius); cx: calc(var(--size) / 2); cy: calc(var(--size) / 2); } .progress-ring__track { stroke: var(--track-color); stroke-width: var(--track-width); } .progress-ring__indicator { stroke: var(--indicator-color); stroke-width: var(--indicator-width); stroke-linecap: round; transition-property: stroke-dashoffset; transition-duration: var(--indicator-transition-duration); stroke-dasharray: var(--circumference) var(--circumference); stroke-dashoffset: calc(var(--circumference) - var(--percentage) * var(--circumference)); } .progress-ring__label { display: flex; align-items: center; justify-content: center; position: absolute; top: 0; left: 0; width: 100%; height: 100%; text-align: center; user-select: none; } `;let Fm=class extends Oh{constructor(){super(...arguments),this.localize=new hp(this),this.value=0,this.label=""}updated(t){if(super.updated(t),t.has("value")){const t=parseFloat(getComputedStyle(this.indicator).getPropertyValue("r")),e=2*Math.PI*t,o=e-this.value/100*e;this.indicatorOffset=`${o}px`}}render(){return eh`
0?this.label:this.localize.term("progress")} aria-describedby="label" aria-valuemin="0" aria-valuemax="100" aria-valuenow="${this.value}" style="--percentage: ${this.value/100}" >
`}};function Vm(t){let e,o,n,i,r,s,l,a,c,d,u,h,p,b,x,S,E,O,_;function T(t,e){return null!==t[7].editingOn||t[3]?Gm:Wm}let M=T(t),$=M(t),D=t[4]&&!t[3]&&null!==t[7].editingOn&&Ym(t),I=!t[3]&&Km(t),A=t[3]&&tg(t),N=null===t[7].editingOn&&!t[3]&&eg(t),U=t[4]&&t[7].editMode&&null!==t[7].editingOn&&og(t),P=!t[10]&&!t[3]&&ng(t),z=t[0]&&ig();return{c(){e=v("div"),o=v("div"),n=v("sl-tooltip"),$.c(),i=w(),r=v("a"),s=v("i"),a=w(),D&&D.c(),c=w(),I&&I.c(),d=w(),u=v("small"),h=y("Collections "),p=v("span"),p.textContent=`(${sg})`,b=w(),A&&A.c(),x=w(),N&&N.c(),S=w(),U&&U.c(),E=w(),P&&P.c(),O=w(),z&&z.c(),C(s,"class","icon-question cc-module-icon"),C(r,"target","_blank"),C(r,"rel","noreferrer"),C(r,"href",l=t[6].switchTitle.url),k(n,"class","svelte-1ufplnf"),L(p,"font-size","0.5rem"),C(o,"class","cc-switch-title svelte-1ufplnf"),C(e,"class","cc-switch-container svelte-1ufplnf")},m(t,l){m(t,e,l),f(e,o),f(o,n),$.m(n,null),f(n,i),f(n,r),f(r,s),f(o,a),D&&D.m(o,null),f(o,c),I&&I.m(o,null),f(o,d),f(o,u),f(u,h),f(u,p),f(e,b),A&&A.m(e,null),f(e,x),N&&N.m(e,null),f(e,S),U&&U.m(e,null),f(e,E),P&&P.m(e,null),f(e,O),z&&z.m(e,null),_=!0},p(t,s){M===(M=T(t))&&$?$.p(t,s):($.d(1),$=M(t),$&&($.c(),$.m(n,i))),(!_||64&s[0]&&l!==(l=t[6].switchTitle.url))&&C(r,"href",l),t[4]&&!t[3]&&null!==t[7].editingOn?D?D.p(t,s):(D=Ym(t),D.c(),D.m(o,c)):D&&(D.d(1),D=null),t[3]?I&&(I.d(1),I=null):I?I.p(t,s):(I=Km(t),I.c(),I.m(o,d)),t[3]?A?A.p(t,s):(A=tg(t),A.c(),A.m(e,x)):A&&(A.d(1),A=null),null!==t[7].editingOn||t[3]?N&&(N.d(1),N=null):N?N.p(t,s):(N=eg(t),N.c(),N.m(e,S)),t[4]&&t[7].editMode&&null!==t[7].editingOn?U?U.p(t,s):(U=og(t),U.c(),U.m(e,E)):U&&(U.d(1),U=null),t[10]||t[3]?P&&(P.d(1),P=null):P?P.p(t,s):(P=ng(t),P.c(),P.m(e,O)),t[0]?z?1&s[0]&&et(z,1):(z=ig(),z.c(),et(z,1),z.m(e,null)):z&&(Z(),ot(z,1,1,(()=>{z=null})),tt())},i(t){_||(et(z),_=!0)},o(t){ot(z),_=!1},d(t){t&&g(e),$.d(),D&&D.d(),I&&I.d(),A&&A.d(),N&&N.d(),U&&U.d(),P&&P.d(),z&&z.d()}}}function Gm(t){let e,o=t[6].ABOUT.tooltip+"";return{c(){e=v("div"),C(e,"slot","content")},m(t,n){m(t,e,n),e.innerHTML=o},p(t,n){64&n[0]&&o!==(o=t[6].ABOUT.tooltip+"")&&(e.innerHTML=o)},d(t){t&&g(e)}}}function Wm(t){let e,o=t[6].ABOUT.notEditingTooltip+"";return{c(){e=v("div"),C(e,"slot","content")},m(t,n){m(t,e,n),e.innerHTML=o},p(t,n){64&n[0]&&o!==(o=t[6].ABOUT.notEditingTooltip+"")&&(e.innerHTML=o)},d(t){t&&g(e)}}}function Ym(t){let e,o,i,r;return{c(){e=v("i"),C(e,"id","configShowSwitch"),C(e,"class",o=(t[0]?"icon-mini-arrow-down":"icon-mini-arrow-right")+" cc-module-icon")},m(o,n){m(o,e,n),i||(r=[S(e,"click",t[12]),S(e,"keydown",t[12])],i=!0)},p(t,n){1&n[0]&&o!==(o=(t[0]?"icon-mini-arrow-down":"icon-mini-arrow-right")+" cc-module-icon")&&C(e,"class",o)},d(t){t&&g(e),i=!1,n(r)}}}function Km(t){let e,o;function n(t,o){return 256&o[0]&&(e=null),null==e&&(e=!!lg(!1,t[8].VISIBILITY)),e?Xm:Jm}let i=n(t,[-1,-1]),r=i(t);return{c(){r.c(),o=x()},m(t,e){r.m(t,e),m(t,o,e)},p(t,e){i===(i=n(t,e))&&r?r.p(t,e):(r.d(1),r=i(t),r&&(r.c(),r.m(o.parentNode,o)))},d(t){r.d(t),t&&g(o)}}}function Jm(t){let e;function o(t,e){return"no-one"===t[8].VISIBILITY?Zm:Qm}let n=o(t),i=n(t);return{c(){e=v("sl-tooltip"),i.c(),k(e,"class","svelte-1ufplnf")},m(t,o){m(t,e,o),i.m(e,null)},p(t,r){n===(n=o(t))&&i?i.p(t,r):(i.d(1),i=n(t),i&&(i.c(),i.m(e,null)))},d(t){t&&g(e),i.d()}}}function Xm(t){let e,o,n,i,r=t[6].studentVisible.tooltip+"";return{c(){e=v("sl-tooltip"),o=v("div"),n=w(),i=v("i"),C(o,"slot","content"),C(i,"class","icon-Solid icon-publish svelte-1ufplnf"),k(e,"class","svelte-1ufplnf")},m(t,s){m(t,e,s),f(e,o),o.innerHTML=r,f(e,n),f(e,i)},p(t,e){64&e[0]&&r!==(r=t[6].studentVisible.tooltip+"")&&(o.innerHTML=r)},d(t){t&&g(e)}}}function Qm(t){let e,o,n,i=t[6].studentInvisible.tooltip+"";return{c(){e=v("div"),o=w(),n=v("i"),C(e,"slot","content"),C(n,"class","icon-unpublish")},m(t,r){m(t,e,r),e.innerHTML=i,m(t,o,r),m(t,n,r)},p(t,o){64&o[0]&&i!==(i=t[6].studentInvisible.tooltip+"")&&(e.innerHTML=i)},d(t){t&&g(e),t&&g(o),t&&g(n)}}}function Zm(t){let e,o,n,i=t[6].nooneVisible.tooltip+"";return{c(){e=v("div"),o=w(),n=v("i"),C(e,"slot","content"),C(n,"class","icon-unpublish cc-no-one svelte-1ufplnf")},m(t,r){m(t,e,r),e.innerHTML=i,m(t,o,r),m(t,n,r)},p(t,o){64&o[0]&&i!==(i=t[6].nooneVisible.tooltip+"")&&(e.innerHTML=i)},d(t){t&&g(e),t&&g(o),t&&g(n)}}}function tg(e){let o,n,i,r;return{c(){o=v("label"),n=v("sl-switch"),k(n,"id","cc-switch"),k(n,"class","svelte-1ufplnf"),C(o,"class","cc-switch svelte-1ufplnf"),C(o,"for","cc-switch")},m(t,s){m(t,o,s),f(o,n),i||(r=S(n,"sl-change",e[13]),i=!0)},p:t,d(t){t&&g(o),i=!1,r()}}}function eg(t){let e,o,n,i,r,s,l,a=t[6].editOn.tooltip+"";return{c(){e=v("div"),o=v("sl-tooltip"),n=v("div"),i=w(),r=v("button"),r.textContent="Edit On",C(n,"slot","content"),C(r,"id","cc-editing-on-button"),C(r,"class","svelte-1ufplnf"),k(o,"class","cc-button-hover svelte-1ufplnf"),C(e,"class","cc-save svelte-1ufplnf")},m(c,d){m(c,e,d),f(e,o),f(o,n),n.innerHTML=a,f(o,i),f(o,r),s||(l=S(r,"click",E(t[15])),s=!0)},p(t,e){64&e[0]&&a!==(a=t[6].editOn.tooltip+"")&&(n.innerHTML=a)},d(t){t&&g(e),s=!1,l()}}}function og(t){let e,o,i,r,s,l,a,c,d,u,p,b,x=t[6].editOff.tooltip+"";return{c(){e=v("div"),o=v("sl-tooltip"),i=v("div"),r=w(),s=v("button"),s.textContent="Edit Off",l=w(),a=v("button"),c=y("Save"),C(i,"slot","content"),C(s,"id","cc-editing-on-button"),C(s,"class","svelte-1ufplnf"),k(o,"class","cc-button-hover svelte-1ufplnf"),C(a,"class",d=h(t[7].needToSaveCollections?"cc-active-save-button":"cc-save-button")+" svelte-1ufplnf"),C(a,"id","cc-save-button"),a.disabled=u=!t[7].needToSaveCollections,C(e,"class","cc-save svelte-1ufplnf")},m(n,d){m(n,e,d),f(e,o),f(o,i),i.innerHTML=x,f(o,r),f(o,s),f(e,l),f(e,a),f(a,c),p||(b=[S(s,"click",t[15]),S(a,"click",t[16])],p=!0)},p(t,e){64&e[0]&&x!==(x=t[6].editOff.tooltip+"")&&(i.innerHTML=x),128&e[0]&&d!==(d=h(t[7].needToSaveCollections?"cc-active-save-button":"cc-save-button")+" svelte-1ufplnf")&&C(a,"class",d),128&e[0]&&u!==(u=!t[7].needToSaveCollections)&&(a.disabled=u)},d(t){t&&g(e),p=!1,n(b)}}}function ng(t){let e,o,n,i,r,s,l,a,c,d,u=t[6].unpublished.tooltip+"";return{c(){e=v("div"),o=v("sl-tooltip"),n=v("div"),i=w(),r=v("a"),s=v("i"),a=w(),c=v("a"),d=v("sl-button"),d.textContent="unpublished",C(n,"slot","content"),C(s,"class","icon-question cc-module-icon"),C(r,"id","cc-about-unpublished"),C(r,"target","_blank"),C(r,"rel","noreferrer"),C(r,"href",l=t[6].unpublished.url),k(o,"trigger","hover focus"),k(o,"class","svelte-1ufplnf"),k(d,"pill",""),k(d,"size","small"),k(d,"variant","warning"),C(c,"href",t[11]),C(c,"target","_blank"),C(c,"rel","noreferrer"),C(e,"class","cc-unpublished svelte-1ufplnf")},m(t,l){m(t,e,l),f(e,o),f(o,n),n.innerHTML=u,f(o,i),f(o,r),f(r,s),f(e,a),f(e,c),f(c,d)},p(t,e){64&e[0]&&u!==(u=t[6].unpublished.tooltip+"")&&(n.innerHTML=u),64&e[0]&&l!==(l=t[6].unpublished.url)&&C(r,"href",l)},d(t){t&&g(e)}}}function ig(t){let e,o,n;return o=new Fd({}),{c(){e=v("div"),it(o.$$.fragment),C(e,"id","cc-config"),C(e,"class","border border-trbl svelte-1ufplnf")},m(t,i){m(t,e,i),rt(o,e,null),n=!0},i(t){n||(et(o.$$.fragment,t),n=!0)},o(t){ot(o.$$.fragment,t),n=!1},d(t){t&&g(e),st(o)}}}function rg(t){let e,o,n,i,r=t[1]&&t[2]&&t[9]&&!t[5]&&Vm(t);return{c(){r&&r.c(),e=x()},m(s,l){r&&r.m(s,l),m(s,e,l),o=!0,n||(i=S(window,"beforeunload",t[14]),n=!0)},p(t,o){t[1]&&t[2]&&t[9]&&!t[5]?r?(r.p(t,o),550&o[0]&&et(r,1)):(r=Vm(t),r.c(),et(r,1),r.m(e.parentNode,e)):r&&(Z(),ot(r,1,1,(()=>{r=null})),tt())},i(t){o||(et(r),o=!0)},o(t){ot(r),o=!1},d(t){r&&r.d(t),t&&g(e),n=!1,i()}}}Fm.styles=qm,nu([cu(".progress-ring__indicator")],Fm.prototype,"indicator",2),nu([au()],Fm.prototype,"indicatorOffset",2),nu([lu({type:Number,reflect:!0})],Fm.prototype,"value",2),nu([lu()],Fm.prototype,"label",2),Fm=nu([iu("sl-progress-ring")],Fm);const sg="1.3";function lg(t,e){return"no-one"!==e&&(t?"teachers"===e||"all"===e:"students"===e||"all"===e)}function ag(t,e,o){let n,i,r;u(t,ac,(t=>o(7,n=t))),u(t,sc,(t=>o(8,i=t))),u(t,lc,(t=>o(34,r=t))),hu("../node_modules/@shoelace-style/shoelace/dist/");const s=1e5,l=2*s;let a=true,c=true,{courseId:d}=e,{editMode:h}=e,{csrfToken:f}=e,{modulesPage:m}=e,{baseApiUrl:g}=e;U((async()=>{m&&(P=new Vd(R,{courseId:d,csrfToken:f}),o(20,z=new $r(H,{courseId:d,csrfToken:f},h)))}));let b,{showConfig:v}=e;const y=new Gd,w=parseInt(y.userId);let x=new Tr(d,w,f,l);const S={courseId:d,editMode:h,editingOn:null,csrfToken:f,modulesPage:m,currentCollection:"",currentCollectionChanged:!1,needToSaveCollections:!1,ccOn:!1,studyPeriod:null,baseApiUrl:g};Object.keys(S).forEach((t=>{p(ac,n[t]=S[t],n)}));let E=`/courses/${n.courseId}/pages/canvas-collections-configuration`,C=!0,k=!0,O=!1,_=null,L=null,T=null,M=0,$=!1,D=!1,I=!1,A=!1,P=null,z=null,j=!0;function R(){o(9,$=!0),p(lc,r=P.courseModules,r),p(ac,n.studyPeriod=P.studyPeriod,n),B()}function H(t=""){""===t&&(o(3,C=!1),p(ac,n.ccOn=lg(n.editMode,z.collections.VISIBILITY),n),o(10,j=z.ccPublished),p(ac,n.currentCollection=z.getCurrentCollection(),n),z.isImportedCollection()&&o(5,A=!0),(n.ccOn||n.editMode)&&(p(ac,n.currentCollectionChanged=!0,n),D=!0,B()))}function B(){$&&D&&(z.isImportedCollection()?n.editMode&&function(){const t=document.getElementById("context_modules");t?new Wc({target:t,props:{collectionsDetails:z}}):alert("Unable to find div#context_modules")}():C||(z.addCanvasModuleData(P.courseModules,n.editMode),p(sc,i=z.collections,i),Ar(P.courseModules,i.MODULES),n.ccOn,n.ccOn&&(Y(),O||(O=!0,L=setInterval((()=>{P.refreshCanvasDetails(R),p(ac,n.currentCollectionChanged=!0,n)}),6e4)))),o(4,I=!0))}function q(t,e){if(t!==Lr.YOU_EDITING)return void J(t);p(ac,n.editingOn=t,n);const r=n.migrationOutcome;p(ac,n.lastMigrationOutcome=r,n),delete n.migrationOutcome,"refresh"===r?(o(5,A=!1),z.resetImport(),G()):"proceed"===r&&(z.migrateCollectionsConfiguration(),z.resetImport(),o(5,A=!1),H(""),z.saveCollections(i,n.editingOn,!0,!0,F))}function F(t){t&&xs(`

The import of Collection's \n \n configuration has been successful.

`,"success")}function V(t){M++,t&&p(ac,n.needToSaveCollections=!1,n)}function G(){z.initialiseCollectionsConfig(),z.saveCollections(i,Lr.YOU_EDITING,!0,!0,W)}function W(t,e=""){if(t)H(""),o(3,C=!1),xs(`

Canvas Collections is now on.

\n

A new \n Canvas Collections Configuration page created. It will be used to store\n Collections data.

\n

The page needs to be published before students can see Collections.\n

Removing this page will turn collections off.

`,"success");else{o(3,C=!0),p(ac,n.ccOn=!1,n);const t=document.getElementById("cc-switch");t&&(t.checked=!1),xs(`

Failed to create new Canvas Collections Configuration page.

\n

Apparently due to a previously deleted Collections configuration.

\n

Due to how Canvas handles page deletion, \n \n manual intervention is required.

`,"danger")}}function Y(){const t=me();t&&new bd({target:t})}var K;function J(t){t===Lr.YOU_EDITING_ELSEWHERE?xs(`
Failed to turn editing on\n
${ot.FAILED_EDIT_ON.tooltip}
\n \n ❓\n \n
\n
\n

You are already editing Collections for this course in another browser (or browser tab).

\n `,"danger"):t===Lr.SOMEONE_ELSE_EDITING?xs(`
Failed to turn editing on\n
${ot.FAILED_EDIT_ON.tooltip}
\n \n ❓\n \n
\n

Someone else is editing Collections

`,"danger"):t===Lr.NO_ONE_EDITING&&xs(`
Failed to turn editing on\n
${ot.FAILED_EDIT_ON.tooltip}
\n \n ❓\n \n
\n

Unknown reason - but apparently no-one else is editing.

`,"danger")}function X(t,e){t===Lr.YOU_EDITING?(b=new Date,D=!1,o(20,z=new $r(Q,{courseId:n.courseId,csrfToken:n.csrfToken},!0))):J(t)}function Q(t=""){if(""===t)H(t),D=!0,M=0,p(ac,n.editingOn=x.getEditingOnStatus(),n),i.hasOwnProperty("COLLECTIONS_ORDER")&&i.COLLECTIONS_ORDER.length>0&&""!==n.currentCollection&&Ys(n.currentCollection,i.COLLECTIONS[n.currentCollection].unallocated),T=setInterval((()=>{0===M&&null!==n.editingOn&&(p(ac,n.editingOn=null,n),xs("

Turning editing off due to lack of activity.

","warning"),x.turnEditOff(Z)),M=0}),s),k=!1,n.editMode&&a&&!k&&(k=!0,_=setInterval((()=>{n.needToSaveCollections&&n.editMode&&et()}),1e4));else{const e={noCollectionsConfig:"Collections configuration page not found.",noBodyInConfig:"No body found in Collections configuration page",unauthorised:"Not authorised to open configuration page"};"noCollectionsConfig"!==e?xs(`

Failed to update Collections configuration

\n

Reason: ${e[t]}

`,"danger"):xs("Error: Unable to find collections configuration page")}}function Z(t,e){t!==Lr.YOU_EDITING?tt():xs(`

Failed to turn editing off

\n

To allow others to edit, please try:

\n
    \n
  1. to turn editing off again; or,
  2. \n
  3. to manually delete \n \n the Collections edit status page.
  4. \n
`,"danger")}function tt(){b=void 0,p(ac,n.editingOn=null,n),o(0,v=!1),be(i.MODULES),clearInterval(T),k=!0,clearInterval(_)}function et(){(function(){if(void 0!==b&&null!==n.editingOn&&(new Date).getTime()-b.getTime()>l)return tt(),xs(`

Canvas Collections has released your apparently stale edit lock.

\n

It has been more than ${l/1e3} seconds since you last saved.

`,"warning"),!0;return!1})()||z.saveCollections(i,n.editingOn,n.editMode,n.needToSaveCollections,V)}K=()=>{_&&clearInterval(_),L&&clearInterval(L),T&&clearInterval(T)},N().$$.on_destroy.push(K);let ot={ABOUT:{tooltip:"

Use Canvas Collections to add more structure, visuals, and context to the modules page. Click to find out more."},editOn:{tooltip:"

Editing Collections is off.

\n

Click this button to turn editing on. Only if no-one else (including you in another\n browser window) is already editing this course's Collections configuration.

\n "},FAILED_EDIT_ON:{tooltip:"

Learn more about why and what can be done.

",url:"https://djplaner.github.io/canvas-collections/reference/problems/failed-to-turn-editing-on/"},editOff:{tooltip:"

Editing Collections is on.

\n

Click this button to turn editing off and allow other people to edit.

"},studentVisible:{tooltip:'

Students can see Collections.

\n

To change, turn edit on; click the \n icon to the right: and, use the visibility dropdown.

'},studentInvisible:{tooltip:'

Students cannot see Collections.

\n

To change:

\n
    \n
  1. turn Edit On
  2. \n
  3. click the icon to the right
  4. \n
  5. use the visibility dropdown to select students or all.
'},nooneVisible:{tooltip:'

Collections is turned off.

No-one is able to see Collections.

\n

To change, turn Edit on; click the \n icon to the right and use the visibility dropdown.

'},switchTitle:{tooltip:"",url:"https://djplaner.github.io/canvas-collections/"},unpublished:{tooltip:'

The Canvas Collections Configuration page is unpublished.\n (Click the unpublished button to publish the page)

\n

Meaning live Collections will not be visible in \n "Student View" or for students.

\n

Any Claytons Collections will be visible, if the relevant pages are published.

',url:"https://djplaner.github.io/canvas-collections/reference/lifecycle/visibility/live/"},previouslyDeleted:{tooltip:"

Due to how Canvas handles page deletion, Collections requires your manual intervention to work in a course with a previously deleted Collections configuration page. Click for more details.

",url:"https://djplaner.github.io/canvas-collections/reference/problems/previously-deleted-configuration-page/"}};return ot.ABOUT.notEditingTooltip=`${ot.ABOUT.tooltip}\n

Editing mode is off. You can see Collections, but not change it.

\n

Hit the Edit button to turn editing mode on.

\n `,t.$$set=t=>{"courseId"in t&&o(17,d=t.courseId),"editMode"in t&&o(1,h=t.editMode),"csrfToken"in t&&o(18,f=t.csrfToken),"modulesPage"in t&&o(2,m=t.modulesPage),"baseApiUrl"in t&&o(19,g=t.baseApiUrl),"showConfig"in t&&o(0,v=t.showConfig)},t.$$.update=()=>{if(432&t.$$.dirty[0]&&I&&!A&&(p(ac,n.ccOn=lg(n.editMode,i.VISIBILITY),n),n.ccOn&&I&&i.COLLECTIONS_ORDER.length>0?Y():(ge(),be(i.MODULES))),128&t.$$.dirty[0]&&(n.editMode?(a=true,c=true):(a=!1,c=!1)),200&t.$$.dirty[0]&&(n.hasOwnProperty("migrationOutcome")&&function(){const t=n.migrationOutcome;"cancel"!==t&&("refresh"!==t&&"proceed"!==t||x.turnEditOn(q))}(),o(6,ot.switchTitle.tooltip=C?`${ot.ABOUT.tooltip}

Click on the

\n
  • question mark to learn more.
  • \n
  • switch to turn Collections on.
`:ot.ABOUT.tooltip,ot)),1048752&t.$$.dirty[0]){let t=n.currentCollection;I&&!A&&z.saveLastCollectionViewed(t)}},[v,h,m,C,I,A,ot,n,i,$,j,E,function(t){o(0,v=!v)},G,function(t){const e=x.getEditingOnStatus()===Lr.YOU_EDITING,o=n.needToSaveCollections;if(e||n.editMode&&o){c&&o&&n.editMode&&et(),e&&x.turnEditOff(Z);let i="

Additional tidy up required before leaving, because

    ";return e&&(i+="
  1. You have edit on.
  2. "),o&&(i+="
  3. You have unsaved changes.
  4. "),i+="

An attempt has been made to tidy up (save changes, turn edit off), but...

",xs(i,"warning"),t.preventDefault(),t.returnValue="",""}},function(){null===n.editingOn?x.turnEditOn(X):(n.needToSaveCollections&&(z.saveCollections(i,x.getEditingOnStatus(),n.editMode,n.needToSaveCollections,V),p(ac,n.needToSaveCollections=!1,n)),x.turnEditOff(Z))},et,d,f,g,z]}class cg extends ct{constructor(t){super(),at(this,t,ag,rg,r,{courseId:17,editMode:1,csrfToken:18,modulesPage:2,baseApiUrl:19,showConfig:0},null,[-1,-1])}}const dg=function(){let t={editMode:!1,courseId:null,modulesPage:!1,csrfToken:null,currentCollection:0,showConfig:!1,baseApiUrl:""},e=new URL(window.location.href);t.baseApiUrl=`${e.protocol}//${e.hostname}/api/v1/`,de=t.baseApiUrl,ue=`${e.protocol}//${e.hostname}/`,e.hash="";const o=e.href;if(ENV.COURSE_ID&&ENV.COURSE_ID.match(/^\d+$/))t.courseId=ENV.COURSE_ID;else{let e=o.split("courses/")[1];if(e){const o=e.split("/")[0];o.match(/^\d+$/)&&(t.courseId=o)}}if(!t.courseId)throw new Error("No courseId found");let n=new RegExp(`courses/${t.courseId}/modules(/*|#*|#[^/]+)$`);return t.modulesPage=n.test(o),t.modulesPage||(n=new RegExp(`courses/${t.courseId}$`),t.modulesPage=n.test(o)&&null!==document.getElementById("context_modules")),t.editMode=null!==document.getElementById("easy_student_view"),t.csrfToken=function(){let t=new RegExp("^_csrf_token=(.*)$"),e=document.cookie.split(";");for(let o=0;o