@adartem/adlib-attributes 0.1.2 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/attributes.js +1 -1
- package/attributes.js.map +7 -0
- package/dist/chunk-3XBROWKO.js +1 -0
- package/dist/{chunk-MMLPBDVV.js → chunk-U26BJFYZ.js} +1 -1
- package/dist/dist-3KKACNWT.js +1 -0
- package/dist/dist-45TZF6O6.js +1 -0
- package/dist/dist-4KOXX7FX.js +1 -0
- package/dist/dist-6YZ22CPE.js +1 -0
- package/dist/dist-AZVF6KF7.js +1 -0
- package/dist/dist-CYEP7ZYD.js +17 -0
- package/dist/dist-CYWMPADF.js +1 -0
- package/dist/dist-DCT2OKR6.js +1 -0
- package/dist/{src-XPFKMGKD.js → dist-FDVEU4NM.js} +6 -6
- package/dist/dist-G3CWGTZT.js +11 -0
- package/dist/dist-GCEMMGQC.js +1 -0
- package/dist/dist-GIVVHNIU.js +17 -0
- package/dist/dist-I62SAT3A.js +1 -0
- package/dist/dist-KJYLEW5G.js +1 -0
- package/dist/dist-KVCUHKEL.js +13 -0
- package/dist/dist-KWNONO67.js +1 -0
- package/dist/dist-MJIZMTBO.js +1 -0
- package/dist/dist-N6RICZVA.js +1 -0
- package/dist/dist-NDUZI32X.js +1 -0
- package/dist/dist-NGZXQFOC.js +1 -0
- package/dist/dist-NTTQPHMC.js +1 -0
- package/dist/dist-RPND2SFD.js +1 -0
- package/dist/dist-SPPDEZAG.js +1 -0
- package/dist/dist-WE5HIYWJ.js +1 -0
- package/dist/dist-XQCFKZZ4.js +1 -0
- package/dist/dist-YGHHEKQY.js +1 -0
- package/dist/src-EP63RPX3.js +1 -0
- package/dist/{src-SPG3WRJF.js → src-OO4DGOWA.js} +15 -15
- package/package.json +23 -8
- package/dist/chunk-3RLKXDIH.js +0 -1
- package/dist/chunk-66ZG3JSK.js +0 -1
- package/dist/chunk-72T5X4H3.js +0 -1
- package/dist/chunk-HNE3ICUK.js +0 -1
- package/dist/chunk-IIYDYA3Q.js +0 -1
- package/dist/chunk-JRWWKMUR.js +0 -1
- package/dist/chunk-JWECJO7V.js +0 -1
- package/dist/chunk-K35EQW4W.js +0 -1
- package/dist/chunk-K46K3RI5.js +0 -1
- package/dist/chunk-KPT4H6YU.js +0 -1
- package/dist/chunk-OZ2E2BFY.js +0 -1
- package/dist/chunk-QJLI7KE4.js +0 -1
- package/dist/chunk-RLOHWEJ3.js +0 -1
- package/dist/chunk-TG26EDOV.js +0 -1
- package/dist/chunk-TPZEZMFY.js +0 -1
- package/dist/chunk-ZBURRSNW.js +0 -1
- package/dist/src-5GWLN4YQ.js +0 -1
- package/dist/src-7BCHEP45.js +0 -1
- package/dist/src-AZP3XD5Q.js +0 -1
- package/dist/src-DCDZZFZM.js +0 -18
- package/dist/src-E3KCXCJC.js +0 -1
- package/dist/src-E64PHVA7.js +0 -1
- package/dist/src-EOPD2TDJ.js +0 -1
- package/dist/src-EXDPJ3CP.js +0 -1
- package/dist/src-F4B2SZH6.js +0 -1
- package/dist/src-G3VBO2KH.js +0 -11
- package/dist/src-H2VZ5JP3.js +0 -1
- package/dist/src-JALLKJA7.js +0 -1
- package/dist/src-KK3UR7QA.js +0 -1
- package/dist/src-NOSYNIIV.js +0 -1
- package/dist/src-OFKD6FDQ.js +0 -1
- package/dist/src-OVA7RJ7C.js +0 -1
- package/dist/src-P2ZKDMV4.js +0 -1
- package/dist/src-TG7PM6IF.js +0 -1
- package/dist/src-TWZQDHX3.js +0 -1
- package/dist/src-UAPHSYPQ.js +0 -1
- package/dist/src-UBPAS7FZ.js +0 -13
- package/dist/src-UKNI4NPN.js +0 -1
- package/dist/src-USQSVKEL.js +0 -17
- package/dist/src-UXEGAYWN.js +0 -1
- package/dist/src-X7CQ5RZL.js +0 -1
- package/dist/src-XAOHXA6J.js +0 -1
package/dist/src-OFKD6FDQ.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as G}from"./chunk-TPZEZMFY.js";import{c as _}from"./chunk-JWECJO7V.js";import"./chunk-66ZG3JSK.js";import{b as w}from"./chunk-JRWWKMUR.js";import"./chunk-OZ2E2BFY.js";import{a as M,b as U}from"./chunk-HNE3ICUK.js";import{f as D,h as N,p as R}from"./chunk-IIYDYA3Q.js";import{a as W}from"./chunk-72T5X4H3.js";import{x as y}from"./chunk-KPT4H6YU.js";import{a as P,b as Y,c as j}from"./chunk-TG26EDOV.js";import{a as ue,c as fe}from"./chunk-K46K3RI5.js";var ne=ue((H,k)=>{(function(r,e,t){typeof H=="object"?(k.exports=t(),k.exports.default=t()):typeof define=="function"&&define.amd?define(t):e[r]=t()})("slugify",H,function(){var r=JSON.parse(`{"$":"dollar","%":"percent","&":"and","<":"less",">":"greater","|":"or","\xA2":"cent","\xA3":"pound","\xA4":"currency","\xA5":"yen","\xA9":"(c)","\xAA":"a","\xAE":"(r)","\xBA":"o","\xC0":"A","\xC1":"A","\xC2":"A","\xC3":"A","\xC4":"A","\xC5":"A","\xC6":"AE","\xC7":"C","\xC8":"E","\xC9":"E","\xCA":"E","\xCB":"E","\xCC":"I","\xCD":"I","\xCE":"I","\xCF":"I","\xD0":"D","\xD1":"N","\xD2":"O","\xD3":"O","\xD4":"O","\xD5":"O","\xD6":"O","\xD8":"O","\xD9":"U","\xDA":"U","\xDB":"U","\xDC":"U","\xDD":"Y","\xDE":"TH","\xDF":"ss","\xE0":"a","\xE1":"a","\xE2":"a","\xE3":"a","\xE4":"a","\xE5":"a","\xE6":"ae","\xE7":"c","\xE8":"e","\xE9":"e","\xEA":"e","\xEB":"e","\xEC":"i","\xED":"i","\xEE":"i","\xEF":"i","\xF0":"d","\xF1":"n","\xF2":"o","\xF3":"o","\xF4":"o","\xF5":"o","\xF6":"o","\xF8":"o","\xF9":"u","\xFA":"u","\xFB":"u","\xFC":"u","\xFD":"y","\xFE":"th","\xFF":"y","\u0100":"A","\u0101":"a","\u0102":"A","\u0103":"a","\u0104":"A","\u0105":"a","\u0106":"C","\u0107":"c","\u010C":"C","\u010D":"c","\u010E":"D","\u010F":"d","\u0110":"DJ","\u0111":"dj","\u0112":"E","\u0113":"e","\u0116":"E","\u0117":"e","\u0118":"e","\u0119":"e","\u011A":"E","\u011B":"e","\u011E":"G","\u011F":"g","\u0122":"G","\u0123":"g","\u0128":"I","\u0129":"i","\u012A":"i","\u012B":"i","\u012E":"I","\u012F":"i","\u0130":"I","\u0131":"i","\u0136":"k","\u0137":"k","\u013B":"L","\u013C":"l","\u013D":"L","\u013E":"l","\u0141":"L","\u0142":"l","\u0143":"N","\u0144":"n","\u0145":"N","\u0146":"n","\u0147":"N","\u0148":"n","\u014C":"O","\u014D":"o","\u0150":"O","\u0151":"o","\u0152":"OE","\u0153":"oe","\u0154":"R","\u0155":"r","\u0158":"R","\u0159":"r","\u015A":"S","\u015B":"s","\u015E":"S","\u015F":"s","\u0160":"S","\u0161":"s","\u0162":"T","\u0163":"t","\u0164":"T","\u0165":"t","\u0168":"U","\u0169":"u","\u016A":"u","\u016B":"u","\u016E":"U","\u016F":"u","\u0170":"U","\u0171":"u","\u0172":"U","\u0173":"u","\u0174":"W","\u0175":"w","\u0176":"Y","\u0177":"y","\u0178":"Y","\u0179":"Z","\u017A":"z","\u017B":"Z","\u017C":"z","\u017D":"Z","\u017E":"z","\u018F":"E","\u0192":"f","\u01A0":"O","\u01A1":"o","\u01AF":"U","\u01B0":"u","\u01C8":"LJ","\u01C9":"lj","\u01CB":"NJ","\u01CC":"nj","\u0218":"S","\u0219":"s","\u021A":"T","\u021B":"t","\u0259":"e","\u02DA":"o","\u0386":"A","\u0388":"E","\u0389":"H","\u038A":"I","\u038C":"O","\u038E":"Y","\u038F":"W","\u0390":"i","\u0391":"A","\u0392":"B","\u0393":"G","\u0394":"D","\u0395":"E","\u0396":"Z","\u0397":"H","\u0398":"8","\u0399":"I","\u039A":"K","\u039B":"L","\u039C":"M","\u039D":"N","\u039E":"3","\u039F":"O","\u03A0":"P","\u03A1":"R","\u03A3":"S","\u03A4":"T","\u03A5":"Y","\u03A6":"F","\u03A7":"X","\u03A8":"PS","\u03A9":"W","\u03AA":"I","\u03AB":"Y","\u03AC":"a","\u03AD":"e","\u03AE":"h","\u03AF":"i","\u03B0":"y","\u03B1":"a","\u03B2":"b","\u03B3":"g","\u03B4":"d","\u03B5":"e","\u03B6":"z","\u03B7":"h","\u03B8":"8","\u03B9":"i","\u03BA":"k","\u03BB":"l","\u03BC":"m","\u03BD":"n","\u03BE":"3","\u03BF":"o","\u03C0":"p","\u03C1":"r","\u03C2":"s","\u03C3":"s","\u03C4":"t","\u03C5":"y","\u03C6":"f","\u03C7":"x","\u03C8":"ps","\u03C9":"w","\u03CA":"i","\u03CB":"y","\u03CC":"o","\u03CD":"y","\u03CE":"w","\u0401":"Yo","\u0402":"DJ","\u0404":"Ye","\u0406":"I","\u0407":"Yi","\u0408":"J","\u0409":"LJ","\u040A":"NJ","\u040B":"C","\u040F":"DZ","\u0410":"A","\u0411":"B","\u0412":"V","\u0413":"G","\u0414":"D","\u0415":"E","\u0416":"Zh","\u0417":"Z","\u0418":"I","\u0419":"J","\u041A":"K","\u041B":"L","\u041C":"M","\u041D":"N","\u041E":"O","\u041F":"P","\u0420":"R","\u0421":"S","\u0422":"T","\u0423":"U","\u0424":"F","\u0425":"H","\u0426":"C","\u0427":"Ch","\u0428":"Sh","\u0429":"Sh","\u042A":"U","\u042B":"Y","\u042C":"","\u042D":"E","\u042E":"Yu","\u042F":"Ya","\u0430":"a","\u0431":"b","\u0432":"v","\u0433":"g","\u0434":"d","\u0435":"e","\u0436":"zh","\u0437":"z","\u0438":"i","\u0439":"j","\u043A":"k","\u043B":"l","\u043C":"m","\u043D":"n","\u043E":"o","\u043F":"p","\u0440":"r","\u0441":"s","\u0442":"t","\u0443":"u","\u0444":"f","\u0445":"h","\u0446":"c","\u0447":"ch","\u0448":"sh","\u0449":"sh","\u044A":"u","\u044B":"y","\u044C":"","\u044D":"e","\u044E":"yu","\u044F":"ya","\u0451":"yo","\u0452":"dj","\u0454":"ye","\u0456":"i","\u0457":"yi","\u0458":"j","\u0459":"lj","\u045A":"nj","\u045B":"c","\u045D":"u","\u045F":"dz","\u0490":"G","\u0491":"g","\u0492":"GH","\u0493":"gh","\u049A":"KH","\u049B":"kh","\u04A2":"NG","\u04A3":"ng","\u04AE":"UE","\u04AF":"ue","\u04B0":"U","\u04B1":"u","\u04BA":"H","\u04BB":"h","\u04D8":"AE","\u04D9":"ae","\u04E8":"OE","\u04E9":"oe","\u0531":"A","\u0532":"B","\u0533":"G","\u0534":"D","\u0535":"E","\u0536":"Z","\u0537":"E'","\u0538":"Y'","\u0539":"T'","\u053A":"JH","\u053B":"I","\u053C":"L","\u053D":"X","\u053E":"C'","\u053F":"K","\u0540":"H","\u0541":"D'","\u0542":"GH","\u0543":"TW","\u0544":"M","\u0545":"Y","\u0546":"N","\u0547":"SH","\u0549":"CH","\u054A":"P","\u054B":"J","\u054C":"R'","\u054D":"S","\u054E":"V","\u054F":"T","\u0550":"R","\u0551":"C","\u0553":"P'","\u0554":"Q'","\u0555":"O''","\u0556":"F","\u0587":"EV","\u0621":"a","\u0622":"aa","\u0623":"a","\u0624":"u","\u0625":"i","\u0626":"e","\u0627":"a","\u0628":"b","\u0629":"h","\u062A":"t","\u062B":"th","\u062C":"j","\u062D":"h","\u062E":"kh","\u062F":"d","\u0630":"th","\u0631":"r","\u0632":"z","\u0633":"s","\u0634":"sh","\u0635":"s","\u0636":"dh","\u0637":"t","\u0638":"z","\u0639":"a","\u063A":"gh","\u0641":"f","\u0642":"q","\u0643":"k","\u0644":"l","\u0645":"m","\u0646":"n","\u0647":"h","\u0648":"w","\u0649":"a","\u064A":"y","\u064B":"an","\u064C":"on","\u064D":"en","\u064E":"a","\u064F":"u","\u0650":"e","\u0652":"","\u0660":"0","\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u067E":"p","\u0686":"ch","\u0698":"zh","\u06A9":"k","\u06AF":"g","\u06CC":"y","\u06F0":"0","\u06F1":"1","\u06F2":"2","\u06F3":"3","\u06F4":"4","\u06F5":"5","\u06F6":"6","\u06F7":"7","\u06F8":"8","\u06F9":"9","\u0E3F":"baht","\u10D0":"a","\u10D1":"b","\u10D2":"g","\u10D3":"d","\u10D4":"e","\u10D5":"v","\u10D6":"z","\u10D7":"t","\u10D8":"i","\u10D9":"k","\u10DA":"l","\u10DB":"m","\u10DC":"n","\u10DD":"o","\u10DE":"p","\u10DF":"zh","\u10E0":"r","\u10E1":"s","\u10E2":"t","\u10E3":"u","\u10E4":"f","\u10E5":"k","\u10E6":"gh","\u10E7":"q","\u10E8":"sh","\u10E9":"ch","\u10EA":"ts","\u10EB":"dz","\u10EC":"ts","\u10ED":"ch","\u10EE":"kh","\u10EF":"j","\u10F0":"h","\u1E62":"S","\u1E63":"s","\u1E80":"W","\u1E81":"w","\u1E82":"W","\u1E83":"w","\u1E84":"W","\u1E85":"w","\u1E9E":"SS","\u1EA0":"A","\u1EA1":"a","\u1EA2":"A","\u1EA3":"a","\u1EA4":"A","\u1EA5":"a","\u1EA6":"A","\u1EA7":"a","\u1EA8":"A","\u1EA9":"a","\u1EAA":"A","\u1EAB":"a","\u1EAC":"A","\u1EAD":"a","\u1EAE":"A","\u1EAF":"a","\u1EB0":"A","\u1EB1":"a","\u1EB2":"A","\u1EB3":"a","\u1EB4":"A","\u1EB5":"a","\u1EB6":"A","\u1EB7":"a","\u1EB8":"E","\u1EB9":"e","\u1EBA":"E","\u1EBB":"e","\u1EBC":"E","\u1EBD":"e","\u1EBE":"E","\u1EBF":"e","\u1EC0":"E","\u1EC1":"e","\u1EC2":"E","\u1EC3":"e","\u1EC4":"E","\u1EC5":"e","\u1EC6":"E","\u1EC7":"e","\u1EC8":"I","\u1EC9":"i","\u1ECA":"I","\u1ECB":"i","\u1ECC":"O","\u1ECD":"o","\u1ECE":"O","\u1ECF":"o","\u1ED0":"O","\u1ED1":"o","\u1ED2":"O","\u1ED3":"o","\u1ED4":"O","\u1ED5":"o","\u1ED6":"O","\u1ED7":"o","\u1ED8":"O","\u1ED9":"o","\u1EDA":"O","\u1EDB":"o","\u1EDC":"O","\u1EDD":"o","\u1EDE":"O","\u1EDF":"o","\u1EE0":"O","\u1EE1":"o","\u1EE2":"O","\u1EE3":"o","\u1EE4":"U","\u1EE5":"u","\u1EE6":"U","\u1EE7":"u","\u1EE8":"U","\u1EE9":"u","\u1EEA":"U","\u1EEB":"u","\u1EEC":"U","\u1EED":"u","\u1EEE":"U","\u1EEF":"u","\u1EF0":"U","\u1EF1":"u","\u1EF2":"Y","\u1EF3":"y","\u1EF4":"Y","\u1EF5":"y","\u1EF6":"Y","\u1EF7":"y","\u1EF8":"Y","\u1EF9":"y","\u2013":"-","\u2018":"'","\u2019":"'","\u201C":"\\"","\u201D":"\\"","\u201E":"\\"","\u2020":"+","\u2022":"*","\u2026":"...","\u20A0":"ecu","\u20A2":"cruzeiro","\u20A3":"french franc","\u20A4":"lira","\u20A5":"mill","\u20A6":"naira","\u20A7":"peseta","\u20A8":"rupee","\u20A9":"won","\u20AA":"new shequel","\u20AB":"dong","\u20AC":"euro","\u20AD":"kip","\u20AE":"tugrik","\u20AF":"drachma","\u20B0":"penny","\u20B1":"peso","\u20B2":"guarani","\u20B3":"austral","\u20B4":"hryvnia","\u20B5":"cedi","\u20B8":"kazakhstani tenge","\u20B9":"indian rupee","\u20BA":"turkish lira","\u20BD":"russian ruble","\u20BF":"bitcoin","\u2120":"sm","\u2122":"tm","\u2202":"d","\u2206":"delta","\u2211":"sum","\u221E":"infinity","\u2665":"love","\u5143":"yuan","\u5186":"yen","\uFDFC":"rial","\uFEF5":"laa","\uFEF7":"laa","\uFEF9":"lai","\uFEFB":"la"}`),e=JSON.parse('{"bg":{"\u0419":"Y","\u0426":"Ts","\u0429":"Sht","\u042A":"A","\u042C":"Y","\u0439":"y","\u0446":"ts","\u0449":"sht","\u044A":"a","\u044C":"y"},"de":{"\xC4":"AE","\xE4":"ae","\xD6":"OE","\xF6":"oe","\xDC":"UE","\xFC":"ue","\xDF":"ss","%":"prozent","&":"und","|":"oder","\u2211":"summe","\u221E":"unendlich","\u2665":"liebe"},"es":{"%":"por ciento","&":"y","<":"menor que",">":"mayor que","|":"o","\xA2":"centavos","\xA3":"libras","\xA4":"moneda","\u20A3":"francos","\u2211":"suma","\u221E":"infinito","\u2665":"amor"},"fr":{"%":"pourcent","&":"et","<":"plus petit",">":"plus grand","|":"ou","\xA2":"centime","\xA3":"livre","\xA4":"devise","\u20A3":"franc","\u2211":"somme","\u221E":"infini","\u2665":"amour"},"pt":{"%":"porcento","&":"e","<":"menor",">":"maior","|":"ou","\xA2":"centavo","\u2211":"soma","\xA3":"libra","\u221E":"infinito","\u2665":"amor"},"uk":{"\u0418":"Y","\u0438":"y","\u0419":"Y","\u0439":"y","\u0426":"Ts","\u0446":"ts","\u0425":"Kh","\u0445":"kh","\u0429":"Shch","\u0449":"shch","\u0413":"H","\u0433":"h"},"vi":{"\u0110":"D","\u0111":"d"},"da":{"\xD8":"OE","\xF8":"oe","\xC5":"AA","\xE5":"aa","%":"procent","&":"og","|":"eller","$":"dollar","<":"mindre end",">":"st\xF8rre end"},"nb":{"&":"og","\xC5":"AA","\xC6":"AE","\xD8":"OE","\xE5":"aa","\xE6":"ae","\xF8":"oe"},"it":{"&":"e"},"nl":{"&":"en"},"sv":{"&":"och","\xC5":"AA","\xC4":"AE","\xD6":"OE","\xE5":"aa","\xE4":"ae","\xF6":"oe"}}');function t(o,n){if(typeof o!="string")throw new Error("slugify: string argument expected");n=typeof n=="string"?{replacement:n}:n||{};var i=e[n.locale]||{},s=n.replacement===void 0?"-":n.replacement,p=n.trim===void 0?!0:n.trim,a=o.normalize().split("").reduce(function(c,l){var m=i[l];return m===void 0&&(m=r[l]),m===void 0&&(m=l),m===s&&(m=" "),c+m.replace(n.remove||/[^\w\s$*_+~.()'"!\-:@]+/g,"")},"");return n.strict&&(a=a.replace(/[^A-Za-z0-9\s]/g,"")),p&&(a=a.trim()),a=a.replace(/\s+/g,s),n.lower&&(a=a.toLowerCase()),a}return t.extend=function(o){Object.assign(r,o)},t})});var he="0.1.0";var T=class{constructor({element:e,duration:t}){this.active=!1;this.running=!1;this.isActive=()=>this.active;this.isRunning=()=>this.running;this.untilFinished=()=>this.runningPromise;this.element=typeof e=="string"?document.querySelector(e):e,this.duration={first:typeof t=="number"?t:t?.first??0,second:typeof t=="number"?t:t?.second??0}}async trigger(e){return e==="first"&&this.active||e==="second"&&!this.active?!1:(e||(e=this.active?"second":"first"),U(this.element,"click"),this.running=!0,this.runningPromise=P(this.duration[e]),await this.runningPromise,this.running=!1,this.active=e==="first",!0)}};var v=["contents","table","link","ix-trigger"],L={offsettop:{key:"offsettop"},offsetbottom:{key:"offsetbottom"},hideurlhash:{key:"hideurlhash",values:["true"]}},q=2,d=`ad-${"toc"}-anchor`,z="[2-6]",B="h2, h3, h4, h5, h6",S=new RegExp(`^\\[ad-${"toc"}-omit\\]`,"i"),I=new RegExp(`^\\[ad-${"toc"}-h${z}\\]`,"i"),$=new RegExp(z),J=/[\u200B-\u200D\uFEFF]/g;var{getElementSelector:h,queryElement:E,getInstance:V,getAttribute:x,hasAttributeValue:X,queryAllElements:Z}=W("toc",v,L);var F=(r,e)=>{if(Object.values(e).some(Boolean)){document.documentElement.style.scrollBehavior="smooth";for(let t of r)t.setScrollOffset(e)}},K=()=>{let{hash:r}=window.location;if(!r)return;let e=r.replace("#",""),t=document.querySelector(`${h("contents")} [id="${e}"]`);t&&t.scrollIntoView({behavior:"smooth"})};var Q=r=>{let e=r.match($)?.[0];if(!e)return;let t=parseInt(e);if(!isNaN(t))return t};var ee="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";var te=(r=21)=>{let e="",t=crypto.getRandomValues(new Uint8Array(r|=0));for(;r--;)e+=ee[t[r]&63];return e};var re=fe(ne(),1);var oe=r=>{let e=document.createElement("div"),{id:t,textContent:o}=r,n=o?.trim().replace(J,"");if(t)r.removeAttribute("id"),e.id=C(t);else if(n){let i=(0,re.default)(n,{lower:!0,strict:!0});e.id=C(i)}return e.id||=C(te(8)),e},C=r=>{let e=r,t=2;for(;document.getElementById(e);)e=`${r}-${t}`,t+=1;return e};var ie=({children:r})=>{let e=[];for(let t=r.length-1;t>=0;t--){let o=r[t];if(!o)continue;let n=o.closest(B);if(!n)continue;let{tagName:i,textContent:s}=n;if(!s)continue;if(s.match(S)){n.textContent=s.replace(S,"").trim();continue}let[a]=s.match(I)||[];a&&(n.textContent=s.replace(I,"").trim());let c=Q(a||i);if(!c)continue;let l=oe(n);if(!l)continue;let{id:m}=l,[f]=e;if(f?.level){let u=f.level-1;if(c<u)for(let g=1;g<=u-c;g++)e.unshift({level:f.level-g})}n.insertAdjacentElement("beforebegin",l);let O=e.find(u=>u.level<=c),A=Array.from(r).slice(t+1);for(let u of A){if(u===O?.headingWrapper)break;l.append(u)}e.unshift({level:c,headingElement:n,headingWrapper:l,id:m})}return e},se=r=>{let e=[],t=o=>{let n=o.closest("a");if(!n)return;let i=n.parentElement;if(!i)return;let s=e[e.length-1]?.level,p=s?s+1:q;e.push({linkElement:n,level:p,component:i});let c=[...i.querySelectorAll(`* ${h("link")}`)].find(m=>m!==o);if(!c)return i;let l=t(c);if(l){let m=new Comment(d);i.insertBefore(m,l),l.remove()}return i};return t(r),e};var ae=(r,e)=>M(r,"click",o=>{!N(o.target)||!o.target.closest("a")||(o.stopPropagation(),e&&window.setTimeout(()=>{let{origin:i,pathname:s,search:p}=window.location;history.replaceState("",document.title,i+s+p)}))});var le=(r,e)=>{let t=new MutationObserver(o=>{for(let{target:n}of o){if(!R(n))continue;let i=e.find(({linkElement:s})=>s===n);i&&i.updateState()}});return t.observe(r,{attributes:!0,subtree:!0,attributeFilter:["class"]}),t};var b=class{level;linkWrapper;referenceNode;anchor;component;linkElement;headingElement;headingWrapper;id;ixTrigger;interaction;currentState;constructor({level:e,component:t,linkElement:o,linkWrapper:n,headingElement:i,headingWrapper:s,id:p,ixTrigger:a,referenceNode:c,anchor:l}){this.level=e,this.linkWrapper=n,this.referenceNode=c,this.anchor=l,this.component=t,this.linkElement=o,this.headingElement=i,this.headingWrapper=s,this.id=p,this.ixTrigger=a,this.interaction=a?new T({element:a}):void 0,this.#e()}#e(){let{headingElement:e,id:t,referenceNode:o,linkElement:n,linkWrapper:i,component:s,anchor:p}=this;e&&t?(o.textContent=e.textContent,n.href=`#${t}`):n.remove(),i.insertBefore(s,p)}setScrollOffset(e){let{headingWrapper:t}=this;t&&Object.assign(t.style,e)}updateState(){let{linkElement:e,interaction:t,currentState:o}=this,n=e.classList.contains(w);n!==o&&(t?.trigger(n?"first":"second"),this.currentState=n)}};var ce=(r,e,t)=>{let o=[],n=[];for(let i of r){let s=e.find(u=>u.level===i.level);if(!s)continue;for(let u=n.length-1;u>=0&&!(i.level>n[u].level);u--)n.pop();let p=n[n.length-1],a=p?.component||t,c=_(s.component),l=E("link",{scope:c});if(!l)continue;let m=l.closest("a");if(!m)continue;let f=[...a.childNodes].find(({nodeType:u,nodeValue:g})=>u===8&&g===d);if(!f)continue;let O=c.querySelector(`:scope > ${h("ix-trigger")}`),A=new b({linkWrapper:a,component:c,referenceNode:l,linkElement:m,ixTrigger:O,anchor:f,...i});(!p||i.level>p.level)&&n.push(A),o.push(A)}return o};var me=([{component:r}],e)=>{let t=E("table",{instance:e})||r.parentElement;if(!t)return;let o=new Comment(d);return r.parentElement===t?t.insertBefore(o,r):t.append(o),r.remove(),t};var pe=r=>{let e=V(r),t=E("link",{instance:e});if(!t)return;let o=ie(r),n=se(t)||[];if(!o.length||!n.length)return;let i=me(n,e);if(!i)return;let s=ce(o,n,i),p=x(r,"offsettop"),a=x(r,"offsetbottom");F(s,{scrollMarginTop:p,scrollMarginBottom:a});let c=X(r,"hideurlhash","true"),l=ae(i,c),m=le(i,s);return()=>{l(),m.disconnect()}};var Ee=async()=>{await j(),await Y("inject");let e=Z("contents").map(pe).filter(D);return K(),e.length&&await G(),{destroy(){for(let t of e)t()}}};export{v as ELEMENTS,L as SETTINGS,Ee as init,he as version};
|
package/dist/src-OVA7RJ7C.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{e as D}from"./chunk-TPZEZMFY.js";import{a as at}from"./chunk-MMLPBDVV.js";import{c as T,d as A}from"./chunk-JWECJO7V.js";import{b as B}from"./chunk-QJLI7KE4.js";import{e as f,f as E}from"./chunk-66ZG3JSK.js";import{b as I,i as b}from"./chunk-JRWWKMUR.js";import{a as g,b as y,c as v,i as P,j as U,k as W,l as H,m as V}from"./chunk-OZ2E2BFY.js";import{a as m}from"./chunk-HNE3ICUK.js";import{f as M,h as Y,p as k,q}from"./chunk-IIYDYA3Q.js";import{a as $}from"./chunk-72T5X4H3.js";import{s as F}from"./chunk-KPT4H6YU.js";import{b as G,c as X}from"./chunk-TG26EDOV.js";import{c as ct}from"./chunk-K46K3RI5.js";var ut="0.1.0";var x=["dropdown","label","clear"],h={hideinitial:{key:"hideinitial",values:["true"]}},j=[" ","Tab",f,E];var S=(t,e)=>{let{selectElement:o,optionsStore:n,label:i}=t;e&&B(o,e.value);for(let r of n){let{element:l}=r,s=l===e?.element;r.selected=s,l.classList[s?"add":"remove"](I),l.setAttribute(P,`${s}`),l.setAttribute(v,s?"0":"-1")}e&&(i.textContent=e.text)},O=(t,{optionsStore:e})=>{let o=e.find(({value:n})=>!n);o&&(o.hidden=!t,o.element.style.display=t?"":"none")};var J=(t,{optionsStore:e})=>{let{target:o}=t;if(!Y(o))return;let n=o.closest("a");if(!n)return;let i=e.find(({element:r})=>r===n);if(i)return i},Q=(t,e)=>{if(t.target===e.selectElement)return;t.preventDefault();let o=J(t,e);o&&(o.selected||S(e,o),D(e.dropdownToggle))},mt=(t,{dropdownToggle:e})=>{let{shiftKey:o}=t;o&&t.preventDefault(),D(e,o)},ft=({key:t},{optionsStore:e})=>{let o=e.findIndex(({focused:i})=>i);if(o<0)return;e[t===f?o-1:o+1]?.element.focus()},Et=(t,e)=>{let{key:o}=t;j.includes(o)&&(o===" "?Q(t,e):o==="Tab"?mt(t,e):(o===f||o===E)&&ft(t,e))},z=(t,e,o)=>{let n=J(t,o);n&&(n.focused=e)},St=({key:t},{optionsStore:e})=>{if(t!==E)return;let o=e.find(({hidden:n})=>!n);o&&o.element.focus()},bt=t=>{let{selectElement:e,optionsStore:o}=t,n=o.find(({value:i})=>i===e.value);n&&S(t,n)},Z=t=>{let{dropdownToggle:e,dropdownList:o,selectElement:n}=t,i=[m(e,"keydown",r=>St(r,t)),m(o,"click",r=>Q(r,t)),m(o,"keydown",r=>Et(r,t)),m(o,"focusin",r=>z(r,!0,t)),m(o,"focusout",r=>z(r,!1,t)),m(n,"change",()=>bt(t))];return()=>{for(let r of i)r()}};var R=ct(at(),1);var tt=(t,e)=>{t.setAttribute(U,y.listbox),e.setAttribute(g,y.listbox),e.setAttribute(W,"false")},et=t=>{t.setAttribute(g,y.option)};var w=t=>{let{optionsStore:e,optionTemplate:o,optionsList:n,emptyOption:i,hideInitial:r,selectElement:{options:l,value:s}}=t;for(let{element:c}of e.values())c.remove();e.splice(0,e.length);let p;for(let{value:c,text:a,disabled:d,hidden:lt}of l){if(d||lt)continue;let u;if(!c&&i)u=T(i);else{u=T(o);let pt=A(u)||u;pt.textContent=a}et(u),n.appendChild(u);let C=c===s,N={text:a,value:c,element:u,selected:C,focused:!1};C&&(p=N),e.push(N)}S(t,p),r&&O(!!p?.value,t)};var At=t=>{let{dropdownToggle:e,dropdownList:o,optionsStore:n,hideInitial:i}=t,r=(0,R.default)(()=>{let s=n.find(({selected:a})=>a),p=n.find(({hidden:a})=>!a);if(!s||!p)return;if(e.getAttribute(H)==="true"){s.hidden?p.element.focus():s.element.focus();return}i&&window.requestAnimationFrame(()=>O(!!s.value,t))},20),l=new MutationObserver(r);return l.observe(o,{attributes:!0,attributeFilter:["class","style"]}),l},yt=t=>{let{selectElement:e}=t,o=(0,R.default)(i=>{i.some(({addedNodes:l,removedNodes:s,target:p})=>[...l,...s,p].some(q))&&w(t)},100),n=new MutationObserver(o);return n.observe(e,{childList:!0,subtree:!0,attributeFilter:["hidden","disabled","label"]}),n},ot=t=>{let e=At(t),o=yt(t);return()=>{e.disconnect(),o.disconnect()}};var{queryElement:K,getElementSelector:nt,hasAttributeValue:rt,queryAllElements:it}=$(F,x,h);var st=t=>{let e=[],o=t.closest(`.${b.dropdown}`);if(!o)return;let n=o.querySelector("select");if(!n)return;let i=o.querySelector(`.${b.dropdownToggle}`),r=o.querySelector(`.${b.dropdownList}`);if(!i||!r)return;tt(i,r);let l=K("label",{scope:i})||A(i)||i,s=r.querySelector(`a:not(${nt("clear")})`);if(!k(s))return;let p=s.parentElement;if(!p)return;let c=K("clear",{scope:r});for(let d of[s,c])d&&(d.href="#",d.setAttribute(v,"-1"),d.removeAttribute(V),d.remove());let a=rt(t,"hideinitial","true");return{optionsStore:e,selectElement:n,dropdownToggle:i,dropdownList:r,label:l,optionTemplate:s,optionsList:p,emptyOption:c,hideInitial:a}};var vt=async()=>{await X(),await G("list");let t=it("dropdown"),e=t.map(Ot).filter(M);return{result:t,destroy(){for(let o of e)o()}}},Ot=t=>{let e=st(t);if(!e)return;w(e);let o=ot(e),n=Z(e);return()=>{o(),n()}};export{x as ELEMENTS,h as SETTINGS,vt as init,ut as version};
|
package/dist/src-P2ZKDMV4.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as re}from"./chunk-MMLPBDVV.js";import{b as q,f as M}from"./chunk-JWECJO7V.js";import{f as x}from"./chunk-JRWWKMUR.js";import{a as b}from"./chunk-HNE3ICUK.js";import{h as F,i as v}from"./chunk-IIYDYA3Q.js";import{a as _}from"./chunk-72T5X4H3.js";import{r as O}from"./chunk-KPT4H6YU.js";import{c as $}from"./chunk-TG26EDOV.js";import{c as ne}from"./chunk-K46K3RI5.js";var le="0.1.0";function se(o){if(Array.isArray(o)){for(var e=0,t=Array(o.length);e<o.length;e++)t[e]=o[e];return t}else return Array.from(o)}var B=!1;typeof window<"u"&&(L={get passive(){B=!0}},window.addEventListener("testPassive",null,L),window.removeEventListener("testPassive",null,L));var L,g=typeof window<"u"&&window.navigator&&window.navigator.platform&&(/iP(ad|hone|od)/.test(window.navigator.platform)||window.navigator.platform==="MacIntel"&&window.navigator.maxTouchPoints>1),u=[],y=!1,k=-1,f=void 0,a=void 0,m=void 0,Y=function(e){return u.some(function(t){return!!(t.options.allowTouchMove&&t.options.allowTouchMove(e))})},S=function(e){var t=e||window.event;return Y(t.target)||t.touches.length>1?!0:(t.preventDefault&&t.preventDefault(),!1)},ae=function(e){if(m===void 0){var t=!!e&&e.reserveScrollBarGap===!0,r=window.innerWidth-document.documentElement.clientWidth;if(t&&r>0){var n=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right"),10);m=document.body.style.paddingRight,document.body.style.paddingRight=n+r+"px"}}f===void 0&&(f=document.body.style.overflow,document.body.style.overflow="hidden")},ce=function(){m!==void 0&&(document.body.style.paddingRight=m,m=void 0),f!==void 0&&(document.body.style.overflow=f,f=void 0)},de=function(){return window.requestAnimationFrame(function(){if(a===void 0){a={position:document.body.style.position,top:document.body.style.top,left:document.body.style.left};var e=window,t=e.scrollY,r=e.scrollX,n=e.innerHeight;document.body.style.position="fixed",document.body.style.top=-t,document.body.style.left=-r,setTimeout(function(){return window.requestAnimationFrame(function(){var i=n-window.innerHeight;i&&t>=n&&(document.body.style.top=-(t+i))})},300)}})},ue=function(){if(a!==void 0){var e=-parseInt(document.body.style.top,10),t=-parseInt(document.body.style.left,10);document.body.style.position=a.position,document.body.style.top=a.top,document.body.style.left=a.left,window.scrollTo(t,e),a=void 0}},fe=function(e){return e?e.scrollHeight-e.scrollTop<=e.clientHeight:!1},me=function(e,t){var r=e.targetTouches[0].clientY-k;return Y(e.target)?!1:t&&t.scrollTop===0&&r>0||fe(t)&&r<0?S(e):(e.stopPropagation(),!0)},W=function(e,t){if(!e){console.error("disableBodyScroll unsuccessful - targetElement must be provided when calling disableBodyScroll on IOS devices.");return}if(!u.some(function(n){return n.targetElement===e})){var r={targetElement:e,options:t||{}};u=[].concat(se(u),[r]),g?de():ae(t),g&&(e.ontouchstart=function(n){n.targetTouches.length===1&&(k=n.targetTouches[0].clientY)},e.ontouchmove=function(n){n.targetTouches.length===1&&me(n,e)},y||(document.addEventListener("touchmove",S,B?{passive:!1}:void 0),y=!0))}},z=function(){g&&(u.forEach(function(e){e.targetElement.ontouchstart=null,e.targetElement.ontouchmove=null}),y&&(document.removeEventListener("touchmove",S,B?{passive:!1}:void 0),y=!1),k=-1),g?ue():ce(),u=[]};var{body:D}=document,j=!0,H=!1,w,I=()=>H,U=o=>{j=o},h=o=>{w=window.scrollY,H=!0,W(o,{reserveScrollBarGap:j}),D.style.setProperty("top",`${w*-1}px`)},E=()=>{H=!1,z(),D.style.setProperty("top",""),w&&D.scrollTo(0,w)},T=o=>{if(M(o))return o;let e=o.querySelectorAll("*");for(let t of e)if(v(t)&&M(t))return t};var C=["when-visible","enable","disable","toggle","smart-nav","preserve"],P={media:{key:"media"},gap:{key:"gap",values:["true","false"]}},X={medium:"(max-width: 991px)",small:"(max-width: 767px)",tiny:"(max-width: 479px)"};var{getElementSelector:c,getAttribute:A,queryAllElements:J,getSettingSelector:K,hasAttributeValue:Q}=_(O,C,P);var Z=o=>b(window,"click",({target:t})=>{if(!F(t))return;let r=t.closest(c("toggle")),n=r||t.closest(c("disable")),i=r||t.closest(c("enable")),s=n||i;if(!s)return;let d=A(s,"media");if(!(d&&!window.matchMedia(d).matches)){if(I()&&i)E();else if(!I()&&v(n))for(let l of new Set([...o,T(n)||n]))h(l)}});var N=ne(re(),1);var ee=new Map,R=(o,e)=>{let t=ee.get(o);if(!t)return;let{matchMedia:r,firstScrollableElement:n,visible:i}=t;if(r&&!window.matchMedia(r).matches)return;let s=q(o);if(s!==i){if(i&&E(),s)for(let d of new Set([...e,n]))h(d);t.visible=s}},te=o=>{let e=c("smart-nav"),t=document.querySelectorAll(`${c("when-visible")}, ${e}.${x.navMenu}, ${e} .${x.navMenu}`),n=(0,N.default)(l=>{let p=l[0].target;R(p,o)},25),i=new MutationObserver(n);for(let l of t){let p=A(l,"media"),G=l.closest(".w-nav");if(G){let V=G.dataset.collapse;V&&(p=X[V])}let oe=T(l)||l;ee.set(l,{firstScrollableElement:oe,matchMedia:p}),R(l,o),i.observe(l,{attributes:!0,attributeFilter:["style","class"]})}let s=(0,N.default)(()=>{for(let l of t)R(l,o)},250),d=b(window,"resize",s);return()=>{i.disconnect(),d()}};var pe=async()=>{await $();let o=J("preserve"),e=!0,t=document.querySelector(K("gap"));t&&Q(t,"gap","false")&&(e=!1),U(e);let n=Z(o),i=te(o);return{destroy(){n(),i()}}};export{C as ELEMENTS,P as SETTINGS,pe as init,le as version};
|
package/dist/src-TG7PM6IF.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as k}from"./chunk-3RLKXDIH.js";import{b as M}from"./chunk-K35EQW4W.js";import{a as L,b as T}from"./chunk-JWECJO7V.js";import{a as D,b as G,c as H,d as _,e as x,l as w,p as R}from"./chunk-OZ2E2BFY.js";import{a as f}from"./chunk-HNE3ICUK.js";import{f as u,g as h}from"./chunk-IIYDYA3Q.js";import{a as O}from"./chunk-72T5X4H3.js";import{a as A,o as N}from"./chunk-KPT4H6YU.js";import{b as q,c as V}from"./chunk-TG26EDOV.js";import"./chunk-K46K3RI5.js";var z="0.1.0";var B=(t,e,i)=>{let o=L(t),r=L(e);t.setAttribute(D,G.button),t.setAttribute(R,r),t.setAttribute(H,"0"),S(t,i),!e.hasAttribute(x)&&!e.hasAttribute(_)&&e.setAttribute(x,o)},S=(t,e)=>{t.setAttribute(w,String(e))};var I=({accordion:t,trigger:e,content:i,arrow:o,isOpen:r,groupActiveClass:s,accordionActiveClass:n,arrowActiveClass:c,contentActiveClass:l,triggerActiveClass:p})=>{let a=r?"add":"remove";t.classList[a](n||s),e.classList[a](p||s),i.classList[a](l||s),o?.classList[a](c||s)};var b=t=>`${getComputedStyle(t).height}`;var K=t=>{t.style.display="block",t.style.maxHeight="";let e=b(t);t.style.maxHeight="0px",requestAnimationFrame(()=>{t.style.maxHeight=e})},v=t=>{let e=f(t,"transitionend",({propertyName:o})=>{o==="max-height"&&(t.style.display="none",e())}),i=b(t);return t.style.maxHeight=i,requestAnimationFrame(()=>{t.style.maxHeight="0px"}),e};var C=["group","accordion","trigger","content","arrow"],d={single:{key:"single",values:["true"]},initial:{key:"initial",values:["none"]},activeclass:{key:"activeclass",defaultValue:`is-${A}-active`}},Y=`[ad-${N}-element="list"]`;var{getElementSelector:U,getClosestElement:W,queryElement:E,queryAllElements:y,getAttribute:m,hasAttributeValue:$}=O(A,C,d);var F=t=>{let e=$(t,"single","true"),i=m(t,"initial"),o=m(t,"activeclass"),r;return i&&(h(i,d.initial.values)?r=i:r=k(i).map(M).filter(u)),{group:t,single:e,initial:r,activeClass:o,accordions:[]}},X=(t,e)=>{let i=t,o=E("trigger",{scope:i}),r=E("content",{scope:i}),s=E("arrow",{scope:i});if(!o||!r)return;let n=e.activeClass,c=m(t,"activeclass"),l=m(o,"activeclass"),p=m(r,"activeclass"),a=s?m(s,"activeclass"):null;return{accordion:t,trigger:o,content:r,arrow:s,groupActiveClass:n,accordionActiveClass:c,triggerActiveClass:l,contentActiveClass:p,arrowActiveClass:a}};var g=(t,e)=>{let i=t.closest(U("group"))||document.body,o=e.find(n=>n.group===i);if(o||(o=F(i),e.push(o)),o.accordions.find(n=>n.accordion===t))return o;let s=J(t,o);return s&&o.accordions.push({accordion:t,controls:s}),Q(o),o},J=(t,e)=>{let i=X(t,e);if(!i)return;let{trigger:o,content:r}=i,s=T(r),n;T(t)||(n=v(r)),B(o,r,s),I({...i,isOpen:s});let c=p=>{if(n?.(),n=void 0,s)n=v(r),s=!1;else if(K(r),s=!0,e.single&&p)for(let a of e.accordions)a.accordion!==t&&a.controls.close();S(i.trigger,s),I({...i,isOpen:s})};return{destroy:f(o,"click",c),open:()=>{s||c()},close:()=>{s&&c()},isOpen:()=>s}},Q=({single:t,initial:e,accordions:i})=>{let o=!1,r=e==="none",s=Array.isArray(e);for(let[n,{controls:c}]of i.entries()){let l=n+1,p=s&&e.includes(l);if(t&&o||s&&!e.includes(l)||r){c.close();continue}p&&(c.open(),o=!0),o||=c.isOpen()}};var j=async t=>{let i=(await q("list")).map(o=>o.addHook("afterRender",(r=[])=>{for(let{element:s}of r){let n=[...y("accordion",{scope:s}),W(s,"accordion")].filter(u);for(let c of n)g(c,t)}}));return()=>{for(let o of i)o()}};var Z=async()=>{await V();let t=y("accordion"),e=[];for(let r of t)g(r,e);let o=t.some(r=>r.closest(Y))?await j(e):void 0;return{result:e,destroy(){for(let{accordions:r}of e)for(let{controls:s}of r)s.destroy();o?.()}}};export{C as ELEMENTS,d as SETTINGS,Z as init,z as version};
|
package/dist/src-TWZQDHX3.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as c}from"./chunk-HNE3ICUK.js";import{j as n}from"./chunk-IIYDYA3Q.js";import{c as p}from"./chunk-TG26EDOV.js";import"./chunk-K46K3RI5.js";var l="0.1.0";var u=async()=>{await p();let s=document.querySelectorAll("video");if(!s.length)return;let i=new Map,o=new IntersectionObserver(t=>{for(let{target:e,isIntersecting:r}of t)n(e)&&(r?e.play():e.pause(),i.set(e,r))},{});for(let t of s)t.autoplay=!1,i.set(t,null),o.observe(t);let a=c(document,"visibilitychange",()=>{for(let[t,e]of i)document.hidden||!e?t.pause():t.play()});return{result:i,destroy(){o.disconnect(),a()}}};var f=[],m={};export{f as ELEMENTS,m as SETTINGS,u as init,l as version};
|
package/dist/src-UAPHSYPQ.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{g as T}from"./chunk-JRWWKMUR.js";import{a as y}from"./chunk-HNE3ICUK.js";import{h as w}from"./chunk-IIYDYA3Q.js";import{a as b}from"./chunk-72T5X4H3.js";import{v as L}from"./chunk-KPT4H6YU.js";import{b as A,c as M}from"./chunk-TG26EDOV.js";import"./chunk-K46K3RI5.js";var $="0.1.0";var x=["facebook","x","pinterest","linkedin","telegram","reddit","content","url","facebook-hashtags","x-hashtags","x-username","pinterest-image","pinterest-description"],E={width:{key:"width",defaultValue:"600",isNumeric:!0},height:{key:"height",defaultValue:"480",isNumeric:!0},element:{key:"element"}},u={facebook:"https://www.facebook.com/sharer/sharer.php",x:"https://x.com/intent/post/",pinterest:"https://www.pinterest.com/pin/create/trigger/",reddit:"https://www.reddit.com/submit",linkedin:"https://www.linkedin.com/sharing/share-offsite",telegram:"https://t.me/share"};var{queryElement:l,getAttribute:f,getSettingSelector:j,getElementSelector:C,queryAllElements:I,getInstance:m}=b(L,x,E);var i={facebook:new Map,x:new Map,pinterest:new Map,telegram:new Map,linkedin:new Map,reddit:new Map};var D=()=>y(document,"click",o=>{let{target:t}=o;if(w(t))for(let r in u){let n=r,a=t.closest(C(n));if(!a)continue;let s=i[n].get(a);s&&q(s);break}}),q=({width:e,height:o,shareUrl:t})=>{let r=window.innerWidth/2-e/2+window.screenX,n=window.innerHeight/2-o/2+window.screenY,a=`scrollbars=no, width=${e}, height=${o}, top=${n}, left=${r}`,s=window.open(t,"",a);s&&s.focus()};function g(e,o,t){let r=p(e,"facebook",o,t),n=l("facebook-hashtags",{instance:o,scope:t}),a=n?n.textContent:null;return{...r,type:"facebook",hashtags:a}}function H(e,o,t){let r=p(e,"x",o,t),n=l("x-hashtags",{instance:o,scope:t}),a=n&&n.textContent?n.textContent.replace(/[^a-zA-Z0-9_,]/g,""):null,s=l("x-username",{instance:o,scope:t}),c=s?s.textContent:null;return{...r,type:"x",hashtags:a,username:c}}function R(e,o,t){let r=p(e,"pinterest",o,t),n=l("pinterest-image",{instance:o,scope:t}),a=n&&n.src?n.src:null,s=l("pinterest-description",{instance:o,scope:t}),c=s?s.textContent:null;return{...r,type:"pinterest",image:a,description:c}}function p(e,o,t,r){let n=f(e,"width"),a=f(e,"height"),s=l("content",{instance:t,scope:r}),c=s?s.textContent:null,h=l("url",{instance:t,scope:r}),X=h&&h.textContent?h.textContent:window.location.href;return{content:c,url:X,width:n,height:a,type:o}}function P({type:e,url:o,hashtags:t,content:r,width:n,height:a}){return d(e,{u:o,hashtag:t,quote:r},n,a)}function _({type:e,content:o,username:t,hashtags:r,url:n,width:a,height:s}){return d(e,{url:n,hashtags:r,text:o,via:t},a,s)}function v({type:e,url:o,image:t,description:r,width:n,height:a}){return d(e,{url:o,description:r,media:t},n,a)}function F({type:e,url:o,width:t,height:r}){return d(e,{url:o},t,r)}function O({type:e,url:o,content:t,width:r,height:n}){return d(e,{url:o,title:t},r,n)}function N({type:e,content:o,url:t,width:r,height:n}){return d(e,{url:t,text:o},r,n)}function d(e,o,t,r){let n=u[e],a=new URL(n),s=Object.entries(o);for(let[c,h]of s)h&&a.searchParams.append(c,h);return{height:r,width:t,type:e,shareUrl:a}}var S=e=>e.closest(`.${T.item}`)||void 0;var k=e=>{for(let o in u){let t=o,r=I(t,{scope:e}),n=`${o}[-0-9]*[a-zA-Z]+`,a=r.filter(c=>!f(c,"element")?.toLocaleLowerCase().match(new RegExp(n))),s=U[t];a.forEach(s)}},U={facebook(e){if(i.facebook.has(e))return;let o=m(e),t=S(e),r=g(e,o,t),n=P(r);i.facebook.set(e,n)},x(e){if(i.x.has(e))return;let o=m(e),t=S(e),r=H(e,o,t),n=_(r);i.x.set(e,n)},pinterest(e){if(i.pinterest.has(e))return;let o=m(e),t=S(e),r=R(e,o,t),n=v(r);i.pinterest.set(e,n)},telegram(e){if(i.telegram.has(e))return;let o=m(e),t=S(e),r=p(e,"telegram",o,t),n=N(r);i.telegram.set(e,n)},linkedin(e){if(i.linkedin.has(e))return;let o=m(e),t=S(e),r=p(e,"linkedin",o,t),n=F(r);i.linkedin.set(e,n)},reddit(e){if(i.reddit.has(e))return;let o=m(e),t=S(e),r=p(e,"reddit",o,t),n=O(r);i.reddit.set(e,n)}};var G=async()=>{await M();let e=D();k();let o=await A("list")||[];for(let{items:t}of o)for(let{element:r}of t.value)k(r);return{result:i,destroy(){e()}}};export{x as ELEMENTS,E as SETTINGS,G as init,$ as version};
|
package/dist/src-UBPAS7FZ.js
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import{b as l,c as g,d as R}from"./chunk-K35EQW4W.js";import{b}from"./chunk-QJLI7KE4.js";import"./chunk-66ZG3JSK.js";import"./chunk-JRWWKMUR.js";import{a as x,b as N,c as w,d as E,p as L}from"./chunk-OZ2E2BFY.js";import{a as p}from"./chunk-HNE3ICUK.js";import{b as d,f}from"./chunk-IIYDYA3Q.js";import{a as h}from"./chunk-72T5X4H3.js";import{j as A}from"./chunk-KPT4H6YU.js";import{c as _}from"./chunk-TG26EDOV.js";import"./chunk-K46K3RI5.js";var Y="0.1.0";var I=(t,e,n)=>{e.setAttribute(x,N.button),e.setAttribute(L,t.id),e.setAttribute(w,"0"),e.hasAttribute(E)||e.setAttribute(E,n)};var v=(t,e,n)=>{let i=(r,o)=>r.toFixed(o).replace(/(?:\.0+|(\.\d*[1-9])0+)$/,"$1"),c=()=>{let r=l(t.step);if(!r)return;let o=g(r);if(!o)return;let a=Number(t.value);Number.isNaN(a)||(t.value=i(a,o))};for(let r of[e,n].filter(f))I(t,r,`${r===e?"Increment":"Decrement"} the input value`);let s=p(e,"click",r=>{r.preventDefault(),t.stepUp(),c()}),u=p(n,"click",r=>{r.preventDefault(),t.stepDown(),c()});return()=>{s(),u()}},M=(t,e,n)=>(I(t,e,"Reset the input value"),p(e,"click",s=>{s.preventDefault(),b(t,n?.toString()||"")}));var H=t=>{let{step:e,min:n,max:i}=t;if(!e&&!n&&!i)return;let c=l(e),s=l(n),u=l(i);return p(t,"change",()=>{let o=Number(t.value);if(isNaN(o))return;let a=c?R(o,c):o;t.value=d(s)&&a<s?s.toString():d(u)&&a>u?u.toString():a.toString()})};var S=["input","increment","decrement","clear","style"],T={initial:{key:"initial",isNumeric:!0},showarrows:{key:"showarrows"}},k=`<style ad-${A}-element="style">
|
|
2
|
-
/* Chrome, Safari, Edge, Opera */
|
|
3
|
-
input::-webkit-outer-spin-button,
|
|
4
|
-
input::-webkit-inner-spin-button {
|
|
5
|
-
-webkit-appearance: none;
|
|
6
|
-
margin: 0;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
/* Firefox */
|
|
10
|
-
input[type='number'] {
|
|
11
|
-
-moz-appearance: textfield;
|
|
12
|
-
}
|
|
13
|
-
</style>`;var{queryElement:m,getElementSelector:B,getInstance:D,getAttribute:y}=h(A,S,T);var O=()=>{m("style")||document.head.insertAdjacentHTML("beforeend",k)};var U=t=>{let e=D(t),n=y(t,"showarrows"),i=y(t,"initial"),c=m("increment",{instance:e}),s=m("decrement",{instance:e}),u=m("clear",{instance:e});if(!c&&!s)return;n||O();let r=H(t),o=v(t,c,s),a=u?M(t,u,i):void 0;return t.type="number",d(i)&&b(t,i.toString()),()=>{r?.(),o(),a?.()}};var F=async()=>{await _();let t=[...document.querySelectorAll(`input${B("input")}`)],e=t.map(U).filter(f);return{result:t,destroy(){for(let n of e)n()}}};export{S as ELEMENTS,T as SETTINGS,F as init,Y as version};
|
package/dist/src-UKNI4NPN.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as m}from"./chunk-HNE3ICUK.js";import{h as c,i as l}from"./chunk-IIYDYA3Q.js";import{a}from"./chunk-72T5X4H3.js";import{k as p}from"./chunk-KPT4H6YU.js";import"./chunk-K46K3RI5.js";var S="0.1.0";var r=["trigger","target"],i={delay:{key:"delay",isNumeric:!0}};var{getElementSelector:d,getInstance:u,queryAllElements:E,getAttribute:s}=a(p,r,i);var x=()=>{let f=m(window,"click",({target:n})=>{if(!c(n))return;let e=n.closest(d("trigger"));if(!e)return;let g=u(e),T=E("target",{instance:g});for(let t of T){if(!l(t))continue;let o=s(t,"delay")||s(e,"delay");o?window.setTimeout(()=>t.click(),o):t.click()}});return{destroy(){f()}}};export{r as ELEMENTS,i as SETTINGS,x as init,S as version};
|
package/dist/src-USQSVKEL.js
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import{a as Nr,b as An}from"./chunk-JWECJO7V.js";import{C as Dn,D as Cn,a as Or,b as Kt,c as Vn,j as wn,l as nt,p as En,r as Pr,t as Mn}from"./chunk-OZ2E2BFY.js";import{a as Bt}from"./chunk-HNE3ICUK.js";import{f as Sn}from"./chunk-IIYDYA3Q.js";import{a as Fn}from"./chunk-72T5X4H3.js";import{m as Lt}from"./chunk-KPT4H6YU.js";import{c as In}from"./chunk-TG26EDOV.js";import"./chunk-K46K3RI5.js";var zo="0.1.0";function Rr(t,e){t.indexOf(e)===-1&&t.push(e)}function Me(t,e){let r=t.indexOf(e);r>-1&&t.splice(r,1)}var U=(t,e,r)=>r>e?e:r<t?t:r;var fe=()=>{},Z=()=>{};var Y={};var it=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t);function kr(t){return typeof t=="object"&&t!==null}var ot=t=>/^0[^.\s]+$/u.test(t);function De(t){let e;return()=>(e===void 0&&(e=t()),e)}var ee=t=>t;var Uo=(t,e)=>r=>e(t(r)),Ce=(...t)=>t.reduce(Uo);var Fe=(t,e,r)=>{let n=e-t;return n===0?1:(r-t)/n};var Ie=class{constructor(){this.subscriptions=[]}add(e){return Rr(this.subscriptions,e),()=>Me(this.subscriptions,e)}notify(e,r,n){let i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](e,r,n);else for(let a=0;a<i;a++){let o=this.subscriptions[a];o&&o(e,r,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}};var $=t=>t*1e3,z=t=>t/1e3;function at(t,e){return e?t*(1e3/e):0}var Nn=(t,e,r)=>{let n=e-t;return((r-t)%n+n)%n+t};var On=(t,e,r)=>(((1-3*r+3*e)*t+(3*r-6*e))*t+3*e)*t,Yo=1e-7,qo=12;function Ho(t,e,r,n,i){let a,o,s=0;do o=e+(r-e)/2,a=On(o,n,i)-t,a>0?r=o:e=o;while(Math.abs(a)>Yo&&++s<qo);return o}function xe(t,e,r,n){if(t===e&&r===n)return ee;let i=a=>Ho(a,0,1,t,r);return a=>a===0||a===1?a:On(i(a),e,n)}var Gt=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2;var jt=t=>e=>1-t(1-e);var _t=xe(.33,1.53,.69,.99),Ge=jt(_t),st=Gt(Ge);var lt=t=>(t*=2)<1?.5*Ge(t):.5*(2-Math.pow(2,-10*(t-1)));var ut=t=>1-Math.sin(Math.acos(t)),Br=jt(ut),ct=Gt(ut);var Kr=xe(.42,0,1,1),Lr=xe(0,0,.58,1),ft=xe(.42,0,.58,1);var mt=t=>Array.isArray(t)&&typeof t[0]!="number";function pt(t,e){return mt(t)?t[Nn(0,t.length,e)]:t}var dt=t=>Array.isArray(t)&&typeof t[0]=="number";var Pn={linear:ee,easeIn:Kr,easeInOut:ft,easeOut:Lr,circIn:ut,circInOut:ct,circOut:Br,backIn:Ge,backInOut:st,backOut:_t,anticipate:lt},Xo=t=>typeof t=="string",je=t=>{if(dt(t)){Z(t.length===4,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");let[e,r,n,i]=t;return xe(e,r,n,i)}else if(Xo(t))return Z(Pn[t]!==void 0,`Invalid easing type '${t}'`,"invalid-easing-type"),Pn[t];return t};var ht=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];var _e={value:null,addProjectionMetrics:null};function Rn(t,e){let r=new Set,n=new Set,i=!1,a=!1,o=new WeakSet,s={delta:0,timestamp:0,isProcessing:!1},l=0;function f(c){o.has(c)&&(u.schedule(c),t()),l++,c(s)}let u={schedule:(c,d=!1,y=!1)=>{let b=y&&i?r:n;return d&&o.add(c),b.has(c)||b.add(c),c},cancel:c=>{n.delete(c),o.delete(c)},process:c=>{if(s=c,i){a=!0;return}i=!0,[r,n]=[n,r],r.forEach(f),e&&_e.value&&_e.value.frameloop[e].push(l),l=0,r.clear(),i=!1,a&&(a=!1,u.process(c))}};return u}var Zo=40;function Wt(t,e){let r=!1,n=!0,i={delta:0,timestamp:0,isProcessing:!1},a=()=>r=!0,o=ht.reduce((C,A)=>(C[A]=Rn(a,e?A:void 0),C),{}),{setup:s,read:l,resolveKeyframes:f,preUpdate:u,update:c,preRender:d,render:y,postRender:v}=o,b=()=>{let C=Y.useManualTiming?i.timestamp:performance.now();r=!1,Y.useManualTiming||(i.delta=n?1e3/60:Math.max(Math.min(C-i.timestamp,Zo),1)),i.timestamp=C,i.isProcessing=!0,s.process(i),l.process(i),f.process(i),u.process(i),c.process(i),d.process(i),y.process(i),v.process(i),i.isProcessing=!1,r&&e&&(n=!1,t(b))},D=()=>{r=!0,n=!0,i.isProcessing||t(b)};return{schedule:ht.reduce((C,A)=>{let x=o[A];return C[A]=(F,k=!1,E=!1)=>(r||D(),x.schedule(F,k,E)),C},{}),cancel:C=>{for(let A=0;A<ht.length;A++)o[ht[A]].cancel(C)},state:i,steps:o}}var{schedule:q,cancel:gt,state:We,steps:vu}=Wt(typeof requestAnimationFrame<"u"?requestAnimationFrame:ee,!0);var $t;function Jo(){$t=void 0}var G={now:()=>($t===void 0&&G.set(We.isProcessing||Y.useManualTiming?We.timestamp:performance.now()),$t),set:t=>{$t=t,queueMicrotask(Jo)}};var $e={layout:0,mainThread:0,waapi:0};var kn=t=>e=>typeof e=="string"&&e.startsWith(t),zt=kn("--"),Qo=kn("var(--"),ze=t=>Qo(t)?ea.test(t.split("/*")[0].trim()):!1,ea=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function Gr(t){return typeof t!="string"?!1:t.split("/*")[0].includes("var(--")}var ie={test:t=>typeof t=="number",parse:parseFloat,transform:t=>t},me={...ie,transform:t=>U(0,1,t)},yt={...ie,default:1};var ve=t=>Math.round(t*1e5)/1e5;var Ue=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Bn(t){return t==null}var Kn=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu;var Ye=(t,e)=>r=>!!(typeof r=="string"&&Kn.test(r)&&r.startsWith(t)||e&&!Bn(r)&&Object.prototype.hasOwnProperty.call(r,e)),Ut=(t,e,r)=>n=>{if(typeof n!="string")return n;let[i,a,o,s]=n.match(Ue);return{[t]:parseFloat(i),[e]:parseFloat(a),[r]:parseFloat(o),alpha:s!==void 0?parseFloat(s):1}};var ta=t=>U(0,255,t),jr={...ie,transform:t=>Math.round(ta(t))},oe={test:Ye("rgb","red"),parse:Ut("red","green","blue"),transform:({red:t,green:e,blue:r,alpha:n=1})=>"rgba("+jr.transform(t)+", "+jr.transform(e)+", "+jr.transform(r)+", "+ve(me.transform(n))+")"};function ra(t){let e="",r="",n="",i="";return t.length>5?(e=t.substring(1,3),r=t.substring(3,5),n=t.substring(5,7),i=t.substring(7,9)):(e=t.substring(1,2),r=t.substring(2,3),n=t.substring(3,4),i=t.substring(4,5),e+=e,r+=r,n+=n,i+=i),{red:parseInt(e,16),green:parseInt(r,16),blue:parseInt(n,16),alpha:i?parseInt(i,16)/255:1}}var bt={test:Ye("#"),parse:ra,transform:oe.transform};var xt=t=>({test:e=>typeof e=="string"&&e.endsWith(t)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${t}`}),ae=xt("deg"),Te=xt("%"),h=xt("px"),Ln=xt("vh"),Gn=xt("vw"),_r={...Te,parse:t=>Te.parse(t)/100,transform:t=>Te.transform(t*100)};var Se={test:Ye("hsl","hue"),parse:Ut("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:r,alpha:n=1})=>"hsla("+Math.round(t)+", "+Te.transform(ve(e))+", "+Te.transform(ve(r))+", "+ve(me.transform(n))+")"};var L={test:t=>oe.test(t)||bt.test(t)||Se.test(t),parse:t=>oe.test(t)?oe.parse(t):Se.test(t)?Se.parse(t):bt.parse(t),transform:t=>typeof t=="string"?t:t.hasOwnProperty("red")?oe.transform(t):Se.transform(t),getAnimatableNone:t=>{let e=L.parse(t);return e.alpha=0,L.transform(e)}};var jn=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function na(t){return isNaN(t)&&typeof t=="string"&&(t.match(Ue)?.length||0)+(t.match(jn)?.length||0)>0}var Wn="number",$n="color",ia="var",oa="var(",_n="${}",aa=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Ne(t){let e=t.toString(),r=[],n={color:[],number:[],var:[]},i=[],a=0,s=e.replace(aa,l=>(L.test(l)?(n.color.push(a),i.push($n),r.push(L.parse(l))):l.startsWith(oa)?(n.var.push(a),i.push(ia),r.push(l)):(n.number.push(a),i.push(Wn),r.push(parseFloat(l))),++a,_n)).split(_n);return{values:r,split:s,indexes:n,types:i}}function zn(t){return Ne(t).values}function Un(t){let{split:e,types:r}=Ne(t),n=e.length;return i=>{let a="";for(let o=0;o<n;o++)if(a+=e[o],i[o]!==void 0){let s=r[o];s===Wn?a+=ve(i[o]):s===$n?a+=L.transform(i[o]):a+=i[o]}return a}}var sa=t=>typeof t=="number"?0:L.test(t)?L.getAnimatableNone(t):t;function la(t){let e=zn(t);return Un(t)(e.map(sa))}var H={test:na,parse:zn,createTransformer:Un,getAnimatableNone:la};function Wr(t,e,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?t+(e-t)*6*r:r<1/2?e:r<2/3?t+(e-t)*(2/3-r)*6:t}function Yn({hue:t,saturation:e,lightness:r,alpha:n}){t/=360,e/=100,r/=100;let i=0,a=0,o=0;if(!e)i=a=o=r;else{let s=r<.5?r*(1+e):r+e-r*e,l=2*r-s;i=Wr(l,s,t+1/3),a=Wr(l,s,t),o=Wr(l,s,t-1/3)}return{red:Math.round(i*255),green:Math.round(a*255),blue:Math.round(o*255),alpha:n}}function qe(t,e){return r=>r>0?e:t}var te=(t,e,r)=>t+(e-t)*r;var $r=(t,e,r)=>{let n=t*t,i=r*(e*e-n)+n;return i<0?0:Math.sqrt(i)},ua=[bt,oe,Se],ca=t=>ua.find(e=>e.test(t));function qn(t){let e=ca(t);if(fe(!!e,`'${t}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!e)return!1;let r=e.parse(t);return e===Se&&(r=Yn(r)),r}var zr=(t,e)=>{let r=qn(t),n=qn(e);if(!r||!n)return qe(t,e);let i={...r};return a=>(i.red=$r(r.red,n.red,a),i.green=$r(r.green,n.green,a),i.blue=$r(r.blue,n.blue,a),i.alpha=te(r.alpha,n.alpha,a),oe.transform(i))};var Yt=new Set(["none","hidden"]);function Hn(t,e){return Yt.has(t)?r=>r<=0?t:e:r=>r>=1?e:t}function fa(t,e){return r=>te(t,e,r)}function qt(t){return typeof t=="number"?fa:typeof t=="string"?ze(t)?qe:L.test(t)?zr:da:Array.isArray(t)?Xn:typeof t=="object"?L.test(t)?zr:ma:qe}function Xn(t,e){let r=[...t],n=r.length,i=t.map((a,o)=>qt(a)(a,e[o]));return a=>{for(let o=0;o<n;o++)r[o]=i[o](a);return r}}function ma(t,e){let r={...t,...e},n={};for(let i in r)t[i]!==void 0&&e[i]!==void 0&&(n[i]=qt(t[i])(t[i],e[i]));return i=>{for(let a in n)r[a]=n[a](i);return r}}function pa(t,e){let r=[],n={color:0,var:0,number:0};for(let i=0;i<e.values.length;i++){let a=e.types[i],o=t.indexes[a][n[a]],s=t.values[o]??0;r[i]=s,n[a]++}return r}var da=(t,e)=>{let r=H.createTransformer(e),n=Ne(t),i=Ne(e);return n.indexes.var.length===i.indexes.var.length&&n.indexes.color.length===i.indexes.color.length&&n.indexes.number.length>=i.indexes.number.length?Yt.has(t)&&!i.values.length||Yt.has(e)&&!n.values.length?Hn(t,e):Ce(Xn(pa(n,i),i.values),r):(fe(!0,`Complex values '${t}' and '${e}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`,"complex-values-different"),qe(t,e))};function Ht(t,e,r){return typeof t=="number"&&typeof e=="number"&&typeof r=="number"?te(t,e,r):qt(t)(t,e)}var Zn=t=>{let e=({timestamp:r})=>t(r);return{start:(r=!0)=>q.update(e,r),stop:()=>gt(e),now:()=>We.isProcessing?We.timestamp:G.now()}};var Xt=(t,e,r=10)=>{let n="",i=Math.max(Math.round(e/r),2);for(let a=0;a<i;a++)n+=Math.round(t(a/(i-1))*1e4)/1e4+", ";return`linear(${n.substring(0,n.length-2)})`};function He(t){let e=0,r=50,n=t.next(e);for(;!n.done&&e<2e4;)e+=r,n=t.next(e);return e>=2e4?1/0:e}function vt(t,e=100,r){let n=r({...t,keyframes:[0,e]}),i=Math.min(He(n),2e4);return{type:"keyframes",ease:a=>n.next(i*a).value/e,duration:z(i)}}var ha=5;function Zt(t,e,r){let n=Math.max(e-ha,0);return at(r-t(n),e-n)}var B={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1};var Yr=.001;function Jn({duration:t=B.duration,bounce:e=B.bounce,velocity:r=B.velocity,mass:n=B.mass}){let i,a;fe(t<=$(B.maxDuration),"Spring duration must be 10 seconds or less","spring-duration-limit");let o=1-e;o=U(B.minDamping,B.maxDamping,o),t=U(B.minDuration,B.maxDuration,z(t)),o<1?(i=f=>{let u=f*o,c=u*t,d=u-r,y=Jt(f,o),v=Math.exp(-c);return Yr-d/y*v},a=f=>{let c=f*o*t,d=c*r+r,y=Math.pow(o,2)*Math.pow(f,2)*t,v=Math.exp(-c),b=Jt(Math.pow(f,2),o);return(-i(f)+Yr>0?-1:1)*((d-y)*v)/b}):(i=f=>{let u=Math.exp(-f*t),c=(f-r)*t+1;return-Yr+u*c},a=f=>{let u=Math.exp(-f*t),c=(r-f)*(t*t);return u*c});let s=5/t,l=ya(i,a,s);if(t=$(t),isNaN(l))return{stiffness:B.stiffness,damping:B.damping,duration:t};{let f=Math.pow(l,2)*n;return{stiffness:f,damping:o*2*Math.sqrt(n*f),duration:t}}}var ga=12;function ya(t,e,r){let n=r;for(let i=1;i<ga;i++)n=n-t(n)/e(n);return n}function Jt(t,e){return t*Math.sqrt(1-e*e)}var ba=["duration","bounce"],xa=["stiffness","damping","mass"];function Qn(t,e){return e.some(r=>t[r]!==void 0)}function va(t){let e={velocity:B.velocity,stiffness:B.stiffness,damping:B.damping,mass:B.mass,isResolvedFromDuration:!1,...t};if(!Qn(t,xa)&&Qn(t,ba))if(t.visualDuration){let r=t.visualDuration,n=2*Math.PI/(r*1.2),i=n*n,a=2*U(.05,1,1-(t.bounce||0))*Math.sqrt(i);e={...e,mass:B.mass,stiffness:i,damping:a}}else{let r=Jn(t);e={...e,...r,mass:B.mass},e.isResolvedFromDuration=!0}return e}function pe(t=B.visualDuration,e=B.bounce){let r=typeof t!="object"?{visualDuration:t,keyframes:[0,1],bounce:e}:t,{restSpeed:n,restDelta:i}=r,a=r.keyframes[0],o=r.keyframes[r.keyframes.length-1],s={done:!1,value:a},{stiffness:l,damping:f,mass:u,duration:c,velocity:d,isResolvedFromDuration:y}=va({...r,velocity:-z(r.velocity||0)}),v=d||0,b=f/(2*Math.sqrt(l*u)),D=o-a,w=z(Math.sqrt(l/u)),S=Math.abs(D)<5;n||(n=S?B.restSpeed.granular:B.restSpeed.default),i||(i=S?B.restDelta.granular:B.restDelta.default);let C;if(b<1){let x=Jt(w,b);C=F=>{let k=Math.exp(-b*w*F);return o-k*((v+b*w*D)/x*Math.sin(x*F)+D*Math.cos(x*F))}}else if(b===1)C=x=>o-Math.exp(-w*x)*(D+(v+w*D)*x);else{let x=w*Math.sqrt(b*b-1);C=F=>{let k=Math.exp(-b*w*F),E=Math.min(x*F,300);return o-k*((v+b*w*D)*Math.sinh(E)+x*D*Math.cosh(E))/x}}let A={calculatedDuration:y&&c||null,next:x=>{let F=C(x);if(y)s.done=x>=c;else{let k=x===0?v:0;b<1&&(k=x===0?$(v):Zt(C,x,F));let E=Math.abs(k)<=n,I=Math.abs(o-F)<=i;s.done=E&&I}return s.value=s.done?o:F,s},toString:()=>{let x=Math.min(He(A),2e4),F=Xt(k=>A.next(x*k).value,x,30);return x+"ms "+F},toTransition:()=>{}};return A}pe.applyToOptions=t=>{let e=vt(t,100,pe);return t.ease=e.ease,t.duration=$(e.duration),t.type="keyframes",t};function Tt({keyframes:t,velocity:e=0,power:r=.8,timeConstant:n=325,bounceDamping:i=10,bounceStiffness:a=500,modifyTarget:o,min:s,max:l,restDelta:f=.5,restSpeed:u}){let c=t[0],d={done:!1,value:c},y=E=>s!==void 0&&E<s||l!==void 0&&E>l,v=E=>s===void 0?l:l===void 0||Math.abs(s-E)<Math.abs(l-E)?s:l,b=r*e,D=c+b,w=o===void 0?D:o(D);w!==D&&(b=w-c);let S=E=>-b*Math.exp(-E/n),C=E=>w+S(E),A=E=>{let I=S(E),j=C(E);d.done=Math.abs(I)<=f,d.value=d.done?w:j},x,F,k=E=>{y(d.value)&&(x=E,F=pe({keyframes:[d.value,v(d.value)],velocity:Zt(C,E,d.value),damping:i,stiffness:a,restDelta:f,restSpeed:u}))};return k(0),{calculatedDuration:null,next:E=>{let I=!1;return!F&&x===void 0&&(I=!0,A(E),k(E)),x!==void 0&&E>=x?F.next(E-x):(!I&&A(E),d)}}}function Ta(t,e,r){let n=[],i=r||Y.mix||Ht,a=t.length-1;for(let o=0;o<a;o++){let s=i(t[o],t[o+1]);if(e){let l=Array.isArray(e)?e[o]||ee:e;s=Ce(l,s)}n.push(s)}return n}function ei(t,e,{clamp:r=!0,ease:n,mixer:i}={}){let a=t.length;if(Z(a===e.length,"Both input and output ranges must be the same length","range-length"),a===1)return()=>e[0];if(a===2&&e[0]===e[1])return()=>e[1];let o=t[0]===t[1];t[0]>t[a-1]&&(t=[...t].reverse(),e=[...e].reverse());let s=Ta(e,n,i),l=s.length,f=u=>{if(o&&u<t[0])return e[0];let c=0;if(l>1)for(;c<t.length-2&&!(u<t[c+1]);c++);let d=Fe(t[c],t[c+1],u);return s[c](d)};return r?u=>f(U(t[0],t[a-1],u)):f}function St(t,e){let r=t[t.length-1];for(let n=1;n<=e;n++){let i=Fe(0,e,n);t.push(te(r,1,i))}}function At(t){let e=[0];return St(e,t.length-1),e}function ti(t,e){return t.map(r=>r*e)}function Sa(t,e){return t.map(()=>e||ft).splice(0,t.length-1)}function Oe({duration:t=300,keyframes:e,times:r,ease:n="easeInOut"}){let i=mt(n)?n.map(je):je(n),a={done:!1,value:e[0]},o=ti(r&&r.length===e.length?r:At(e),t),s=ei(o,e,{ease:Array.isArray(i)?i:Sa(e,i)});return{calculatedDuration:t,next:l=>(a.value=s(l),a.done=l>=t,a)}}var Aa=t=>t!==null;function Xe(t,{repeat:e,repeatType:r="loop"},n,i=1){let a=t.filter(Aa),s=i<0||e&&r!=="loop"&&e%2===1?0:a.length-1;return!s||n===void 0?a[s]:n}var Va={decay:Tt,inertia:Tt,tween:Oe,keyframes:Oe,spring:pe};function Qt(t){typeof t.type=="string"&&(t.type=Va[t.type])}var Ae=class{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(e=>{this.resolve=e})}notifyFinished(){this.resolve()}then(e,r){return this.finished.then(e,r)}};var wa=t=>t/100,Ve=class extends Ae{constructor(e){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{let{motionValue:r}=this.options;r&&r.updatedAt!==G.now()&&this.tick(G.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},$e.mainThread++,this.options=e,this.initAnimation(),this.play(),e.autoplay===!1&&this.pause()}initAnimation(){let{options:e}=this;Qt(e);let{type:r=Oe,repeat:n=0,repeatDelay:i=0,repeatType:a,velocity:o=0}=e,{keyframes:s}=e,l=r||Oe;l!==Oe&&typeof s[0]!="number"&&(this.mixKeyframes=Ce(wa,Ht(s[0],s[1])),s=[0,100]);let f=l({...e,keyframes:s});a==="mirror"&&(this.mirroredGenerator=l({...e,keyframes:[...s].reverse(),velocity:-o})),f.calculatedDuration===null&&(f.calculatedDuration=He(f));let{calculatedDuration:u}=f;this.calculatedDuration=u,this.resolvedDuration=u+i,this.totalDuration=this.resolvedDuration*(n+1)-i,this.generator=f}updateTime(e){let r=Math.round(e-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=r}tick(e,r=!1){let{generator:n,totalDuration:i,mixKeyframes:a,mirroredGenerator:o,resolvedDuration:s,calculatedDuration:l}=this;if(this.startTime===null)return n.next(0);let{delay:f=0,keyframes:u,repeat:c,repeatType:d,repeatDelay:y,type:v,onUpdate:b,finalKeyframe:D}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-i/this.speed,this.startTime)),r?this.currentTime=e:this.updateTime(e);let w=this.currentTime-f*(this.playbackSpeed>=0?1:-1),S=this.playbackSpeed>=0?w<0:w>i;this.currentTime=Math.max(w,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=i);let C=this.currentTime,A=n;if(c){let E=Math.min(this.currentTime,i)/s,I=Math.floor(E),j=E%1;!j&&E>=1&&(j=1),j===1&&I--,I=Math.min(I,c+1),I%2&&(d==="reverse"?(j=1-j,y&&(j-=y/s)):d==="mirror"&&(A=o)),C=U(0,1,j)*s}let x=S?{done:!1,value:u[0]}:A.next(C);a&&(x.value=a(x.value));let{done:F}=x;!S&&l!==null&&(F=this.playbackSpeed>=0?this.currentTime>=i:this.currentTime<=0);let k=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&F);return k&&v!==Tt&&(x.value=Xe(u,this.options,D,this.speed)),b&&b(x.value),k&&this.finish(),x}then(e,r){return this.finished.then(e,r)}get duration(){return z(this.calculatedDuration)}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+z(e)}get time(){return z(this.currentTime)}set time(e){e=$(e),this.currentTime=e,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),this.driver?.start(!1)}get speed(){return this.playbackSpeed}set speed(e){this.updateTime(G.now());let r=this.playbackSpeed!==e;this.playbackSpeed=e,r&&(this.time=z(this.currentTime))}play(){if(this.isStopped)return;let{driver:e=Zn,startTime:r}=this.options;this.driver||(this.driver=e(i=>this.tick(i))),this.options.onPlay?.();let n=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=n):this.holdTime!==null?this.startTime=n-this.holdTime:this.startTime||(this.startTime=r??n),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(G.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null,$e.mainThread--}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),e.observe(this)}};function ri(t){for(let e=1;e<t.length;e++)t[e]??(t[e]=t[e-1])}var Pe=t=>t*180/Math.PI,qr=t=>{let e=Pe(Math.atan2(t[1],t[0]));return Hr(e)},Ea={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:t=>(Math.abs(t[0])+Math.abs(t[3]))/2,rotate:qr,rotateZ:qr,skewX:t=>Pe(Math.atan(t[1])),skewY:t=>Pe(Math.atan(t[2])),skew:t=>(Math.abs(t[1])+Math.abs(t[2]))/2},Hr=t=>(t=t%360,t<0&&(t+=360),t),ni=qr,ii=t=>Math.sqrt(t[0]*t[0]+t[1]*t[1]),oi=t=>Math.sqrt(t[4]*t[4]+t[5]*t[5]),Ma={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:ii,scaleY:oi,scale:t=>(ii(t)+oi(t))/2,rotateX:t=>Hr(Pe(Math.atan2(t[6],t[5]))),rotateY:t=>Hr(Pe(Math.atan2(-t[2],t[0]))),rotateZ:ni,rotate:ni,skewX:t=>Pe(Math.atan(t[4])),skewY:t=>Pe(Math.atan(t[1])),skew:t=>(Math.abs(t[1])+Math.abs(t[4]))/2};function er(t){return t.includes("scale")?1:0}function tr(t,e){if(!t||t==="none")return er(e);let r=t.match(/^matrix3d\(([-\d.e\s,]+)\)$/u),n,i;if(r)n=Ma,i=r;else{let s=t.match(/^matrix\(([-\d.e\s,]+)\)$/u);n=Ea,i=s}if(!i)return er(e);let a=n[e],o=i[1].split(",").map(Da);return typeof a=="function"?a(o):o[a]}var ai=(t,e)=>{let{transform:r="none"}=getComputedStyle(t);return tr(r,e)};function Da(t){return parseFloat(t.trim())}var se=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],ne=new Set(se);var Xr=t=>t===ie||t===h,Ca=new Set(["x","y","z"]),Fa=se.filter(t=>!Ca.has(t));function si(t){let e=[];return Fa.forEach(r=>{let n=t.getValue(r);n!==void 0&&(e.push([r,n.get()]),n.set(r.startsWith("scale")?1:0))}),e}var de={width:({x:t},{paddingLeft:e="0",paddingRight:r="0"})=>t.max-t.min-parseFloat(e)-parseFloat(r),height:({y:t},{paddingTop:e="0",paddingBottom:r="0"})=>t.max-t.min-parseFloat(e)-parseFloat(r),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:(t,{transform:e})=>tr(e,"x"),y:(t,{transform:e})=>tr(e,"y")};de.translateX=de.x;de.translateY=de.y;var Re=new Set,Zr=!1,Jr=!1,Qr=!1;function li(){if(Jr){let t=Array.from(Re).filter(n=>n.needsMeasurement),e=new Set(t.map(n=>n.element)),r=new Map;e.forEach(n=>{let i=si(n);i.length&&(r.set(n,i),n.render())}),t.forEach(n=>n.measureInitialState()),e.forEach(n=>{n.render();let i=r.get(n);i&&i.forEach(([a,o])=>{n.getValue(a)?.set(o)})}),t.forEach(n=>n.measureEndState()),t.forEach(n=>{n.suspendedScrollY!==void 0&&window.scrollTo(0,n.suspendedScrollY)})}Jr=!1,Zr=!1,Re.forEach(t=>t.complete(Qr)),Re.clear()}function ui(){Re.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(Jr=!0)})}function ci(){Qr=!0,ui(),li(),Qr=!1}var we=class{constructor(e,r,n,i,a,o=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=r,this.name=n,this.motionValue=i,this.element=a,this.isAsync=o}scheduleResolve(){this.state="scheduled",this.isAsync?(Re.add(this),Zr||(Zr=!0,q.read(ui),q.resolveKeyframes(li))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:e,name:r,element:n,motionValue:i}=this;if(e[0]===null){let a=i?.get(),o=e[e.length-1];if(a!==void 0)e[0]=a;else if(n&&r){let s=n.readValue(r,o);s!=null&&(e[0]=s)}e[0]===void 0&&(e[0]=o),i&&a===void 0&&i.set(e[0])}ri(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),Re.delete(this)}cancel(){this.state==="scheduled"&&(Re.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}};var fi=t=>t.startsWith("--");function mi(t,e,r){fi(e)?t.style.setProperty(e,r):t.style[e]=r}var pi=De(()=>window.ScrollTimeline!==void 0);var di={};function hi(t,e){let r=De(t);return()=>di[e]??r()}var rr=hi(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing");var ke=([t,e,r,n])=>`cubic-bezier(${t}, ${e}, ${r}, ${n})`;var en={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:ke([0,.65,.55,1]),circOut:ke([.55,0,1,.45]),backIn:ke([.31,.01,.66,-.59]),backOut:ke([.33,1.53,.69,.99])};function tn(t,e){if(t)return typeof t=="function"?rr()?Xt(t,e):"ease-out":dt(t)?ke(t):Array.isArray(t)?t.map(r=>tn(r,e)||en.easeOut):en[t]}function gi(t,e,r,{delay:n=0,duration:i=300,repeat:a=0,repeatType:o="loop",ease:s="easeOut",times:l}={},f=void 0){let u={[e]:r};l&&(u.offset=l);let c=tn(s,i);Array.isArray(c)&&(u.easing=c),_e.value&&$e.waapi++;let d={delay:n,duration:i,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:a+1,direction:o==="reverse"?"alternate":"normal"};f&&(d.pseudoElement=f);let y=t.animate(u,d);return _e.value&&y.finished.finally(()=>{$e.waapi--}),y}function Be(t){return typeof t=="function"&&"applyToOptions"in t}function yi({type:t,...e}){return Be(t)&&rr()?t.applyToOptions(e):(e.duration??(e.duration=300),e.ease??(e.ease="easeOut"),e)}var nr=class extends Ae{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!e)return;let{element:r,name:n,keyframes:i,pseudoElement:a,allowFlatten:o=!1,finalKeyframe:s,onComplete:l}=e;this.isPseudoElement=!!a,this.allowFlatten=o,this.options=e,Z(typeof e.type!="string",`Mini animate() doesn't support "type" as a string.`,"mini-spring");let f=yi(e);this.animation=gi(r,n,i,f,a),f.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!a){let u=Xe(i,this.options,s,this.speed);this.updateMotionValue?this.updateMotionValue(u):mi(r,n,u),this.animation.cancel()}l?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:e}=this;e==="idle"||e==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){this.isPseudoElement||this.animation.commitStyles?.()}get duration(){let e=this.animation.effect?.getComputedTiming?.().duration||0;return z(Number(e))}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+z(e)}get time(){return z(Number(this.animation.currentTime)||0)}set time(e){this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=$(e)}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(e){this.manualStartTime=this.animation.startTime=e}attachTimeline({timeline:e,observe:r}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,e&&pi()?(this.animation.timeline=e,ee):r(this)}};var bi={anticipate:lt,backInOut:st,circInOut:ct};function Ia(t){return t in bi}function xi(t){typeof t.ease=="string"&&Ia(t.ease)&&(t.ease=bi[t.ease])}var rn=10,ir=class extends nr{constructor(e){xi(e),Qt(e),super(e),e.startTime!==void 0&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){let{motionValue:r,onUpdate:n,onComplete:i,element:a,...o}=this.options;if(!r)return;if(e!==void 0){r.set(e);return}let s=new Ve({...o,autoplay:!1}),l=Math.max(rn,G.now()-this.startTime),f=U(0,rn,l-rn);r.setWithVelocity(s.sample(Math.max(0,l-f)).value,s.sample(l).value,f),s.stop()}};var nn=(t,e)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(H.test(t)||t==="0")&&!t.startsWith("url("));function Na(t){let e=t[0];if(t.length===1)return!0;for(let r=0;r<t.length;r++)if(t[r]!==e)return!0}function vi(t,e,r,n){let i=t[0];if(i===null)return!1;if(e==="display"||e==="visibility")return!0;let a=t[t.length-1],o=nn(i,e),s=nn(a,e);return fe(o===s,`You are trying to animate ${e} from "${i}" to "${a}". "${o?a:i}" is not an animatable value.`,"value-not-animatable"),!o||!s?!1:Na(t)||(r==="spring"||Be(r))&&n}function Vt(t){t.duration=0,t.type="keyframes"}var Oa=new Set(["opacity","clipPath","filter","transform"]),Pa=De(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function Ti(t){let{motionValue:e,name:r,repeatDelay:n,repeatType:i,damping:a,type:o}=t;if(!(e?.owner?.current instanceof HTMLElement))return!1;let{onUpdate:l,transformTemplate:f}=e.owner.getProps();return Pa()&&r&&Oa.has(r)&&(r!=="transform"||!f)&&!l&&!n&&i!=="mirror"&&a!==0&&o!=="inertia"}var Ra=40,or=class extends Ae{constructor({autoplay:e=!0,delay:r=0,type:n="keyframes",repeat:i=0,repeatDelay:a=0,repeatType:o="loop",keyframes:s,name:l,motionValue:f,element:u,...c}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=G.now();let d={autoplay:e,delay:r,type:n,repeat:i,repeatDelay:a,repeatType:o,name:l,motionValue:f,element:u,...c},y=u?.KeyframeResolver||we;this.keyframeResolver=new y(s,(v,b,D)=>this.onKeyframesResolved(v,b,d,!D),l,f,u),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(e,r,n,i){this.keyframeResolver=void 0;let{name:a,type:o,velocity:s,delay:l,isHandoff:f,onUpdate:u}=n;this.resolvedAt=G.now(),vi(e,a,o,s)||((Y.instantAnimations||!l)&&u?.(Xe(e,n,r)),e[0]=e[e.length-1],Vt(n),n.repeat=0);let d={startTime:i?this.resolvedAt?this.resolvedAt-this.createdAt>Ra?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:r,...n,keyframes:e},y=!f&&Ti(d),v=d.motionValue?.owner?.current,b=y?new ir({...d,element:v}):new Ve(d);b.finished.then(()=>{this.notifyFinished()}).catch(ee),this.pendingTimeline&&(this.stopTimeline=b.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=b}get finished(){return this._animation?this.animation.finished:this._finished}then(e,r){return this.finished.finally(e).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),ci()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}};var ar=class{constructor(e){this.stop=()=>this.runAll("stop"),this.animations=e.filter(Boolean)}get finished(){return Promise.all(this.animations.map(e=>e.finished))}getAll(e){return this.animations[0][e]}setAll(e,r){for(let n=0;n<this.animations.length;n++)this.animations[n][e]=r}attachTimeline(e){let r=this.animations.map(n=>n.attachTimeline(e));return()=>{r.forEach((n,i)=>{n&&n(),this.animations[i].stop()})}}get time(){return this.getAll("time")}set time(e){this.setAll("time",e)}get speed(){return this.getAll("speed")}set speed(e){this.setAll("speed",e)}get state(){return this.getAll("state")}get startTime(){return this.getAll("startTime")}get duration(){return Si(this.animations,"duration")}get iterationDuration(){return Si(this.animations,"iterationDuration")}runAll(e){this.animations.forEach(r=>r[e]())}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}};function Si(t,e){let r=0;for(let n=0;n<t.length;n++){let i=t[n][e];i!==null&&i>r&&(r=i)}return r}var wt=class extends ar{then(e,r){return this.finished.finally(e).then(()=>{})}};var ka=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Ba(t){let e=ka.exec(t);if(!e)return[,];let[,r,n,i]=e;return[`--${r??n}`,i]}var Ka=4;function on(t,e,r=1){Z(r<=Ka,`Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`,"max-css-var-depth");let[n,i]=Ba(t);if(!n)return;let a=window.getComputedStyle(e).getPropertyValue(n);if(a){let o=a.trim();return it(o)?parseFloat(o):o}return ze(i)?on(i,e,r+1):i}var La={type:"spring",stiffness:500,damping:25,restSpeed:10},Ga=t=>({type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restSpeed:10}),ja={type:"keyframes",duration:.8},_a={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Ai=(t,{keyframes:e})=>e.length>2?ja:ne.has(t)?t.startsWith("scale")?Ga(e[1]):La:_a;var Wa=t=>t!==null;function Vi(t,{repeat:e,repeatType:r="loop"},n){let i=t.filter(Wa),a=e&&r!=="loop"&&e%2===1?0:i.length-1;return!a||n===void 0?i[a]:n}function sr(t,e){return t?.[e]??t?.default??t}function wi({when:t,delay:e,delayChildren:r,staggerChildren:n,staggerDirection:i,repeat:a,repeatType:o,repeatDelay:s,from:l,elapsed:f,...u}){return!!Object.keys(u).length}var lr=(t,e,r,n={},i,a)=>o=>{let s=sr(n,t)||{},l=s.delay||n.delay||0,{elapsed:f=0}=n;f=f-$(l);let u={keyframes:Array.isArray(r)?r:[null,r],ease:"easeOut",velocity:e.getVelocity(),...s,delay:-f,onUpdate:d=>{e.set(d),s.onUpdate&&s.onUpdate(d)},onComplete:()=>{o(),s.onComplete&&s.onComplete()},name:t,motionValue:e,element:a?void 0:i};wi(s)||Object.assign(u,Ai(t,u)),u.duration&&(u.duration=$(u.duration)),u.repeatDelay&&(u.repeatDelay=$(u.repeatDelay)),u.from!==void 0&&(u.keyframes[0]=u.from);let c=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(Vt(u),u.delay===0&&(c=!0)),(Y.instantAnimations||Y.skipAnimations)&&(c=!0,Vt(u),u.delay=0),u.allowFlatten=!s.type&&!s.ease,c&&!a&&e.get()!==void 0){let d=Vi(u.keyframes,s);if(d!==void 0){q.update(()=>{u.onUpdate(d),u.onComplete()});return}}return s.isSync?new Ve(u):new or(u)};function Ei(t){let e=[{},{}];return t?.values.forEach((r,n)=>{e[0][n]=r.get(),e[1][n]=r.getVelocity()}),e}function ur(t,e,r,n){if(typeof e=="function"){let[i,a]=Ei(n);e=e(r!==void 0?r:t.custom,i,a)}if(typeof e=="string"&&(e=t.variants&&t.variants[e]),typeof e=="function"){let[i,a]=Ei(n);e=e(r!==void 0?r:t.custom,i,a)}return e}function Mi(t,e,r){let n=t.getProps();return ur(n,e,r!==void 0?r:n.custom,t)}var cr=new Set(["width","height","top","left","right","bottom",...se]);var Di=30,$a=t=>!isNaN(parseFloat(t)),Ci={current:void 0},an=class{constructor(e,r={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=n=>{let i=G.now();if(this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(n),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(let a of this.dependents)a.dirty()},this.hasAnimated=!1,this.setCurrent(e),this.owner=r.owner}setCurrent(e){this.current=e,this.updatedAt=G.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=$a(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,r){this.events[e]||(this.events[e]=new Ie);let n=this.events[e].add(r);return e==="change"?()=>{n(),q.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(let e in this.events)this.events[e].clear()}attach(e,r){this.passiveEffect=e,this.stopPassiveEffect=r}set(e){this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e)}setWithVelocity(e,r,n){this.set(r),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-n}jump(e,r=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,r&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(e){this.dependents||(this.dependents=new Set),this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return Ci.current&&Ci.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let e=G.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>Di)return 0;let r=Math.min(this.updatedAt-this.prevUpdatedAt,Di);return at(parseFloat(this.current)-parseFloat(this.prevFrameValue),r)}start(e){return this.stop(),new Promise(r=>{this.hasAnimated=!0,this.animation=e(r),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}};function he(t,e){return new an(t,e)}var Fi=t=>Array.isArray(t);function za(t,e,r){t.hasValue(e)?t.getValue(e).set(r):t.addValue(e,he(r))}function Ua(t){return Fi(t)?t[t.length-1]||0:t}function Ii(t,e){let r=Mi(t,e),{transitionEnd:n={},transition:i={},...a}=r||{};a={...a,...n};for(let o in a){let s=Ua(a[o]);za(t,o,s)}}var K=t=>!!(t&&t.getVelocity);function Ni(t){return!!(K(t)&&t.add)}function Oi(t,e){let r=t.getValue("willChange");if(Ni(r))return r.add(e);if(!r&&Y.WillChange){let n=new Y.WillChange("auto");t.addValue("willChange",n),n.add(e)}}function Ze(t){return t.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`)}var Ya="framerAppearId",Pi="data-"+Ze(Ya);function Ri(t){return t.props[Pi]}function qa({protectedKeys:t,needsAnimating:e},r){let n=t.hasOwnProperty(r)&&e[r]!==!0;return e[r]=!1,n}function sn(t,e,{delay:r=0,transitionOverride:n,type:i}={}){let{transition:a=t.getDefaultTransition(),transitionEnd:o,...s}=e;n&&(a=n);let l=[],f=i&&t.animationState&&t.animationState.getState()[i];for(let u in s){let c=t.getValue(u,t.latestValues[u]??null),d=s[u];if(d===void 0||f&&qa(f,u))continue;let y={delay:r,...sr(a||{},u)},v=c.get();if(v!==void 0&&!c.isAnimating&&!Array.isArray(d)&&d===v&&!y.velocity)continue;let b=!1;if(window.MotionHandoffAnimation){let w=Ri(t);if(w){let S=window.MotionHandoffAnimation(w,u,q);S!==null&&(y.startTime=S,b=!0)}}Oi(t,u),c.start(lr(u,c,d,t.shouldReduceMotion&&cr.has(u)?{type:!1}:y,t,b));let D=c.animation;D&&l.push(D)}return o&&Promise.all(l).then(()=>{q.update(()=>{o&&Ii(t,o)})}),l}var ki={test:t=>t==="auto",parse:t=>t};var fr=t=>e=>e.test(t);var ln=[ie,h,Te,ae,Gn,Ln,ki],un=t=>ln.find(fr(t));function Bi(t){return typeof t=="number"?t===0:t!==null?t==="none"||t==="0"||ot(t):!0}var Ha=new Set(["brightness","contrast","saturate","opacity"]);function Xa(t){let[e,r]=t.slice(0,-1).split("(");if(e==="drop-shadow")return t;let[n]=r.match(Ue)||[];if(!n)return t;let i=r.replace(n,""),a=Ha.has(e)?1:0;return n!==r&&(a*=100),e+"("+a+i+")"}var Za=/\b([a-z-]*)\(.*?\)/gu,Et={...H,getAnimatableNone:t=>{let e=t.match(Za);return e?e.map(Xa).join(" "):t}};var cn={...ie,transform:Math.round};var Ki={rotate:ae,rotateX:ae,rotateY:ae,rotateZ:ae,scale:yt,scaleX:yt,scaleY:yt,scaleZ:yt,skew:ae,skewX:ae,skewY:ae,distance:h,translateX:h,translateY:h,translateZ:h,x:h,y:h,z:h,perspective:h,transformPerspective:h,opacity:me,originX:_r,originY:_r,originZ:h};var Je={borderWidth:h,borderTopWidth:h,borderRightWidth:h,borderBottomWidth:h,borderLeftWidth:h,borderRadius:h,borderTopLeftRadius:h,borderTopRightRadius:h,borderBottomRightRadius:h,borderBottomLeftRadius:h,width:h,maxWidth:h,height:h,maxHeight:h,top:h,right:h,bottom:h,left:h,inset:h,insetBlock:h,insetBlockStart:h,insetBlockEnd:h,insetInline:h,insetInlineStart:h,insetInlineEnd:h,padding:h,paddingTop:h,paddingRight:h,paddingBottom:h,paddingLeft:h,paddingBlock:h,paddingBlockStart:h,paddingBlockEnd:h,paddingInline:h,paddingInlineStart:h,paddingInlineEnd:h,margin:h,marginTop:h,marginRight:h,marginBottom:h,marginLeft:h,marginBlock:h,marginBlockStart:h,marginBlockEnd:h,marginInline:h,marginInlineStart:h,marginInlineEnd:h,fontSize:h,backgroundPositionX:h,backgroundPositionY:h,...Ki,zIndex:cn,fillOpacity:me,strokeOpacity:me,numOctaves:cn};var Ja={...Je,color:L,backgroundColor:L,outlineColor:L,fill:L,stroke:L,borderColor:L,borderTopColor:L,borderRightColor:L,borderBottomColor:L,borderLeftColor:L,filter:Et,WebkitFilter:Et},mr=t=>Ja[t];function pr(t,e){let r=mr(t);return r!==Et&&(r=H),r.getAnimatableNone?r.getAnimatableNone(e):void 0}var Qa=new Set(["auto","none","0"]);function Li(t,e,r){let n=0,i;for(;n<t.length&&!i;){let a=t[n];typeof a=="string"&&!Qa.has(a)&&Ne(a).values.length&&(i=t[n]),n++}if(i&&r)for(let a of e)t[a]=pr(r,i)}var dr=class extends we{constructor(e,r,n,i,a){super(e,r,n,i,a,!0)}readKeyframes(){let{unresolvedKeyframes:e,element:r,name:n}=this;if(!r||!r.current)return;super.readKeyframes();for(let u=0;u<e.length;u++){let c=e[u];if(typeof c=="string"&&(c=c.trim(),ze(c))){let d=on(c,r.current);d!==void 0&&(e[u]=d),u===e.length-1&&(this.finalKeyframe=c)}}if(this.resolveNoneKeyframes(),!cr.has(n)||e.length!==2)return;let[i,a]=e,o=un(i),s=un(a),l=Gr(i),f=Gr(a);if(l!==f&&de[n]){this.needsMeasurement=!0;return}if(o!==s)if(Xr(o)&&Xr(s))for(let u=0;u<e.length;u++){let c=e[u];typeof c=="string"&&(e[u]=parseFloat(c))}else de[n]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){let{unresolvedKeyframes:e,name:r}=this,n=[];for(let i=0;i<e.length;i++)(e[i]===null||Bi(e[i]))&&n.push(i);n.length&&Li(e,n,r)}measureInitialState(){let{element:e,unresolvedKeyframes:r,name:n}=this;if(!e||!e.current)return;n==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=de[n](e.measureViewportBox(),window.getComputedStyle(e.current)),r[0]=this.measuredOrigin;let i=r[r.length-1];i!==void 0&&e.getValue(n,i).jump(i,!1)}measureEndState(){let{element:e,name:r,unresolvedKeyframes:n}=this;if(!e||!e.current)return;let i=e.getValue(r);i&&i.jump(this.measuredOrigin,!1);let a=n.length-1,o=n[a];n[a]=de[r](e.measureViewportBox(),window.getComputedStyle(e.current)),o!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=o),this.removedTransforms?.length&&this.removedTransforms.forEach(([s,l])=>{e.getValue(s).set(l)}),this.resolveNoneKeyframes()}};function fn(t,e,r){if(t==null)return[];if(t instanceof EventTarget)return[t];if(typeof t=="string"){let n=document;e&&(n=e.current);let i=r?.[t]??n.querySelectorAll(t);return i?Array.from(i):[]}return Array.from(t).filter(n=>n!=null)}var hr=(t,e)=>e&&typeof t=="number"?e.transform(t):t;var{schedule:Gi,cancel:Zd}=Wt(queueMicrotask,!1);function Mt(t){return kr(t)&&"ownerSVGElement"in t}function mn(t){return Mt(t)&&t.tagName==="svg"}function ji(t,e){if(t==="first")return 0;{let r=e-1;return t==="last"?r:r/2}}function gr(t=.1,{startDelay:e=0,from:r=0,ease:n}={}){return(i,a)=>{let o=typeof r=="number"?r:ji(r,a),s=Math.abs(o-i),l=t*s;if(n){let f=a*t;l=je(n)(l/f)*f}return e+l}}var es=[...ln,L,H],_i=t=>es.find(fr(t));var Wi=()=>({min:0,max:0}),Qe=()=>({x:Wi(),y:Wi()});var Dt={current:null},yr={current:!1};var ts=typeof window<"u";function $i(){if(yr.current=!0,!!ts)if(window.matchMedia){let t=window.matchMedia("(prefers-reduced-motion)"),e=()=>Dt.current=t.matches;t.addEventListener("change",e),e()}else Dt.current=!1}var ge=new WeakMap;function zi(t){return t!==null&&typeof t=="object"&&typeof t.start=="function"}function Ui(t){return typeof t=="string"||Array.isArray(t)}var rs=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Yi=["initial",...rs];function pn(t){return zi(t.animate)||Yi.some(e=>Ui(t[e]))}function qi(t){return!!(pn(t)||t.variants)}function Hi(t,e,r){for(let n in e){let i=e[n],a=r[n];if(K(i))t.addValue(n,i);else if(K(a))t.addValue(n,he(i,{owner:t}));else if(a!==i)if(t.hasValue(n)){let o=t.getValue(n);o.liveStyle===!0?o.jump(i):o.hasAnimated||o.set(i)}else{let o=t.getStaticValue(n);t.addValue(n,he(o!==void 0?o:i,{owner:t}))}}for(let n in r)e[n]===void 0&&t.removeValue(n);return e}var Xi=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],Zi={};var et=class{scrapeMotionValuesFromProps(e,r,n){return{}}constructor({parent:e,props:r,presenceContext:n,reducedMotionConfig:i,blockInitialAnimation:a,visualState:o},s={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=we,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{let d=G.now();this.renderScheduledAt<d&&(this.renderScheduledAt=d,q.render(this.render,!1,!0))};let{latestValues:l,renderState:f}=o;this.latestValues=l,this.baseTarget={...l},this.initialValues=r.initial?{...l}:{},this.renderState=f,this.parent=e,this.props=r,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=i,this.options=s,this.blockInitialAnimation=!!a,this.isControllingVariants=pn(r),this.isVariantNode=qi(r),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);let{willChange:u,...c}=this.scrapeMotionValuesFromProps(r,{},this);for(let d in c){let y=c[d];l[d]!==void 0&&K(y)&&y.set(l[d])}}mount(e){this.current=e,ge.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((r,n)=>this.bindToMotionValue(n,r)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(yr.current||$i(),this.shouldReduceMotion=Dt.current),this.parent?.addChild(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),gt(this.notifyUpdate),gt(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(let e in this.events)this.events[e].clear();for(let e in this.features){let r=this.features[e];r&&(r.unmount(),r.isMounted=!1)}this.current=null}addChild(e){this.children.add(e),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(e)}removeChild(e){this.children.delete(e),this.enteringChildren&&this.enteringChildren.delete(e)}bindToMotionValue(e,r){this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)();let n=ne.has(e);n&&this.onBindTransform&&this.onBindTransform();let i=r.on("change",o=>{this.latestValues[e]=o,this.props.onUpdate&&q.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()}),a;typeof window<"u"&&window.MotionCheckAppearSync&&(a=window.MotionCheckAppearSync(this,e,r)),this.valueSubscriptions.set(e,()=>{i(),a&&a(),r.owner&&r.stop()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}updateFeatures(){let e="animation";for(e in Zi){let r=Zi[e];if(!r)continue;let{isEnabled:n,Feature:i}=r;if(!this.features[e]&&i&&n(this.props)&&(this.features[e]=new i(this)),this.features[e]){let a=this.features[e];a.isMounted?a.update():(a.mount(),a.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Qe()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,r){this.latestValues[e]=r}update(e,r){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=r;for(let n=0;n<Xi.length;n++){let i=Xi[n];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);let a="on"+i,o=e[a];o&&(this.propEventSubscriptions[i]=this.on(i,o))}this.prevMotionValues=Hi(this,this.scrapeMotionValuesFromProps(e,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(e){let r=this.getClosestVariantNode();if(r)return r.variantChildren&&r.variantChildren.add(e),()=>r.variantChildren.delete(e)}addValue(e,r){let n=this.values.get(e);r!==n&&(n&&this.removeValue(e),this.bindToMotionValue(e,r),this.values.set(e,r),this.latestValues[e]=r.get())}removeValue(e){this.values.delete(e);let r=this.valueSubscriptions.get(e);r&&(r(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,r){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return n===void 0&&r!==void 0&&(n=he(r===null?void 0:r,{owner:this}),this.addValue(e,n)),n}readValue(e,r){let n=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options);return n!=null&&(typeof n=="string"&&(it(n)||ot(n))?n=parseFloat(n):!_i(n)&&H.test(r)&&(n=pr(e,r)),this.setBaseTarget(e,K(n)?n.get():n)),K(n)?n.get():n}setBaseTarget(e,r){this.baseTarget[e]=r}getBaseTarget(e){let{initial:r}=this.props,n;if(typeof r=="string"||typeof r=="object"){let a=ur(this.props,r,this.presenceContext?.custom);a&&(n=a[e])}if(r&&n!==void 0)return n;let i=this.getBaseTargetFromProps(this.props,e);return i!==void 0&&!K(i)?i:this.initialValues[e]!==void 0&&n===void 0?void 0:this.baseTarget[e]}on(e,r){return this.events[e]||(this.events[e]=new Ie),this.events[e].add(r)}notify(e,...r){this.events[e]&&this.events[e].notify(...r)}scheduleRenderMicrotask(){Gi.render(this.render)}};var tt=class extends et{constructor(){super(...arguments),this.KeyframeResolver=dr}sortInstanceNodePosition(e,r){return e.compareDocumentPosition(r)&2?1:-1}getBaseTargetFromProps(e,r){let n=e.style;return n?n[r]:void 0}removeValueFromRenderState(e,{vars:r,style:n}){delete r[e],delete n[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:e}=this.props;K(e)&&(this.childSubscription=e.on("change",r=>{this.current&&(this.current.textContent=`${r}`)}))}};function Ji({top:t,left:e,right:r,bottom:n}){return{x:{min:e,max:r},y:{min:t,max:n}}}function Qi(t,e){if(!e)return t;let r=e({x:t.left,y:t.top}),n=e({x:t.right,y:t.bottom});return{top:r.y,left:r.x,bottom:n.y,right:n.x}}function eo(t,e){return Ji(Qi(t.getBoundingClientRect(),e))}var ns={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},is=se.length;function to(t,e,r){let n="",i=!0;for(let a=0;a<is;a++){let o=se[a],s=t[o];if(s===void 0)continue;let l=!0;if(typeof s=="number")l=s===(o.startsWith("scale")?1:0);else{let f=parseFloat(s);l=o.startsWith("scale")?f===1:f===0}if(!l||r){let f=hr(s,Je[o]);if(!l){i=!1;let u=ns[o]||o;n+=`${u}(${f}) `}r&&(e[o]=f)}}return n=n.trim(),r?n=r(e,i?"":n):i&&(n="none"),n}function br(t,e,r){let{style:n,vars:i,transformOrigin:a}=t,o=!1,s=!1;for(let l in e){let f=e[l];if(ne.has(l)){o=!0;continue}else if(zt(l)){i[l]=f;continue}else{let u=hr(f,Je[l]);l.startsWith("origin")?(s=!0,a[l]=u):n[l]=u}}if(e.transform||(o||r?n.transform=to(e,t.transform,r):n.transform&&(n.transform="none")),s){let{originX:l="50%",originY:f="50%",originZ:u=0}=a;n.transformOrigin=`${l} ${f} ${u}`}}function xr(t,{style:e,vars:r},n,i){let a=t.style,o;for(o in e)a[o]=e[o];i?.applyProjectionStyles(a,n);for(o in r)a.setProperty(o,r[o])}function ro(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}var rt={correct:(t,e)=>{if(!e.target)return t;if(typeof t=="string")if(h.test(t))t=parseFloat(t);else return t;let r=ro(t,e.target.x),n=ro(t,e.target.y);return`${r}% ${n}%`}};var no={correct:(t,{treeScale:e,projectionDelta:r})=>{let n=t,i=H.parse(t);if(i.length>5)return n;let a=H.createTransformer(t),o=typeof i[0]!="number"?1:0,s=r.x.scale*e.x,l=r.y.scale*e.y;i[0+o]/=s,i[1+o]/=l;let f=te(s,l,.5);return typeof i[2+o]=="number"&&(i[2+o]/=f),typeof i[3+o]=="number"&&(i[3+o]/=f),a(i)}};var io={borderRadius:{...rt,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:rt,borderTopRightRadius:rt,borderBottomLeftRadius:rt,borderBottomRightRadius:rt,boxShadow:no};function oo(t,{layout:e,layoutId:r}){return ne.has(t)||t.startsWith("origin")||(e||r!==void 0)&&(!!io[t]||t==="opacity")}function vr(t,e,r){let n=t.style,i=e?.style,a={};if(!n)return a;for(let o in n)(K(n[o])||i&&K(i[o])||oo(o,t)||r?.getValue(o)?.liveStyle!==void 0)&&(a[o]=n[o]);return a}function os(t){return window.getComputedStyle(t)}var Ct=class extends tt{constructor(){super(...arguments),this.type="html",this.renderInstance=xr}readValueFromInstance(e,r){if(ne.has(r))return this.projection?.isProjecting?er(r):ai(e,r);{let n=os(e),i=(zt(r)?n.getPropertyValue(r):n[r])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(e,{transformPagePoint:r}){return eo(e,r)}build(e,r,n){br(e,r,n.transformTemplate)}scrapeMotionValuesFromProps(e,r,n){return vr(e,r,n)}};function as(t,e){return t in e}var Ft=class extends et{constructor(){super(...arguments),this.type="object"}readValueFromInstance(e,r){if(as(r,e)){let n=e[r];if(typeof n=="string"||typeof n=="number")return n}}getBaseTargetFromProps(){}removeValueFromRenderState(e,r){delete r.output[e]}measureInstanceViewportBox(){return Qe()}build(e,r){Object.assign(e.output,r)}renderInstance(e,{output:r}){Object.assign(e,r)}sortInstanceNodePosition(){return 0}};var ss={offset:"stroke-dashoffset",array:"stroke-dasharray"},ls={offset:"strokeDashoffset",array:"strokeDasharray"};function ao(t,e,r=1,n=0,i=!0){t.pathLength=1;let a=i?ss:ls;t[a.offset]=`${-n}`,t[a.array]=`${e} ${r}`}var us=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function so(t,{attrX:e,attrY:r,attrScale:n,pathLength:i,pathSpacing:a=1,pathOffset:o=0,...s},l,f,u){if(br(t,s,f),l){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};let{attrs:c,style:d}=t;c.transform&&(d.transform=c.transform,delete c.transform),(d.transform||c.transformOrigin)&&(d.transformOrigin=c.transformOrigin??"50% 50%",delete c.transformOrigin),d.transform&&(d.transformBox=u?.transformBox??"fill-box",delete c.transformBox);for(let y of us)c[y]!==void 0&&(d[y]=c[y],delete c[y]);e!==void 0&&(c.x=e),r!==void 0&&(c.y=r),n!==void 0&&(c.scale=n),i!==void 0&&ao(c,i,a,o,!1)}var Tr=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);var lo=t=>typeof t=="string"&&t.toLowerCase()==="svg";function uo(t,e,r,n){xr(t,e,void 0,n);for(let i in e.attrs)t.setAttribute(Tr.has(i)?i:Ze(i),e.attrs[i])}function co(t,e,r){let n=vr(t,e,r);for(let i in t)if(K(t[i])||K(e[i])){let a=se.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;n[a]=t[i]}return n}var It=class extends tt{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Qe}getBaseTargetFromProps(e,r){return e[r]}readValueFromInstance(e,r){if(ne.has(r)){let n=mr(r);return n&&n.default||0}return r=Tr.has(r)?r:Ze(r),e.getAttribute(r)}scrapeMotionValuesFromProps(e,r,n){return co(e,r,n)}build(e,r,n){so(e,r,this.isSVGTag,n.transformTemplate,n.style)}renderInstance(e,r,n,i){uo(e,r,n,i)}mount(e){this.isSVGTag=lo(e.tagName),super.mount(e)}};function dn(t,e,r){let n=K(t)?t:he(t);return n.start(lr("",n,e,r)),n.animation}function Nt(t){return typeof t=="object"&&!Array.isArray(t)}function Sr(t,e,r,n){return t==null?[]:typeof t=="string"&&Nt(e)?fn(t,r,n):t instanceof NodeList?Array.from(t):Array.isArray(t)?t.filter(i=>i!=null):[t]}function fo(t,e,r){return t*(e+1)}function hn(t,e,r,n){return typeof e=="number"?e:e.startsWith("-")||e.startsWith("+")?Math.max(0,t+parseFloat(e)):e==="<"?r:e.startsWith("<")?Math.max(0,r+parseFloat(e.slice(1))):n.get(e)??t}function cs(t,e,r){for(let n=0;n<t.length;n++){let i=t[n];i.at>e&&i.at<r&&(Me(t,i),n--)}}function mo(t,e,r,n,i,a){cs(t,i,a);for(let o=0;o<e.length;o++)t.push({value:e[o],at:te(i,a,n[o]),easing:pt(r,o)})}function po(t,e){for(let r=0;r<t.length;r++)t[r]=t[r]/(e+1)}function ho(t,e){return t.at===e.at?t.value===null?1:e.value===null?-1:0:t.at-e.at}var fs="easeInOut",ms=20;function bo(t,{defaultTransition:e={},...r}={},n,i){let a=e.duration||.3,o=new Map,s=new Map,l={},f=new Map,u=0,c=0,d=0;for(let y=0;y<t.length;y++){let v=t[y];if(typeof v=="string"){f.set(v,c);continue}else if(!Array.isArray(v)){f.set(v.name,hn(c,v.at,u,f));continue}let[b,D,w={}]=v;w.at!==void 0&&(c=hn(c,w.at,u,f));let S=0,C=(A,x,F,k=0,E=0)=>{let I=ps(A),{delay:j=0,times:X=At(I),type:le=e.type||"keyframes",repeat:N,repeatType:m,repeatDelay:p=0,...g}=x,{ease:V=e.ease||"easeOut",duration:T}=x,O=typeof j=="function"?j(k,E):j,M=I.length,P=Be(le)?le:i?.[le||"keyframes"];if(M<=2&&P){let W=100;if(M===2&&gs(I)){let ue=I[1]-I[0];W=Math.abs(ue)}let re={...e,...g};T!==void 0&&(re.duration=$(T));let Q=vt(re,W,P);V=Q.ease,T=Q.duration}T??(T=a);let R=c+O;X.length===1&&X[0]===0&&(X[1]=1);let _=X.length-I.length;if(_>0&&St(X,_),I.length===1&&I.unshift(null),N){Z(N<ms,"Repeat count too high, must be less than 20","repeat-count-high"),T=fo(T,N);let W=[...I],re=[...X];V=Array.isArray(V)?[...V]:[V];let Q=[...V];for(let ue=0;ue<N;ue++){I.push(...W);for(let ce=0;ce<W.length;ce++)X.push(re[ce]+(ue+1)),V.push(ce===0?"linear":pt(Q,ce-1))}po(X,N)}let J=R+T;mo(F,I,V,X,R,J),S=Math.max(O+T,S),d=Math.max(J,d)};if(K(b)){let A=go(b,s);C(D,w,yo("default",A))}else{let A=Sr(b,D,n,l),x=A.length;for(let F=0;F<x;F++){D=D,w=w;let k=A[F],E=go(k,s);for(let I in D)C(D[I],ds(w,I),yo(I,E),F,x)}}u=c,c+=S}return s.forEach((y,v)=>{for(let b in y){let D=y[b];D.sort(ho);let w=[],S=[],C=[];for(let k=0;k<D.length;k++){let{at:E,value:I,easing:j}=D[k];w.push(I),S.push(Fe(0,d,E)),C.push(j||"easeOut")}S[0]!==0&&(S.unshift(0),w.unshift(w[0]),C.unshift(fs)),S[S.length-1]!==1&&(S.push(1),w.push(null)),o.has(v)||o.set(v,{keyframes:{},transition:{}});let A=o.get(v);A.keyframes[b]=w;let{type:x,...F}=e;A.transition[b]={...F,duration:d,ease:C,times:S,...r}}}),o}function go(t,e){return!e.has(t)&&e.set(t,{}),e.get(t)}function yo(t,e){return e[t]||(e[t]=[]),e[t]}function ps(t){return Array.isArray(t)?t:[t]}function ds(t,e){return t&&t[e]?{...t,...t[e]}:{...t}}var hs=t=>typeof t=="number",gs=t=>t.every(hs);function xo(t){let e={presenceContext:null,props:{},visualState:{renderState:{transform:{},transformOrigin:{},style:{},vars:{},attrs:{}},latestValues:{}}},r=Mt(t)&&!mn(t)?new It(e):new Ct(e);r.mount(t),ge.set(t,r)}function vo(t){let e={presenceContext:null,props:{},visualState:{renderState:{output:{}},latestValues:{}}},r=new Ft(e);r.mount(t),ge.set(t,r)}function ys(t,e){return K(t)||typeof t=="number"||typeof t=="string"&&!Nt(e)}function Ar(t,e,r,n){let i=[];if(ys(t,e))i.push(dn(t,Nt(e)&&e.default||e,r&&(r.default||r)));else{if(t==null)return i;let a=Sr(t,e,n),o=a.length;Z(!!o,"No valid elements provided.","no-valid-elements");for(let s=0;s<o;s++){let l=a[s],f=l instanceof Element?xo:vo;ge.has(l)||f(l);let u=ge.get(l),c={...r};"delay"in c&&typeof c.delay=="function"&&(c.delay=c.delay(s,o)),i.push(...sn(u,{...e,transition:c},{}))}}return i}function To(t,e,r){let n=[];return bo(t,e,r,{spring:pe}).forEach(({keyframes:a,transition:o},s)=>{n.push(...Ar(s,a,o))}),n}function bs(t){return Array.isArray(t)&&t.some(Array.isArray)}function So(t){function e(r,n,i){let a=[],o;if(bs(r))a=To(r,n,t);else{let{onComplete:l,...f}=i||{};typeof l=="function"&&(o=l),a=Ar(r,n,f,t)}let s=new wt(a);return o&&s.finished.then(o),t&&(t.animations.push(s),s.finished.then(()=>{Me(t.animations,s)})),s}return e}var gn=So();var ye=({initialStyles:t,keyframes:e})=>{let r=gn,n=s=>Object.fromEntries(Object.entries(s).map(([l,f])=>[l,Array.isArray(f)?[...f].reverse():f])),i=(s,l={})=>{let{target:f,insertAfter:u,display:c=""}=l;Array.isArray(s)||(s=[s]);for(let d of s)d.style.display=c,Object.assign(d.style,t),f&&u!==void 0?u?f.insertBefore(d,u.nextSibling):f.prepend(d):f&&f.appendChild(d)};return{prepareIn:i,animateIn:async(s,l={})=>{let{prepared:f,stagger:u,display:c,duration:d,...y}=l,v=d?d/1e3:void 0;f||i(s,l);let b=Array.isArray(s)?s:[s],{finished:D}=r(b,e,{...y,delay:u?gr(u/1e3):void 0,duration:v});return await D},animateOut:async(s,l={})=>{let{remove:f,stagger:u,target:c,insertAfter:d,display:y="none",duration:v,...b}=l,D=v?v/1e3:void 0,S=(Array.isArray(s)?s:[s]).filter(A=>document.body.contains(A));if(!S.length)return;let{finished:C}=r(S,n(e),{...b,duration:D,delay:u?gr(u/1e3):void 0});await C;for(let A of S)c&&d!==void 0?d?c.insertBefore(A,d.nextSibling):c.prepend(A):c&&c.appendChild(A),f?A.remove():A.style.display=y}}};var yn={fade:ye({keyframes:{opacity:[0,1]},initialStyles:{opacity:"0"}}),"slide-up":ye({keyframes:{y:[100,0],opacity:[0,1]},initialStyles:{transform:"translateY(100px)",opacity:"0"}}),"slide-down":ye({keyframes:{y:[-100,0],opacity:[0,1]},initialStyles:{transform:"translateY(-100px)",opacity:"0"}}),"slide-right":ye({keyframes:{x:[-100,0],opacity:[0,1]},initialStyles:{transform:"translateX(-100px)",opacity:"0"}}),"slide-left":ye({keyframes:{x:[100,0],opacity:[0,1]},initialStyles:{transform:"translateX(100px)",opacity:"0"}}),grow:ye({keyframes:{scale:[0,1],opacity:[0,1]},initialStyles:{transform:"scale(0)",opacity:"0"}}),shrink:ye({keyframes:{scale:[1.25,1],opacity:[0,1]},initialStyles:{transform:"scale(1.25)",opacity:"0"}}),spin:ye({keyframes:{rotate:[900,0],opacity:[0,1]},initialStyles:{transform:"rotate(900deg)",opacity:"0"}})};var Ao=(t,e,r)=>{let n=Nr(t),i=An(t);t.setAttribute(Or,Kt.dialog),t.setAttribute(Dn,Cn.true);for(let a of[...e,...r]){if(a.hasAttribute(Mn))continue;Nr(a);let o=e.includes(a)?"open":"close";a.setAttribute(Vn,"0"),a.setAttribute(Or,Kt.button),a.setAttribute(En,n),a.setAttribute(wn,Kt.dialog),a.setAttribute(nt,String(i)),a.hasAttribute(Pr)||a.setAttribute(Pr,`${o}-modal-trigger`)}};var wo=["input:not([inert]):not([inert] *)","select:not([inert]):not([inert] *)","textarea:not([inert]):not([inert] *)","a[href]:not([inert]):not([inert] *)","button:not([inert]):not([inert] *)","[tabindex]:not(slot):not([inert]):not([inert] *)","audio[controls]:not([inert]):not([inert] *)","video[controls]:not([inert]):not([inert] *)",'[contenteditable]:not([contenteditable="false"]):not([inert]):not([inert] *)',"details>summary:first-of-type:not([inert]):not([inert] *)","details:not([inert]):not([inert] *)"],Vr=wo.join(","),Eo=typeof Element>"u",Ke=Eo?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,wr=!Eo&&Element.prototype.getRootNode?function(t){var e;return t==null||(e=t.getRootNode)===null||e===void 0?void 0:e.call(t)}:function(t){return t?.ownerDocument},Er=function(e,r){var n;r===void 0&&(r=!0);var i=e==null||(n=e.getAttribute)===null||n===void 0?void 0:n.call(e,"inert"),a=i===""||i==="true",o=a||r&&e&&(typeof e.closest=="function"?e.closest("[inert]"):Er(e.parentNode));return o},xs=function(e){var r,n=e==null||(r=e.getAttribute)===null||r===void 0?void 0:r.call(e,"contenteditable");return n===""||n==="true"},Mo=function(e,r,n){if(Er(e))return[];var i=Array.prototype.slice.apply(e.querySelectorAll(Vr));return r&&Ke.call(e,Vr)&&i.unshift(e),i=i.filter(n),i},Mr=function(e,r,n){for(var i=[],a=Array.from(e);a.length;){var o=a.shift();if(!Er(o,!1))if(o.tagName==="SLOT"){var s=o.assignedElements(),l=s.length?s:o.children,f=Mr(l,!0,n);n.flatten?i.push.apply(i,f):i.push({scopeParent:o,candidates:f})}else{var u=Ke.call(o,Vr);u&&n.filter(o)&&(r||!e.includes(o))&&i.push(o);var c=o.shadowRoot||typeof n.getShadowRoot=="function"&&n.getShadowRoot(o),d=!Er(c,!1)&&(!n.shadowRootFilter||n.shadowRootFilter(o));if(c&&d){var y=Mr(c===!0?o.children:c.children,!0,n);n.flatten?i.push.apply(i,y):i.push({scopeParent:o,candidates:y})}else a.unshift.apply(a,o.children)}}return i},Do=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},Ee=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||xs(e))&&!Do(e)?0:e.tabIndex},vs=function(e,r){var n=Ee(e);return n<0&&r&&!Do(e)?0:n},Ts=function(e,r){return e.tabIndex===r.tabIndex?e.documentOrder-r.documentOrder:e.tabIndex-r.tabIndex},Co=function(e){return e.tagName==="INPUT"},Ss=function(e){return Co(e)&&e.type==="hidden"},As=function(e){var r=e.tagName==="DETAILS"&&Array.prototype.slice.apply(e.children).some(function(n){return n.tagName==="SUMMARY"});return r},Vs=function(e,r){for(var n=0;n<e.length;n++)if(e[n].checked&&e[n].form===r)return e[n]},ws=function(e){if(!e.name)return!0;var r=e.form||wr(e),n=function(s){return r.querySelectorAll('input[type="radio"][name="'+s+'"]')},i;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")i=n(window.CSS.escape(e.name));else try{i=n(e.name)}catch(o){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",o.message),!1}var a=Vs(i,e.form);return!a||a===e},Es=function(e){return Co(e)&&e.type==="radio"},Ms=function(e){return Es(e)&&!ws(e)},Ds=function(e){var r,n=e&&wr(e),i=(r=n)===null||r===void 0?void 0:r.host,a=!1;if(n&&n!==e){var o,s,l;for(a=!!((o=i)!==null&&o!==void 0&&(s=o.ownerDocument)!==null&&s!==void 0&&s.contains(i)||e!=null&&(l=e.ownerDocument)!==null&&l!==void 0&&l.contains(e));!a&&i;){var f,u,c;n=wr(i),i=(f=n)===null||f===void 0?void 0:f.host,a=!!((u=i)!==null&&u!==void 0&&(c=u.ownerDocument)!==null&&c!==void 0&&c.contains(i))}}return a},Vo=function(e){var r=e.getBoundingClientRect(),n=r.width,i=r.height;return n===0&&i===0},Cs=function(e,r){var n=r.displayCheck,i=r.getShadowRoot;if(n==="full-native"&&"checkVisibility"in e){var a=e.checkVisibility({checkOpacity:!1,opacityProperty:!1,contentVisibilityAuto:!0,visibilityProperty:!0,checkVisibilityCSS:!0});return!a}if(getComputedStyle(e).visibility==="hidden")return!0;var o=Ke.call(e,"details>summary:first-of-type"),s=o?e.parentElement:e;if(Ke.call(s,"details:not([open]) *"))return!0;if(!n||n==="full"||n==="full-native"||n==="legacy-full"){if(typeof i=="function"){for(var l=e;e;){var f=e.parentElement,u=wr(e);if(f&&!f.shadowRoot&&i(f)===!0)return Vo(e);e.assignedSlot?e=e.assignedSlot:!f&&u!==e.ownerDocument?e=u.host:e=f}e=l}if(Ds(e))return!e.getClientRects().length;if(n!=="legacy-full")return!0}else if(n==="non-zero-area")return Vo(e);return!1},Fs=function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var r=e.parentElement;r;){if(r.tagName==="FIELDSET"&&r.disabled){for(var n=0;n<r.children.length;n++){var i=r.children.item(n);if(i.tagName==="LEGEND")return Ke.call(r,"fieldset[disabled] *")?!0:!i.contains(e)}return!0}r=r.parentElement}return!1},Dr=function(e,r){return!(r.disabled||Ss(r)||Cs(r,e)||As(r)||Fs(r))},bn=function(e,r){return!(Ms(r)||Ee(r)<0||!Dr(e,r))},Is=function(e){var r=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(r)||r>=0)},Fo=function(e){var r=[],n=[];return e.forEach(function(i,a){var o=!!i.scopeParent,s=o?i.scopeParent:i,l=vs(s,o),f=o?Fo(i.candidates):s;l===0?o?r.push.apply(r,f):r.push(s):n.push({documentOrder:a,tabIndex:l,item:i,isScope:o,content:f})}),n.sort(Ts).reduce(function(i,a){return a.isScope?i.push.apply(i,a.content):i.push(a.content),i},[]).concat(r)},Io=function(e,r){r=r||{};var n;return r.getShadowRoot?n=Mr([e],r.includeContainer,{filter:bn.bind(null,r),flatten:!1,getShadowRoot:r.getShadowRoot,shadowRootFilter:Is}):n=Mo(e,r.includeContainer,bn.bind(null,r)),Fo(n)},No=function(e,r){r=r||{};var n;return r.getShadowRoot?n=Mr([e],r.includeContainer,{filter:Dr.bind(null,r),flatten:!0,getShadowRoot:r.getShadowRoot}):n=Mo(e,r.includeContainer,Dr.bind(null,r)),n},Le=function(e,r){if(r=r||{},!e)throw new Error("No node provided");return Ke.call(e,Vr)===!1?!1:bn(r,e)},Ns=wo.concat("iframe:not([inert]):not([inert] *)").join(","),Cr=function(e,r){if(r=r||{},!e)throw new Error("No node provided");return Ke.call(e,Ns)===!1?!1:Dr(r,e)};function xn(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function Os(t){if(Array.isArray(t))return xn(t)}function Oo(t,e){var r=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=Bo(t))||e){r&&(t=r);var n=0,i=function(){};return{s:i,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(l){throw l},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
2
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a,o=!0,s=!1;return{s:function(){r=r.call(t)},n:function(){var l=r.next();return o=l.done,l},e:function(l){s=!0,a=l},f:function(){try{o||r.return==null||r.return()}finally{if(s)throw a}}}}function Ps(t,e,r){return(e=Ls(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Rs(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function ks(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
3
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Po(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function Ro(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Po(Object(r),!0).forEach(function(n){Ps(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Po(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function Bs(t){return Os(t)||Rs(t)||Bo(t)||ks()}function Ks(t,e){if(typeof t!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Ls(t){var e=Ks(t,"string");return typeof e=="symbol"?e:e+""}function Bo(t,e){if(t){if(typeof t=="string")return xn(t,e);var r={}.toString.call(t).slice(8,-1);return r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set"?Array.from(t):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?xn(t,e):void 0}}var be={getActiveTrap:function(e){return e?.length>0?e[e.length-1]:null},activateTrap:function(e,r){var n=be.getActiveTrap(e);r!==n&&be.pauseTrap(e);var i=e.indexOf(r);i===-1||e.splice(i,1),e.push(r)},deactivateTrap:function(e,r){var n=e.indexOf(r);n!==-1&&e.splice(n,1),be.unpauseTrap(e)},pauseTrap:function(e){var r=be.getActiveTrap(e);r?._setPausedState(!0)},unpauseTrap:function(e){var r=be.getActiveTrap(e);r&&!r._isManuallyPaused()&&r._setPausedState(!1)}},Gs=function(e){return e.tagName&&e.tagName.toLowerCase()==="input"&&typeof e.select=="function"},js=function(e){return e?.key==="Escape"||e?.key==="Esc"||e?.keyCode===27},Pt=function(e){return e?.key==="Tab"||e?.keyCode===9},_s=function(e){return Pt(e)&&!e.shiftKey},Ws=function(e){return Pt(e)&&e.shiftKey},ko=function(e){return setTimeout(e,0)},Ot=function(e){for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];return typeof e=="function"?e.apply(void 0,n):e},Fr=function(e){return e.target.shadowRoot&&typeof e.composedPath=="function"?e.composedPath()[0]:e.target},$s=[],Ko=function(e,r){var n=r?.document||document,i=r?.trapStack||$s,a=Ro({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,isolateSubtrees:!1,isKeyForward:_s,isKeyBackward:Ws},r),o={containers:[],containerGroups:[],tabbableGroups:[],adjacentElements:new Set,alreadySilent:new Set,nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,manuallyPaused:!1,delayInitialFocusTimer:void 0,recentNavEvent:void 0},s,l=function(m,p,g){return m&&m[p]!==void 0?m[p]:a[g||p]},f=function(m,p){var g=typeof p?.composedPath=="function"?p.composedPath():void 0;return o.containerGroups.findIndex(function(V){var T=V.container,O=V.tabbableNodes;return T.contains(m)||g?.includes(T)||O.find(function(M){return M===m})})},u=function(m){var p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},g=p.hasFallback,V=g===void 0?!1:g,T=p.params,O=T===void 0?[]:T,M=a[m];if(typeof M=="function"&&(M=M.apply(void 0,Bs(O))),M===!0&&(M=void 0),!M){if(M===void 0||M===!1)return M;throw new Error("`".concat(m,"` was specified but was not a node, or did not return a node"))}var P=M;if(typeof M=="string"){try{P=n.querySelector(M)}catch(R){throw new Error("`".concat(m,'` appears to be an invalid selector; error="').concat(R.message,'"'))}if(!P&&!V)throw new Error("`".concat(m,"` as selector refers to no known node"))}return P},c=function(){var m=u("initialFocus",{hasFallback:!0});if(m===!1)return!1;if(m===void 0||m&&!Cr(m,a.tabbableOptions))if(f(n.activeElement)>=0)m=n.activeElement;else{var p=o.tabbableGroups[0],g=p&&p.firstTabbableNode;m=g||u("fallbackFocus")}else m===null&&(m=u("fallbackFocus"));if(!m)throw new Error("Your focus-trap needs to have at least one focusable element");return m},d=function(){if(o.containerGroups=o.containers.map(function(m){var p=Io(m,a.tabbableOptions),g=No(m,a.tabbableOptions),V=p.length>0?p[0]:void 0,T=p.length>0?p[p.length-1]:void 0,O=g.find(function(R){return Le(R)}),M=g.slice().reverse().find(function(R){return Le(R)}),P=!!p.find(function(R){return Ee(R)>0});return{container:m,tabbableNodes:p,focusableNodes:g,posTabIndexesFound:P,firstTabbableNode:V,lastTabbableNode:T,firstDomTabbableNode:O,lastDomTabbableNode:M,nextTabbableNode:function(_){var J=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,W=p.indexOf(_);return W<0?J?g.slice(g.indexOf(_)+1).find(function(re){return Le(re)}):g.slice(0,g.indexOf(_)).reverse().find(function(re){return Le(re)}):p[W+(J?1:-1)]}}}),o.tabbableGroups=o.containerGroups.filter(function(m){return m.tabbableNodes.length>0}),o.tabbableGroups.length<=0&&!u("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times");if(o.containerGroups.find(function(m){return m.posTabIndexesFound})&&o.containerGroups.length>1)throw new Error("At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.")},y=function(m){var p=m.activeElement;if(p)return p.shadowRoot&&p.shadowRoot.activeElement!==null?y(p.shadowRoot):p},v=function(m){if(m!==!1&&m!==y(document)){if(!m||!m.focus){v(c());return}m.focus({preventScroll:!!a.preventScroll}),o.mostRecentlyFocusedNode=m,Gs(m)&&m.select()}},b=function(m){var p=u("setReturnFocus",{params:[m]});return p||(p===!1?!1:m)},D=function(m){var p=m.target,g=m.event,V=m.isBackward,T=V===void 0?!1:V;p=p||Fr(g),d();var O=null;if(o.tabbableGroups.length>0){var M=f(p,g),P=M>=0?o.containerGroups[M]:void 0;if(M<0)T?O=o.tabbableGroups[o.tabbableGroups.length-1].lastTabbableNode:O=o.tabbableGroups[0].firstTabbableNode;else if(T){var R=o.tabbableGroups.findIndex(function(ue){var ce=ue.firstTabbableNode;return p===ce});if(R<0&&(P.container===p||Cr(p,a.tabbableOptions)&&!Le(p,a.tabbableOptions)&&!P.nextTabbableNode(p,!1))&&(R=M),R>=0){var _=R===0?o.tabbableGroups.length-1:R-1,J=o.tabbableGroups[_];O=Ee(p)>=0?J.lastTabbableNode:J.lastDomTabbableNode}else Pt(g)||(O=P.nextTabbableNode(p,!1))}else{var W=o.tabbableGroups.findIndex(function(ue){var ce=ue.lastTabbableNode;return p===ce});if(W<0&&(P.container===p||Cr(p,a.tabbableOptions)&&!Le(p,a.tabbableOptions)&&!P.nextTabbableNode(p))&&(W=M),W>=0){var re=W===o.tabbableGroups.length-1?0:W+1,Q=o.tabbableGroups[re];O=Ee(p)>=0?Q.firstTabbableNode:Q.firstDomTabbableNode}else Pt(g)||(O=P.nextTabbableNode(p))}}else O=u("fallbackFocus");return O},w=function(m){var p=Fr(m);if(!(f(p,m)>=0)){if(Ot(a.clickOutsideDeactivates,m)){s.deactivate({returnFocus:a.returnFocusOnDeactivate});return}Ot(a.allowOutsideClick,m)||m.preventDefault()}},S=function(m){var p=Fr(m),g=f(p,m)>=0;if(g||p instanceof Document)g&&(o.mostRecentlyFocusedNode=p);else{m.stopImmediatePropagation();var V,T=!0;if(o.mostRecentlyFocusedNode)if(Ee(o.mostRecentlyFocusedNode)>0){var O=f(o.mostRecentlyFocusedNode),M=o.containerGroups[O].tabbableNodes;if(M.length>0){var P=M.findIndex(function(R){return R===o.mostRecentlyFocusedNode});P>=0&&(a.isKeyForward(o.recentNavEvent)?P+1<M.length&&(V=M[P+1],T=!1):P-1>=0&&(V=M[P-1],T=!1))}}else o.containerGroups.some(function(R){return R.tabbableNodes.some(function(_){return Ee(_)>0})})||(T=!1);else T=!1;T&&(V=D({target:o.mostRecentlyFocusedNode,isBackward:a.isKeyBackward(o.recentNavEvent)})),v(V||o.mostRecentlyFocusedNode||c())}o.recentNavEvent=void 0},C=function(m){var p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;o.recentNavEvent=m;var g=D({event:m,isBackward:p});g&&(Pt(m)&&m.preventDefault(),v(g))},A=function(m){(a.isKeyForward(m)||a.isKeyBackward(m))&&C(m,a.isKeyBackward(m))},x=function(m){js(m)&&Ot(a.escapeDeactivates,m)!==!1&&(m.preventDefault(),s.deactivate())},F=function(m){var p=Fr(m);f(p,m)>=0||Ot(a.clickOutsideDeactivates,m)||Ot(a.allowOutsideClick,m)||(m.preventDefault(),m.stopImmediatePropagation())},k=function(){if(o.active)return be.activateTrap(i,s),o.delayInitialFocusTimer=a.delayInitialFocus?ko(function(){v(c())}):v(c()),n.addEventListener("focusin",S,!0),n.addEventListener("mousedown",w,{capture:!0,passive:!1}),n.addEventListener("touchstart",w,{capture:!0,passive:!1}),n.addEventListener("click",F,{capture:!0,passive:!1}),n.addEventListener("keydown",A,{capture:!0,passive:!1}),n.addEventListener("keydown",x),s},E=function(m){o.active&&!o.paused&&s._setSubtreeIsolation(!1),o.adjacentElements.clear(),o.alreadySilent.clear();var p=new Set,g=new Set,V=Oo(m),T;try{for(V.s();!(T=V.n()).done;){var O=T.value;p.add(O);for(var M=typeof ShadowRoot<"u"&&O.getRootNode()instanceof ShadowRoot,P=O;P;){p.add(P);var R=P.parentElement,_=[];R?_=R.children:!R&&M&&(_=P.getRootNode().children,R=P.getRootNode().host,M=typeof ShadowRoot<"u"&&R.getRootNode()instanceof ShadowRoot);var J=Oo(_),W;try{for(J.s();!(W=J.n()).done;){var re=W.value;g.add(re)}}catch(Q){J.e(Q)}finally{J.f()}P=R}}}catch(Q){V.e(Q)}finally{V.f()}p.forEach(function(Q){g.delete(Q)}),o.adjacentElements=g},I=function(){if(o.active)return n.removeEventListener("focusin",S,!0),n.removeEventListener("mousedown",w,!0),n.removeEventListener("touchstart",w,!0),n.removeEventListener("click",F,!0),n.removeEventListener("keydown",A,!0),n.removeEventListener("keydown",x),s},j=function(m){var p=m.some(function(g){var V=Array.from(g.removedNodes);return V.some(function(T){return T===o.mostRecentlyFocusedNode})});p&&v(c())},X=typeof window<"u"&&"MutationObserver"in window?new MutationObserver(j):void 0,le=function(){X&&(X.disconnect(),o.active&&!o.paused&&o.containers.map(function(m){X.observe(m,{subtree:!0,childList:!0})}))};return s={get active(){return o.active},get paused(){return o.paused},activate:function(m){if(o.active)return this;var p=l(m,"onActivate"),g=l(m,"onPostActivate"),V=l(m,"checkCanFocusTrap"),T=be.getActiveTrap(i),O=!1;if(T&&!T.paused){var M;(M=T._setSubtreeIsolation)===null||M===void 0||M.call(T,!1),O=!0}try{V||d(),o.active=!0,o.paused=!1,o.nodeFocusedBeforeActivation=y(n),p?.();var P=function(){V&&d(),k(),le(),a.isolateSubtrees&&s._setSubtreeIsolation(!0),g?.()};if(V)return V(o.containers.concat()).then(P,P),this;P()}catch(_){if(T===be.getActiveTrap(i)&&O){var R;(R=T._setSubtreeIsolation)===null||R===void 0||R.call(T,!0)}throw _}return this},deactivate:function(m){if(!o.active)return this;var p=Ro({onDeactivate:a.onDeactivate,onPostDeactivate:a.onPostDeactivate,checkCanReturnFocus:a.checkCanReturnFocus},m);clearTimeout(o.delayInitialFocusTimer),o.delayInitialFocusTimer=void 0,o.paused||s._setSubtreeIsolation(!1),o.alreadySilent.clear(),I(),o.active=!1,o.paused=!1,le(),be.deactivateTrap(i,s);var g=l(p,"onDeactivate"),V=l(p,"onPostDeactivate"),T=l(p,"checkCanReturnFocus"),O=l(p,"returnFocus","returnFocusOnDeactivate");g?.();var M=function(){ko(function(){O&&v(b(o.nodeFocusedBeforeActivation)),V?.()})};return O&&T?(T(b(o.nodeFocusedBeforeActivation)).then(M,M),this):(M(),this)},pause:function(m){return o.active?(o.manuallyPaused=!0,this._setPausedState(!0,m)):this},unpause:function(m){return o.active?(o.manuallyPaused=!1,i[i.length-1]!==this?this:this._setPausedState(!1,m)):this},updateContainerElements:function(m){var p=[].concat(m).filter(Boolean);return o.containers=p.map(function(g){return typeof g=="string"?n.querySelector(g):g}),a.isolateSubtrees&&E(o.containers),o.active&&(d(),a.isolateSubtrees&&!o.paused&&s._setSubtreeIsolation(!0)),le(),this}},Object.defineProperties(s,{_isManuallyPaused:{value:function(){return o.manuallyPaused}},_setPausedState:{value:function(m,p){if(o.paused===m)return this;if(o.paused=m,m){var g=l(p,"onPause"),V=l(p,"onPostPause");g?.(),I(),le(),s._setSubtreeIsolation(!1),V?.()}else{var T=l(p,"onUnpause"),O=l(p,"onPostUnpause");T?.(),s._setSubtreeIsolation(!0),d(),k(),le(),O?.()}return this}},_setSubtreeIsolation:{value:function(m){a.isolateSubtrees&&o.adjacentElements.forEach(function(p){var g;m?a.isolateSubtrees==="aria-hidden"?((p.ariaHidden==="true"||((g=p.getAttribute("aria-hidden"))===null||g===void 0?void 0:g.toLowerCase())==="true")&&o.alreadySilent.add(p),p.setAttribute("aria-hidden","true")):((p.inert||p.hasAttribute("inert"))&&o.alreadySilent.add(p),p.setAttribute("inert",!0)):o.alreadySilent.has(p)||(a.isolateSubtrees==="aria-hidden"?p.removeAttribute("aria-hidden"):p.removeAttribute("inert"))})}}}),s.updateContainerElements(e),s};var vn=["modal","open","close"],Tn={animation:{key:"animation",values:["fade","slide-up","slide-down","slide-left","slide-right","grow","shrink","spin"]},easing:{key:"easing",values:["linear","ease","ease-in","ease-out","ease-in-out"]},duration:{key:"duration"},display:{key:"display",values:["block","inline","flex","grid","none","contents","inline-block","inline-flex","inline-grid"],defaultValue:"flex"}},Lo=`ad-${Lt}-anchor`;var{getAttribute:Rt,getSettingSelector:Go,getInstance:jo,queryAllElements:kt}=Fn(Lt,vn,Tn);var Ir=t=>{let e=Rt(t,"animation",{filterInvalid:!0}),r=e?yn[e]:yn.fade,n=Rt(t,"duration"),i=n?parseFloat(n):void 0,a=Rt(t,"easing",{filterInvalid:!0}),o=a?zs(a):void 0,s=Rt(t,"display",{filterInvalid:!0});return{actions:r,duration:i,easing:o,display:s}},zs=t=>{switch(t){case"linear":return"linear";case"ease":return[.25,.1,.25,1];case"ease-in":return"easeIn";case"ease-out":return"easeOut";case"ease-in-out":return"easeInOut";default:return t}};var _o=(t,e,r,n)=>{let{parentElement:i}=t;if(!i)return;let{actions:a,duration:o,easing:s,display:l}=n,f=Us(t),u=new Comment(Lo);i.insertBefore(u,t);let c=!1,d,y,v=e.map(S=>Bt(S,"click",async A=>{A.preventDefault(),!(c||d)&&(c=!0,await Promise.all([a.animateIn(t,{duration:o,ease:s,display:l,target:document.body}),Promise.all(f.map(([x,{actions:F,duration:k,easing:E,display:I}])=>F.animateIn(x,{display:I,duration:k||o,ease:E||s})))]),c=!1,d=!0,y||=Ko(t,{returnFocusOnDeactivate:!0}),y.activate(),[...e,...r].forEach(x=>x.setAttribute(nt,"true")))})),b=async S=>{S.preventDefault(),!(c||d===!1)&&(c=!0,await Promise.all([a.animateOut(t,{duration:o,ease:s,target:i,insertAfter:u}),Promise.all(f.map(([C,{actions:A,duration:x,easing:F}])=>A.animateOut(C,{duration:x||o,ease:F||s})))]),i.insertBefore(t,u),c=!1,d=!1,y?.deactivate(),[...e,...r].forEach(C=>C.setAttribute(nt,"false")))},D=r.map(S=>Bt(S,"click",b)),w=Bt(window,"keydown",S=>{S.key==="Escape"&&b(S)});return()=>{for(let S of v)S();for(let S of D)S();w()}},Us=t=>{let r=["animation","duration","easing","display"].map(a=>Go(a)).join(",");return[...t.querySelectorAll(r)].map(a=>{let o=Ir(a);return[a,o]})};var Wo=t=>{let{parentElement:e}=t;if(!e)return;let r=jo(t),n=kt("open",{instance:r}),i=kt("close",{instance:r});if(!n.length&&!i.length)return;let a=Ir(t);return Ao(t,n,i),_o(t,n,i,a)};var Ys=async()=>{await In();let t=kt("modal"),e=t.map(Wo).filter(Sn);return{result:t,destroy(){for(let r of e)r()}}};export{vn as ELEMENTS,Tn as SETTINGS,Ys as init,zo as version};
|
|
4
|
-
/*! Bundled license information:
|
|
5
|
-
|
|
6
|
-
tabbable/dist/index.esm.js:
|
|
7
|
-
(*!
|
|
8
|
-
* tabbable 6.4.0
|
|
9
|
-
* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
|
|
10
|
-
*)
|
|
11
|
-
|
|
12
|
-
focus-trap/dist/focus-trap.esm.js:
|
|
13
|
-
(*!
|
|
14
|
-
* focus-trap 7.8.0
|
|
15
|
-
* @license MIT, https://github.com/focus-trap/focus-trap/blob/master/LICENSE
|
|
16
|
-
*)
|
|
17
|
-
*/
|
package/dist/src-UXEGAYWN.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as it,d as H}from"./chunk-K35EQW4W.js";import{a as bt}from"./chunk-MMLPBDVV.js";import{b as z,e as U}from"./chunk-JWECJO7V.js";import{b as nt}from"./chunk-QJLI7KE4.js";import{e as Q,f as w,g as tt,h as et}from"./chunk-66ZG3JSK.js";import"./chunk-JRWWKMUR.js";import{a as P,b as B,c as X,d as N,e as q,f as G,g as j,h as Z}from"./chunk-OZ2E2BFY.js";import{a as k}from"./chunk-HNE3ICUK.js";import{b as K,e as Y,f as R,n as $}from"./chunk-IIYDYA3Q.js";import{a as at}from"./chunk-72T5X4H3.js";import{q as J}from"./chunk-KPT4H6YU.js";import{c as st}from"./chunk-TG26EDOV.js";import{c as ht}from"./chunk-K46K3RI5.js";var Et="0.1.0";var ft=ht(bt(),1);var D=e=>e instanceof MouseEvent?e.clientX:e.touches[0].clientX;var F=["wrapper","track","fill","handle","display-value"],_={min:{key:"min"},max:{key:"max"},start:{key:"start"},step:{key:"step"},update:{key:"update",values:["move","release"],defaultValue:"move"},lazy:{key:"lazy",values:["true"]},formatdisplay:{key:"formatdisplay",values:["true"]},formatcompactdisplay:{key:"formatcompactdisplay"},formatcurrency:{key:"formatcurrency"},formatcurrencydisplay:{key:"formatcurrencydisplay"},formatcurrencysign:{key:"formatcurrencysign"},formatmaximumsignificantdigits:{key:"formatmaximumsignificantdigits",isNumeric:!0},formatmaximumfractiondigits:{key:"formatmaximumfractiondigits",isNumeric:!0},formatminimumfractiondigits:{key:"formatminimumfractiondigits",isNumeric:!0},formatminimumintegerdigits:{key:"formatminimumintegerdigits",isNumeric:!0},formatminimumsignificantdigits:{key:"formatminimumsignificantdigits",isNumeric:!0},formatnotation:{key:"formatnotation"},formatnumberingsystem:{key:"formatnumberingsystem"},formatroundingpriority:{key:"formatroundingpriority"},formatroundingincrement:{key:"formatroundingincrement",isNumeric:!0},formatroundingmode:{key:"formatroundingmode"},formatsigndisplay:{key:"formatsigndisplay"},formatstyle:{key:"formatstyle"},formattrailingzerodisplay:{key:"formattrailingzerodisplay"},formatunit:{key:"formatunit"},formatunitdisplay:{key:"formatunitdisplay"},formatusegrouping:{key:"formatusegrouping"}},W=[Q,tt],Vt=[w,et],rt=[...W,...Vt];var{queryElement:C,queryAllElements:L,hasAttributeValue:O,getAttribute:o}=at(J,F,_);var ot=e=>{let t=C("track",{scope:e}),n=C("fill",{scope:e}),a=[...e.querySelectorAll("input")].filter($),i=L("handle",{scope:e}),s=L("display-value",{scope:e}),r=o(e,"formatdisplay"),l={compactDisplay:o(e,"formatcompactdisplay"),currency:o(e,"formatcurrency"),currencyDisplay:o(e,"formatcurrencydisplay"),currencySign:o(e,"formatcurrencysign"),maximumSignificantDigits:o(e,"formatmaximumsignificantdigits"),maximumFractionDigits:o(e,"formatmaximumfractiondigits"),minimumFractionDigits:o(e,"formatminimumfractiondigits"),minimumIntegerDigits:o(e,"formatminimumintegerdigits"),minimumSignificantDigits:o(e,"formatminimumsignificantdigits"),notation:o(e,"formatnotation"),numberingSystem:o(e,"formatnumberingsystem"),roundingPriority:o(e,"formatroundingpriority"),roundingIncrement:o(e,"formatroundingincrement"),roundingMode:o(e,"formatroundingmode"),signDisplay:o(e,"formatsigndisplay"),style:o(e,"formatstyle"),trailingZeroDisplay:o(e,"formattrailingzerodisplay"),unit:o(e,"formatunit"),unitDisplay:o(e,"formatunitdisplay"),useGrouping:o(e,"formatusegrouping")},u=O(e,"update","release"),m=O(e,"lazy","true");if(!i.length||!t){console.error("The rangeslider is missing a Track element or a Handle element.");return}let{left:h,right:g}=t.getBoundingClientRect(),b=t.clientWidth;t.style.position="relative";let d=parseFloat(o(e,"min")||"0"),y=parseFloat(o(e,"max")||`${d+1}`),f=y-d;if(Number.isNaN(f)){console.error("Please make sure min and max are numbers.");return}if(Math.sign(f)===-1){console.error("The min can't be greater than the max.");return}let E=parseFloat(o(e,"step")||`${f/100}`),p=it(E);return f%E>0&&console.error(`The provided step [${E}] doesn't fit the range [${d},${y}], are you sure you want to use this value?`),{trackElement:t,fillElement:n,handleElements:i,inputElements:a,displayValueElements:s,formatValueDisplay:r,formatValueOptions:l,trackLeft:h,trackRight:g,trackWidth:b,minRange:d,maxRange:y,totalRange:f,step:E,precision:p,updateOnRelease:u,isLazy:m}};var lt=(e,[t,n])=>{let a=t.getValue(),i=n?.getValue(),s=kt(e,[a,i]);if(!K(s))return;let[r,l]=t.getConstraints();if(s===a&&e>=r&&e<=l)return t;if(!n||s!==i)return;let[u,m]=n.getConstraints();if(e>=u&&e<=m)return n},kt=(e,t)=>{let n=t.filter(R);return n.length?n.reduce((i,s)=>Math.abs(s-e)<Math.abs(i-e)?s:i):void 0};var S=class{constructor(t,{minRange:n,maxRange:a,handles:i,trackWidth:s}){this.element=t;t.style.position="absolute",t.style.right="unset",this.minRange=n,this.totalRange=a-n,this.handles=i,this.trackWidth=s,this.update()}minRange;totalRange;handles;trackWidth;updateTrackWidth(t){this.trackWidth=t}update(){let{element:t,trackWidth:n,minRange:a,totalRange:i,handles:[s,r]}=this,l,u,m=(s.getValue()-a)*n/i;r?(l=m,u=(r.getValue()-s.getValue())*n/i):(l=0,u=m),t.style.left=`${l}px`,t.style.width=`${u}px`}};var ut=(e,t)=>{e.setAttribute(P,B.slider),e.setAttribute(X,"0"),![N,q].some(n=>e.getAttribute(n))&&t&&e.setAttribute(N,t.name)};var mt=e=>{e.style.position="absolute",e.style.right="unset",e.style.top="50%",e.style.transform="translate(-50%, -50%)"};var M=class{constructor(t,{index:n,minRange:a,maxRange:i,trackWidth:s,step:r,precision:l,startValue:u,isLazy:m,inputElement:h,displayValueElement:g,formatValueDisplay:b,formatValueOptions:d}){this.element=t;this.inputElement=h,this.displayValueElement=g,this.formatValueDisplay=b,this.formatValueOptions=d,this.index=n,this.minRange=a,this.maxRange=i,this.totalRange=i-a,this.step=r,this.precision=l,this.minValue=a,this.maxValue=i,this.trackWidth=s,mt(t),ut(t,h),this.setValue(h?.value?parseFloat(h.value):u,!m),this.destroy=this.listenEvents()}destroy;index;minRange;maxRange;totalRange;step;precision;inputElement;displayValueElement;formatValueDisplay;formatValueOptions;fill;sibling;trackWidth;currentValue;minValue;maxValue;updatingInput=!1;listenEvents(){let{element:t,inputElement:n}=this,a=[k(t,"keydown",i=>this.handleKeyDown(i)),k(n,"change",()=>this.handleInputChange())];return()=>{for(let i of a)i()}}handleKeyDown(t){let{step:n,currentValue:a}=this,{key:i}=t;rt.includes(i)&&(t.preventDefault(),W.includes(i)?this.setValue(a+n):this.setValue(a-n))}handleInputChange(){let{inputElement:t,index:n,minRange:a,maxRange:i,step:s,precision:r,updatingInput:l}=this;if(!t||l)return;let{value:u}=t,m=parseFloat(u);if(m){this.setValue(H(m,s,r,a));return}this.setValue(n===0?a:i,!1)}formatValue(t,n=this.formatValueDisplay,a=this.formatValueOptions){let i=n==="true"?void 0:n;try{return new Intl.NumberFormat(i,a).format(t)}catch{return new Intl.NumberFormat(window.navigator?.language||void 0,a).format(t)}}updatePosition(){let{currentValue:t,element:n,trackWidth:a,minRange:i,totalRange:s,fill:r}=this,l=(t-i)*a/s;n.style.left=`${l}px`,r?.update()}getValue=()=>this.currentValue;setValue(t,n=!0){let{currentValue:a,element:i,minValue:s,maxValue:r,displayValueElement:l,formatValueDisplay:u}=this;if(a===t||t<s||t>r)return!1;this.currentValue=t,this.updatePosition(),this.updateSiblingConstraints();let m=`${t}`;return i.setAttribute(G,m),l&&(l.textContent=u?this.formatValue(t,u):m),n&&this.updateInputElement(),!0}updateInputElement(){this.updatingInput=!0;let{currentValue:t,inputElement:n}=this;n&&(nt(n,t.toFixed(2)),this.updatingInput=!1)}getConstraints=()=>[this.minValue,this.maxValue];setConstraints(t,n){let{element:a}=this,i=t.toFixed(2),s=n.toFixed(2);a.setAttribute(j,i),a.setAttribute(Z,s),this.minValue=Number(i),this.maxValue=Number(s)}updateSiblingConstraints(){let{index:t,sibling:n,step:a,minRange:i,maxRange:s,currentValue:r}=this;n&&(t===0?n.setConstraints(r+a,s):n.setConstraints(i,r-a))}updateTrackWidth(t){this.trackWidth=t,this.fill?.updateTrackWidth(t),this.updatePosition()}addFill(t){this.fill=t}addSibling(t){this.sibling=t,this.updateSiblingConstraints()}};var ct=({handleElements:e,inputElements:t,displayValueElements:n,formatValueDisplay:a,formatValueOptions:i,minRange:s,maxRange:r,trackWidth:l,step:u,precision:m,isLazy:h})=>{let g=e.slice(0,2).map((y,f)=>{let E=parseFloat(o(y,"start")||`${f===0?s:r}`),p=H(E,u,m,s),I=t[f],T=n[f];return p<s&&(console.error(`The Handle start value [${p}] doesn't match the range, so it has been set to the min value [${s}].`),p=s),p>r&&(console.error(`The Handle start value [${p}] doesn't match the range, so it has been set to the max value [${r}].`),p=r),new M(y,{index:f,minRange:s,maxRange:r,trackWidth:l,step:u,precision:m,startValue:p,inputElement:I,displayValueElement:T,formatValueOptions:i,formatValueDisplay:a,isLazy:h})}).filter(R);if(!g.length)return;g.length>1&&g.sort((y,f)=>y.getValue()-f.getValue());let[b,d]=g;return d?(b.addSibling(d),d.addSibling(b)):b.setConstraints(s,r),[b,d]},dt=({fillElement:e,minRange:t,maxRange:n,trackWidth:a},i)=>{if(!e)return;let s=new S(e,{minRange:t,maxRange:n,trackWidth:a,handles:i}),[r,l]=i;r.addFill(s),l?.addFill(s)};var xt=async()=>{await st();let t=L("wrapper").map(At).filter(R);return{result:t.map(({handles:a})=>a),destroy(){for(let{destroy:a}of t)a()}}},At=e=>{let t=ot(e);if(!t)return;let n=ct(t);if(!n)return;dt(t,n);let{maxRange:a,minRange:i,step:s,precision:r,totalRange:l,trackElement:u,updateOnRelease:m}=t,{trackWidth:h,trackLeft:g,trackRight:b}=t,d,y=!1,f=c=>{let v=i+(c-g)*l/h;return H(v,s,r,i)},E=c=>{if(!d)return;c instanceof MouseEvent&&c.preventDefault();let v=D(c),[V,x]=d.getConstraints(),A;g>v?A=V:b<v?A=x:A=f(v);let yt=d.setValue(A,!m);y||=yt},p=c=>{c.cancelable&&c.preventDefault(),document.removeEventListener("mousemove",E),document.removeEventListener("touchmove",E),document.removeEventListener("mouseup",p),document.removeEventListener("touchend",p),m&&y&&d?.updateInputElement(),y=!1,d?.element.blur(),d=void 0},I=c=>{c.cancelable&&c.preventDefault();let v=D(c);document.addEventListener("mousemove",E),document.addEventListener("touchmove",E,{passive:!0}),document.addEventListener("mouseup",p),document.addEventListener("touchend",p);let V;g>v?V=i:b<v?V=a:V=f(v);let x=lt(V,n);if(!x)return;x.element.focus(),d=x;let A=x.setValue(V,!m);y||=A},T=()=>{h=u.clientWidth,{left:g,right:b}=u.getBoundingClientRect();for(let c of n)c&&c.updateTrackWidth(h)},gt=[(()=>{let c=U(e);if(!c)return Y;let v=new MutationObserver(()=>{z(c)&&T()});return v.observe(c,{attributes:!0,attributeFilter:["style","class"]}),()=>v.disconnect()})(),k(u,"mousedown",I),k(u,"touchstart",I,{passive:!0}),k(window,"resize",(0,ft.default)(T,50))];return{handles:n,destroy:()=>{for(let c of gt)c()}}};export{F as ELEMENTS,_ as SETTINGS,xt as init,Et as version};
|
package/dist/src-X7CQ5RZL.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as m,b as l}from"./chunk-QJLI7KE4.js";import"./chunk-66ZG3JSK.js";import"./chunk-JRWWKMUR.js";import"./chunk-OZ2E2BFY.js";import{a as c}from"./chunk-HNE3ICUK.js";import{h as o,n as r}from"./chunk-IIYDYA3Q.js";import{a}from"./chunk-72T5X4H3.js";import{l as p}from"./chunk-KPT4H6YU.js";import"./chunk-K46K3RI5.js";var x="0.1.0";var i=["trigger","target"],s={};var{getElementSelector:u,getInstance:E,queryElement:d}=a(p,i,s);var y=()=>{let g=c(window,"input",({target:n})=>{if(!o(n))return;let t=n.closest(u("trigger"));if(!r(t))return;let f=E(t),e=d("target",{instance:f});if(!r(e)||t.type!==e.type)return;let T=m(t);l(e,T)});return{destroy(){g()}}};export{i as ELEMENTS,s as SETTINGS,y as init,x as version};
|
package/dist/src-XAOHXA6J.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as d}from"./chunk-QJLI7KE4.js";import"./chunk-66ZG3JSK.js";import"./chunk-JRWWKMUR.js";import"./chunk-OZ2E2BFY.js";import{a}from"./chunk-HNE3ICUK.js";import{h as c,n as o}from"./chunk-IIYDYA3Q.js";import{a as f}from"./chunk-72T5X4H3.js";import{f as u}from"./chunk-KPT4H6YU.js";import{c as E}from"./chunk-TG26EDOV.js";import"./chunk-K46K3RI5.js";var h="0.1.0";var l=["source","target"],m={placeholder:{key:"placeholder"}};var{queryAllElements:s,getInstance:y,getElementSelector:g,getAttribute:S}=f(u,l,m);var i=new Map;var F=e=>{let r=y(e),t=s("target",{instance:r});t.length&&i.set(e,t)};var n=e=>{let r=i.get(e);if(r)for(let t of r){let p=d(e),T=S(t,"placeholder")||null,A=p||T;t.textContent=A?.toString()||""}};var x=()=>a(window,"input",({target:r})=>{if(!c(r))return;let t=r.closest(g("source"));o(t)&&n(t)});var v=async()=>{await E();let e=s("source");for(let t of e)o(t)&&(F(t),n(t));let r=x();return{result:e,destroy(){r()}}};export{l as ELEMENTS,m as SETTINGS,v as init,h as version};
|