@visitscotland/component-library 5.41.5 → 5.42.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/manifest.json +1583 -1479
- package/dist/client/scripts/0036243f84e83014237c.js +1 -1
- package/dist/client/scripts/00ccd7949f170b3d738d.js +1 -1
- package/dist/client/scripts/01554a4fdde2d61b4d49.js +1 -1
- package/dist/client/scripts/{a397c46fe765889eba59.js → 01b8e76e714348e01802.js} +1 -1
- package/dist/client/scripts/0389a15654d3a45aab1a.js +1 -1
- package/dist/client/scripts/04b71860f29844231b00.js +1 -1
- package/dist/client/scripts/{e94da6d3801ebb02d8ce.js → 05460edc897f6e35c50e.js} +1 -1
- package/dist/client/scripts/056cd8933beea0edc19e.js +1 -1
- package/dist/client/scripts/{19a97f4c8217fe493368.js → 05964f039507c464d344.js} +1 -1
- package/dist/client/scripts/093dbadb21acf4310ea2.js +1 -1
- package/dist/client/scripts/0965942c287f6c10c83a.js +1 -1
- package/dist/client/scripts/{0da964d971a554507734.js → 096a1dc72c78b8176a60.js} +1 -1
- package/dist/client/scripts/{5389ee753606f9248ce8.js → 09ae016b64791f86ce4a.js} +1 -1
- package/dist/client/scripts/09efaf35581f94d9341a.js +1 -1
- package/dist/client/scripts/0a73fba3841d42f4062e.js +1 -1
- package/dist/client/scripts/0cb36cf0019d0d1516a9.js +1 -0
- package/dist/client/scripts/0e836ffbc4a97ef8a4fb.js +1 -1
- package/dist/client/scripts/0eccccf491d2d8c15ec2.js +1 -1
- package/dist/client/scripts/{2122d479f8a8a3d5a02e.js → 0efef27882999582a48c.js} +1 -1
- package/dist/client/scripts/108124f3353174a3c98b.js +1 -1
- package/dist/client/scripts/10c8c43c2d1d2c9c3ac6.js +1 -1
- package/dist/client/scripts/{149849e9e46fa12a6d57.js → 11bdf203d8398fc93aea.js} +1 -1
- package/dist/client/scripts/1262d9eb296be8be48b9.js +1 -1
- package/dist/client/scripts/{d46534bfd4639ca6592e.js → 12f9d7e13904294edfc5.js} +1 -1
- package/dist/client/scripts/{72709ccc1d539e0e7922.js → 12fa4d6469761cdb8326.js} +1 -1
- package/dist/client/scripts/{bff2361f88ee3867b9b5.js → 144d2007e1b1a85b5cec.js} +1 -1
- package/dist/client/scripts/{607805f92c511232d42e.js → 14552227c097ba45d96d.js} +1 -1
- package/dist/client/scripts/15e9f022c7952c07e6ce.js +1 -1
- package/dist/client/scripts/16a3a76ec493d5af9559.js +1 -1
- package/dist/client/scripts/16d1b6f2e9d13a059244.js +1 -1
- package/dist/client/scripts/16f08d577a78d2740818.js +1 -1
- package/dist/client/scripts/17bca51c0b3e12105894.js +1 -1
- package/dist/client/scripts/1970d55f90fe220cf58b.js +1 -1
- package/dist/client/scripts/1aae8117699af5bed418.js +1 -1
- package/dist/client/scripts/1c048832077af161ca70.js +1 -1
- package/dist/client/scripts/{e31c75f05ebcf9568c26.js → 1cf0a84b704943e20542.js} +1 -1
- package/dist/client/scripts/1dab8b823a9fc7be9e7d.js +1 -1
- package/dist/client/scripts/{830e7f83c507e3b81403.js → 1de9c5ad01140bfb6ca5.js} +1 -1
- package/dist/client/scripts/{4e22e8c6d6968c8bb509.js → 1f4d80572006cd3ff28e.js} +1 -1
- package/dist/client/scripts/{4626c48ced549c077e3e.js → 201941464a25dc50dcec.js} +1 -1
- package/dist/client/scripts/{c21a6c36e3568bdc534f.js → 20d05ca262d096564101.js} +1 -1
- package/dist/client/scripts/{d0754b4aa24deddb7245.js → 21711e87222aa129f005.js} +1 -1
- package/dist/client/scripts/2290109a2b19f24f7f67.js +1 -1
- package/dist/client/scripts/23889a0a798b09d499c1.js +1 -1
- package/dist/client/scripts/{f443edb707d72594a1e7.js → 239e8acfb9f1a566c62f.js} +1 -1
- package/dist/client/scripts/24070a0f940f8ed87a1c.js +1 -1
- package/dist/client/scripts/{adc43fc9fa9ee3c85f21.js → 281fbf5ff6ca8953bd94.js} +1 -1
- package/dist/client/scripts/29d2385ba08f0023585c.js +1 -1
- package/dist/client/scripts/2a0d066c05ce80ef84a2.js +1 -1
- package/dist/client/scripts/2a74d3661f1aeb64da2d.js +1 -1
- package/dist/client/scripts/2bdd4484eaf0f7c7bc7d.js +1 -1
- package/dist/client/scripts/2d931eb506983939dee2.js +1 -1
- package/dist/client/scripts/2e41422c35f0d8147936.js +1 -1
- package/dist/client/scripts/2fb997a43b43bfb18687.js +1 -1
- package/dist/client/scripts/{958dc3347b4c79ae92f0.js → 3173dc863274aa930452.js} +1 -1
- package/dist/client/scripts/31cc034791fd8fed08dc.js +1 -1
- package/dist/client/scripts/{209af26331fa5efbb1e0.js → 34684cbbfd8f07dd7939.js} +1 -1
- package/dist/client/scripts/350b5411ffc3a7b4a42a.js +1 -0
- package/dist/client/scripts/{678be80c89eff10efccf.js → 370e6150fbd0dccf34c7.js} +2 -2
- package/dist/client/scripts/378133b962494b0328be.js +1 -1
- package/dist/client/scripts/38875405be2461bf6367.js +1 -1
- package/dist/client/scripts/38d5589b9158ab8e7423.js +1 -1
- package/dist/client/scripts/392a233a558e074c70d9.js +1 -1
- package/dist/client/scripts/393fa3ee68d9e76e6def.js +1 -1
- package/dist/client/scripts/3967efd5a872171e7230.js +1 -1
- package/dist/client/scripts/{784d227f712ddb91cb2a.js → 39bd197d7d1f66f65105.js} +1 -1
- package/dist/client/scripts/3a54f6b2d5b91ff395dc.js +1 -1
- package/dist/client/scripts/3aaefce16b5df1479178.js +1 -1
- package/dist/client/scripts/3ae3625c5b179d3021e9.js +1 -1
- package/dist/client/scripts/3c5baf37fc4cdec110f6.js +1 -1
- package/dist/client/scripts/3cf61618bc3263a1c0c9.js +1 -1
- package/dist/client/scripts/3ea2352e8a94ddc6dc8a.js +1 -1
- package/dist/client/scripts/{336dc65beaffd0fe9728.js → 404c0b7cff4d305398c5.js} +1 -1
- package/dist/client/scripts/406e9909758efdb1ae29.js +1 -1
- package/dist/client/scripts/408bd09f6eb4f00d6659.js +1 -1
- package/dist/client/scripts/416c4f28b6594389fb58.js +1 -0
- package/dist/client/scripts/41dea7515c49fbb37cd0.js +1 -1
- package/dist/client/scripts/41f72194eda6300eda07.js +1 -0
- package/dist/client/scripts/42233f90e1246c3d508e.js +1 -1
- package/dist/client/scripts/427f4a836835f87aa5a6.js +1 -0
- package/dist/client/scripts/{dba3948d8b668e96cee6.js → 45ea777abdc94a4fe90a.js} +1 -1
- package/dist/client/scripts/{58473b34392d3edecc6c.js → 49ab77897fd7265e3bf1.js} +1 -1
- package/dist/client/scripts/{1c5e74a53e980a13c560.js → 4a5baf290bdcb8866cb3.js} +1 -1
- package/dist/client/scripts/4a7dd18ce8648d5f3748.js +1 -1
- package/dist/client/scripts/{7c55ed358f5750245829.js → 4af4fb2e7934b3943d68.js} +1 -1
- package/dist/client/scripts/{bd3814764b1c7e8c5751.js → 4f47ffaa9a5862cc51d1.js} +1 -1
- package/dist/client/scripts/5032a70c599e2f468071.js +1 -1
- package/dist/client/scripts/507d772ea7c3ad69cd02.js +1 -1
- package/dist/client/scripts/509216b4e74f11f64f80.js +1 -0
- package/dist/client/scripts/{0de83ee7e84dc3cca135.js → 50d64cdbfaa0c7f02bff.js} +1 -1
- package/dist/client/scripts/51240b9c502b2993bd72.js +1 -1
- package/dist/client/scripts/{83df837d0feb863dfcd9.js → 51b02e9cc8dcce007d09.js} +1 -1
- package/dist/client/scripts/{9a3456d670f8b4d54fa7.js → 527999b00f27717c8e3d.js} +1 -1
- package/dist/client/scripts/53251829ca5de2bf36fe.js +1 -0
- package/dist/client/scripts/5338ba2c1a300fb817ad.js +1 -1
- package/dist/client/scripts/{4db66c860932e8c611a3.js → 56b154fca6dd1d2717ab.js} +1 -1
- package/dist/client/scripts/5828c72a7124a5bcb563.js +1 -0
- package/dist/client/scripts/59ab7b4a6827442b90c7.js +1 -1
- package/dist/client/scripts/5a4a97205da676950fcf.js +1 -0
- package/dist/client/scripts/{529b4b855c5a64c0b642.js → 5ba4f0c291b89c266862.js} +1 -1
- package/dist/client/scripts/5bfe1a52e5e438b16b80.js +1 -1
- package/dist/client/scripts/5d1cdcc8987a6cc186f0.js +1 -1
- package/dist/client/scripts/{544b6969eedda98a4909.js → 5eb42ef6d08a351ed72d.js} +1 -1
- package/dist/client/scripts/6011db9e93655179bce2.js +1 -1
- package/dist/client/scripts/{7920255a5c68d97e99d9.js → 6017d8191657aaded718.js} +1 -1
- package/dist/client/scripts/60e11eae5d8e305a26b5.js +1 -1
- package/dist/client/scripts/{aaf155991bb2554936c0.js → 61640640348bfae9911a.js} +1 -1
- package/dist/client/scripts/6198cadc6ef977ea0b7f.js +1 -1
- package/dist/client/scripts/6231f7cde1c1a252e3ff.js +1 -1
- package/dist/client/scripts/{c6fcd69688050e54270d.js → 63325e5621b93d481e33.js} +1 -1
- package/dist/client/scripts/6426b3dc3b49d5317801.js +1 -0
- package/dist/client/scripts/6482c0db9dfb95939fd0.js +1 -1
- package/dist/client/scripts/{b1786948f0135f272a09.js → 656320e03d581a8ea0e1.js} +1 -1
- package/dist/client/scripts/65f43123fc14b35b64d1.js +2 -0
- package/dist/client/scripts/662de3a6d0e84564965f.js +1 -1
- package/dist/client/scripts/66d53fffb25ec07a1aa7.js +1 -1
- package/dist/client/scripts/66d5a4a2cf08cdaa86bb.js +1 -1
- package/dist/client/scripts/69230c65912cdd38a584.js +1 -1
- package/dist/client/scripts/{1077b219313276c21765.js → 6946e6aba0f938c33d41.js} +1 -1
- package/dist/client/scripts/697dab8ed79ec60a309b.js +1 -1
- package/dist/client/scripts/{eda3d84b5c7ef1cf832f.js → 69bcf40c72866c57569c.js} +1 -1
- package/dist/client/scripts/{205795ceed348c421487.js → 6b8c01aec2b272c579b2.js} +1 -1
- package/dist/client/scripts/{c183f805ae8a659449f3.js → 6c01c3fecf56394f299c.js} +1 -1
- package/dist/client/scripts/6dcc7e68252e013045d4.js +1 -1
- package/dist/client/scripts/{529a6860261e6074f3d1.js → 6e12a7ec94aa04c9e19a.js} +1 -1
- package/dist/client/scripts/{f446782fd7a7a2f8aaef.js → 6ec32a52d983bd17d964.js} +1 -1
- package/dist/client/scripts/{60cb2189fbc7f98e341c.js → 6eef2c349f99513c7605.js} +1 -1
- package/dist/client/scripts/{b43eabedc3d8cb405b13.js → 6f304354b9d063f6a388.js} +1 -1
- package/dist/client/scripts/6f579b91d024f526a37f.js +1 -1
- package/dist/client/scripts/701b3f29f72a42f4ba5b.js +1 -1
- package/dist/client/scripts/{e72a9fa25e0cb614b047.js → 7021a1aa103adb4c0afb.js} +1 -1
- package/dist/client/scripts/{69c0b19f9b3d9637c86d.js → 70613f88c015cb23628f.js} +1 -1
- package/dist/client/scripts/70b382267b5513186329.js +2 -0
- package/dist/client/scripts/71ef2d367311e6e5bc86.js +1 -1
- package/dist/client/scripts/73b00f60638d900381f9.js +2 -0
- package/dist/client/scripts/73b00f60638d900381f9.js.LICENSE.txt +5 -0
- package/dist/client/scripts/746da613bad15ee3dcff.js +1 -1
- package/dist/client/scripts/74ecbb4b7b820d191d79.js +1 -1
- package/dist/client/scripts/{52ead081f08a937878ce.js → 764708e59c9e117d7d05.js} +1 -1
- package/dist/client/scripts/{3e5daaae9842486f22de.js → 773d825d249ad0676725.js} +1 -1
- package/dist/client/scripts/{dfb0649a31917de093b0.js → 785f5aedccd25328545f.js} +1 -1
- package/dist/client/scripts/7bd6628181af41e6fc20.js +1 -1
- package/dist/client/scripts/{c44d2718bc46a06944c9.js → 7c47a608596fd7e340ac.js} +1 -1
- package/dist/client/scripts/{ac814e350b080b08f5fe.js → 7d74987d7c93713490df.js} +1 -1
- package/dist/client/scripts/7dc60eea744dfc329db1.js +1 -0
- package/dist/client/scripts/7e85f5e695d079dca886.js +2 -0
- package/dist/client/scripts/7e85f5e695d079dca886.js.LICENSE.txt +1 -0
- package/dist/client/scripts/7f80929b1cc1047be1c9.js +1 -1
- package/dist/client/scripts/{22e270f311f56a5407cb.js → 7f95fbcd683062c20173.js} +1 -1
- package/dist/client/scripts/80482a16fe24140d2a21.js +1 -1
- package/dist/client/scripts/804a497cb44fe949310e.js +1 -1
- package/dist/client/scripts/815b2ba5fab54eebb5ca.js +1 -1
- package/dist/client/scripts/84e8cb222b65ef8c7fd7.js +1 -1
- package/dist/client/scripts/8537711ac020c8f29676.js +1 -1
- package/dist/client/scripts/{2e92c9f1881a5f4f24d8.js → 858d0a582e7ad0c11188.js} +1 -1
- package/dist/client/scripts/86714d804290b9ba22f6.js +1 -1
- package/dist/client/scripts/867ee96ab822b2070c40.js +1 -1
- package/dist/client/scripts/87437d71b7ed0a627316.js +1 -1
- package/dist/client/scripts/8773147ebc61bee2e1a6.js +1 -1
- package/dist/client/scripts/88b02946d875717c7892.js +1 -1
- package/dist/client/scripts/8a563c21fcd39c3edc64.js +1 -1
- package/dist/client/scripts/{6b3a9814dfe9345f60db.js → 8f0d8b6f4cf5ea5d32e3.js} +1 -1
- package/dist/client/scripts/9017b70932ac98380220.js +1 -1
- package/dist/client/scripts/914125d34a0c8421839d.js +1 -1
- package/dist/client/scripts/91501cfefb3e9beeffa4.js +1 -1
- package/dist/client/scripts/91d074c85ca207348249.js +1 -1
- package/dist/client/scripts/91f5a130ef63276c95f1.js +1 -1
- package/dist/client/scripts/92e2f55c77c0b9473c56.js +1 -1
- package/dist/client/scripts/92f88dfc1b040e6657db.js +1 -1
- package/dist/client/scripts/9324abfa574340eb6ede.js +1 -1
- package/dist/client/scripts/933d633cb47a3304650c.js +1 -1
- package/dist/client/scripts/{e0f5acc47ed5ca962695.js → 934ef1913852643b8075.js} +1 -1
- package/dist/client/scripts/93891a876d2976d9805f.js +1 -1
- package/dist/client/scripts/9486014a6b617075b94c.js +1 -1
- package/dist/client/scripts/95239a6c2ab36a9f67e8.js +1 -1
- package/dist/client/scripts/955225d756ed3c4e0856.js +1 -0
- package/dist/client/scripts/{61e2b5d6d91ac1f79caa.js → 969be097de0ece70a219.js} +1 -1
- package/dist/client/scripts/{c92d18059ca7a5fa187e.js → 9795b08c4ac3d39aa734.js} +1 -1
- package/dist/client/scripts/980215f15338a4638935.js +1 -1
- package/dist/client/scripts/9865e2574c6d07158054.js +1 -1
- package/dist/client/scripts/{8bff3de4212bafab4077.js → 9a240e0b21d636d1a38b.js} +1 -1
- package/dist/client/scripts/{eab0059cfa57db0af11c.js → 9be66e00b94134bf8ba1.js} +1 -1
- package/dist/client/scripts/9c4c4822a484f5a5ad19.js +1 -1
- package/dist/client/scripts/9c9ffd5549b3beb747e8.js +1 -0
- package/dist/client/scripts/{382fbb35d40be45010f0.js → 9e4f9b5ccf6374929ffd.js} +1 -1
- package/dist/client/scripts/{5c2b82e012d3f482ead3.js → 9f3a445b7e4a1376917a.js} +1 -1
- package/dist/client/scripts/a1e09e772d99a582aca6.js +1 -1
- package/dist/client/scripts/a256e0ec3a4d4952396d.js +1 -0
- package/dist/client/scripts/a299cbe3889cd21cace8.js +1 -1
- package/dist/client/scripts/a2fe354aca6970fedba6.js +1 -1
- package/dist/client/scripts/a3125245058e27361bb2.js +1 -1
- package/dist/client/scripts/{138cfedbc9aa0fb82acc.js → a35c162c99ace4b92eff.js} +1 -1
- package/dist/client/scripts/a3f9d1ecae4ff253fe3e.js +1 -0
- package/dist/client/scripts/a451e339bbbf4c755dd2.js +1 -1
- package/dist/client/scripts/{55b1f27dcbab64e7f0b4.js → a4919aaeec2b21a6fbc1.js} +1 -1
- package/dist/client/scripts/a49c74188fc5251d8b65.js +1 -1
- package/dist/client/scripts/a4dcfa11d11e734e715b.js +2 -0
- package/dist/client/scripts/{6544d845ce286c6cf7f6.js.LICENSE.txt → a4dcfa11d11e734e715b.js.LICENSE.txt} +1 -1
- package/dist/client/scripts/{2f0aa96a3867425b917c.js → a54ed3a84366af42e9e7.js} +1 -1
- package/dist/client/scripts/a57475df7173017e6067.js +1 -0
- package/dist/client/scripts/{de48ab96f2314589c8f5.js → a5fc4d479e8511e4eb2b.js} +1 -1
- package/dist/client/scripts/a67dfcc6f9de1ceaf9d9.js +1 -1
- package/dist/client/scripts/a6d598ec76e67174f994.js +1 -1
- package/dist/client/scripts/a74cc1abc33d10c98576.js +1 -1
- package/dist/client/scripts/a7dbd4ea0593cac5da1e.js +1 -1
- package/dist/client/scripts/a7f81a333cfee151ffc8.js +1 -1
- package/dist/client/scripts/a8c732ef4e6bb196c696.js +1 -1
- package/dist/client/scripts/{23c68f0836ee164afc97.js → a95791db9a4415066336.js} +1 -1
- package/dist/client/scripts/a964116d7226e0252a4e.js +1 -0
- package/dist/client/scripts/a98815c8466bb8a199d5.js +1 -1
- package/dist/client/scripts/a9887918f6748e99e5e6.js +1 -1
- package/dist/client/scripts/a98a1c78a6e495be1fe3.js +1 -1
- package/dist/client/scripts/a98ae546a5412a626205.js +1 -1
- package/dist/client/scripts/aa420ba8f8c0b546ec1b.js +1 -1
- package/dist/client/scripts/ab31c58b4b87e68b35fb.js +1 -1
- package/dist/client/scripts/abe7bec6335799afee09.js +1 -1
- package/dist/client/scripts/ac9413fc9a5f74284fd0.js +1 -1
- package/dist/client/scripts/ace1879f1508cfa2945b.js +1 -0
- package/dist/client/scripts/ada91090ef1c52557dc9.js +1 -1
- package/dist/client/scripts/ae547edbc8099702ba5a.js +1 -1
- package/dist/client/scripts/ae596ff1996c280c202c.js +1 -1
- package/dist/client/scripts/aed82b4abb9926126fdd.js +1 -1
- package/dist/client/scripts/{23b4b0e265088d24449e.js → af9276e8bebe0ab20336.js} +1 -1
- package/dist/client/scripts/affc2dc765c1741a7319.js +1 -1
- package/dist/client/scripts/b1590b789b54502c0272.js +1 -1
- package/dist/client/scripts/b28351429658bbe84c2b.js +1 -1
- package/dist/client/scripts/{580a33d2a6fd7fafab2e.js → b28545c066f1d7392f38.js} +1 -1
- package/dist/client/scripts/{4adaa88e55937e122c02.js → b6fd2ab6730d6bb9bcdf.js} +1 -1
- package/dist/client/scripts/b83b6b4191840a25baa5.js +1 -1
- package/dist/client/scripts/{b12061cee6bd7ef0da0b.js → b951d27fb7938085152b.js} +1 -1
- package/dist/client/scripts/{3abc2630f32e1ddf96d3.js → baf3f29cb863c2f70914.js} +1 -1
- package/dist/client/scripts/bb787f3765349db90879.js +1 -0
- package/dist/client/scripts/{33243d5f6375a35a5b08.js → bce7cfcab89665d7843d.js} +1 -1
- package/dist/client/scripts/{2862716c5f1748b88abf.js → bcffe26cebcae8869796.js} +1 -1
- package/dist/client/scripts/becfc64a7cf18580f64b.js +1 -1
- package/dist/client/scripts/bf0781d3e1fda7aaf432.js +1 -1
- package/dist/client/scripts/c07d2bb6aab9b5629d10.js +1 -1
- package/dist/client/scripts/{f2a2f7927eed677de0fb.js → c10411cb2fb0d1e96b39.js} +1 -1
- package/dist/client/scripts/c26ce260299263eeb8bb.js +1 -1
- package/dist/client/scripts/c3622d52d3929b8ce67a.js +1 -1
- package/dist/client/scripts/{e8055817c34ca7f2e0d1.js → c3768b5966b8ae4dfaec.js} +1 -1
- package/dist/client/scripts/{31bdae30a445f8caf38d.js → c385596749afa7bb3263.js} +1 -1
- package/dist/client/scripts/c481d06a2d00d82eaaad.js +1 -0
- package/dist/client/scripts/{17f050e8fbf954ca4400.js → c4988b34044304274bd5.js} +1 -1
- package/dist/client/scripts/c5f1674416359d3591b6.js +1 -1
- package/dist/client/scripts/c851b9c277a957cfd5d1.js +1 -0
- package/dist/client/scripts/ca79fa2a1ed7e82e450a.js +1 -1
- package/dist/client/scripts/{eb9ab6dd707734630876.js → cb6f19fdf5a3339ce13a.js} +1 -1
- package/dist/client/scripts/{18fdae02c01f35f20b11.js → cbc09cc950a1dd22d943.js} +1 -1
- package/dist/client/scripts/ccbc92304043924d021b.js +1 -1
- package/dist/client/scripts/{e6d875a37c62f3d3e561.js → cdb04a3db8b41eabef26.js} +1 -1
- package/dist/client/scripts/{9a83b42dbc369d0277e6.js → ce0c092a8914dd6ea4bc.js} +1 -1
- package/dist/client/scripts/ce762c959cf9b699acf8.js +1 -1
- package/dist/client/scripts/d014754e0eff762e6ca9.js +1 -1
- package/dist/client/scripts/d014f1abc1fcc90b5657.js +1 -1
- package/dist/client/scripts/d2b70350d3fa2cef0e39.js +1 -1
- package/dist/client/scripts/d307d2e9cf655c179d77.js +1 -1
- package/dist/client/scripts/{8ce2d092e29a43286f3c.js → d3290ba9c36afffcdaf5.js} +1 -1
- package/dist/client/scripts/d39f4c3cff0aeebb9f76.js +1 -1
- package/dist/client/scripts/d3aa563c4024f80b82d0.js +1 -1
- package/dist/client/scripts/d63d97bbaaf166541301.js +1 -0
- package/dist/client/scripts/d7a62916cee4d6e2b444.js +1 -1
- package/dist/client/scripts/{886d531d72735c6d34f0.js → d84d483d866959c361e3.js} +1 -1
- package/dist/client/scripts/d8502c8331a1e69286ed.js +1 -1
- package/dist/client/scripts/{a6130794c1d33d80488a.js → d90312afbc1bfd9f5a0d.js} +1 -1
- package/dist/client/scripts/db30cb86f2d695ff6d1c.js +1 -1
- package/dist/client/scripts/dc16b2fd8f77226e3fd5.js +1 -1
- package/dist/client/scripts/dca2c65879ee8c6fe5e7.js +1 -1
- package/dist/client/scripts/ddc4d2ea575a50bc4ae3.js +1 -1
- package/dist/client/scripts/de137222b71f4b8d7f47.js +1 -1
- package/dist/client/scripts/df56e8276b6973df6c3c.js +1 -1
- package/dist/client/scripts/dfab0d5501435b36f6fb.js +1 -1
- package/dist/client/scripts/e02282a148d07c58be1b.js +1 -0
- package/dist/client/scripts/e0ae6eb532e9deca95b9.js +1 -1
- package/dist/client/scripts/e0c5487ea1f49ba55654.js +1 -1
- package/dist/client/scripts/{43f8d26f8aecf79a4b3a.js → e1041a8f8fee37da9f64.js} +1 -1
- package/dist/client/scripts/{55718fd925b0c6f0c0fd.js → e19441594c72c7e33187.js} +1 -1
- package/dist/client/scripts/e2b91f9e13b86ff8389c.js +1 -1
- package/dist/client/scripts/e32ea532d3a6b8476e8e.js +1 -1
- package/dist/client/scripts/{38318d710c41e17d02b6.js → e40e16f802cba2b38cd0.js} +1 -1
- package/dist/client/scripts/{2cd9d0c7890646526851.js → e50f735e24a5511e4fe7.js} +1 -1
- package/dist/client/scripts/e53c02752abb05f93abd.js +2 -0
- package/dist/client/scripts/e555e6f7c093044467bd.js +1 -1
- package/dist/client/scripts/e600798c21b1e4b3421a.js +1 -1
- package/dist/client/scripts/e60fe8e9115fe7dd13cf.js +1 -1
- package/dist/client/scripts/e6e11ced2410e20b8d71.js +1 -1
- package/dist/client/scripts/e7b33c7b9c52aa2c42fb.js +1 -1
- package/dist/client/scripts/{e84e2c99fac618724a6b.js → e835ff260d3fbc62fe97.js} +1 -1
- package/dist/client/scripts/e86000417aa87698de4d.js +1 -1
- package/dist/client/scripts/e8e60da8c8779e8707b7.js +1 -0
- package/dist/client/scripts/e949a288ca740fd5e306.js +1 -1
- package/dist/client/scripts/e97cb8c56d2e5ca10a9b.js +1 -1
- package/dist/client/scripts/{c0448d3c462e3deb1993.js → ebd5c31d99bfb280a1c4.js} +1 -1
- package/dist/client/scripts/ebe3c46ecbab47f14ec8.js +1 -0
- package/dist/client/scripts/ed99cbfe5e38529fe2fb.js +1 -0
- package/dist/client/scripts/eeab9a15254a348ad026.js +1 -0
- package/dist/client/scripts/eeaf7a5064376c23e2fd.js +1 -1
- package/dist/client/scripts/{04dfed6889eaadd2afd5.js → f059d5c14973f89cc511.js} +1 -1
- package/dist/client/scripts/f1fc1db1d8256f3c8b0f.js +1 -1
- package/dist/client/scripts/f277be41b5d66b178431.js +1 -1
- package/dist/client/scripts/f2cfbc8d04d591718bf9.js +1 -1
- package/dist/client/scripts/f2ef165911bb1b115aad.js +1 -1
- package/dist/client/scripts/f463c441cd83d40c3f8f.js +1 -1
- package/dist/client/scripts/f4dd172b8568997dcdf4.js +2 -0
- package/dist/client/scripts/f75efc7d112f59f0bf9c.js +1 -1
- package/dist/client/scripts/{4bd0e0de8052cba02172.js → f812bdfd78927c2b61fe.js} +1 -1
- package/dist/client/scripts/{6a18930893f1bec771d8.js → f8e071a1b88fcd7db10a.js} +1 -1
- package/dist/client/scripts/f94be4a838d4a8146c32.js +1 -1
- package/dist/client/scripts/{ab4c23c9be69cc8dc10a.js → fbd887d0bca0878a38f9.js} +1 -1
- package/dist/client/scripts/{2a512ada29fd6340b561.js → fbf1755027488e5b0cfb.js} +1 -1
- package/dist/client/scripts/fc63ac8b05db08b3486b.js +1 -0
- package/dist/client/scripts/fddbb5023e794ab0f98a.js +1 -1
- package/dist/client/scripts/{af5952182a294bc0aa31.js → fec2ba020c24c384b60b.js} +1 -1
- package/dist/client/scripts/fed71972ffa79d797286.js +1 -1
- package/dist/client/scripts/ff80131a5bed70291e0b.js +1 -1
- package/dist/components/{LoadingSpinner-BKvB97F9.mjs → LoadingSpinner-OUYR1Zws.mjs} +4283 -4156
- package/dist/components/LoadingSpinner-W8dEafHA.js +38 -0
- package/dist/components/vs-component-library-maps.js +3 -3
- package/dist/components/vs-component-library-maps.mjs +694 -694
- package/dist/components/vs-component-library.js +3 -3
- package/dist/components/vs-component-library.mjs +8 -8
- package/dist/ssr/index.js +1 -1
- package/dist/ssr/manifest.json +1 -1
- package/package.json +3 -3
- package/dist/client/scripts/02267cd15e5d3c38ec2a.js +0 -1
- package/dist/client/scripts/05ed6c26804615289452.js +0 -1
- package/dist/client/scripts/089accd171820ed54ff9.js +0 -1
- package/dist/client/scripts/0b761938ad36cd67b6bf.js +0 -1
- package/dist/client/scripts/10559d03b0ae2c434d59.js +0 -1
- package/dist/client/scripts/29a09e10b4c826dc6bcd.js +0 -1
- package/dist/client/scripts/3e2a4885ce28b249cd63.js +0 -1
- package/dist/client/scripts/4686de7ea799c8ec1c03.js +0 -1
- package/dist/client/scripts/46b91e4ff55299b16e9b.js +0 -1
- package/dist/client/scripts/52884b53dca6e2248312.js +0 -1
- package/dist/client/scripts/568f78f9b01fc9462683.js +0 -1
- package/dist/client/scripts/5801faf406d084e1f422.js +0 -1
- package/dist/client/scripts/5f831ae065d194ef8b88.js +0 -2
- package/dist/client/scripts/6021921cffa267d6b6a7.js +0 -1
- package/dist/client/scripts/650a4d8c173040ed7812.js +0 -1
- package/dist/client/scripts/6544d845ce286c6cf7f6.js +0 -2
- package/dist/client/scripts/6b275c100f8042199de9.js +0 -1
- package/dist/client/scripts/72e8cf2a7ddceadf4584.js +0 -2
- package/dist/client/scripts/72e8cf2a7ddceadf4584.js.LICENSE.txt +0 -1
- package/dist/client/scripts/8bbb03cef27adbf1052c.js +0 -1
- package/dist/client/scripts/91ec808848d9ef8fde7a.js +0 -1
- package/dist/client/scripts/98b05b5cd0aaffd7572a.js +0 -1
- package/dist/client/scripts/a1d3f1a72e58f869f748.js +0 -1
- package/dist/client/scripts/a55fed95b2f031316caf.js +0 -1
- package/dist/client/scripts/afd5b0c1ea115a131076.js +0 -1
- package/dist/client/scripts/b16d36c13df4f81799dc.js +0 -2
- package/dist/client/scripts/c4c6c4f82f8a5ceb9401.js +0 -1
- package/dist/client/scripts/d92b71a6a05b8f554c7e.js +0 -1
- package/dist/client/scripts/e92b419e81affdea6d7d.js +0 -1
- package/dist/client/scripts/ee1d435693f0ce65b853.js +0 -1
- package/dist/client/scripts/f166c3fa28bce031e937.js +0 -1
- package/dist/client/scripts/f2dfcfa0d38d341fc827.js +0 -2
- package/dist/client/scripts/fdd619f75d63a8628e4e.js +0 -2
- package/dist/client/scripts/fe9b0e3ab93fda599cfb.js +0 -1
- package/dist/client/scripts/feeecf83bdc1c651376a.js +0 -1
- package/dist/components/LoadingSpinner-C8LAYV8q.js +0 -38
- package/dist/client/scripts/{04d55c65d84727be241d.js → 27ab39799c27a6e7c170.js} +0 -0
- package/dist/client/scripts/{678be80c89eff10efccf.js.LICENSE.txt → 370e6150fbd0dccf34c7.js.LICENSE.txt} +0 -0
- package/dist/client/scripts/{fdd619f75d63a8628e4e.js.LICENSE.txt → 65f43123fc14b35b64d1.js.LICENSE.txt} +0 -0
- package/dist/client/scripts/{f2dfcfa0d38d341fc827.js.LICENSE.txt → 70b382267b5513186329.js.LICENSE.txt} +0 -0
- package/dist/client/scripts/{fd3f812603b78fe9978b.js → 81267fad3ff38d811ea7.js} +0 -0
- package/dist/client/scripts/{5c7de0c787b6e213d9a7.js → d94ba5393987a3e2d90a.js} +0 -0
- package/dist/client/scripts/{5f831ae065d194ef8b88.js.LICENSE.txt → e53c02752abb05f93abd.js.LICENSE.txt} +0 -0
- package/dist/client/scripts/{6b563760413cecbb2ea9.js → e6abca5f001c11b9b614.js} +0 -0
- package/dist/client/scripts/{b16d36c13df4f81799dc.js.LICENSE.txt → f4dd172b8568997dcdf4.js.LICENSE.txt} +0 -0
- package/dist/client/styles/{5389ee753606f9248ce8.css → 09ae016b64791f86ce4a.css} +0 -0
- package/dist/client/styles/{72709ccc1d539e0e7922.css → 12fa4d6469761cdb8326.css} +0 -0
- package/dist/client/styles/{f166c3fa28bce031e937.css → 350b5411ffc3a7b4a42a.css} +0 -0
- package/dist/client/styles/{0b761938ad36cd67b6bf.css → 416c4f28b6594389fb58.css} +0 -0
- package/dist/client/styles/{e92b419e81affdea6d7d.css → 41f72194eda6300eda07.css} +0 -0
- package/dist/client/styles/{10559d03b0ae2c434d59.css → 427f4a836835f87aa5a6.css} +0 -0
- package/dist/client/styles/{ee1d435693f0ce65b853.css → 509216b4e74f11f64f80.css} +0 -0
- package/dist/client/styles/{6021921cffa267d6b6a7.css → 53251829ca5de2bf36fe.css} +0 -0
- package/dist/client/styles/{3e2a4885ce28b249cd63.css → 5828c72a7124a5bcb563.css} +0 -0
- package/dist/client/styles/{feeecf83bdc1c651376a.css → 5a4a97205da676950fcf.css} +0 -0
- package/dist/client/styles/{46b91e4ff55299b16e9b.css → 6426b3dc3b49d5317801.css} +0 -0
- package/dist/client/styles/{5801faf406d084e1f422.css → 7dc60eea744dfc329db1.css} +0 -0
- package/dist/client/styles/{089accd171820ed54ff9.css → 955225d756ed3c4e0856.css} +0 -0
- package/dist/client/styles/{6b275c100f8042199de9.css → 9c9ffd5549b3beb747e8.css} +0 -0
- package/dist/client/styles/{c4c6c4f82f8a5ceb9401.css → a256e0ec3a4d4952396d.css} +0 -0
- package/dist/client/styles/{29a09e10b4c826dc6bcd.css → a964116d7226e0252a4e.css} +0 -0
- package/dist/client/styles/{afd5b0c1ea115a131076.css → ace1879f1508cfa2945b.css} +0 -0
- package/dist/client/styles/{8bbb03cef27adbf1052c.css → c481d06a2d00d82eaaad.css} +0 -0
- package/dist/client/styles/{650a4d8c173040ed7812.css → d63d97bbaaf166541301.css} +0 -0
- package/dist/client/styles/{a55fed95b2f031316caf.css → e02282a148d07c58be1b.css} +0 -0
- package/dist/client/styles/{6b563760413cecbb2ea9.css → e6abca5f001c11b9b614.css} +0 -0
- package/dist/client/styles/{fe9b0e3ab93fda599cfb.css → ebe3c46ecbab47f14ec8.css} +0 -0
- package/dist/client/styles/{d92b71a6a05b8f554c7e.css → ed99cbfe5e38529fe2fb.css} +0 -0
- package/dist/client/styles/{568f78f9b01fc9462683.css → eeab9a15254a348ad026.css} +0 -0
- package/dist/ssr/styles/{c46f7f8ca1912b03befc.css → 28e3bc50aab5464f72f4.css} +28 -28
|
@@ -1 +0,0 @@
|
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.VsMainMap=t():e.VsMainMap=t()}(self,(function(){return(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[1733],{1668:function(e,t,a){"use strict";var n=a(85072),r=a.n(n),o=a(97825),l=a.n(o),i=a(77659),c=a.n(i),u=a(55056),s=a.n(u),d=a(10540),p=a.n(d),f=a(41113),v=a.n(f),g=a(65638),y=a.n(g),m={};m.styleTagTransform=v(),m.setAttributes=s(),m.insert=c().bind(null,"head"),m.domAPI=l(),m.insertStyleElement=p(),r()(y(),m),y()&&y().locals&&y().locals},7885:function(e,t,a){"use strict";var n=a(50953),r=a(20641);t.A=function(){var e=(0,n.KR)([]),t=(0,n.KR)(!1),a=(0,n.KR)(!1),o=(0,r.EW)((function(){return!("undefined"==typeof window||!window.bypassCookiesRequired)||t.value})),l=(0,r.EW)((function(){return!("undefined"==typeof window||!window.bypassCookiesLoaded)||{cookieManagerLoaded:a}}));return(0,r.sV)((function(){window.addEventListener("cookieManagerLoaded",(function(){a.value=!0})),window.addEventListener("cookiesUpdated",(function(){var a;a=!1,"undefined"!=typeof CookieControl&&(a=e.value.every((function(e){return!0===CookieControl.getCategoryConsent(e)}))),t.value=a}))})),{requiredCookies:e,cookiesAllowed:o,cookiesLoaded:l}}},12524:function(e,t,a){"use strict";a.r(t);var n=a(88522);a(70224);const r=n.A;t.default=r},44806:function(e,t,a){"use strict";var n=a(10467),r=a(54756),o=a.n(r),l=a(20641),i=a(90033),c=a(50953),u=a(53751),s=a(88620),d=a(83750),p=a(57536),f=a(12903),v=a(84343),g=a(12308),y=a(78202),m=a(7885),b=a(66604),h=a(96763),_={class:"vs-map"},k={class:"vs-map__controls"},w={class:"vs-map-sidebar__sub-filters"},C={key:0},R={id:"search-container"},E={key:0,class:"vs-map__filter-controls"},x={class:"vs-map__wrapper"},S={id:"vs-map","map-id":"vs-map",ref:"vsMap"},I={id:"detail-container"};t.A={__name:"MainMap",props:{apiKey:{type:String,default:(0,s.A)("GOOGLE_MAPS_API_KEY")},mapId:{type:String,default:"vs-map"},mapTypeVector:{type:Boolean,default:!1},center:{type:Object,default:function(){return{lat:56.490153,lng:-4.10959}}},zoom:{type:Number,default:6},radius:{type:Number,default:1e3},labels:{type:Object,default:function(){}},languageCode:{type:String,default:"en",validator:function(e){return e.match(/(en|es|it|de|nl|fr)/)}},categoriesLocation:{type:String,default:""},categoryLabels:{type:Object,default:function(){}},featuredPlaces:{type:Object,default:void 0},jsDisabled:{type:Boolean,required:!0},noJsMessage:{type:String,required:!0},noCookiesMessage:{type:String,required:!0},cookieBtnText:{type:String,required:!0},noResultsMessage:{type:String,required:!0},resetMapNoResultsMessage:{type:String,required:!0},alertText:{type:String,default:void 0}},setup:function(e){var t,a,r,s,L,A,F,T,O,M,j=(0,b.A)(),B=e,D=B.categoryLabels.find((function(e){return"destinations"===e.id})),K=D?D.subCategory:null;(0,l.Gt)("featuredPlaces",{categories:K,places:B.featuredPlaces}),(0,l.Gt)("onFeaturedLocationClick",(function(e){t.fitBounds(new google.maps.LatLngBounds(new google.maps.LatLng(e.properties.viewport.low.latitude,e.properties.viewport.low.longitude),new google.maps.LatLng(e.properties.viewport.high.latitude,e.properties.viewport.high.longitude))),t.setCenter(new google.maps.LatLng(e.properties.locationCentre.latitude,e.properties.locationCentre.longitude)),de("things-to-do",2),H.value=!0}));var W,q,J={},U=(0,c.KR)(),Y=(0,c.KR)(new Set),z=(0,c.KR)(),X=(0,c.KR)(new Set),V=(0,c.KR)(new Set),Q=(0,c.KR)(new Set),P=(0,c.KR)(new Set),Z=(0,c.KR)(),N=(0,c.KR)(),G=(0,c.KR)(B.zoom),H=(0,c.KR)(!1),$=(0,c.KR)(),ee=(0,c.KR)(new Set),te=(0,c.KR)(),ae=(0,l.EW)((function(){var e=new Map,t=ie[U.value].subCategory;return Object.values(t).forEach((function(t){e.set(t.id,{includedTypes:t.includedType,excludedTypes:t.excludedType})})),e})),ne=(0,v.default)(),re=(0,c.KR)(void 0),oe=(0,c.KR)(void 0),le={north:60.8,south:54.8,west:-8.5,east:-.7},ie={},ce=B.categoryLabels,ue=0;function se(e){var a={strokeColor:"#A3A3CC",strokeOpacity:1,strokeWeight:1,fillColor:"#A3A3CC",fillOpacity:.5},n=["ChIJ39UebIqp0EcRqI4tMyWV4fQ","ChIJdZmmmcoQXkgR2OO3bu8o5fc","ChIJ-ydAXOS6WUgRCPTbzjQSfM8","ChIJ7Q8cbLY0ZEgRouilirxxux4","ChIJ1YEuRDCFY0gRDeDw8bxbAuo","ChIJv-VNj0VoEkYRK9BkuJ07sKE","ChIJ-1-U7rYnS0YRzZLgw9BDh1I","ChIJ8fA1bTmyXEYRYm-tjaLruCI","ChIJ6_ktdpMVvEgRJBv3ZEgxsD8","ChIJa76xwh5ymkcRW-WRjmtd6HU","ChIJu-SH28MJxkcRnwq9_851obM","ChIJuwtkpGSZAEcR6lXMScpzdQk","ChIJl5fz7WR9wUcR8g_mObTy60c","ChIJMVd4MymgVA0R99lHx5Y__Ws","ChIJ_ZqKe2cw6UYREPzyaM3PAAA","ChIJE74zDxSU3UYRubpdpdNUCvM","ChIJ4wsuREWc40YRewI60MRYJR4","ChIJ_UuggpyUkkYRwyW0T7qf6kA","ChIJ3fYyS9_KgUYREKh1PNZGAQA","ChIJQ2Dro1Ir0kgRmkXB5TQEim8","ChIJFXfA47sNok4RGOIUAYOdzzQ","ChIJI9HkgQm_ikYR8i7GR23fEbY","ChIJUXXYvLMei0YR7zdFQUIM8bA","ChIJRyEhyrlFlUcR75LTAvZg22Q"],r=["ChIJ39UebIqp0EcRqI4tMyWV4fQ","ChIJdZmmmcoQXkgR2OO3bu8o5fc","ChIJ-ydAXOS6WUgRCPTbzjQSfM8","ChIJ6_ktdpMVvEgRJBv3ZEgxsD8"],o=t.getFeatureLayer(google.maps.FeatureType.COUNTRY),l=t.getFeatureLayer(google.maps.FeatureType.ADMINISTRATIVE_AREA_LEVEL_1);e?(o.style=null,l.style=null,o.style=function(e){if(r.includes(e.feature.placeId))return a},l.style=function(e){if(r.includes(e.feature.placeId))return a}):(o.style=function(e){if(n.includes(e.feature.placeId))return a},l.style=function(e){if(n.includes(e.feature.placeId))return a})}function de(e,t){Ce(),U.value=e,Object.values(ie[e].subCategory).forEach((function(e){return X.value.add(e.includedType)})),Object.values(ie[e].subCategory).forEach((function(e){e.excludedType&&V.value.add(e.excludedType)})),X.value=new Set(Array.from(X.value).flat()),V.value=new Set(Array.from(V.value).flat()),X.value.forEach((function(e){V.value.has(e)&&V.value.delete(e)})),z.value=ie[e],Z.value=t,ge({includedTypes:Array.from(X.value),excludedTypes:Array.from(V.value)}),$.value=ce[Z.value].label,O.value=$.value}function pe(e,t){var a=(0,c.KR)([]),n=(0,c.KR)();return e.forEach((function(){ce.forEach((function(e){e.id===U.value&&(a.value=e)})),Object.values(a.value).forEach((function(e){Object.values(e).forEach((function(e){t===e.id&&(n.value=e.label)}))}))})),n}function fe(){Q.value.forEach((function(e){P.value.has(e)&&P.value.delete(e)}))}function ve(e){var t,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=a.includeTypes,r=void 0!==n&&n,o=a.excludeTypes,l=void 0!==o&&o,i=a.removeIncludedTypes,c=void 0!==i&&i,u=a.removeExcludedTypes,s=void 0!==u&&u,d=ae.value.get(e);r&&d.includedTypes.forEach((function(e){r&&Q.value.add(e),c&&Q.value.delete(e)})),(l||s)&&(null===(t=d.excludedTypes)||void 0===t||t.forEach((function(e){l&&P.value.add(e),s&&P.value.delete(e)})))}function ge(){return ye.apply(this,arguments)}function ye(){return ye=(0,n.A)(o().mark((function e(){var a,n,l,i,c,u,s,d,p,f,v,g=arguments;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=(a=g.length>0&&void 0!==g[0]?g[0]:{}).includedTypes,l=void 0===n?[]:n,i=a.excludedTypes,c=void 0===i?[]:i,ke(),we(),u=ue+=1,ne.filterUsesCount+=1,te.value="nearby",s=t.getBounds(),d=s.getNorthEast(),p=s.getSouthWest(),f=google.maps.geometry.spherical.computeDistanceBetween(d,p),v=Math.min(f/2,25e3),A.includedTypes=l,A.excludedTypes=null!=c?c:[],A.maxResultCount=20,A.locationRestriction={center:t.getCenter(),radius:v},r.style.display="block",r.addEventListener("gmp-load",(function(){if(u===ue){he(u);var e="main",a=U.value;Y.value.size&&(e="sub",a=Array.from(Y.value).join(", ")),j.createDataLayerObject("googleMapFilterEvent",{filter_type:e,search_map_location:t.getCenter().toString(),filter_selection:a,results_count:r.places.length,filter_usage_index:ne.filterUsesCount}),Se("map_filter")}}),{once:!0});case 1:case"end":return e.stop()}}),e)}))),ye.apply(this,arguments)}function me(){return be.apply(this,arguments)}function be(){return(be=(0,n.A)(o().mark((function e(){var a;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(ke(),Ce(),a=ue+=1,ne.searchesCount+=1,te.value="text",$.value=O.value.trim(),$.value){e.next=1;break}return e.abrupt("return");case 1:L.textQuery=$.value,L.locationRestriction=t.getBounds(),L.maxResultCount=20,s.style.display="block",s.addEventListener("gmp-load",(function(){a===ue&&(he(a),j.createDataLayerObject("googleMapSearchEvent",{search_query:$.value,search_map_location:t.getCenter().toString(),search_results_count:s.places.length,search_usage_index:ne.searchesCount}),Se("map_search"))}),{once:!0});case 2:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function he(e){return _e.apply(this,arguments)}function _e(){return(_e=(0,n.A)(o().mark((function e(a){var n,l,i,u,p,f;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,(0,d.lB)("marker");case 1:return n=e.sent,l=n.AdvancedMarkerElement,e.next=2,(0,d.lB)("core");case 2:if(i=e.sent,u=i.LatLngBounds,a===ue){e.next=3;break}return e.abrupt("return");case 3:p=(0,c.KR)(),"nearby"===te.value?p.value=r:"text"===te.value?p.value=s:h.error("Unrecognised Search type"),0===p.value.places.length?(re.value=!0,p.value.style.display="none"):(re.value=!1,p.value.style.display="block"),f=new u,p.value.places&&p.value.places.forEach((function(e){var a=document.createElement("div");a.classList.add("vs-map-marker");var n=document.createElement("i");n.classList.add("fa-solid","fa-location-dot"),a.appendChild(n);var r=new l({map:t,position:e.location,content:a,title:"Map pin"});r.addEventListener("gmp-placeclick",(function(){Re(e)})),r.addListener("click",(function(){Re(e)})),r.metadata={id:e.id},J[e.id]=r,f.extend(e.location),1===p.value.places.length?(t.setCenter({lat:e.location.lat(),lng:e.location.lng()}),t.setZoom(14),t.fitBounds(e.viewport)):(t.setCenter(f.getCenter()),t.fitBounds(f))}));case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function ke(e,a){!function(){for(var e in J)J[e]&&(J[e].map=null);J={}}(),te.value="",r.style.display="none",s.style.display="none",L.textQuery=null,H.value=!1,M&&M.close&&M.close(),re.value=void 0,e&&(we(),Ce(),Ee("clear_all")),a&&(t.setCenter(B.center),t.setZoom(B.zoom),t.fitBounds(le),Ee("reset_map"))}function we(){$.value=null,O.value=""}function Ce(){U.value=void 0,Y.value=new Set,X.value=new Set,V.value=new Set,Q.value=new Set,P.value=new Set,ee.value=new Set,Z.value=void 0,N.value=void 0}function Re(e){M.isOpen&&(M.close(),Ee("card_close",T.place)),T.place=e,window.innerWidth<=768?(F.style.width="85vw",F.style.height="32em",ne.sidebarOpen=!1):(F.style.width="20em",F.style.height="32em"),F.style.display="block",F.style.overflowY="auto",F.style.overflowX="hidden",F.style.boxSizing="border-box",F.style.maxHeight="32em",M.setOptions({content:F,maxWidth:"25em",position:e.location,pixelOffset:new google.maps.Size(0,-32)}),M.open({map:t}),google.maps.event.addListenerOnce(t,"idle",(function(){t.getZoom()>17&&t.setZoom(17),Ee("card_open",e)})),t.setCenter(e.location)}function Ee(e,t){return xe.apply(this,arguments)}function xe(){return(xe=(0,n.A)(o().mark((function e(a,n){var r,l,i,c;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r="",l="",i="",c="",!n){e.next=2;break}return e.next=1,n.fetchFields({fields:["displayName","primaryType","rating","websiteURI"]});case 1:r=n.displayName,l=n.rating,i=n.websiteURI,c=n.primaryType;case 2:j.createDataLayerObject("googleMapInteractionEvent",{interaction_type:a,search_query:O.value.trim(),map_location:t.getCenter().toString(),visible_attractions_count:W,card_attraction_name:r,card_attraction_category:c,card_attraction_rating:l,card_attraction_url:i,interaction_timestamp_ms:Date.now()}),Se(a);case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Se(e){if(!ne.firstInteraction){var t=Date.now()-ne.timeMounted;j.createDataLayerObject("googleMapTimeToFirstInteractionEvent",{time_to_first_interaction_ms:t,first_interaction_type:e}),ne.firstInteraction=!0}}function Ie(){var e=t.getBounds();if(!e)return 0;for(var a=0,n=0;n<Object.keys(J).length;n++){var r=J[Object.keys(J)[n]].position;e.contains(r)&&(a+=1)}return a}return(0,l.KC)((function(){var e=(0,m.A)();e.requiredCookies.value=g.A.google_maps,q=(0,l.EW)((function(){return(!e.cookiesAllowed.value&&!0===e.cookiesLoaded.value||!e.cookiesLoaded.value)&&(oe.value="noCookie",!0)}))})),(0,l.sV)((0,n.A)(o().mark((function e(){var l,i;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i=function(){return(i=(0,n.A)(o().mark((function e(){var n,l;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,n={center:{lat:B.center.lat,lng:B.center.lng},renderingType:B.mapTypeVector?google.maps.RenderingType.VECTOR:google.maps.RenderingType.RASTER,zoom:B.zoom,isFractionalZoomEnabled:!0,mapId:B.mapId,restriction:{latLngBounds:le},zoomControl:!0,fullscreenControl:!1,mapTypeControl:!1,cameraControl:!1,streetViewControl:!1,gestureHandling:"greedy"},!a){e.next=1;break}(t=new google.maps.Map(a,n)).fitBounds(le),e.next=2;break;case 1:throw new Error("Init error, mapContainer undefined");case 2:e.next=4;break;case 3:e.prev=3,l=e.catch(0),h.error("Maps init error",l.message);case 4:(M=new google.maps.InfoWindow).addListener("closeclick",(function(){Ee("card_close",T.place)})),se(),t.addListener("zoom_changed",(function(){G.value=t.getZoom(),G.value<11?se():se(!0)})),t.addListener("idle",(function(){W=Ie()})),r.addEventListener("gmp-select",(function(e){var t=e.place;J[t.id]&&Re(t,J[t.id])})),s.addEventListener("gmp-select",(function(e){var t=e.place;J[t.id]&&Re(t,J[t.id])}));case 5:case"end":return e.stop()}}),e,null,[[0,3]])})))).apply(this,arguments)},l=function(){return i.apply(this,arguments)},B.categoriesLocation&&p.A.get(B.categoriesLocation).then((function(e){ie=e.data})).catch((function(){})),!1!==q.value){e.next=8;break}return(0,d.hn)({key:B.apiKey,v:"quarterly",libraries:["maps","places","marker","core","geometry"],region:"GB",language:B.languageCode}),e.prev=1,e.next=2,(0,d.lB)("maps");case 2:return e.next=3,(0,d.lB)("places");case 3:return e.next=4,(0,d.lB)("marker");case 4:return e.next=5,(0,d.lB)("core");case 5:return e.next=6,(0,d.lB)("geometry");case 6:e.next=8;break;case 7:e.prev=7,e.catch(1),h.error("Google Maps Library load error");case 8:if(a=document.getElementById("vs-map"),r=document.getElementById("nearbySearch"),s=document.getElementById("textSearch"),L=document.querySelector("gmp-place-text-search-request"),A=document.querySelector("gmp-place-nearby-search-request"),F=document.querySelector("gmp-place-details"),T=document.getElementById("placeRequest"),O=document.getElementById("vs-map-search-input"),ne.firstInteraction=!1,ne.searchesCount=0,ne.filterUsesCount=0,!1!==q.value){e.next=9;break}return e.next=9,l();case 9:case"end":return e.stop()}}),e,null,[[1,7]])})))),function(t,a){var n=(0,l.g2)("gmp-place-nearby-search-request"),r=(0,l.g2)("gmp-place-address"),o=(0,l.g2)("gmp-place-rating"),s=(0,l.g2)("gmp-place-type"),d=(0,l.g2)("gmp-place-price"),p=(0,l.g2)("gmp-place-accessible-entrance-icon"),v=(0,l.g2)("gmp-place-opening-hours"),g=(0,l.g2)("gmp-place-reviews"),m=(0,l.g2)("gmp-place-attribution"),b=(0,l.g2)("gmp-place-content-config"),h=(0,l.g2)("gmp-place-search"),L=(0,l.g2)("gmp-place-text-search-request"),A=(0,l.g2)("gmp-place-details-place-request"),F=(0,l.g2)("gmp-place-website"),T=(0,l.g2)("gmp-place-phone-number"),M=(0,l.g2)("gmp-place-summary"),j=(0,l.g2)("gmp-place-type-specific-highlights"),D=(0,l.g2)("gmp-place-feature-list"),K=(0,l.g2)("gmp-place-media"),W=(0,l.g2)("gmp-place-details");return(0,l.uX)(),(0,l.CE)("div",_,[(0,l.Lk)("div",{class:(0,i.normalizeClass)(["vs-map__container",(0,c.R1)(q)?"d-none":""])},[(0,l.Lk)("div",k,[(0,l.bF)(y.default,{query:$.value,"selected-categories":U.value,"header-label":B.labels.heading,"close-sidebar-button-label":B.labels.closeSidebarBtn,"search-bar-aria-label":B.labels.searchBarAriaLabel,"input-placeholder-label":B.labels.inputPlaceholder,"search-button-label":B.labels.searchButton,"clear-map-label":B.labels.clearMap,"sub-filter-header-label":B.labels.subFilterHeader,"search-results-label":B.labels.searchResults,"open-sidebar-button-label":B.labels.openSidebarButton,onSearchInputChanged:me,onResetMap:a[1]||(a[1]=function(e){return ke(!0)})},(0,l.eX)({"vs-map-sidebar-search-results":(0,l.k6)((function(){return[re.value||B.alertText&&!1===re.value?((0,l.uX)(),(0,l.Wv)((0,c.R1)(f.VsAlert),{key:0,class:"mt-075 mb-150",id:"vs-map__alert",size:"small"},{default:(0,l.k6)((function(){return[re.value?((0,l.uX)(),(0,l.CE)("span",C,[(0,l.eW)((0,i.toDisplayString)(e.noResultsMessage)+" ",1),(0,l.Lk)("a",{href:"#",onClick:a[0]||(a[0]=(0,u.withModifiers)((function(e){return ke(!0,!0)}),["prevent"]))},(0,i.toDisplayString)(e.resetMapNoResultsMessage),1)])):((0,l.uX)(),(0,l.CE)(l.FK,{key:1},[(0,l.eW)((0,i.toDisplayString)(e.alertText),1)],64))]})),_:1})):(0,l.Q3)("",!0),((0,l.uX)(),(0,l.Wv)(l.tY,null,{default:(0,l.k6)((function(){return[(0,l.Lk)("div",R,[(0,l.bF)(h,{id:"nearbySearch",orientation:"vertical",selectable:"",style:{display:"none"}},{default:(0,l.k6)((function(){return[(0,l.bF)(n,{id:"nearbySearchQuery"}),(0,l.bF)(b,null,{default:(0,l.k6)((function(){return[(0,l.bF)(r),(0,l.bF)(o),(0,l.bF)(s),(0,l.bF)(d),(0,l.bF)(p),(0,l.bF)(v),(0,l.bF)(g),(0,l.bF)(m,{"light-scheme-color":"gray","dark-scheme-color":"gray"})]})),_:1})]})),_:1}),(0,l.bF)(h,{id:"textSearch",orientation:"vertical",selectable:"",style:{display:"none"}},{default:(0,l.k6)((function(){return[(0,l.bF)(L,{id:"textSearchQuery"}),(0,l.bF)(b,null,{default:(0,l.k6)((function(){return[(0,l.bF)(r),(0,l.bF)(o),(0,l.bF)(s),(0,l.bF)(d),(0,l.bF)(p),(0,l.bF)(v),(0,l.bF)(g),(0,l.bF)(m,{"light-scheme-color":"gray","dark-scheme-color":"gray"})]})),_:1})]})),_:1})])]})),_:1}))]})),_:2},[U.value?{name:"vs-map-sidebar-sub-filters",fn:(0,l.k6)((function(){return[(0,l.Lk)("div",w,[((0,l.uX)(!0),(0,l.CE)(l.FK,null,(0,l.pI)((0,c.R1)(ce)[Z.value].subCategory,(function(e,t){return(0,l.uX)(),(0,l.Wv)((0,c.R1)(f.VsButton),{key:t,variant:Y.value.has(e.id)?"primary":"secondary",size:"sm",onClick:function(a){return function(e,t){N.value=t,"self-catering"===e?(we(),Y.value=new Set,Y.value.add(e),$.value=pe(Y.value,e).value,Ce(),O.value=$.value,me()):Y.value.has(e)?(Y.value.delete(e),Q.value=new Set,P.value=new Set,Y.value.forEach((function(e){ve(e,{includeTypes:!0,excludeTypes:!0})})),fe(),ee.value.delete(pe(Y.value,e).value),0===Y.value.size?(ee.value=new Set,de(U.value,Z.value)):(ge({includedTypes:Array.from(Q.value).flat(),excludedTypes:Array.from(P.value).flat()}),$.value=Array.from(ee.value).join(", "),O.value=$.value)):(Y.value.add(e),ve(e,{includeTypes:!0,excludeTypes:!0}),fe(),ge({includedTypes:Array.from(Q.value).flat(),excludedTypes:Array.from(P.value).flat()}),ee.value.add(pe(Y.value,e).value),$.value=Array.from(ee.value).join(", "),O.value=$.value)}(e.id,t)}},{default:(0,l.k6)((function(){return[(0,l.eW)((0,i.toDisplayString)(e.label),1)]})),_:2},1032,["variant","onClick"])})),128))])]})),key:"0"}:void 0]),1032,["query","selected-categories","header-label","close-sidebar-button-label","search-bar-aria-label","input-placeholder-label","search-button-label","clear-map-label","sub-filter-header-label","search-results-label","open-sidebar-button-label"]),(G.value>=11||H.value)&&(0,c.R1)(ne).sidebarOpen&&Object.keys((0,c.R1)(ie)).length>0?((0,l.uX)(),(0,l.CE)("div",E,[((0,l.uX)(!0),(0,l.CE)(l.FK,null,(0,l.pI)((0,c.R1)(ce),(function(e,t){return(0,l.uX)(),(0,l.CE)(l.FK,{key:t},[e.cmsData?(0,l.Q3)("",!0):((0,l.uX)(),(0,l.Wv)((0,c.R1)(f.VsButton),{key:0,class:"vs-map__filter-controls-button",variant:U.value===e.id?"primary":"secondary",onClick:(0,u.withModifiers)((function(a){return de(e.id,t)}),["prevent"]),icon:Object.values((0,c.R1)(ie))[t].icon},{default:(0,l.k6)((function(){return[(0,l.eW)((0,i.toDisplayString)(e.label),1)]})),_:2},1032,["variant","onClick","icon"]))],64)})),128))])):(0,l.Q3)("",!0)]),(0,l.Lk)("div",x,[(0,l.Lk)("div",S,null,512),((0,l.uX)(),(0,l.Wv)(l.tY,null,{default:(0,l.k6)((function(){return[(0,l.Lk)("div",I,[(0,l.bF)(W,{id:"placeDetails",style:{display:"none"}},{default:(0,l.k6)((function(){return[(0,l.bF)(A,{id:"placeRequest"}),(0,l.bF)(b,null,{default:(0,l.k6)((function(){return[(0,l.bF)(r),(0,l.bF)(o),(0,l.bF)(s),(0,l.bF)(d),(0,l.bF)(p),(0,l.bF)(v),(0,l.bF)(F),(0,l.bF)(T),(0,l.bF)(M),(0,l.bF)(j),(0,l.bF)(g),(0,l.bF)(D),(0,l.bF)(K,{"lightbox-preferred":""}),(0,l.bF)(m,{"light-scheme-color":"gray","dark-scheme-color":"gray"})]})),_:1})]})),_:1})])]})),_:1}))])],2),(0,c.R1)(q)&&"noCookie"===oe.value?((0,l.uX)(),(0,l.Wv)((0,c.R1)(f.VsWarning),{key:0,type:"cookie",class:(0,i.normalizeClass)(["vs-map__error vs-map__error--no-cookies",(0,c.R1)(q)?"d-block":"d-none"]),"data-test":"vs-map__warning--no-cookies"},{"button-text":(0,l.k6)((function(){return[(0,l.eW)((0,i.toDisplayString)(B.cookieBtnText),1)]})),default:(0,l.k6)((function(){return[(0,l.eW)((0,i.toDisplayString)(B.noCookiesMessage)+" ",1)]})),_:1},8,["class"])):(0,l.Q3)("",!0),(0,l.bF)((0,c.R1)(f.VsWarning),{class:"vs-map__warning vs-map__warning--no-js","data-test":"vs-map__warning--no-js"},{default:(0,l.k6)((function(){return[(0,l.eW)((0,i.toDisplayString)(e.noJsMessage),1)]})),_:1})])}}}},65638:function(){},66604:function(e,t,a){"use strict";a.d(t,{A:function(){return d}});var n=a(64467),r=a(50953),o=a(20641),l=a(4859),i=a(63555),c=a(12554);function u(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,n)}return a}function s(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?u(Object(a),!0).forEach((function(t){(0,n.A)(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):u(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}function d(){var e=(0,l.A)(),t=(0,r.KR)(!1);function a(e,t){var a={};return e.forEach((function(e){a[e]=t[e]||void 0,"language"===e&&void 0===a[e]&&(a[e]=t.site_language||void 0)})),a}function n(){return new Date(Date.now()).toISOString()}function u(t){var a=s(s({},e.GTMData),t);return a.hit_timestamp=n(),a}function d(e){t.value?window.dataLayer.push(e):(0,i.A)("dataLayer",(function(){t.value=!0,window.dataLayer.push(e)}))}return{pageUrl:(0,o.EW)((function(){return e.pageUrl})),createDataLayerObject:function(e,t){var n,r;switch(e){case"googleMapSearchEvent":n=u({event:"map_search",search_query:t.search_query,search_map_location:t.search_map_location,search_results_count:t.search_results_count,search_usage_index:t.search_usage_index}),r=a(c.Ew,n);break;case"googleMapFilterEvent":n=u({event:"map_filter_interaction",filter_type:t.filter_type,search_map_location:t.search_map_location,filter_selection:t.filter_selection,results_count:t.results_count,filter_usage_index:t.filter_usage_index}),r=a(c.cV,n);break;case"googleMapTimeToFirstInteractionEvent":n=u({event:"map_time_to_first_interaction",time_to_first_interaction_ms:t.time_to_first_interaction_ms,first_interaction_type:t.first_interaction_type}),r=a(c.WO,n);break;case"googleMapInteractionEvent":n=u({event:"map_interaction_click",interaction_type:t.interaction_type,search_query:t.search_query,map_location:t.map_location,visible_attractions_count:t.visible_attractions_count,card_attraction_name:t.card_attraction_name,card_attraction_category:t.card_attraction_category,card_attraction_url:t.card_attraction_url,card_attraction_rating:t.card_attraction_rating,interaction_timestamp_ms:t.interaction_timestamp_ms}),r=a(c.cg,n)}r&&d(r)},templateFiller:a,compileFullTemplate:u,returnIsoDate:n,pushToDataLayer:d,dataLayerStore:e}}},70224:function(e,t,a){"use strict";a(1668)},88522:function(e,t,a){"use strict";a.d(t,{A:function(){return n.A}});var n=a(44806)}},function(e){return e.O(0,[641,6262,7510,3751,4352,7527,4467,8086,810,7800,9394,2543,3453,281,7536,7511,9033,8795,6425,7171,3498,8449,3750,4982,6422,8745,8836,8638,2368,3838,7521,1438,4580,5676,1574,9122,4282,5921,1459,2142,7275,1406,9810,5025,3486,7957,9116,4448,6086,378,6494,1688,4232,1454,3614,1740,2491,4360,6305,9856,8861,2152,4179,7933,2710,6955,815,3706,3484,1371,9054,7553,3130,5945,8167,4921,1288,3990,3293,1244,680,4828,459,2329,4409,80,6358,1696,4145,922,4433,2822,8258,1086,8294,1154,8533,4681,71,7033,5513,6665,6618,1389,1161,9621,4029,3350,9146,6838,4879,4953,1718,530,1120,47,9464,9177,9839,625,6004,7894,7097,7311,8399,5465,6641,9633,5809,3337,2810,7086,3603,8978,3033,6649,630,8759,5807,2324,2761,4712,5048,8693,5782,2787,8407,4562,3642,7906,1841,6175,8462,7692,7231,2759,7195,8573,1106,1379,4999,5402,6431,3609,7848,6241,8817,8570,4061,9323,9923,3731,3914,2837,1344,5577,3650,2612,6283,9783,7969,4036,9280,8332,2437,6123,7570,4670,9423,9886,5106,3734,1901,8969,627,538,1493,4297,1474,3543,2046,4856,7006,6689,2903,7509,8202],(function(){return e(e.s=12524)})),e.O()}])}));
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/*! For license information please see 6544d845ce286c6cf7f6.js.LICENSE.txt */
|
|
2
|
-
(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[8086],{48086:function(t,e,n){"use strict";t.exports=n(73527)},73527:function(t,e,n){"use strict";var i=n(87561);let s;const o=t=>s=t,r=Symbol();function c(t){return t&&"object"==typeof t&&"[object Object]"===Object.prototype.toString.call(t)&&"function"!=typeof t.toJSON}var a;e.MutationType=void 0,(a=e.MutationType||(e.MutationType={})).direct="direct",a.patchObject="patch object",a.patchFunction="patch function";const u="undefined"!=typeof window,p=()=>{};function f(t,e,n,s=p){t.push(e);const o=()=>{const n=t.indexOf(e);n>-1&&(t.splice(n,1),s())};return!n&&i.getCurrentScope()&&i.onScopeDispose(o),o}function l(t,...e){t.slice().forEach((t=>{t(...e)}))}const h=t=>t(),d=Symbol(),y=Symbol();function v(t,e){t instanceof Map&&e instanceof Map?e.forEach(((e,n)=>t.set(n,e))):t instanceof Set&&e instanceof Set&&e.forEach(t.add,t);for(const n in e){if(!e.hasOwnProperty(n))continue;const s=e[n],o=t[n];c(o)&&c(s)&&t.hasOwnProperty(n)&&!i.isRef(s)&&!i.isReactive(s)?t[n]=v(o,s):t[n]=s}return t}const _=Symbol();function b(t){return!c(t)||!t.hasOwnProperty(_)}const{assign:$}=Object;function j(t,n,s={},r,c,a){let u;const _=$({actions:{}},s),j={deep:!0};let m,S,g,O=[],R=[];const V=r.state.value[t];let A;function P(n){let s;m=S=!1,"function"==typeof n?(n(r.state.value[t]),s={type:e.MutationType.patchFunction,storeId:t,events:g}):(v(r.state.value[t],n),s={type:e.MutationType.patchObject,payload:n,storeId:t,events:g});const o=A=Symbol();i.nextTick().then((()=>{A===o&&(m=!0)})),S=!0,l(O,s,r.state.value[t])}a||V||(i.isVue2?i.set(r.state.value,t,{}):r.state.value[t]={}),i.ref({});const k=a?function(){const{state:t}=s,e=t?t():{};this.$patch((t=>{$(t,e)}))}:p,w=(e,n="")=>{if(d in e)return e[y]=n,e;const i=function(){o(r);const n=Array.from(arguments),s=[],c=[];let a;l(R,{args:n,name:i[y],store:x,after:function(t){s.push(t)},onError:function(t){c.push(t)}});try{a=e.apply(this&&this.$id===t?this:x,n)}catch(t){throw l(c,t),t}return a instanceof Promise?a.then((t=>(l(s,t),t))).catch((t=>(l(c,t),Promise.reject(t)))):(l(s,a),a)};return i[d]=!0,i[y]=n,i},M={_p:r,$id:t,$onAction:f.bind(null,R),$patch:P,$reset:k,$subscribe(n,s={}){const o=f(O,n,s.detached,(()=>c())),c=u.run((()=>i.watch((()=>r.state.value[t]),(i=>{("sync"===s.flush?S:m)&&n({storeId:t,type:e.MutationType.direct,events:g},i)}),$({},j,s))));return o},$dispose:function(){u.stop(),O=[],R=[],r._s.delete(t)}};i.isVue2&&(M._r=!1);const x=i.reactive(M);r._s.set(t,x);const E=(r._a&&r._a.runWithContext||h)((()=>r._e.run((()=>(u=i.effectScope()).run((()=>n({action:w})))))));for(const e in E){const n=E[e];if(i.isRef(n)&&(T=n,!i.isRef(T)||!T.effect)||i.isReactive(n))a||(V&&b(n)&&(i.isRef(n)?n.value=V[e]:v(n,V[e])),i.isVue2?i.set(r.state.value[t],e,n):r.state.value[t][e]=n);else if("function"==typeof n){const t=w(n,e);i.isVue2?i.set(E,e,t):E[e]=t,_.actions[e]=n}}var T;return i.isVue2?Object.keys(E).forEach((t=>{i.set(x,t,E[t])})):($(x,E),$(i.toRaw(x),E)),Object.defineProperty(x,"$state",{get:()=>r.state.value[t],set:t=>{P((e=>{$(e,t)}))}}),i.isVue2&&(x._r=!0),r._p.forEach((t=>{$(x,u.run((()=>t({store:x,app:r._a,pinia:r,options:_}))))})),V&&a&&s.hydrate&&s.hydrate(x.$state,V),m=!0,S=!0,x}let m="Store";function S(t,e){return Array.isArray(e)?e.reduce(((e,n)=>(e[n]=function(){return t(this.$pinia)[n]},e)),{}):Object.keys(e).reduce(((n,i)=>(n[i]=function(){const n=t(this.$pinia),s=e[i];return"function"==typeof s?s.call(this,n):n[s]},n)),{})}const g=S;e.PiniaVuePlugin=function(t){t.mixin({beforeCreate(){const t=this.$options;if(t.pinia){const e=t.pinia;if(!this._provided){const t={};Object.defineProperty(this,"_provided",{get:()=>t,set:e=>Object.assign(t,e)})}this._provided[r]=e,this.$pinia||(this.$pinia=e),e._a=this,u&&o(e)}else!this.$pinia&&t.parent&&t.parent.$pinia&&(this.$pinia=t.parent.$pinia)},destroyed(){delete this._pStores}})},e.acceptHMRUpdate=function(t,e){return()=>{}},e.createPinia=function(){const t=i.effectScope(!0),e=t.run((()=>i.ref({})));let n=[],s=[];const c=i.markRaw({install(t){o(c),i.isVue2||(c._a=t,t.provide(r,c),t.config.globalProperties.$pinia=c,s.forEach((t=>n.push(t))),s=[])},use(t){return this._a||i.isVue2?n.push(t):s.push(t),this},_p:n,_a:null,_e:t,_s:new Map,state:e});return c},e.defineStore=function(t,e,n){let c,a;const u="function"==typeof e;function p(t,n){const p=i.hasInjectionContext();return(t=t||(p?i.inject(r,null):null))&&o(t),(t=s)._s.has(c)||(u?j(c,e,a,t):function(t,e,n){const{state:s,actions:r,getters:c}=e,a=n.state.value[t];let u;u=j(t,(function(){a||(i.isVue2?i.set(n.state.value,t,s?s():{}):n.state.value[t]=s?s():{});const e=i.toRefs(n.state.value[t]);return $(e,r,Object.keys(c||{}).reduce(((e,s)=>(e[s]=i.markRaw(i.computed((()=>{o(n);const e=n._s.get(t);if(!i.isVue2||e._r)return c[s].call(e,e)}))),e)),{}))}),e,n,0,!0)}(c,a,t)),t._s.get(c)}return"string"==typeof t?(c=t,a=u?n:e):(a=t,c=t.id),p.$id=c,p},e.disposePinia=function(t){t._e.stop(),t._s.clear(),t._p.splice(0),t.state.value={},t._a=null},e.getActivePinia=()=>i.hasInjectionContext()&&i.inject(r)||s,e.mapActions=function(t,e){return Array.isArray(e)?e.reduce(((e,n)=>(e[n]=function(...e){return t(this.$pinia)[n](...e)},e)),{}):Object.keys(e).reduce(((n,i)=>(n[i]=function(...n){return t(this.$pinia)[e[i]](...n)},n)),{})},e.mapGetters=g,e.mapState=S,e.mapStores=function(...t){return t.reduce(((t,e)=>(t[e.$id+m]=function(){return e(this.$pinia)},t)),{})},e.mapWritableState=function(t,e){return Array.isArray(e)?e.reduce(((e,n)=>(e[n]={get(){return t(this.$pinia)[n]},set(e){return t(this.$pinia)[n]=e}},e)),{}):Object.keys(e).reduce(((n,i)=>(n[i]={get(){return t(this.$pinia)[e[i]]},set(n){return t(this.$pinia)[e[i]]=n}},n)),{})},e.setActivePinia=o,e.setMapStoreSuffix=function(t){m=t},e.shouldHydrate=b,e.skipHydrate=function(t){return Object.defineProperty(t,_,{})},e.storeToRefs=function(t){if(i.isVue2)return i.toRefs(t);{const e=i.toRaw(t),n={};for(const s in e){const o=e[s];o.effect?n[s]=i.computed({get:()=>t[s],set(e){t[s]=e}}):(i.isRef(o)||i.isReactive(o))&&(n[s]=i.toRef(t,s))}return n}}},87561:function(t,e,n){var i=n(17527);Object.keys(i).forEach((function(t){e[t]=i[t]})),e.set=function(t,e,n){return Array.isArray(t)?(t.length=Math.max(t.length,e),t.splice(e,1,n),n):(t[e]=n,n)},e.del=function(t,e){Array.isArray(t)?t.splice(e,1):delete t[e]},e.Vue=i,e.Vue2=void 0,e.isVue2=!1,e.isVue3=!0,e.install=function(){}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[4079],{3878:function(t,e,o){"use strict";o.d(e,{A:function(){return i.A}});var i=o(70146)},21489:function(t,e,o){"use strict";var i=o(85072),a=o.n(i),s=o(97825),n=o.n(s),r=o(77659),p=o.n(r),u=o(55056),l=o.n(u),d=o(10540),c=o.n(d),m=o(41113),h=o.n(m),g=o(24027),f=o.n(g),y={};y.styleTagTransform=h(),y.setAttributes=l(),y.insert=p().bind(null,"head"),y.domAPI=n(),y.insertStyleElement=c(),a()(f(),y),f()&&f().locals&&f().locals},24027:function(){},25159:function(t,e,o){"use strict";o.d(e,{X:function(){return l}});var i=o(20641),a=o(90033),s={class:"vs-map","data-test":"vs-map"},n={class:"vs-map__message-box"},r={class:"vs-map__message-text"},p={ref:"mapboxOuter",class:"vs-map__map-outer"},u=["id"];function l(t,e,o,l,d,c){var m=(0,i.g2)("VsLoading"),h=(0,i.g2)("VsWarning");return(0,i.uX)(),(0,i.CE)("div",s,[d.showMapMessage?((0,i.uX)(),(0,i.CE)("div",{key:0,class:(0,a.normalizeClass)(["vs-map__message",d.showZoomMessage?"":"vs-map__message--with-overlay"]),"data-test":"vs-map__message"},[(0,i.Lk)("div",n,[d.isLoading?((0,i.uX)(),(0,i.Wv)(m,{key:0,class:"vs-map__loading"})):(0,i.Q3)("",!0),(0,i.Lk)("p",r,[d.isLoading?(0,i.RG)(t.$slots,"map-loading-text",{key:0}):o.showInfoMessage?(0,i.RG)(t.$slots,"info-message",{key:1}):"too-close"===d.showZoomMessage?(0,i.RG)(t.$slots,"zoom-too-close",{key:2}):"too-far"===d.showZoomMessage?(0,i.RG)(t.$slots,"zoom-too-far",{key:3}):(0,i.Q3)("",!0)])])],2)):(0,i.Q3)("",!0),(0,i.Lk)("div",p,[(0,i.Lk)("div",{id:o.mapId,class:"vs-map__map",ref:"mapbox"},null,8,u)],512),(0,i.bF)(h,{class:"vs-map__no-js"},{default:(0,i.k6)((function(){return[(0,i.RG)(t.$slots,"no-js")]})),_:3})])}},42634:function(){},42904:function(t,e){"use strict";var o=null;"undefined"!=typeof window&&(o=document.currentScript);var i={options:{div:"map",logo:"os-logo-maps",statement:"Contains OS data © Crown copyright and database rights YYYY",prefix:"",suffix:""},init:function(t){if("undefined"!=typeof window){o&&(this.options.div=o.getAttribute("data-div")||this.options.div,this.options.logo=o.getAttribute("data-logo")||this.options.logo,this.options.statement=o.getAttribute("data-statement")||this.options.statement,this.options.prefix=o.getAttribute("data-prefix")||this.options.prefix,this.options.suffix=o.getAttribute("data-suffix")||this.options.suffix),t=void 0!==t?t:{},Object.assign(this.options,t);var e=document.getElementById(this.options.div),i="os-api-branding logo";"os-logo-maps-white"===this.options.logo&&(i="os-api-branding logo white");var a=this.options.statement;a=a.replace("YYYY",(new Date).getFullYear()),""!==this.options.prefix&&(a="".concat(this.options.prefix,"<span>|</span>").concat(a)),""!==this.options.suffix&&(a="".concat(a,"<span>|</span>").concat(this.options.suffix)),document.querySelectorAll("#".concat(this.options.div," .os-api-branding")).forEach((function(t){return t.remove()}));var s=document.createElement("div");s.className=i,e.appendChild(s);var n=document.createElement("div");n.className="os-api-branding copyright",n.innerHTML=a,e.appendChild(n)}}};e.A=i},70146:function(t,e,o){"use strict";var i=o(64467),a=o(79122),s=o(35025),n=o(42904),r=o(20641),p=o(53751),u=o(10810),l=o(79920),d=o(60842),c=o.n(d),m=o(25879),h=o.n(m),g=o(30681);function f(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),o.push.apply(o,i)}return o}var y=null;e.A={name:"VsMap",status:"prototype",release:"0.0.1",components:{VsWarning:a.default,VsLoading:s.default},props:{overviewMapLatitude:{type:String,default:"57.81"},overviewMapLongitude:{type:String,default:"-5.51748"},overviewMapZoom:{type:String,default:"5"},mapId:{type:String,required:!0},isVisible:{type:Boolean,required:!0},places:{type:Array,required:!0},filters:{type:Array,default:function(){return[]}},fitToMarkers:{type:Boolean,default:!1},showPolygons:{type:Boolean,default:!1},selectedItem:{type:Object,default:null},boundsData:{type:Object,default:function(){}},showInfoMessage:{type:Boolean,default:null},resetZoom:{type:Boolean,default:!1},showMarkerPopups:{type:Boolean,default:!0},loadBrandingImmediately:{type:Boolean,default:!1}},emits:["map-ready","setCategory","showDetail","zoom-reset"],setup:function(){y=(0,l.A)()},data:function(){return{isDesktop:!1,geojsonData:{type:"FeatureCollection",features:[]},polygons:{type:"FeatureCollection",features:[]},multiPolygons:[],mapbox:{map:null,bounds:null,rotation:0,config:{container:this.$refs.mapbox,style:"https://api.visitscotland.com/maps/vector/v1/vts/resources/styles",pitchWithRotate:!1,dragRotate:!1}},markers:[],popup:null,hoveredStateId:null,activeStateId:null,showMapMessage:!0,isLoading:!0,showZoomMessage:null}},computed:function(t){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};e%2?f(Object(o),!0).forEach((function(e){(0,i.A)(t,e,o[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):f(Object(o)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))}))}return t}({getZoom:function(){return this.mapbox.map?this.mapbox.map.getZoom():null}},(0,u.aH)(l.A,{activeMarkerPostion:function(t){return this.mapbox.map?t.activeMarkerPos:null},highlightedPlace:function(t){return this.mapbox.map?t.getHoveredStop(this.mapId):null},activePlace:function(t){return this.mapbox.map?t.getActivePlace(this.mapId):null}})),watch:{isVisible:function(t){var e=this;t&&null!==this.mapbox.map&&setTimeout((function(){e.mapbox.map.resize()}),20)},places:{handler:function(){this.geojsonData.features=[],this.initialiseMapFeatures(),this.initialiseMapMarkers()},deep:!0},showPolygons:function(t){!0===t?this.showMapPolygons():this.hideMapPolygons()},highlightedPlace:function(t){t&&(0===t.length?this.removeHoveredPolygon():"Point"!==t.geometry.type&&this.addHoveredPolygon(t))},selectedItem:function(t){t&&"Point"!==t.geometry.type&&this.polygons.features.filter((function(e){return e.properties.id===t.properties.id})).length>0&&this.addActivePolygon(t),t||this.removeActivePolygon()},activeMarkerPostion:function(t){this.checkPointIsVisible(t)||this.centreMapOnPoint(t)},showInfoMessage:function(t){this.showMapMessage=!!t},resetZoom:function(t){t&&(this.mapbox.map.fitBounds(this.calculateBoundingBox()),this.$emit("zoom-reset"),this.showInfoMessage&&(this.showMapMessage=!0))}},mounted:function(){var t=this;y.addMapInstance({id:this.mapId,filters:this.filters,places:this.places,activePins:this.places}),this.lazyloadMapComponent(),this.isTablet=window.innerWidth>=768,window.addEventListener("resize",this.onResize),this.loadBrandingImmediately?n.A.init({div:this.mapId}):window.addEventListener("DOMContentLoaded",(function(){n.A.init({div:t.mapId})}))},methods:{addMap:function(){var t=this,e=this.calculateBoundingBox();this.mapbox.config.container=this.$refs.mapbox,this.mapbox.map=new(c().Map)({container:this.$refs.mapbox,style:"https://api.visitscotland.com/maps/vector/v1/vts/resources/styles",bounds:e,maxZoom:18,minZoom:4,trackResize:!0}),this.mapbox.map.scrollZoom.disable(),this.mapbox.map.on("rotate",(function(){t.mapbox.rotation=t.mapbox.map.transform.angle})),this.mapbox.map.resize(),this.mapbox.map.on("load",(function(){t.addMapPolygons(),t.showMapMessage=!1,t.isLoading=!1,t.$emit("map-ready",!0),t.mapbox.map.boxZoom.enable()})),this.mapbox.map.on("zoomend",(function(){4===t.mapbox.map.getZoom()?(t.showZoomMessage="too-far",t.showMapMessage=!0):18===t.mapbox.map.getZoom()?(t.showZoomMessage="too-close",t.showMapMessage=!0):t.showInfoMessage||(t.showZoomMessage=null,t.showMapMessage=!1)}))},addMapControls:function(){var t=new(c().NavigationControl);this.mapbox.map.addControl(t,"top-right"),this.mapbox.map.addControl(new(c().FullscreenControl))},initialiseMapFeatures:function(){var t=this;this.places.map((function(e){if(void 0!==e.geometry){var o=t.getCoordinateArray(e);return t.getMapFeatures(e,o)}return!(!e.latitude||!e.longitude)&&t.getItineraryMapFeatures(e)}))},getCoordinateArray:function(t){return"Polygon"===t.geometry.type?[t.geometry.coordinates[0]]:"MultiPolygon"===t.geometry.type?[t.geometry.coordinates]:[t.geometry.coordinates[0],t.geometry.coordinates[1]]},getMapFeatures:function(t,e){return this.geojsonData.features.push({type:"Feature",geometry:{type:t.geometry.type,coordinates:e},properties:{title:t.properties.title,imageSrc:t.image,type:void 0!==t.properties.category?t.properties.category.id:"",id:t.properties.id},id:t.properties.id})},getItineraryMapFeatures:function(t){var e=this._uid;return this.geojsonData.features.push({type:"Feature",geometry:{type:"Point",coordinates:[parseFloat(t.longitude),parseFloat(t.latitude)]},properties:{title:t.title,imageSrc:t.imageSrc,type:"itinerary-stop",stopCount:t.stopCount,id:e},id:e})},initialiseMapMarkers:function(){var t=this,e=0;this.initialLoad&&(e=1e3),setTimeout((function(){if(null!==t.markers){for(var e=t.markers.length-1;e>=0;e--)t.markers[e].remove();t.markers=[]}t.geojsonData.features.forEach((function(e){"Point"===e.geometry.type&&t.createMapMarker(e)}))}),e)},createMapMarker:function(t){var e=this,o=(0,r.h)(g.default,{feature:t,mapId:this.mapId,hasPopups:this.showMarkerPopups,onShowDetail:function(t){e.$emit("showDetail",t)},onSetCategory:function(t){e.$emit("setCategory",t)}}),i=document.createElement("div");this.$refs.mapboxOuter.appendChild(i),(0,p.render)(o,i),t&&this.showMarkerPopups&&this.addMapPopup(t);var a=new(c().Marker)(i.children[0]).setLngLat(t.geometry.coordinates).setPopup(this.popup).addTo(this.mapbox.map);this.setupMarkerListeners(a),this.markers.push(a),i.remove()},hideMapPolygons:function(){this.mapbox.map.setLayoutProperty("regionFills","visibility","none"),this.mapbox.map.setLayoutProperty("regionBorders","visibility","none")},showMapPolygons:function(){this.mapbox.map.setLayoutProperty("regionFills","visibility","visible"),this.mapbox.map.setLayoutProperty("regionBorders","visibility","visible")},addMapPolygons:function(){var t=this;this.geojsonData.features.forEach((function(e){"Polygon"===e.geometry.type?t.polygons.features.includes(e.properties.id)||t.polygons.features.push(e):"MultiPolygon"===e.geometry.type&&(t.polygons.features.includes(e.properties.id)||t.multiPolygons.push(e))})),this.multiPolygons.forEach((function(e){var o=e.properties;e.geometry.coordinates[0].forEach((function(e){t.polygons.features.push({geometry:{type:"Polygon",coordinates:e},id:o.id,properties:{id:o.id,imageSrc:o.imageSrc,title:o.title,type:o.type},type:"Feature"})}))})),this.polygons.features.length>0&&(this.mapbox.map.addSource("regions",{type:"geojson",data:this.polygons,promoteId:"id"}),this.mapbox.map.addLayer({id:"regionFills",type:"fill",source:"regions",layout:{},paint:{"fill-color":["case",["==",["feature-state","interaction-state"],"hover"],"rgba(168,48,140,0.5)",["==",["feature-state","interaction-state"],"active"],"rgba(168,48,140,0.5)","rgba(25,200,197,0.6)"],"fill-opacity":.8}}),this.mapbox.map.addLayer({id:"regionBorders",type:"line",source:"regions",layout:{},paint:{"line-color":"#fff","line-width":1}}),this.hideMapPolygons(),this.mapbox.map.on("mousemove","regionFills",(function(e){e.features.length>0&&(t.addMapPopup(e),t.removeHoveredPolygon(),t.addHoveredPolygon(e.features[0]))})),this.mapbox.map.on("mouseleave","regionFills",(function(e){t.removeMapPopup(e),t.removeHoveredPolygon()})),this.mapbox.map.on("click","regionFills",(function(e){t.removeActivePolygon(),t.addActivePolygon(e.features[0]),t.addMapPopup(e.features[0])})))},removeActivePolygon:function(){this.mapbox.map.style._layers.regionFills&&(this.mapbox.map.setFeatureState({source:"regions",id:this.activeStateId},{"interaction-state":""}),this.activeStateId=null)},addActivePolygon:function(t){this.activeStateId=t.properties.id,this.mapbox.map.setFeatureState({source:"regions",id:this.activeStateId},{"interaction-state":"active"}),y.setActivePlace({mapId:this.mapId,activeFeature:t}),this.$emit("showDetail",t),this.$emit("setCategory","regions")},removeHoveredPolygon:function(){if(this.hoveredStateId){var t="";this.hoveredStateId===this.activeStateId&&(t="active"),this.mapbox.map.setFeatureState({source:"regions",id:this.hoveredStateId},{"interaction-state":t})}y.setHoveredPlace({mapId:this.mapId,hoveredFeature:""}),this.hoveredStateId=null},addHoveredPolygon:function(t){this.hoveredStateId=t.properties.id,this.mapbox.map.setFeatureState({source:"regions",id:this.hoveredStateId},{"interaction-state":"hover"}),this.addMapPopup(t),y.setHoveredPlace({mapId:this.mapId,hoveredFeature:t})},addMapPopup:function(t){var e;e=t.features?t.features[0]:t;var o=this.getCoordinates(e),i=this.getPopupHtml(e);e.properties.id&&(this.removeMapPopup(t),this.popup=new(c().Popup)({closeButton:!1,offset:{top:[0,20],bottom:[0,-40],left:[30,-20],right:[-30,-20]}}).setLngLat(o).setHTML(i).addTo(this.mapbox.map))},removeMapPopup:function(t){this.popup&&(this.popup.remove(),this.popup=null),t._popup&&t._popup.remove()},getCoordinates:function(t){return"Polygon"===t.geometry.type?this.findFeatureCentre(t.geometry.coordinates):"MultiPolygon"===t.geometry.type?this.findFeatureCentre(t.geometry.coordinates[0]):t.geometry.coordinates},findFeatureCentre:function(t){var e=[],o=[];return t[0].forEach((function(t){e.push(t[1]),o.push(t[0])})),{lat:(Math.min.apply(Math,e)+Math.max.apply(Math,e))/2,lng:(Math.min.apply(Math,o)+Math.max.apply(Math,o))/2}},getPopupHtml:function(t){return t.properties.imageSrc&&t.properties.stopCount?'\n <img class="vs-map__popup-image" src="'.concat(t.properties.imageSrc,'" />\n <div>\n <h4 class="vs-map__popup-subtitle">Stop ').concat(t.properties.stopCount,'</h4>\n <p class="vs-map__popup-title">').concat(t.properties.title,"</p>\n </div>\n "):'\n <p class="vs-map__popup-title">'.concat(t.properties.title,"</p>\n ")},setupMarkerListeners:function(t){var e=this;document.body.addEventListener("keyup",(function(o){"Escape"!==o.key&&"Tab"!==o.key||(e.removeMapPopup(t),e.showMarkerPopups&&y.setActivePlace({mapId:e.mapId,activeFeature:null}))})),t.getElement().addEventListener("keyup",(function(o){"Enter"===o.key&&(t._popup.isOpen()||t._popup.addTo(e.mapbox.map))}))},fitToBounds:function(){this.mapbox.map.fitBounds(h()(this.geojsonData),{padding:{top:100,bottom:100,left:100,right:100}})},initialiseMapComponent:function(){this.addMap(),this.addMapControls(),this.places.length&&this.initialiseMapFeatures(),this.geojsonData.features.length&&(this.initialiseMapMarkers(),this.fitToMarkers&&this.fitToBounds())},lazyloadMapComponent:function(){var t=this;c().supported({failIfMajorPerformanceCaveat:!0}),"IntersectionObserver"in window?(this.observer=new IntersectionObserver((function(e){e[0].intersectionRatio>0&&(t.observer.unobserve(t.$el),t.initialiseMapComponent())})),this.observer.observe(this.$el)):this.initialiseMapComponent()},onResize:function(){this.isTablet=window.innerWidth>=768},getBoundsFromPolygon:function(){var t=this.boundsData.coordinates[0];return t.reduce((function(t,e){return t.extend(e)}),new(c().LngLatBounds)(t[0],t[0]))},checkPointIsVisible:function(){return this.mapbox.map.getBounds().contains(this.activeMarkerPostion)},centreMapOnPoint:function(t){this.mapbox.map.flyTo({center:t})},calculateBoundingBox:function(){var t;if(void 0===this.boundsData||"undefined"===this.boundsData.type)t=[[-7.555827,54.608836],[-.778285,60.880894]];else if("bounds"===this.boundsData.type){var e=new(c().LngLat)(this.boundsData.coordinates[1][0],this.boundsData.coordinates[1][1]),o=new(c().LngLat)(this.boundsData.coordinates[0][0],this.boundsData.coordinates[0][1]);t=new(c().LngLatBounds)(e,o)}else t="Polygon"===this.boundsData.type?this.getBoundsFromPolygon():[[-7.555827,54.608836],[-.778285,60.880894]];return t}}}},73349:function(t,e,o){"use strict";o(21489)},81610:function(t,e,o){"use strict";o.r(e);var i=o(95095),a=o(3878);o(73349);const s=(0,o(66262).A)(a.A,[["render",i.X]]);e.default=s},95095:function(t,e,o){"use strict";o.d(e,{X:function(){return i.X}});var i=o(25159)}}]);
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/*! For license information please see 72e8cf2a7ddceadf4584.js.LICENSE.txt */
|
|
2
|
-
"use strict";(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[6425],{86425:function(e,t,n){var r=n(65606),o=n(48287).hp,s=n(96763);function i(e,t){return function(){return e.apply(t,arguments)}}const{toString:a}=Object.prototype,{getPrototypeOf:c}=Object,{iterator:l,toStringTag:u}=Symbol,f=(d=Object.create(null),e=>{const t=a.call(e);return d[t]||(d[t]=t.slice(8,-1).toLowerCase())});var d;const h=e=>(e=e.toLowerCase(),t=>f(t)===e),p=e=>t=>typeof t===e,{isArray:m}=Array,b=p("undefined");function y(e){return null!==e&&!b(e)&&null!==e.constructor&&!b(e.constructor)&&E(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const g=h("ArrayBuffer"),w=p("string"),E=p("function"),O=p("number"),R=e=>null!==e&&"object"==typeof e,S=e=>{if("object"!==f(e))return!1;const t=c(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||u in e||l in e)},v=h("Date"),T=h("File"),A=h("Blob"),C=h("FileList"),j=h("URLSearchParams"),[x,N,U,P]=["ReadableStream","Request","Response","Headers"].map(h);function _(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let r,o;if("object"!=typeof e&&(e=[e]),m(e))for(r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else{if(y(e))return;const o=n?Object.getOwnPropertyNames(e):Object.keys(e),s=o.length;let i;for(r=0;r<s;r++)i=o[r],t.call(null,e[i],i,e)}}function F(e,t){if(y(e))return null;t=t.toLowerCase();const n=Object.keys(e);let r,o=n.length;for(;o-- >0;)if(r=n[o],t===r.toLowerCase())return r;return null}const k="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:n.g,L=e=>!b(e)&&e!==k,B=(D="undefined"!=typeof Uint8Array&&c(Uint8Array),e=>D&&e instanceof D);var D;const q=h("HTMLFormElement"),I=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),M=h("RegExp"),z=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};_(n,((n,o)=>{let s;!1!==(s=t(n,o,e))&&(r[o]=s||n)})),Object.defineProperties(e,r)},H=h("AsyncFunction"),J=(W="function"==typeof setImmediate,$=E(k.postMessage),W?setImmediate:$?(K=`axios@${Math.random()}`,V=[],k.addEventListener("message",(({source:e,data:t})=>{e===k&&t===K&&V.length&&V.shift()()}),!1),e=>{V.push(e),k.postMessage(K,"*")}):e=>setTimeout(e));var W,$,K,V;const X="undefined"!=typeof queueMicrotask?queueMicrotask.bind(k):void 0!==r&&r.nextTick||J;var G={isArray:m,isArrayBuffer:g,isBuffer:y,isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||E(e.append)&&("formdata"===(t=f(e))||"object"===t&&E(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&g(e.buffer),t},isString:w,isNumber:O,isBoolean:e=>!0===e||!1===e,isObject:R,isPlainObject:S,isEmptyObject:e=>{if(!R(e)||y(e))return!1;try{return 0===Object.keys(e).length&&Object.getPrototypeOf(e)===Object.prototype}catch(e){return!1}},isReadableStream:x,isRequest:N,isResponse:U,isHeaders:P,isUndefined:b,isDate:v,isFile:T,isBlob:A,isRegExp:M,isFunction:E,isStream:e=>R(e)&&E(e.pipe),isURLSearchParams:j,isTypedArray:B,isFileList:C,forEach:_,merge:function e(){const{caseless:t,skipUndefined:n}=L(this)&&this||{},r={},o=(o,s)=>{const i=t&&F(r,s)||s;S(r[i])&&S(o)?r[i]=e(r[i],o):S(o)?r[i]=e({},o):m(o)?r[i]=o.slice():n&&b(o)||(r[i]=o)};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&_(arguments[e],o);return r},extend:(e,t,n,{allOwnKeys:r}={})=>(_(t,((t,r)=>{n&&E(t)?e[r]=i(t,n):e[r]=t}),{allOwnKeys:r}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,r)=>{let o,s,i;const a={};if(t=t||{},null==e)return t;do{for(o=Object.getOwnPropertyNames(e),s=o.length;s-- >0;)i=o[s],r&&!r(i,e,t)||a[i]||(t[i]=e[i],a[i]=!0);e=!1!==n&&c(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:f,kindOfTest:h,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return-1!==r&&r===n},toArray:e=>{if(!e)return null;if(m(e))return e;let t=e.length;if(!O(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[l]).call(e);let r;for(;(r=n.next())&&!r.done;){const n=r.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let n;const r=[];for(;null!==(n=e.exec(t));)r.push(n);return r},isHTMLForm:q,hasOwnProperty:I,hasOwnProp:I,reduceDescriptors:z,freezeMethods:e=>{z(e,((t,n)=>{if(E(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const r=e[n];E(r)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))}))},toObjectSet:(e,t)=>{const n={},r=e=>{e.forEach((e=>{n[e]=!0}))};return m(e)?r(e):r(String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(e,t,n){return t.toUpperCase()+n})),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:F,global:k,isContextDefined:L,isSpecCompliantForm:function(e){return!!(e&&E(e.append)&&"FormData"===e[u]&&e[l])},toJSONObject:e=>{const t=new Array(10),n=(e,r)=>{if(R(e)){if(t.indexOf(e)>=0)return;if(y(e))return e;if(!("toJSON"in e)){t[r]=e;const o=m(e)?[]:{};return _(e,((e,t)=>{const s=n(e,r+1);!b(s)&&(o[t]=s)})),t[r]=void 0,o}}return e};return n(e,0)},isAsyncFn:H,isThenable:e=>e&&(R(e)||E(e))&&E(e.then)&&E(e.catch),setImmediate:J,asap:X,isIterable:e=>null!=e&&E(e[l])};function Q(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o,this.status=o.status?o.status:null)}G.inherits(Q,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:G.toJSONObject(this.config),code:this.code,status:this.status}}});const Z=Q.prototype,Y={};function ee(e){return G.isPlainObject(e)||G.isArray(e)}function te(e){return G.endsWith(e,"[]")?e.slice(0,-2):e}function ne(e,t,n){return e?e.concat(t).map((function(e,t){return e=te(e),!n&&t?"["+e+"]":e})).join(n?".":""):t}["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((e=>{Y[e]={value:e}})),Object.defineProperties(Q,Y),Object.defineProperty(Z,"isAxiosError",{value:!0}),Q.from=(e,t,n,r,o,s)=>{const i=Object.create(Z);G.toFlatObject(e,i,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e));const a=e&&e.message?e.message:"Error",c=null==t&&e?e.code:t;return Q.call(i,a,c,n,r,o),e&&null==i.cause&&Object.defineProperty(i,"cause",{value:e,configurable:!0}),i.name=e&&e.name||"Error",s&&Object.assign(i,s),i};const re=G.toFlatObject(G,{},null,(function(e){return/^is[A-Z]/.test(e)}));function oe(e,t,n){if(!G.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const r=(n=G.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!G.isUndefined(t[e])}))).metaTokens,s=n.visitor||u,i=n.dots,a=n.indexes,c=(n.Blob||"undefined"!=typeof Blob&&Blob)&&G.isSpecCompliantForm(t);if(!G.isFunction(s))throw new TypeError("visitor must be a function");function l(e){if(null===e)return"";if(G.isDate(e))return e.toISOString();if(G.isBoolean(e))return e.toString();if(!c&&G.isBlob(e))throw new Q("Blob is not supported. Use a Buffer instead.");return G.isArrayBuffer(e)||G.isTypedArray(e)?c&&"function"==typeof Blob?new Blob([e]):o.from(e):e}function u(e,n,o){let s=e;if(e&&!o&&"object"==typeof e)if(G.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(G.isArray(e)&&function(e){return G.isArray(e)&&!e.some(ee)}(e)||(G.isFileList(e)||G.endsWith(n,"[]"))&&(s=G.toArray(e)))return n=te(n),s.forEach((function(e,r){!G.isUndefined(e)&&null!==e&&t.append(!0===a?ne([n],r,i):null===a?n:n+"[]",l(e))})),!1;return!!ee(e)||(t.append(ne(o,n,i),l(e)),!1)}const f=[],d=Object.assign(re,{defaultVisitor:u,convertValue:l,isVisitable:ee});if(!G.isObject(e))throw new TypeError("data must be an object");return function e(n,r){if(!G.isUndefined(n)){if(-1!==f.indexOf(n))throw Error("Circular reference detected in "+r.join("."));f.push(n),G.forEach(n,(function(n,o){!0===(!(G.isUndefined(n)||null===n)&&s.call(t,n,G.isString(o)?o.trim():o,r,d))&&e(n,r?r.concat(o):[o])})),f.pop()}}(e),t}function se(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function ie(e,t){this._pairs=[],e&&oe(e,this,t)}const ae=ie.prototype;function ce(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function le(e,t,n){if(!t)return e;const r=n&&n.encode||ce;G.isFunction(n)&&(n={serialize:n});const o=n&&n.serialize;let s;if(s=o?o(t,n):G.isURLSearchParams(t)?t.toString():new ie(t,n).toString(r),s){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+s}return e}ae.append=function(e,t){this._pairs.push([e,t])},ae.toString=function(e){const t=e?function(t){return e.call(this,t,se)}:se;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};var ue=class{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){G.forEach(this.handlers,(function(t){null!==t&&e(t)}))}},fe={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},de={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:ie,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]};const he="undefined"!=typeof window&&"undefined"!=typeof document,pe="object"==typeof navigator&&navigator||void 0,me=he&&(!pe||["ReactNative","NativeScript","NS"].indexOf(pe.product)<0),be="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,ye=he&&window.location.href||"http://localhost";var ge={...Object.freeze({__proto__:null,hasBrowserEnv:he,hasStandardBrowserWebWorkerEnv:be,hasStandardBrowserEnv:me,navigator:pe,origin:ye}),...de};function we(e){function t(e,n,r,o){let s=e[o++];if("__proto__"===s)return!0;const i=Number.isFinite(+s),a=o>=e.length;return s=!s&&G.isArray(r)?r.length:s,a?(G.hasOwnProp(r,s)?r[s]=[r[s],n]:r[s]=n,!i):(r[s]&&G.isObject(r[s])||(r[s]=[]),t(e,n,r[s],o)&&G.isArray(r[s])&&(r[s]=function(e){const t={},n=Object.keys(e);let r;const o=n.length;let s;for(r=0;r<o;r++)s=n[r],t[s]=e[s];return t}(r[s])),!i)}if(G.isFormData(e)&&G.isFunction(e.entries)){const n={};return G.forEachEntry(e,((e,r)=>{t(function(e){return G.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),r,n,0)})),n}return null}const Ee={transitional:fe,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,o=G.isObject(e);if(o&&G.isHTMLForm(e)&&(e=new FormData(e)),G.isFormData(e))return r?JSON.stringify(we(e)):e;if(G.isArrayBuffer(e)||G.isBuffer(e)||G.isStream(e)||G.isFile(e)||G.isBlob(e)||G.isReadableStream(e))return e;if(G.isArrayBufferView(e))return e.buffer;if(G.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let s;if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return oe(e,new ge.classes.URLSearchParams,{visitor:function(e,t,n,r){return ge.isNode&&G.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)},...t})}(e,this.formSerializer).toString();if((s=G.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return oe(s?{"files[]":e}:e,t&&new t,this.formSerializer)}}return o||r?(t.setContentType("application/json",!1),function(e){if(G.isString(e))try{return(0,JSON.parse)(e),G.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||Ee.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(G.isResponse(e)||G.isReadableStream(e))return e;if(e&&G.isString(e)&&(n&&!this.responseType||r)){const n=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e,this.parseReviver)}catch(e){if(n){if("SyntaxError"===e.name)throw Q.from(e,Q.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ge.classes.FormData,Blob:ge.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};G.forEach(["delete","get","head","post","put","patch"],(e=>{Ee.headers[e]={}}));var Oe=Ee;const Re=G.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Se=Symbol("internals");function ve(e){return e&&String(e).trim().toLowerCase()}function Te(e){return!1===e||null==e?e:G.isArray(e)?e.map(Te):String(e)}function Ae(e,t,n,r,o){return G.isFunction(r)?r.call(this,t,n):(o&&(t=n),G.isString(t)?G.isString(r)?-1!==t.indexOf(r):G.isRegExp(r)?r.test(t):void 0:void 0)}class Ce{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function o(e,t,n){const o=ve(t);if(!o)throw new Error("header name must be a non-empty string");const s=G.findKey(r,o);(!s||void 0===r[s]||!0===n||void 0===n&&!1!==r[s])&&(r[s||t]=Te(e))}const s=(e,t)=>G.forEach(e,((e,n)=>o(e,n,t)));if(G.isPlainObject(e)||e instanceof this.constructor)s(e,t);else if(G.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))s((e=>{const t={};let n,r,o;return e&&e.split("\n").forEach((function(e){o=e.indexOf(":"),n=e.substring(0,o).trim().toLowerCase(),r=e.substring(o+1).trim(),!n||t[n]&&Re[n]||("set-cookie"===n?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)})),t})(e),t);else if(G.isObject(e)&&G.isIterable(e)){let n,r,o={};for(const t of e){if(!G.isArray(t))throw TypeError("Object iterator must return a key-value pair");o[r=t[0]]=(n=o[r])?G.isArray(n)?[...n,t[1]]:[n,t[1]]:t[1]}s(o,t)}else null!=e&&o(t,e,n);return this}get(e,t){if(e=ve(e)){const n=G.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}(e);if(G.isFunction(t))return t.call(this,e,n);if(G.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=ve(e)){const n=G.findKey(this,e);return!(!n||void 0===this[n]||t&&!Ae(0,this[n],n,t))}return!1}delete(e,t){const n=this;let r=!1;function o(e){if(e=ve(e)){const o=G.findKey(n,e);!o||t&&!Ae(0,n[o],o,t)||(delete n[o],r=!0)}}return G.isArray(e)?e.forEach(o):o(e),r}clear(e){const t=Object.keys(this);let n=t.length,r=!1;for(;n--;){const o=t[n];e&&!Ae(0,this[o],o,e,!0)||(delete this[o],r=!0)}return r}normalize(e){const t=this,n={};return G.forEach(this,((r,o)=>{const s=G.findKey(n,o);if(s)return t[s]=Te(r),void delete t[o];const i=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,n)=>t.toUpperCase()+n))}(o):String(o).trim();i!==o&&delete t[o],t[i]=Te(r),n[i]=!0})),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return G.forEach(this,((n,r)=>{null!=n&&!1!==n&&(t[r]=e&&G.isArray(n)?n.join(", "):n)})),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([e,t])=>e+": "+t)).join("\n")}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);return t.forEach((e=>n.set(e))),n}static accessor(e){const t=(this[Se]=this[Se]={accessors:{}}).accessors,n=this.prototype;function r(e){const r=ve(e);t[r]||(function(e,t){const n=G.toCamelCase(" "+t);["get","set","has"].forEach((r=>{Object.defineProperty(e,r+n,{value:function(e,n,o){return this[r].call(this,t,e,n,o)},configurable:!0})}))}(n,e),t[r]=!0)}return G.isArray(e)?e.forEach(r):r(e),this}}Ce.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),G.reduceDescriptors(Ce.prototype,(({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}})),G.freezeMethods(Ce);var je=Ce;function xe(e,t){const n=this||Oe,r=t||n,o=je.from(r.headers);let s=r.data;return G.forEach(e,(function(e){s=e.call(n,s,o.normalize(),t?t.status:void 0)})),o.normalize(),s}function Ne(e){return!(!e||!e.__CANCEL__)}function Ue(e,t,n){Q.call(this,null==e?"canceled":e,Q.ERR_CANCELED,t,n),this.name="CanceledError"}function Pe(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new Q("Request failed with status code "+n.status,[Q.ERR_BAD_REQUEST,Q.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}G.inherits(Ue,Q,{__CANCEL__:!0});const _e=(e,t,n=3)=>{let r=0;const o=function(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o,s=0,i=0;return t=void 0!==t?t:1e3,function(a){const c=Date.now(),l=r[i];o||(o=c),n[s]=a,r[s]=c;let u=i,f=0;for(;u!==s;)f+=n[u++],u%=e;if(s=(s+1)%e,s===i&&(i=(i+1)%e),c-o<t)return;const d=l&&c-l;return d?Math.round(1e3*f/d):void 0}}(50,250);return function(n,s){let i,a,c=0,l=1e3/s;const u=(n,s=Date.now())=>{c=s,i=null,a&&(clearTimeout(a),a=null),(n=>{const s=n.loaded,i=n.lengthComputable?n.total:void 0,a=s-r,c=o(a);r=s,e({loaded:s,total:i,progress:i?s/i:void 0,bytes:a,rate:c||void 0,estimated:c&&i&&s<=i?(i-s)/c:void 0,event:n,lengthComputable:null!=i,[t?"download":"upload"]:!0})})(...n)};return[(...e)=>{const t=Date.now(),n=t-c;n>=l?u(e,t):(i=e,a||(a=setTimeout((()=>{a=null,u(i)}),l-n)))},()=>i&&u(i)]}(0,n)},Fe=(e,t)=>{const n=null!=e;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},ke=e=>(...t)=>G.asap((()=>e(...t)));var Le=ge.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,ge.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(ge.origin),ge.navigator&&/(msie|trident)/i.test(ge.navigator.userAgent)):()=>!0,Be=ge.hasStandardBrowserEnv?{write(e,t,n,r,o,s,i){if("undefined"==typeof document)return;const a=[`${e}=${encodeURIComponent(t)}`];G.isNumber(n)&&a.push(`expires=${new Date(n).toUTCString()}`),G.isString(r)&&a.push(`path=${r}`),G.isString(o)&&a.push(`domain=${o}`),!0===s&&a.push("secure"),G.isString(i)&&a.push(`SameSite=${i}`),document.cookie=a.join("; ")},read(e){if("undefined"==typeof document)return null;const t=document.cookie.match(new RegExp("(?:^|; )"+e+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function De(e,t,n){let r=!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t);return e&&(r||0==n)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const qe=e=>e instanceof je?{...e}:e;function Ie(e,t){t=t||{};const n={};function r(e,t,n,r){return G.isPlainObject(e)&&G.isPlainObject(t)?G.merge.call({caseless:r},e,t):G.isPlainObject(t)?G.merge({},t):G.isArray(t)?t.slice():t}function o(e,t,n,o){return G.isUndefined(t)?G.isUndefined(e)?void 0:r(void 0,e,0,o):r(e,t,0,o)}function s(e,t){if(!G.isUndefined(t))return r(void 0,t)}function i(e,t){return G.isUndefined(t)?G.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function a(n,o,s){return s in t?r(n,o):s in e?r(void 0,n):void 0}const c={url:s,method:s,data:s,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:a,headers:(e,t,n)=>o(qe(e),qe(t),0,!0)};return G.forEach(Object.keys({...e,...t}),(function(r){const s=c[r]||o,i=s(e[r],t[r],r);G.isUndefined(i)&&s!==a||(n[r]=i)})),n}var Me=e=>{const t=Ie({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:o,xsrfCookieName:s,headers:i,auth:a}=t;if(t.headers=i=je.from(i),t.url=le(De(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),a&&i.set("Authorization","Basic "+btoa((a.username||"")+":"+(a.password?unescape(encodeURIComponent(a.password)):""))),G.isFormData(n))if(ge.hasStandardBrowserEnv||ge.hasStandardBrowserWebWorkerEnv)i.setContentType(void 0);else if(G.isFunction(n.getHeaders)){const e=n.getHeaders(),t=["content-type","content-length"];Object.entries(e).forEach((([e,n])=>{t.includes(e.toLowerCase())&&i.set(e,n)}))}if(ge.hasStandardBrowserEnv&&(r&&G.isFunction(r)&&(r=r(t)),r||!1!==r&&Le(t.url))){const e=o&&s&&Be.read(s);e&&i.set(o,e)}return t},ze="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise((function(t,n){const r=Me(e);let o=r.data;const s=je.from(r.headers).normalize();let i,a,c,l,u,{responseType:f,onUploadProgress:d,onDownloadProgress:h}=r;function p(){l&&l(),u&&u(),r.cancelToken&&r.cancelToken.unsubscribe(i),r.signal&&r.signal.removeEventListener("abort",i)}let m=new XMLHttpRequest;function b(){if(!m)return;const r=je.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders());Pe((function(e){t(e),p()}),(function(e){n(e),p()}),{data:f&&"text"!==f&&"json"!==f?m.response:m.responseText,status:m.status,statusText:m.statusText,headers:r,config:e,request:m}),m=null}m.open(r.method.toUpperCase(),r.url,!0),m.timeout=r.timeout,"onloadend"in m?m.onloadend=b:m.onreadystatechange=function(){m&&4===m.readyState&&(0!==m.status||m.responseURL&&0===m.responseURL.indexOf("file:"))&&setTimeout(b)},m.onabort=function(){m&&(n(new Q("Request aborted",Q.ECONNABORTED,e,m)),m=null)},m.onerror=function(t){const r=new Q(t&&t.message?t.message:"Network Error",Q.ERR_NETWORK,e,m);r.event=t||null,n(r),m=null},m.ontimeout=function(){let t=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const o=r.transitional||fe;r.timeoutErrorMessage&&(t=r.timeoutErrorMessage),n(new Q(t,o.clarifyTimeoutError?Q.ETIMEDOUT:Q.ECONNABORTED,e,m)),m=null},void 0===o&&s.setContentType(null),"setRequestHeader"in m&&G.forEach(s.toJSON(),(function(e,t){m.setRequestHeader(t,e)})),G.isUndefined(r.withCredentials)||(m.withCredentials=!!r.withCredentials),f&&"json"!==f&&(m.responseType=r.responseType),h&&([c,u]=_e(h,!0),m.addEventListener("progress",c)),d&&m.upload&&([a,l]=_e(d),m.upload.addEventListener("progress",a),m.upload.addEventListener("loadend",l)),(r.cancelToken||r.signal)&&(i=t=>{m&&(n(!t||t.type?new Ue(null,e,m):t),m.abort(),m=null)},r.cancelToken&&r.cancelToken.subscribe(i),r.signal&&(r.signal.aborted?i():r.signal.addEventListener("abort",i)));const y=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(r.url);y&&-1===ge.protocols.indexOf(y)?n(new Q("Unsupported protocol "+y+":",Q.ERR_BAD_REQUEST,e)):m.send(o||null)}))},He=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let n,r=new AbortController;const o=function(e){if(!n){n=!0,i();const t=e instanceof Error?e:this.reason;r.abort(t instanceof Q?t:new Ue(t instanceof Error?t.message:t))}};let s=t&&setTimeout((()=>{s=null,o(new Q(`timeout ${t} of ms exceeded`,Q.ETIMEDOUT))}),t);const i=()=>{e&&(s&&clearTimeout(s),s=null,e.forEach((e=>{e.unsubscribe?e.unsubscribe(o):e.removeEventListener("abort",o)})),e=null)};e.forEach((e=>e.addEventListener("abort",o)));const{signal:a}=r;return a.unsubscribe=()=>G.asap(i),a}};const Je=function*(e,t){let n=e.byteLength;if(!t||n<t)return void(yield e);let r,o=0;for(;o<n;)r=o+t,yield e.slice(o,r),o=r},We=(e,t,n,r)=>{const o=async function*(e,t){for await(const n of async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);const t=e.getReader();try{for(;;){const{done:e,value:n}=await t.read();if(e)break;yield n}}finally{await t.cancel()}}(e))yield*Je(n,t)}(e,t);let s,i=0,a=e=>{s||(s=!0,r&&r(e))};return new ReadableStream({async pull(e){try{const{done:t,value:r}=await o.next();if(t)return a(),void e.close();let s=r.byteLength;if(n){let e=i+=s;n(e)}e.enqueue(new Uint8Array(r))}catch(e){throw a(e),e}},cancel(e){return a(e),o.return()}},{highWaterMark:2})},{isFunction:$e}=G,Ke=(({Request:e,Response:t})=>({Request:e,Response:t}))(G.global),{ReadableStream:Ve,TextEncoder:Xe}=G.global,Ge=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},Qe=e=>{e=G.merge.call({skipUndefined:!0},Ke,e);const{fetch:t,Request:n,Response:r}=e,o=t?$e(t):"function"==typeof fetch,s=$e(n),i=$e(r);if(!o)return!1;const a=o&&$e(Ve),c=o&&("function"==typeof Xe?(l=new Xe,e=>l.encode(e)):async e=>new Uint8Array(await new n(e).arrayBuffer()));var l;const u=s&&a&&Ge((()=>{let e=!1;const t=new n(ge.origin,{body:new Ve,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t})),f=i&&a&&Ge((()=>G.isReadableStream(new r("").body))),d={stream:f&&(e=>e.body)};o&&["text","arrayBuffer","blob","formData","stream"].forEach((e=>{!d[e]&&(d[e]=(t,n)=>{let r=t&&t[e];if(r)return r.call(t);throw new Q(`Response type '${e}' is not supported`,Q.ERR_NOT_SUPPORT,n)})}));return async e=>{let{url:o,method:i,data:a,signal:l,cancelToken:h,timeout:p,onDownloadProgress:m,onUploadProgress:b,responseType:y,headers:g,withCredentials:w="same-origin",fetchOptions:E}=Me(e),O=t||fetch;y=y?(y+"").toLowerCase():"text";let R=He([l,h&&h.toAbortSignal()],p),S=null;const v=R&&R.unsubscribe&&(()=>{R.unsubscribe()});let T;try{if(b&&u&&"get"!==i&&"head"!==i&&0!==(T=await(async(e,t)=>{const r=G.toFiniteNumber(e.getContentLength());return null==r?(async e=>{if(null==e)return 0;if(G.isBlob(e))return e.size;if(G.isSpecCompliantForm(e)){const t=new n(ge.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return G.isArrayBufferView(e)||G.isArrayBuffer(e)?e.byteLength:(G.isURLSearchParams(e)&&(e+=""),G.isString(e)?(await c(e)).byteLength:void 0)})(t):r})(g,a))){let e,t=new n(o,{method:"POST",body:a,duplex:"half"});if(G.isFormData(a)&&(e=t.headers.get("content-type"))&&g.setContentType(e),t.body){const[e,n]=Fe(T,_e(ke(b)));a=We(t.body,65536,e,n)}}G.isString(w)||(w=w?"include":"omit");const t=s&&"credentials"in n.prototype,l={...E,signal:R,method:i.toUpperCase(),headers:g.normalize().toJSON(),body:a,duplex:"half",credentials:t?w:void 0};S=s&&new n(o,l);let h=await(s?O(S,E):O(o,l));const p=f&&("stream"===y||"response"===y);if(f&&(m||p&&v)){const e={};["status","statusText","headers"].forEach((t=>{e[t]=h[t]}));const t=G.toFiniteNumber(h.headers.get("content-length")),[n,o]=m&&Fe(t,_e(ke(m),!0))||[];h=new r(We(h.body,65536,n,(()=>{o&&o(),v&&v()})),e)}y=y||"text";let A=await d[G.findKey(d,y)||"text"](h,e);return!p&&v&&v(),await new Promise(((t,n)=>{Pe(t,n,{data:A,headers:je.from(h.headers),status:h.status,statusText:h.statusText,config:e,request:S})}))}catch(t){if(v&&v(),t&&"TypeError"===t.name&&/Load failed|fetch/i.test(t.message))throw Object.assign(new Q("Network Error",Q.ERR_NETWORK,e,S),{cause:t.cause||t});throw Q.from(t,t&&t.code,e,S)}}},Ze=new Map,Ye=e=>{let t=e&&e.env||{};const{fetch:n,Request:r,Response:o}=t,s=[r,o,n];let i,a,c=s.length,l=Ze;for(;c--;)i=s[c],a=l.get(i),void 0===a&&l.set(i,a=c?new Map:Qe(t)),l=a;return a};Ye();const et={http:null,xhr:ze,fetch:{get:Ye}};G.forEach(et,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}}));const tt=e=>`- ${e}`,nt=e=>G.isFunction(e)||null===e||!1===e;var rt=function(e,t){e=G.isArray(e)?e:[e];const{length:n}=e;let r,o;const s={};for(let i=0;i<n;i++){let n;if(r=e[i],o=r,!nt(r)&&(o=et[(n=String(r)).toLowerCase()],void 0===o))throw new Q(`Unknown adapter '${n}'`);if(o&&(G.isFunction(o)||(o=o.get(t))))break;s[n||"#"+i]=o}if(!o){const e=Object.entries(s).map((([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build")));throw new Q("There is no suitable adapter to dispatch the request "+(n?e.length>1?"since :\n"+e.map(tt).join("\n"):" "+tt(e[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return o};function ot(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Ue(null,e)}function st(e){return ot(e),e.headers=je.from(e.headers),e.data=xe.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1),rt(e.adapter||Oe.adapter,e)(e).then((function(t){return ot(e),t.data=xe.call(e,e.transformResponse,t),t.headers=je.from(t.headers),t}),(function(t){return Ne(t)||(ot(e),t&&t.response&&(t.response.data=xe.call(e,e.transformResponse,t.response),t.response.headers=je.from(t.response.headers))),Promise.reject(t)}))}const it="1.13.2",at={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{at[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));const ct={};at.transitional=function(e,t,n){function r(e,t){return"[Axios v"+it+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,o,i)=>{if(!1===e)throw new Q(r(o," has been removed"+(t?" in "+t:"")),Q.ERR_DEPRECATED);return t&&!ct[o]&&(ct[o]=!0,s.warn(r(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,o,i)}},at.spelling=function(e){return(t,n)=>(s.warn(`${n} is likely a misspelling of ${e}`),!0)};var lt={assertOptions:function(e,t,n){if("object"!=typeof e)throw new Q("options must be an object",Q.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const s=r[o],i=t[s];if(i){const t=e[s],n=void 0===t||i(t,s,e);if(!0!==n)throw new Q("option "+s+" must be "+n,Q.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new Q("Unknown option "+s,Q.ERR_BAD_OPTION)}},validators:at};const ut=lt.validators;class ft{constructor(e){this.defaults=e||{},this.interceptors={request:new ue,response:new ue}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=new Error;const n=t.stack?t.stack.replace(/^.+\n/,""):"";try{e.stack?n&&!String(e.stack).endsWith(n.replace(/^.+\n.+\n/,""))&&(e.stack+="\n"+n):e.stack=n}catch(e){}}throw e}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=Ie(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:o}=t;void 0!==n&<.assertOptions(n,{silentJSONParsing:ut.transitional(ut.boolean),forcedJSONParsing:ut.transitional(ut.boolean),clarifyTimeoutError:ut.transitional(ut.boolean)},!1),null!=r&&(G.isFunction(r)?t.paramsSerializer={serialize:r}:lt.assertOptions(r,{encode:ut.function,serialize:ut.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),lt.assertOptions(t,{baseUrl:ut.spelling("baseURL"),withXsrfToken:ut.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let s=o&&G.merge(o.common,o[t.method]);o&&G.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete o[e]})),t.headers=je.concat(s,o);const i=[];let a=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(a=a&&e.synchronous,i.unshift(e.fulfilled,e.rejected))}));const c=[];let l;this.interceptors.response.forEach((function(e){c.push(e.fulfilled,e.rejected)}));let u,f=0;if(!a){const e=[st.bind(this),void 0];for(e.unshift(...i),e.push(...c),u=e.length,l=Promise.resolve(t);f<u;)l=l.then(e[f++],e[f++]);return l}u=i.length;let d=t;for(;f<u;){const e=i[f++],t=i[f++];try{d=e(d)}catch(e){t.call(this,e);break}}try{l=st.call(this,d)}catch(e){return Promise.reject(e)}for(f=0,u=c.length;f<u;)l=l.then(c[f++],c[f++]);return l}getUri(e){return le(De((e=Ie(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls),e.params,e.paramsSerializer)}}G.forEach(["delete","get","head","options"],(function(e){ft.prototype[e]=function(t,n){return this.request(Ie(n||{},{method:e,url:t,data:(n||{}).data}))}})),G.forEach(["post","put","patch"],(function(e){function t(t){return function(n,r,o){return this.request(Ie(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}ft.prototype[e]=t(),ft.prototype[e+"Form"]=t(!0)}));var dt=ft;class ht{constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise((function(e){t=e}));const n=this;this.promise.then((e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null})),this.promise.then=e=>{let t;const r=new Promise((e=>{n.subscribe(e),t=e})).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e((function(e,r,o){n.reason||(n.reason=new Ue(e,r,o),t(n.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;return{token:new ht((function(t){e=t})),cancel:e}}}var pt=ht;const mt={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(mt).forEach((([e,t])=>{mt[t]=e}));var bt=mt;const yt=function e(t){const n=new dt(t),r=i(dt.prototype.request,n);return G.extend(r,dt.prototype,n,{allOwnKeys:!0}),G.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return e(Ie(t,n))},r}(Oe);yt.Axios=dt,yt.CanceledError=Ue,yt.CancelToken=pt,yt.isCancel=Ne,yt.VERSION=it,yt.toFormData=oe,yt.AxiosError=Q,yt.Cancel=yt.CanceledError,yt.all=function(e){return Promise.all(e)},yt.spread=function(e){return function(t){return e.apply(null,t)}},yt.isAxiosError=function(e){return G.isObject(e)&&!0===e.isAxiosError},yt.mergeConfig=Ie,yt.AxiosHeaders=je,yt.formToJSON=e=>we(G.isHTMLForm(e)?new FormData(e):e),yt.getAdapter=rt,yt.HttpStatusCode=bt,yt.default=yt,e.exports=yt}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
/*! Axios v1.13.2 Copyright (c) 2025 Matt Zabriskie and contributors */
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[3055],{15981:function(t,e,n){"use strict";n.d(e,{A:function(){return i.A}});var i=n(33961)},33961:function(t,e,n){"use strict";var i=n(64467),s=n(48836),r=n(10810),c=n(79920);function a(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}e.A={name:"VsMapWithSidebarControls",status:"prototype",release:"0.0.1",components:{VsButton:s.default},inject:["clearSelectionText","applyFiltersText"],data:function(){return{isDisabled:!0}},computed:function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?a(Object(n),!0).forEach((function(e){(0,i.A)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},(0,r.aH)(c.A,{getSubcatFilters:function(t){return t.activeSubcatFilters}})),mounted:function(){this.disableSubmitButton()},methods:{clearSelection:function(){this.emitter&&this.emitter.emit("clearSelectedSubcats"),this.isDisabled=!0},submitCheckboxes:function(){this.emitter&&this.emitter.emit("submitCheckboxData")},disableSubmitButton:function(){var t=this;this.emitter&&this.emitter.on("checkboxes-selected",(function(e){e.length>0?t.isDisabled=!1:t.isDisabled=!0})),this.getSubcatFilters.length>0&&(this.isDisabled=!1)}}}},34446:function(t,e,n){"use strict";n(60610)},53716:function(t,e,n){"use strict";n.d(e,{X:function(){return i.X}});var i=n(93188)},60610:function(t,e,n){"use strict";var i=n(85072),s=n.n(i),r=n(97825),c=n.n(r),a=n(77659),o=n.n(a),l=n(55056),u=n.n(l),b=n(10540),p=n.n(b),d=n(41113),f=n.n(d),m=n(82936),y=n.n(m),h={};h.styleTagTransform=f(),h.setAttributes=u(),h.insert=o().bind(null,"head"),h.domAPI=c(),h.insertStyleElement=p(),s()(y(),h),y()&&y().locals&&y().locals},63055:function(t,e,n){"use strict";n.r(e);var i=n(53716),s=n(15981);n(34446);const r=(0,n(66262).A)(s.A,[["render",i.X]]);e.default=r},82936:function(){},93188:function(t,e,n){"use strict";n.d(e,{X:function(){return a}});var i=n(20641),s=n(53751),r=n(90033),c={class:"vs-main-map-controls","data-test":"vs-main-map-controls"};function a(t,e,n,a,o,l){var u=(0,i.g2)("VsButton");return(0,i.uX)(),(0,i.CE)("div",c,[(0,i.bF)(u,{class:"vs-main-map-controls__clear-selection","data-test":"vs-main-map-subcategory__clear-selection",size:"sm",variant:"secondary",onClick:l.clearSelection,onKeyup:(0,s.withKeys)(l.clearSelection,["enter"])},{default:(0,i.k6)((function(){return[(0,i.eW)((0,r.toDisplayString)(l.clearSelectionText),1)]})),_:1},8,["onClick","onKeyup"]),(0,i.bF)(u,{class:"vs-main-map-controls__apply-filters","data-test":"vs-main-map-subcategory__apply-filters",size:"sm",onKeypress:(0,s.withKeys)(l.submitCheckboxes,["enter"]),onClick:l.submitCheckboxes,"aria-disabled":o.isDisabled,disabled:o.isDisabled},{default:(0,i.k6)((function(){return[(0,i.eW)((0,r.toDisplayString)(l.applyFiltersText),1)]})),_:1},8,["onKeypress","onClick","aria-disabled","disabled"])])}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[7510],{10540:function(e){e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},41113:function(e){e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}},55056:function(e,t,n){e.exports=function(e){var t=n.nc;t&&e.setAttribute("nonce",t)}},77659:function(e){var t={};e.exports=function(e,n){var r=function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}t[e]=n}return t[e]}(e);if(!r)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");r.appendChild(n)}},85072:function(e){var t=[];function n(e){for(var n=-1,r=0;r<t.length;r++)if(t[r].identifier===e){n=r;break}return n}function r(e,r){for(var a={},i=[],s=0;s<e.length;s++){var c=e[s],u=r.base?c[0]+r.base:c[0],f=a[u]||0,p="".concat(u," ").concat(f);a[u]=f+1;var d=n(p),l={css:c[1],media:c[2],sourceMap:c[3],supports:c[4],layer:c[5]};if(-1!==d)t[d].references++,t[d].updater(l);else{var v=o(l,r);r.byIndex=s,t.splice(s,0,{identifier:p,updater:v,references:1})}i.push(p)}return i}function o(e,t){var n=t.domAPI(t);return n.update(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap&&t.supports===e.supports&&t.layer===e.layer)return;n.update(e=t)}else n.remove()}}e.exports=function(e,o){var a=r(e=e||[],o=o||{});return function(e){e=e||[];for(var i=0;i<a.length;i++){var s=n(a[i]);t[s].references--}for(var c=r(e,o),u=0;u<a.length;u++){var f=n(a[u]);0===t[f].references&&(t[f].updater(),t.splice(f,1))}a=c}}},97825:function(e){e.exports=function(e){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var t=e.insertStyleElement(e);return{update:function(n){!function(e,t,n){var r="";n.supports&&(r+="@supports (".concat(n.supports,") {")),n.media&&(r+="@media ".concat(n.media," {"));var o=void 0!==n.layer;o&&(r+="@layer".concat(n.layer.length>0?" ".concat(n.layer):""," {")),r+=n.css,o&&(r+="}"),n.media&&(r+="}"),n.supports&&(r+="}");var a=n.sourceMap;a&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(a))))," */")),t.styleTagTransform(r,e,t.options)}(t,e,n)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[8745],{4859:function(e,t,a){var r=a(17527),n=(0,a(48086).defineStore)("datalayer",(function(){var e=(0,r.ref)(""),t=(0,r.ref)(!1),a=(0,r.ref)({});return{pageUrl:e,tagsTestRun:t,GTMData:a,getValueFromKey:function(e){return a.value[e]},setTestRun:function(e){t.value=e},setPageUrl:function(t){e.value=t},processPayload:function(e){a.value[e.key]=e.value}}}));t.A=n},8611:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.signpostedPartners=t.dmoUrls=t.monthsEnglish=t.paths=t.products=void 0,t.products=[{key:"accommodation",text:"Accommodation",value:"acco"},{key:"eventsAndFestivals",text:"Events & Festivals",value:"even"},{key:"foodAndDrink",text:"Food & Drink",value:"cate"},{key:"thingsToDo",text:"Things to do",value:"acti,attr,reta"},{key:"tours",text:"Tours",value:"tour"}],t.paths={acco:"accommodation","acti,attr,reta":"see-do",cate:"food-drink",even:"events",tour:"tours"},t.monthsEnglish=[{label:"January",value:"january"},{label:"February",value:"february"},{label:"March",value:"march"},{label:"April",value:"april"},{label:"May",value:"may"},{label:"June",value:"june"},{label:"July",value:"july"},{label:"August",value:"august"},{label:"September",value:"september"},{label:"October",value:"october"},{label:"November",value:"november"},{label:"December",value:"december"}],t.dmoUrls=["visitabdn.com","wildaboutargyll.co.uk","ayrshireandarran.com","visitarran.com","dundee.com/visit","visitangus.com","edinburgh.org","visiteastlothian.org","visitwestlothian.co.uk","visitmidlothian.co.uk","welcometofife.com","visitglasgow.com","visitlanarkshire.com","discoverinverclyde.com","paisley.is","west-dunbarton.gov.uk/leisure-parks-events/tourism-and-visitor-attractions","eastdunbarton.gov.uk/residents/tourism-visited-exploreed/places-visit-east-dunbartonshire","visitinvernesslochness.com","nairnscotland.co.uk","outdoorcapital.co.uk","westhighlandpeninsulas.com/uk","roadtotheisles.com","discoverglencoe.scot","visitcairngorms.com","badenochstorylands.com","grantownonline.com","northcoast500.com","venture-north.co.uk","discoverassynt.co.uk","nwhgeopark.com","visitwester-ross.com","wrb.scot","visitdornoch.com","easterrosspeninsula.com","black-isle.info","myskyetime.com","morayspeyside.com","yourstirling.com","visitfalkirk.com","discoverclackmannanshire.com","lochlomond-trossachs.org","accessforthvalley.com","orkney.com","visitouterhebrides.co.uk","highlandperthshire.org","perthcityandtowns.co.uk","scotlandstartshere.com","shetland.org/visit","peoplemakeglasgow.com"],t.signpostedPartners=["findbusinesssupport.gov.scot","www.bgateway.com","www.creativescotland.com","www.hie.co.uk","www.scottish-enterprise.com","www.southofscotlandenterprise.com","www.skillsdevelopmentscotland.co.uk","www.slaed.org.uk"]},12554:function(e,t,a){a.d(t,{BV:function(){return u},C0:function(){return _},C2:function(){return f},Ew:function(){return F},FZ:function(){return d},Gn:function(){return n},P4:function(){return c},QI:function(){return m},Qo:function(){return g},T9:function(){return v},Uf:function(){return l},Uo:function(){return p},Vq:function(){return r},WO:function(){return x},cV:function(){return T},cg:function(){return L},g4:function(){return i},kp:function(){return w},lG:function(){return y},lz:function(){return s},oY:function(){return h},qv:function(){return o},tF:function(){return k},u6:function(){return b}});var r=["event","site_language","content_language","content_category","content_page_type","page_category_1","page_category_2","page_category_3","page_category_4","page_category_5","page_category_6","content_region","content_city","provider_search_region","provider_search_category","provider_search_facilities","provider_search_grading","provider_search_awards","provider_search_rooms","provider_search_min_price","provider_search_max_price","provider_category","provider_category_level_1","provider_category_level_2","provider_name","provider_ID","star_grading","provider_region","provider_city","provider_has_website","page_with_booking_link","provider_has_availability","availability_search_start_date","availability_search_end_date","availability_search_no_of_nights","availability_search_no_of_adults","availability_search_no_of_children","availability_search_no_of_rooms","availability_search_price_range","hit_timestamp","tag_name","meta_data"],n=["event","site_language","page_category_1","page_category_2","page_category_3","page_category_4","user_country_setting","hit_timestamp","tag_name","meta_data","psr_search_type","psr_search_location","page_path"],o=["event","site_language","user_country_setting","hit_timestamp","tag_name","meta_data","click_text","click_URL"],i=["event","site_language","page_category_1","page_category_2","page_category_3","page_category_4","page_category_5","page_category_6","user_country_setting","hit_timestamp","tag_name","meta_data","click_text","click_URL"],c=["event","site_language","page_category_1","page_category_2","page_category_3","page_category_4","page_category_5","page_category_6","user_country_setting","hit_timestamp","tag_name","meta_data","click_URL","location_on_page"],_=["event","site_language","page_category_1","page_category_2","page_category_3","page_category_4","page_category_5","page_category_6","user_country_setting","hit_timestamp","tag_name","meta_data","click_URL"],s=["event","language","page_category_1","page_category_2","page_category_3","page_category_4","page_category_5","page_category_6","user_country_setting","hit_timestamp","tag_name","meta_data","video_status","video_title","video_percent"],l=["event","site_language","page_category_1","page_category_2","page_category_3","page_category_4","page_category_5","page_category_6","user_country_setting","hit_timestamp","tag_name","meta_data","click_text","click_URL","dmo_referral","partner_referral","event_listing"],g=["event","site_language","page_category_1","page_category_2","page_category_3","page_category_4","page_category_5","page_category_6","user_country_setting","hit_timestamp","tag_name","meta_data","click_text","click_URL"],u=["event","site_language","page_category_1","page_category_2","page_category_3","page_category_4","page_category_5","page_category_6","user_country_setting","hit_timestamp","tag_name","meta_data","error_type","error_details","page_path"],p=["event","site_language","page_category_1","page_category_2","page_category_3","page_category_4","page_category_5","page_category_6","user_country_setting","hit_timestamp","tag_name","meta_data","page_path","form_status"],m=["event","site_language","page_category_1","page_category_2","page_category_3","page_category_4","page_category_5","page_category_6","user_country_setting","hit_timestamp","tag_name","meta_data","question_number","answer"],v=["event","site_language","page_category_1","page_category_2","page_category_3","page_category_4","page_category_5","page_category_6","user_country_setting","hit_timestamp","tag_name","meta_data","total_emissions","total_per_day","travel_percent","accommodation_percent","food_percent"],y=["event","site_language","page_category_1","page_category_2","page_category_3","page_category_4","page_category_5","page_category_6","user_country_setting","hit_timestamp","tag_name","tag_name","meta_data","referral_location","attraction_name","dmo_referral"],d=["event","site_language","page_category_1","page_category_2","page_category_3","page_category_4","page_category_5","page_category_6","user_country_setting","hit_timestamp","tag_name","meta_data","accordion_text"],h=["event","event_tab","site_language","user_country_setting","hit_timestamp","tag_name","meta_data","event_listing"],f=["event","referrer_page"],k=["event","search_query","query_input","results_count","search_usage_index","search_type","interaction_type","search_origin"],b=["event","interaction_type","search_query","query_input","page_number","page_navigation_direction","click_text","click_url","click_category","search_usage_index","results_count"],w=["event","search_usage_index","search_query","query_input","page_number","results_count"],F=["event","search_query","search_map_location","search_results_count","search_usage_index"],T=["event","filter_type","search_map_location","filter_selection","results_count","filter_usage_index"],x=["event","time_to_first_interaction_ms","first_interaction_type"],L=["event","interaction_type","search_query","map_location","visible_attractions_count","card_attraction_name","card_attraction_category","card_attraction_rating","card_attraction_url","interaction_timestamp_ms"]},63555:function(e,t){var a=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;window.setTimeout((function(){window[e]?t(window[e]):a(e,t,500)}),r)};t.A=a},98745:function(e,t,a){a.r(t);var r=a(64467),n=a(10810),o=a(4859),i=a(63555),c=a(8611),_=a(12554);function s(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function l(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?s(Object(a),!0).forEach((function(t){(0,r.A)(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):s(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}var g={computed:l({},(0,n.aH)(o.A,{pageUrl:function(e){return e.pageUrl}})),data:function(){return{dataLayerLoadConfirmed:!1,dataLayerStore:null}},mounted:function(){this.dataLayerStore=(0,o.A)()},methods:{templateFiller:function(e,t){var a={};return e.forEach((function(e){a[e]="",a[e]=t[e]||void 0,"language"===e&&void 0===a[e]&&(a[e]=t.site_language||void 0)})),a},createDataLayerObject:function(e,t,a){var r,n,o,i,s,l,g="",u="False";switch(t&&t.target&&(l=t.target.text?t.target.text.trim():t.target.innerText,t.target.closest('[data-event-listing="True"]')&&(u="True")),e){case"productSearchDataEvent":n="VS - GA4 - Event - PSR Search",o={event:r="psr_search",psr_search_type:t.searchType,psr_search_location:t.searchLocation,page_path:a,tag_name:n},i=this.compileFullTemplate(o),s=this.templateFiller(_.Gn,i);break;case"pageViewTemplateDataEvent":o={event:r="page_view"},i=this.compileFullTemplate(o),s=this.templateFiller(_.Vq,i);break;case"menuNavigationDataEvent":o={event:r="menu_navigation",click_text:t.target.text.trim(),click_URL:a},i=this.compileFullTemplate(o),s=this.templateFiller(_.qv,i);break;case"socialMediaExternalLinkDataEvent":o={event:r="social_media_footer",tag_name:n="VS - GA - Social Media External Link",click_URL:a},i=this.compileFullTemplate(o),s=this.templateFiller(_.P4,i);break;case"homePageLogoClickDataEvent":o={event:r="homepage_logo_click",tag_name:n="VS - GA - Homepage Logo Click"},i=this.compileFullTemplate(o),s=this.templateFiller(_.C0,i);break;case"externalLinkDataEvent":o={event:r="external_link",tag_name:n="VS - GA - External Link",click_text:l,click_URL:a,partner_referral:"False",event_listing:u};for(var p=0;p<c.signpostedPartners.length;p++)a.includes(c.signpostedPartners[p])&&(o.partner_referral="True");i=this.compileFullTemplate(o),s=this.templateFiller(_.Uf,i);break;case"internalLinkDataEvent":o={event:r="internal_link",tag_name:n="VS - GA - Internal Link",click_text:l,click_URL:a},i=this.compileFullTemplate(o),s=this.templateFiller(_.Qo,i);break;case"formsDataEvent":o={event:r="forms",tag_name:n="VS - GA - Forms",form_status:"form_submitted"},i=this.compileFullTemplate(o),s=this.templateFiller(_.Uo,i);break;case"errorDataEvent":o={event:r="errors",tag_name:n="VS - GA - Errors",error_type:t.error_type,error_details:t.error_details},i=this.compileFullTemplate(o),s=this.templateFiller(_.BV,i);break;case"videoTrackingDataEvent":o={event:r="video_tracking",tag_name:n="VS - GA - Video Tracking",video_status:t.status,video_title:t.title||"",video_percent:t.percent||0},i=this.compileFullTemplate(o),s=this.templateFiller(_.lz,i);break;case"socialShareDataEvent":r="share",n="VS - GA - Share",void 0!==t.target.text&&(g=t.target.text.trim()),o={event:r,tag_name:n,click_text:g,click_URL:a},i=this.compileFullTemplate(o),s=this.templateFiller(_.g4,i);break;case"carbonQuestionEvent":o={event:r="carbonCalculatorQuestion",tag_name:n="VS - GA - Carbon Calculator Question Answered",question_number:t.questionNumber,answer:t.answer},i=this.compileFullTemplate(o),s=this.templateFiller(_.QI,i);break;case"carbonCompleteEvent":o={event:r="carbonCalculatorComplete",tag_name:n="VS - GA - Carbon Calculator Complete",total_emissions:t.totalEmissions,total_per_day:t.totalPerDay,travel_percent:t.travelPercent,accommodation_percent:t.accommodationPercent,food_percent:t.foodPercent},i=this.compileFullTemplate(o),s=this.templateFiller(_.T9,i);break;case"cmsReferral":o={event:r="cms_referral",tag_name:n="VS - GA4 - Event - CMS Link Click Referral",referral_location:t.referral_location,dmo_referral:t.dmo_referral},i=this.compileFullTemplate(o),s=this.templateFiller(_.lG,i);break;case"accordionOpenEvent":o={event:r="accordion_opened",tag_name:n="GA4 - Event - Accordion Opened",accordion_text:t.accordion_text},i=this.compileFullTemplate(o),s=this.templateFiller(_.FZ,i);break;case"tabClickEvent":o={event:r="tab_click",tag_name:n="GA4 - Event - Tab Click",event_tab:l,event_listing:u},i=this.compileFullTemplate(o),s=this.templateFiller(_.oY,i)}this.pushToDataLayer(s)},returnIsoDate:function(){return new Date(Date.now()).toISOString()},pushToDataLayer:function(e){var t=this;this.dataLayerLoadConfirmed?window.dataLayer.push(e):(0,i.A)("dataLayer",(function(){t.dataLayerLoadConfirmed=!0,window.dataLayer.push(e)}))},compileFullTemplate:function(e){var t=l(l({},this.dataLayerStore.GTMData),e);return t.hit_timestamp=this.returnIsoDate(),t},targetText:function(e){return e.target.text?e.target.text.trim():""}}};t.default=g}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.VsFedSearchInput=t():e.VsFedSearchInput=t()}(self,(function(){return(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[4161],{},function(e){return e.O(0,[641,6262,7510,3751,4352,7527,4467,8086,810,7800,9394,2543,3453,281,7536,7511,9033,8795,6425,7171,3498,8449,4982,6422,8745,8836,8638,2368,3838,7521,1438,4580,5676,1574,9122,4282,5921,1459,2142,7275,1406,9810,5025,3486,7957,9116,4448,6086,378,6494,1688,4232,1454,3614,1740,2491,4360,6305,9856,8861,2152,4179,7933,2710,6955,815,3706,3484,1371,9054,7553,3130,5945,8167,4921,1288,3990,3293,1244,680,4828,459,2329,4409,80,6358,1696,4145,922,4433,2822,8258,1086,8294,1154,8533,4681,71,7033,5513,6665,6618,1389,1161,9621,4029,3350,9146,6838,4879,4953,1718,530,1120,47,9464,9177,9839,625,6004,7894,7097,7311,8399,5465,6641,9633,5809,3337,2810,7086,3603,8978,3033,6649,630,8759,5807,2324,2761,4712,5048,8693,5782,2787,8407,4562,3642,7906,1841,6175,8462,7692,7231,2759,7195,8573,1106,1379,4999,5402,6431,3609,7848,6241,8817,8570,4061,9323,9923,3731,3914,2837,5577,3650,2612,6283,9783,7969,4036,9280,8332,2437,6123,7570,4670,9423,9886,5106,3734,1901,8969,627,538,1493,4297,1474,3543,2046,4856,7006,6689,2903,2989,555,8995],(function(){return e(e.s=58995)})),e.O()}])}));
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[8258],{7401:function(e,t,r){"use strict";r.d(t,{X:function(){return c}});var n=r(20641),a=r(90033),i={class:"vs-recaptcha","aria-live":"assertive"},s={key:0,class:"error"};function c(e,t,r,c,o,u){var l=(0,n.g2)("VueRecaptcha");return(0,n.uX)(),(0,n.CE)("div",i,[r.invalid&&!r.reAlertErrors?((0,n.uX)(),(0,n.CE)("span",s,(0,a.toDisplayString)(r.errorMsg),1)):(0,n.Q3)("",!0),o.recaptchaSiteKey?((0,n.uX)(),(0,n.Wv)(l,{key:1,sitekey:o.recaptchaSiteKey,onVerify:u.verified,onRender:u.render,class:(0,a.normalizeClass)(["vs-recaptcha__embed",r.invalid?"vs-recaptcha__embed--error":""]),language:r.language},null,8,["sitekey","onVerify","onRender","class","language"])):(0,n.Q3)("",!0)])}},9289:function(){},17855:function(e,t,r){"use strict";var n=r(85072),a=r.n(n),i=r(97825),s=r.n(i),c=r(77659),o=r.n(c),u=r(55056),l=r.n(u),d=r(10540),f=r.n(d),p=r(41113),y=r.n(p),h=r(9289),v=r.n(h),g={};g.styleTagTransform=y(),g.setAttributes=l(),g.insert=o().bind(null,"head"),g.domAPI=s(),g.insertStyleElement=f(),a()(v(),g),v()&&v().locals&&v().locals},34650:function(e,t,r){"use strict";var n=r(19552),a=r(88620);t.A={name:"VsRecaptcha",status:"prototype",release:"0.0.1",components:{VueRecaptcha:n.A},props:{siteKey:{type:String,default:""},invalid:{type:Boolean,default:!1},language:{type:String,default:"en"},errorMsg:{type:String,default:""},textareaLabel:{type:String,default:"Does not need any text"},reAlertErrors:{type:Boolean,default:!1}},emits:["verified"],data:function(){return{response:null,recaptchaSiteKey:""}},created:function(){this.siteKey?this.recaptchaSiteKey=this.siteKey:this.recaptchaSiteKey=(0,a.A)("RECAPTCHA_TOKEN")},methods:{verified:function(e){this.$emit("verified",e)},render:function(){var e=document.querySelectorAll('[id^="g-recaptcha-response"]');if(e.length){var t=e[0].parentNode,r=document.querySelector('label[for="g-recaptcha-response"]'),n=document.createElement("label");n.setAttribute("for","g-recaptcha-response"),n.setAttribute("class","visually-hidden"),n.textContent=this.textareaLabel,r||t.insertBefore(n,e[0])}}}}},36715:function(e,t,r){"use strict";r(17855)},47438:function(e,t,r){"use strict";r.d(t,{A:function(){return n.A}});var n=r(34650)},88258:function(e,t,r){"use strict";r.r(t);var n=r(98297),a=r(47438);r(36715);const i=(0,r(66262).A)(a.A,[["render",n.X]]);t.default=i},88620:function(e,t){"use strict";t.A=function(e){return"MISSING_ENV_VAR"[e]}},98297:function(e,t,r){"use strict";r.d(t,{X:function(){return n.X}});var n=r(7401)}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[8995],{10343:function(e,t,r){"use strict";var a=r(10467),n=r(54756),s=r.n(n),c=r(20641),u=r(50953),i=r(53751),o=r(90033),l=r(10810),d=r(72989),p=r.n(d),y=r(12903),h=r(88620),g=r(30555),_=r(75520),f={class:"vs-fed-search-input"},v={class:"vs-fed-search__input"},b={class:"vs-fed-search__text-input"},m={for:"federated-search",class:"vs-federated-search__label"},C={key:0,class:"position-relative"},k={class:"vs-fed-search-input__autocomplete"},S=["onClick","onKeyup","innerHTML"];t.A={__name:"FedSearchInput",props:{cludoApiKey:{type:String,default:(0,h.A)("CLUDO_API_KEY")},cludoCustomerId:{type:Number,default:Number((0,h.A)("CLUDO_CUSTOMER_ID"))},cludoEngineId:{type:Number,default:Number((0,h.A)("CLUDO_ENGINE_ID"))},isHomePage:{type:Boolean,default:!1},searchUrl:{type:String,default:void 0},filters:{type:Array,default:void 0},subFilters:{type:Array,default:void 0},labels:{type:Object,required:!0}},setup:function(e){var t=(0,_.A)(),r=e,n=p()(),d=(0,l.bP)(n).isLoading,h=(0,u.KR)(),w=(0,u.KR)(null),K=(0,u.KR)(null);function L(e){return O.apply(this,arguments)}function O(){return(O=(0,a.A)(s().mark((function e(t){var r,a;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n.currentPage=1,n.searchTerm=t.value.trim(),r=window.location.search,a=new URLSearchParams(r),!n.searchTerm||a.get("search-term")===n.searchTerm){e.next=2;break}return e.next=1,n.getAutoComplete();case 1:h.value=e.sent;case 2:n.searchTerm||(h.value=null);case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function R(){return P.apply(this,arguments)}function P(){return(P=(0,a.A)(s().mark((function e(){return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return h.value=null,e.next=1,n.navigateToResultsPage();case 1:t.createDataLayerObject("siteSearchUsageEvent",{search_query:n.searchTerm,query_input:n.queryInput,results_count:n.totalResults,search_usage_index:n.searchInSessionCount,search_type:1===n.searchInSessionCount?"initial":"follow-up"});case 2:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function x(e){var r;n.searchTerm=e,h.value=null,n.navigateToResultsPage(!1,!0),r=e,t.createDataLayerObject("siteSearchClickEvent",{interaction_type:"search_autosuggest",search_query:n.searchTerm,page_number:n.currentPage,search_usage_index:n.searchInSessionCount,results_count:n.totalResults,click_text:r,query_input:n.queryInput})}function I(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function D(e){var t=(n.searchTerm||"").trim();if(!t)return I(e);var r=new RegExp("(".concat(t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),")"),"gi");return I(e).replace(r,"<strong>$1</strong>")}function E(e){t.createDataLayerObject("siteSearchClickEvent",{interaction_type:"facet_click",search_query:n.searchTerm,page_number:n.currentPage,search_usage_index:n.searchInSessionCount,results_count:n.totalResults,click_text:e.Label||e.Key})}function A(e){return T.apply(this,arguments)}function T(){return(T=(0,a.A)(s().mark((function e(t){var r;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(r=new URL(window.location)).searchParams.delete("page"),n.currentPage=1,r.searchParams.delete("start-date"),r.searchParams.delete("end-date"),n.startDate="",n.endDate="",n.sortBy=void 0,n.selectedSubCategory=[],n.selectedSubCategoryKey=[],n.selectedCategory=n.selectedCategory!==t.Label?t.Label:"",n.selectedCategoryKey=n.selectedCategoryKey!==t.Key?t.Key:"",e.next=1,n.navigateToResultsPage(!0);case 1:E(t);case 2:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function q(e){if(n.selectedSubCategoryKey.includes(e.Key)){var t=n.selectedSubCategoryKey.indexOf(e.Key);t>=0&&(n.selectedSubCategory.splice(t,1),n.selectedSubCategoryKey.splice(t,1))}else n.selectedSubCategory.push(e.Label),n.selectedSubCategoryKey.push(e.Key);n.navigateToResultsPage(!0),E(e)}return(0,c.sV)((function(){n.cludoCredentials={apiKey:r.cludoApiKey,customerId:r.cludoCustomerId,engineId:r.cludoEngineId},n.isHomePage=r.isHomePage,r.searchUrl&&(n.searchUrl=r.searchUrl);var e=window.location.search,t=new URLSearchParams(e);t.has("search-term")&&(n.searchTerm=t.get("search-term")),t.has("category")&&(n.selectedCategoryKey=decodeURIComponent(t.get("category"))),t.has("sub-category")&&decodeURIComponent(t.get("sub-category")).split(",").forEach((function(e){return n.selectedSubCategoryKey.push(e)})),t.has("category")&&"events"===t.get("category")&&t.has("sort-by")&&(n.sortBy=t.get("sort-by")),t.has("start-date")&&(n.startDate=t.get("start-date")),t.has("end-date")&&(n.endDate=t.get("end-date")),t.has("postcode")&&(n.postcode=t.get("postcode")),t.has("location")&&(n.location=t.get("location")),t.has("radius")&&(n.radius=t.get("radius")),t.has("postcodeareas")&&(n.postcodeareas=t.get("postcodeareas")),(t.has("search-term")||t.has("category"))&&n.getSearchResults()})),(0,c.wB)(d,(function(e){var t,r;e||(null===(t=w.value)||void 0===t||t.resetScroll(),null===(r=K.value)||void 0===r||r.resetScroll())})),function(e,t){return(0,c.uX)(),(0,c.CE)("div",f,[(0,c.Lk)("div",v,[(0,c.Lk)("div",b,[(0,c.Lk)("label",m,[t[0]||(t[0]=(0,c.Lk)("span",{class:"visually-hidden"}," Search for something ",-1)),(0,c.bF)((0,u.R1)(y.VsIcon),{icon:"vs-icon-control-search",size:"xs"})]),(0,c.bF)((0,u.R1)(y.VsInput),{"auto-complete":!1,class:"vs-federated-search__input w-100","field-name":"federated-search",name:"searchrequest",placeholder:r.labels.searchLabel,type:"search",value:(0,u.R1)(n).searchTerm,onUpdated:L,onKeyup:(0,i.withKeys)(R,["enter"])},null,8,["placeholder","value"])]),(0,c.bF)((0,u.R1)(y.VsButton),{class:"d-none d-lg-block px-200",disabled:(0,u.R1)(d),onClick:R},{default:(0,c.k6)((function(){return[(0,c.eW)((0,o.toDisplayString)(r.labels.search),1)]})),_:1},8,["disabled"])]),h.value&&h.value.length>0?((0,c.uX)(),(0,c.CE)("div",C,[(0,c.Lk)("div",k,[(0,c.bF)((0,u.R1)(y.VsList),{unstyled:""},{default:(0,c.k6)((function(){return[((0,c.uX)(!0),(0,c.CE)(c.FK,null,(0,c.pI)(h.value,(function(e){return(0,c.uX)(),(0,c.CE)("li",{key:e,class:"vs-fed-search-input__autocomplete__suggestion",onClick:function(t){return x(e)},onKeyup:(0,i.withKeys)((function(t){return x(e)}),["enter"]),tabindex:"0",innerHTML:D(e)},null,40,S)})),128))]})),_:1})])])):(0,c.Q3)("",!0),r.filters?((0,c.uX)(),(0,c.Wv)(g.default,{key:1,"active-filter":(0,u.R1)(n).selectedCategoryKey,"filter-categories":r.filters,ref_key:"categoryFilter",ref:w,wrap:!0,onFilterUpdated:A},null,8,["active-filter","filter-categories"])):(0,c.Q3)("",!0),"events"===(0,u.R1)(n).selectedCategoryKey&&r.subFilters?((0,c.uX)(),(0,c.Wv)(g.default,{key:2,"active-filter":(0,u.R1)(n).selectedSubCategoryKey,class:"mt-200","filter-categories":r.subFilters,ref_key:"subCategoryFilter",ref:K,variant:"secondary",onFilterUpdated:q},{"fed-filter-header":(0,c.k6)((function(){return[(0,c.eW)((0,o.toDisplayString)(r.labels.refine),1)]})),_:1},8,["active-filter","filter-categories"])):(0,c.Q3)("",!0)])}}}},12336:function(e,t,r){"use strict";var a=r(85072),n=r.n(a),s=r(97825),c=r.n(s),u=r(77659),i=r.n(u),o=r(55056),l=r.n(o),d=r(10540),p=r.n(d),y=r(41113),h=r.n(y),g=r(79270),_=r.n(g),f={};f.styleTagTransform=h(),f.setAttributes=l(),f.insert=i().bind(null,"head"),f.domAPI=c(),f.insertStyleElement=p(),n()(_(),f),_()&&_().locals&&_().locals},14123:function(e,t,r){"use strict";r.d(t,{A:function(){return a.A}});var a=r(10343)},58995:function(e,t,r){"use strict";r.r(t);var a=r(14123);r(88804);const n=a.A;t.default=n},75520:function(e,t,r){"use strict";r.d(t,{A:function(){return d}});var a=r(64467),n=r(50953),s=r(20641),c=r(4859),u=r(63555),i=r(12554);function o(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,a)}return r}function l(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?o(Object(r),!0).forEach((function(t){(0,a.A)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):o(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function d(){var e=(0,c.A)(),t=(0,n.KR)(!1);function r(e,t){var r={};return e.forEach((function(e){r[e]=t[e]||void 0,"language"===e&&void 0===r[e]&&(r[e]=t.site_language||void 0)})),r}function a(){return new Date(Date.now()).toISOString()}function o(t){var r=l(l({},e.GTMData),t);return r.hit_timestamp=a(),r}function d(e){t.value?window.dataLayer.push(e):(0,u.A)("dataLayer",(function(){t.value=!0,window.dataLayer.push(e)}))}return{pageUrl:(0,s.EW)((function(){return e.pageUrl})),createDataLayerObject:function(e,t){var a,n;switch(e){case"siteSearchOpenEvent":a=o({event:"site_search_open",referrer_page:t.referrer_page}),n=r(i.C2,a);break;case"siteSearchUsageEvent":a=o({event:"site_search_event",search_query:t.search_query,query_input:t.query_input,results_count:t.results_count,search_usage_index:t.search_usage_index,search_type:t.search_type,search_origin:t.search_origin||"results_page",interaction_type:"search_input"}),n=r(i.tF,a);break;case"siteSearchClickEvent":a=o({event:"site_search_click",interaction_type:t.interaction_type,search_query:t.search_query,query_input:t.query_input,page_number:t.page_number,page_navigation_direction:t.page_navigation_direction,click_text:t.click_text,click_url:t.click_url,click_category:t.click_category,search_usage_index:t.search_usage_index,results_count:t.results_count}),n=r(i.u6,a);break;case"siteSearchCloseEvent":a=o({event:"site_search_close",search_usage_index:t.search_usage_index,search_query:t.search_query,query_input:t.query_input,page_number:t.page_number,results_count:t.results_count}),n=r(i.kp,a)}n&&d(n)},templateFiller:r,compileFullTemplate:o,returnIsoDate:a,pushToDataLayer:d,dataLayerStore:e}}},79270:function(){},88804:function(e,t,r){"use strict";r(12336)}}]);
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/*! For license information please see b16d36c13df4f81799dc.js.LICENSE.txt */
|
|
2
|
-
(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[7536],{251:function(t,e){e.read=function(t,e,n,r,o){var i,s,a=8*o-r-1,u=(1<<a)-1,c=u>>1,f=-7,l=n?o-1:0,h=n?-1:1,p=t[e+l];for(l+=h,i=p&(1<<-f)-1,p>>=-f,f+=a;f>0;i=256*i+t[e+l],l+=h,f-=8);for(s=i&(1<<-f)-1,i>>=-f,f+=r;f>0;s=256*s+t[e+l],l+=h,f-=8);if(0===i)i=1-c;else{if(i===u)return s?NaN:1/0*(p?-1:1);s+=Math.pow(2,r),i-=c}return(p?-1:1)*s*Math.pow(2,i-r)},e.write=function(t,e,n,r,o,i){var s,a,u,c=8*i-o-1,f=(1<<c)-1,l=f>>1,h=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,p=r?0:i-1,d=r?1:-1,y=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(a=isNaN(e)?1:0,s=f):(s=Math.floor(Math.log(e)/Math.LN2),e*(u=Math.pow(2,-s))<1&&(s--,u*=2),(e+=s+l>=1?h/u:h*Math.pow(2,1-l))*u>=2&&(s++,u/=2),s+l>=f?(a=0,s=f):s+l>=1?(a=(e*u-1)*Math.pow(2,o),s+=l):(a=e*Math.pow(2,l-1)*Math.pow(2,o),s=0));o>=8;t[n+p]=255&a,p+=d,a/=256,o-=8);for(s=s<<o|a,c+=o;c>0;t[n+p]=255&s,p+=d,s/=256,c-=8);t[n+p-d]|=128*y}},1791:function(t,e,n){"use strict";n.d(e,{E9:function(){return o}});const r=function*(t,e){let n=t.byteLength;if(!e||n<e)return void(yield t);let r,o=0;for(;o<n;)r=o+e,yield t.slice(o,r),o=r},o=(t,e,n,o)=>{const i=async function*(t,e){for await(const n of async function*(t){if(t[Symbol.asyncIterator])return void(yield*t);const e=t.getReader();try{for(;;){const{done:t,value:n}=await e.read();if(t)break;yield n}}finally{await e.cancel()}}(t))yield*r(n,e)}(t,e);let s,a=0,u=t=>{s||(s=!0,o&&o(t))};return new ReadableStream({async pull(t){try{const{done:e,value:r}=await i.next();if(e)return u(),void t.close();let o=r.byteLength;if(n){let t=a+=o;n(t)}t.enqueue(new Uint8Array(r))}catch(t){throw u(t),t}},cancel(t){return u(t),i.return()}},{highWaterMark:2})}},6013:function(t,e,n){"use strict";var r=n(39656),o=n(74062),i=n(10807),s=n(70665),a=n(31076),u=n(63820),c=n(77887);const f={transitional:i.A,adapter:["xhr","http","fetch"],transformRequest:[function(t,e){const n=e.getContentType()||"",o=n.indexOf("application/json")>-1,i=r.A.isObject(t);if(i&&r.A.isHTMLForm(t)&&(t=new FormData(t)),r.A.isFormData(t))return o?JSON.stringify((0,c.A)(t)):t;if(r.A.isArrayBuffer(t)||r.A.isBuffer(t)||r.A.isStream(t)||r.A.isFile(t)||r.A.isBlob(t)||r.A.isReadableStream(t))return t;if(r.A.isArrayBufferView(t))return t.buffer;if(r.A.isURLSearchParams(t))return e.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let u;if(i){if(n.indexOf("application/x-www-form-urlencoded")>-1)return(0,a.A)(t,this.formSerializer).toString();if((u=r.A.isFileList(t))||n.indexOf("multipart/form-data")>-1){const e=this.env&&this.env.FormData;return(0,s.A)(u?{"files[]":t}:t,e&&new e,this.formSerializer)}}return i||o?(e.setContentType("application/json",!1),function(t){if(r.A.isString(t))try{return(0,JSON.parse)(t),r.A.trim(t)}catch(t){if("SyntaxError"!==t.name)throw t}return(0,JSON.stringify)(t)}(t)):t}],transformResponse:[function(t){const e=this.transitional||f.transitional,n=e&&e.forcedJSONParsing,i="json"===this.responseType;if(r.A.isResponse(t)||r.A.isReadableStream(t))return t;if(t&&r.A.isString(t)&&(n&&!this.responseType||i)){const n=!(e&&e.silentJSONParsing)&&i;try{return JSON.parse(t,this.parseReviver)}catch(t){if(n){if("SyntaxError"===t.name)throw o.A.from(t,o.A.ERR_BAD_RESPONSE,this,null,this.response);throw t}}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:u.A.classes.FormData,Blob:u.A.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};r.A.forEach(["delete","get","head","post","put","patch"],(t=>{f.headers[t]={}})),e.A=f},7110:function(t,e,n){"use strict";var r=n(39656),o=n(43325);const i=Symbol("internals");function s(t){return t&&String(t).trim().toLowerCase()}function a(t){return!1===t||null==t?t:r.A.isArray(t)?t.map(a):String(t)}function u(t,e,n,o,i){return r.A.isFunction(o)?o.call(this,e,n):(i&&(e=n),r.A.isString(e)?r.A.isString(o)?-1!==e.indexOf(o):r.A.isRegExp(o)?o.test(e):void 0:void 0)}class c{constructor(t){t&&this.set(t)}set(t,e,n){const i=this;function u(t,e,n){const o=s(e);if(!o)throw new Error("header name must be a non-empty string");const u=r.A.findKey(i,o);(!u||void 0===i[u]||!0===n||void 0===n&&!1!==i[u])&&(i[u||e]=a(t))}const c=(t,e)=>r.A.forEach(t,((t,n)=>u(t,n,e)));if(r.A.isPlainObject(t)||t instanceof this.constructor)c(t,e);else if(r.A.isString(t)&&(t=t.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim()))c((0,o.A)(t),e);else if(r.A.isObject(t)&&r.A.isIterable(t)){let n,o,i={};for(const e of t){if(!r.A.isArray(e))throw TypeError("Object iterator must return a key-value pair");i[o=e[0]]=(n=i[o])?r.A.isArray(n)?[...n,e[1]]:[n,e[1]]:e[1]}c(i,e)}else null!=t&&u(e,t,n);return this}get(t,e){if(t=s(t)){const n=r.A.findKey(this,t);if(n){const t=this[n];if(!e)return t;if(!0===e)return function(t){const e=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(t);)e[r[1]]=r[2];return e}(t);if(r.A.isFunction(e))return e.call(this,t,n);if(r.A.isRegExp(e))return e.exec(t);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,e){if(t=s(t)){const n=r.A.findKey(this,t);return!(!n||void 0===this[n]||e&&!u(0,this[n],n,e))}return!1}delete(t,e){const n=this;let o=!1;function i(t){if(t=s(t)){const i=r.A.findKey(n,t);!i||e&&!u(0,n[i],i,e)||(delete n[i],o=!0)}}return r.A.isArray(t)?t.forEach(i):i(t),o}clear(t){const e=Object.keys(this);let n=e.length,r=!1;for(;n--;){const o=e[n];t&&!u(0,this[o],o,t,!0)||(delete this[o],r=!0)}return r}normalize(t){const e=this,n={};return r.A.forEach(this,((o,i)=>{const s=r.A.findKey(n,i);if(s)return e[s]=a(o),void delete e[i];const u=t?function(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((t,e,n)=>e.toUpperCase()+n))}(i):String(i).trim();u!==i&&delete e[i],e[u]=a(o),n[u]=!0})),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const e=Object.create(null);return r.A.forEach(this,((n,o)=>{null!=n&&!1!==n&&(e[o]=t&&r.A.isArray(n)?n.join(", "):n)})),e}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([t,e])=>t+": "+e)).join("\n")}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...e){const n=new this(t);return e.forEach((t=>n.set(t))),n}static accessor(t){const e=(this[i]=this[i]={accessors:{}}).accessors,n=this.prototype;function o(t){const o=s(t);e[o]||(function(t,e){const n=r.A.toCamelCase(" "+e);["get","set","has"].forEach((r=>{Object.defineProperty(t,r+n,{value:function(t,n,o){return this[r].call(this,e,t,n,o)},configurable:!0})}))}(n,t),e[o]=!0)}return r.A.isArray(t)?t.forEach(o):o(t),this}}c.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),r.A.reduceDescriptors(c.prototype,(({value:t},e)=>{let n=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(t){this[n]=t}}})),r.A.freezeMethods(c),e.A=c},7693:function(t,e){"use strict";const n={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(n).forEach((([t,e])=>{n[e]=t})),e.A=n},9887:function(t,e,n){"use strict";var r=n(39656),o=n(63820);e.A=o.A.hasStandardBrowserEnv?{write(t,e,n,o,i,s,a){if("undefined"==typeof document)return;const u=[`${t}=${encodeURIComponent(e)}`];r.A.isNumber(n)&&u.push(`expires=${new Date(n).toUTCString()}`),r.A.isString(o)&&u.push(`path=${o}`),r.A.isString(i)&&u.push(`domain=${i}`),!0===s&&u.push("secure"),r.A.isString(a)&&u.push(`SameSite=${a}`),document.cookie=u.join("; ")},read(t){if("undefined"==typeof document)return null;const e=document.cookie.match(new RegExp("(?:^|; )"+t+"=([^;]*)"));return e?decodeURIComponent(e[1]):null},remove(t){this.write(t,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}}},10807:function(t,e){"use strict";e.A={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1}},12125:function(t,e,n){"use strict";function r(t,e){return function(){return t.apply(e,arguments)}}n.d(e,{A:function(){return r}})},12723:function(t,e,n){"use strict";var r=n(38458),o=n(74062),i=n(39656);e.A=(t,e)=>{const{length:n}=t=t?t.filter(Boolean):[];if(e||n){let n,s=new AbortController;const a=function(t){if(!n){n=!0,c();const e=t instanceof Error?t:this.reason;s.abort(e instanceof o.A?e:new r.A(e instanceof Error?e.message:e))}};let u=e&&setTimeout((()=>{u=null,a(new o.A(`timeout ${e} of ms exceeded`,o.A.ETIMEDOUT))}),e);const c=()=>{t&&(u&&clearTimeout(u),u=null,t.forEach((t=>{t.unsubscribe?t.unsubscribe(a):t.removeEventListener("abort",a)})),t=null)};t.forEach((t=>t.addEventListener("abort",a)));const{signal:f}=s;return f.unsubscribe=()=>i.A.asap(c),f}}},13390:function(t,e,n){"use strict";var r=n(89888),o=n(74062),i=n(96763);const s={};["object","boolean","number","function","string","symbol"].forEach(((t,e)=>{s[t]=function(n){return typeof n===t||"a"+(e<1?"n ":" ")+t}}));const a={};s.transitional=function(t,e,n){function s(t,e){return"[Axios v"+r.x+"] Transitional option '"+t+"'"+e+(n?". "+n:"")}return(n,r,u)=>{if(!1===t)throw new o.A(s(r," has been removed"+(e?" in "+e:"")),o.A.ERR_DEPRECATED);return e&&!a[r]&&(a[r]=!0,i.warn(s(r," has been deprecated since v"+e+" and will be removed in the near future"))),!t||t(n,r,u)}},s.spelling=function(t){return(e,n)=>(i.warn(`${n} is likely a misspelling of ${t}`),!0)},e.A={assertOptions:function(t,e,n){if("object"!=typeof t)throw new o.A("options must be an object",o.A.ERR_BAD_OPTION_VALUE);const r=Object.keys(t);let i=r.length;for(;i-- >0;){const s=r[i],a=e[s];if(a){const e=t[s],n=void 0===e||a(e,s,t);if(!0!==n)throw new o.A("option "+s+" must be "+n,o.A.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new o.A("Unknown option "+s,o.A.ERR_BAD_OPTION)}},validators:s}},17013:function(t,e,n){"use strict";var r=n(39656),o=n(63853),i=n(10807),s=n(74062),a=n(38458),u=n(55579),c=n(63820),f=n(7110),l=n(77837),h=n(88382);const p="undefined"!=typeof XMLHttpRequest;e.A=p&&function(t){return new Promise((function(e,n){const p=(0,h.A)(t);let d=p.data;const y=f.A.from(p.headers).normalize();let A,g,m,b,w,{responseType:E,onUploadProgress:v,onDownloadProgress:R}=p;function O(){b&&b(),w&&w(),p.cancelToken&&p.cancelToken.unsubscribe(A),p.signal&&p.signal.removeEventListener("abort",A)}let B=new XMLHttpRequest;function S(){if(!B)return;const r=f.A.from("getAllResponseHeaders"in B&&B.getAllResponseHeaders()),i={data:E&&"text"!==E&&"json"!==E?B.response:B.responseText,status:B.status,statusText:B.statusText,headers:r,config:t,request:B};(0,o.A)((function(t){e(t),O()}),(function(t){n(t),O()}),i),B=null}B.open(p.method.toUpperCase(),p.url,!0),B.timeout=p.timeout,"onloadend"in B?B.onloadend=S:B.onreadystatechange=function(){B&&4===B.readyState&&(0!==B.status||B.responseURL&&0===B.responseURL.indexOf("file:"))&&setTimeout(S)},B.onabort=function(){B&&(n(new s.A("Request aborted",s.A.ECONNABORTED,t,B)),B=null)},B.onerror=function(e){const r=e&&e.message?e.message:"Network Error",o=new s.A(r,s.A.ERR_NETWORK,t,B);o.event=e||null,n(o),B=null},B.ontimeout=function(){let e=p.timeout?"timeout of "+p.timeout+"ms exceeded":"timeout exceeded";const r=p.transitional||i.A;p.timeoutErrorMessage&&(e=p.timeoutErrorMessage),n(new s.A(e,r.clarifyTimeoutError?s.A.ETIMEDOUT:s.A.ECONNABORTED,t,B)),B=null},void 0===d&&y.setContentType(null),"setRequestHeader"in B&&r.A.forEach(y.toJSON(),(function(t,e){B.setRequestHeader(e,t)})),r.A.isUndefined(p.withCredentials)||(B.withCredentials=!!p.withCredentials),E&&"json"!==E&&(B.responseType=p.responseType),R&&([m,w]=(0,l.C1)(R,!0),B.addEventListener("progress",m)),v&&B.upload&&([g,b]=(0,l.C1)(v),B.upload.addEventListener("progress",g),B.upload.addEventListener("loadend",b)),(p.cancelToken||p.signal)&&(A=e=>{B&&(n(!e||e.type?new a.A(null,t,B):e),B.abort(),B=null)},p.cancelToken&&p.cancelToken.subscribe(A),p.signal&&(p.signal.aborted?A():p.signal.addEventListener("abort",A)));const T=(0,u.A)(p.url);T&&-1===c.A.protocols.indexOf(T)?n(new s.A("Unsupported protocol "+T+":",s.A.ERR_BAD_REQUEST,t)):B.send(d||null)}))}},17352:function(t,e,n){"use strict";var r=n(39656);e.A=class{constructor(){this.handlers=[]}use(t,e,n){return this.handlers.push({fulfilled:t,rejected:e,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){r.A.forEach(this.handlers,(function(e){null!==e&&t(e)}))}}},19152:function(t,e,n){"use strict";n.d(e,{A:function(){return s}});var r=n(39656),o=n(6013),i=n(7110);function s(t,e){const n=this||o.A,s=e||n,a=i.A.from(s.headers);let u=s.data;return r.A.forEach(t,(function(t){u=t.call(n,u,a.normalize(),e?e.status:void 0)})),a.normalize(),u}},20605:function(t,e,n){"use strict";function r(t){return function(e){return t.apply(null,e)}}n.d(e,{A:function(){return r}})},30066:function(t,e){"use strict";e.A=function(t,e){let n,r,o=0,i=1e3/e;const s=(e,i=Date.now())=>{o=i,n=null,r&&(clearTimeout(r),r=null),t(...e)};return[(...t)=>{const e=Date.now(),a=e-o;a>=i?s(t,e):(n=t,r||(r=setTimeout((()=>{r=null,s(n)}),i-a)))},()=>n&&s(n)]}},31076:function(t,e,n){"use strict";n.d(e,{A:function(){return s}});var r=n(39656),o=n(70665),i=n(63820);function s(t,e){return(0,o.A)(t,new i.A.classes.URLSearchParams,{visitor:function(t,e,n,o){return i.A.isNode&&r.A.isBuffer(t)?(this.append(e,t.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)},...e})}},36263:function(t,e,n){"use strict";var r=n(39656),o=n(73119),i=n(17013),s=n(77960),a=n(74062);const u={http:o.A,xhr:i.A,fetch:{get:s.J}};r.A.forEach(u,((t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch(t){}Object.defineProperty(t,"adapterName",{value:e})}}));const c=t=>`- ${t}`,f=t=>r.A.isFunction(t)||null===t||!1===t;e.A={getAdapter:function(t,e){t=r.A.isArray(t)?t:[t];const{length:n}=t;let o,i;const s={};for(let c=0;c<n;c++){let n;if(o=t[c],i=o,!f(o)&&(i=u[(n=String(o)).toLowerCase()],void 0===i))throw new a.A(`Unknown adapter '${n}'`);if(i&&(r.A.isFunction(i)||(i=i.get(e))))break;s[n||"#"+c]=i}if(!i){const t=Object.entries(s).map((([t,e])=>`adapter ${t} `+(!1===e?"is not supported by the environment":"is not available in the build")));let e=n?t.length>1?"since :\n"+t.map(c).join("\n"):" "+c(t[0]):"as no adapter specified";throw new a.A("There is no suitable adapter to dispatch the request "+e,"ERR_NOT_SUPPORT")}return i},adapters:u}},38458:function(t,e,n){"use strict";var r=n(74062);function o(t,e,n){r.A.call(this,null==t?"canceled":t,r.A.ERR_CANCELED,e,n),this.name="CanceledError"}n(39656).A.inherits(o,r.A,{__CANCEL__:!0}),e.A=o},39656:function(t,e,n){"use strict";var r=n(12125),o=n(65606);const{toString:i}=Object.prototype,{getPrototypeOf:s}=Object,{iterator:a,toStringTag:u}=Symbol,c=(f=Object.create(null),t=>{const e=i.call(t);return f[e]||(f[e]=e.slice(8,-1).toLowerCase())});var f;const l=t=>(t=t.toLowerCase(),e=>c(e)===t),h=t=>e=>typeof e===t,{isArray:p}=Array,d=h("undefined");function y(t){return null!==t&&!d(t)&&null!==t.constructor&&!d(t.constructor)&&m(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const A=l("ArrayBuffer"),g=h("string"),m=h("function"),b=h("number"),w=t=>null!==t&&"object"==typeof t,E=t=>{if("object"!==c(t))return!1;const e=s(t);return!(null!==e&&e!==Object.prototype&&null!==Object.getPrototypeOf(e)||u in t||a in t)},v=l("Date"),R=l("File"),O=l("Blob"),B=l("FileList"),S=l("URLSearchParams"),[T,U,C,x]=["ReadableStream","Request","Response","Headers"].map(l);function I(t,e,{allOwnKeys:n=!1}={}){if(null==t)return;let r,o;if("object"!=typeof t&&(t=[t]),p(t))for(r=0,o=t.length;r<o;r++)e.call(null,t[r],r,t);else{if(y(t))return;const o=n?Object.getOwnPropertyNames(t):Object.keys(t),i=o.length;let s;for(r=0;r<i;r++)s=o[r],e.call(null,t[s],s,t)}}function L(t,e){if(y(t))return null;e=e.toLowerCase();const n=Object.keys(t);let r,o=n.length;for(;o-- >0;)if(r=n[o],e===r.toLowerCase())return r;return null}const N="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,_=t=>!d(t)&&t!==N,j=(P="undefined"!=typeof Uint8Array&&s(Uint8Array),t=>P&&t instanceof P);var P;const k=l("HTMLFormElement"),F=(({hasOwnProperty:t})=>(e,n)=>t.call(e,n))(Object.prototype),D=l("RegExp"),M=(t,e)=>{const n=Object.getOwnPropertyDescriptors(t),r={};I(n,((n,o)=>{let i;!1!==(i=e(n,o,t))&&(r[o]=i||n)})),Object.defineProperties(t,r)},$=l("AsyncFunction"),q=(z="function"==typeof setImmediate,H=m(N.postMessage),z?setImmediate:H?(J=`axios@${Math.random()}`,V=[],N.addEventListener("message",(({source:t,data:e})=>{t===N&&e===J&&V.length&&V.shift()()}),!1),t=>{V.push(t),N.postMessage(J,"*")}):t=>setTimeout(t));var z,H,J,V;const W="undefined"!=typeof queueMicrotask?queueMicrotask.bind(N):void 0!==o&&o.nextTick||q;e.A={isArray:p,isArrayBuffer:A,isBuffer:y,isFormData:t=>{let e;return t&&("function"==typeof FormData&&t instanceof FormData||m(t.append)&&("formdata"===(e=c(t))||"object"===e&&m(t.toString)&&"[object FormData]"===t.toString()))},isArrayBufferView:function(t){let e;return e="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&A(t.buffer),e},isString:g,isNumber:b,isBoolean:t=>!0===t||!1===t,isObject:w,isPlainObject:E,isEmptyObject:t=>{if(!w(t)||y(t))return!1;try{return 0===Object.keys(t).length&&Object.getPrototypeOf(t)===Object.prototype}catch(t){return!1}},isReadableStream:T,isRequest:U,isResponse:C,isHeaders:x,isUndefined:d,isDate:v,isFile:R,isBlob:O,isRegExp:D,isFunction:m,isStream:t=>w(t)&&m(t.pipe),isURLSearchParams:S,isTypedArray:j,isFileList:B,forEach:I,merge:function t(){const{caseless:e,skipUndefined:n}=_(this)&&this||{},r={},o=(o,i)=>{const s=e&&L(r,i)||i;E(r[s])&&E(o)?r[s]=t(r[s],o):E(o)?r[s]=t({},o):p(o)?r[s]=o.slice():n&&d(o)||(r[s]=o)};for(let t=0,e=arguments.length;t<e;t++)arguments[t]&&I(arguments[t],o);return r},extend:(t,e,n,{allOwnKeys:o}={})=>(I(e,((e,o)=>{n&&m(e)?t[o]=(0,r.A)(e,n):t[o]=e}),{allOwnKeys:o}),t),trim:t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:t=>(65279===t.charCodeAt(0)&&(t=t.slice(1)),t),inherits:(t,e,n,r)=>{t.prototype=Object.create(e.prototype,r),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),n&&Object.assign(t.prototype,n)},toFlatObject:(t,e,n,r)=>{let o,i,a;const u={};if(e=e||{},null==t)return e;do{for(o=Object.getOwnPropertyNames(t),i=o.length;i-- >0;)a=o[i],r&&!r(a,t,e)||u[a]||(e[a]=t[a],u[a]=!0);t=!1!==n&&s(t)}while(t&&(!n||n(t,e))&&t!==Object.prototype);return e},kindOf:c,kindOfTest:l,endsWith:(t,e,n)=>{t=String(t),(void 0===n||n>t.length)&&(n=t.length),n-=e.length;const r=t.indexOf(e,n);return-1!==r&&r===n},toArray:t=>{if(!t)return null;if(p(t))return t;let e=t.length;if(!b(e))return null;const n=new Array(e);for(;e-- >0;)n[e]=t[e];return n},forEachEntry:(t,e)=>{const n=(t&&t[a]).call(t);let r;for(;(r=n.next())&&!r.done;){const n=r.value;e.call(t,n[0],n[1])}},matchAll:(t,e)=>{let n;const r=[];for(;null!==(n=t.exec(e));)r.push(n);return r},isHTMLForm:k,hasOwnProperty:F,hasOwnProp:F,reduceDescriptors:M,freezeMethods:t=>{M(t,((e,n)=>{if(m(t)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const r=t[n];m(r)&&(e.enumerable=!1,"writable"in e?e.writable=!1:e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))}))},toObjectSet:(t,e)=>{const n={},r=t=>{t.forEach((t=>{n[t]=!0}))};return p(t)?r(t):r(String(t).split(e)),n},toCamelCase:t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(t,e,n){return e.toUpperCase()+n})),noop:()=>{},toFiniteNumber:(t,e)=>null!=t&&Number.isFinite(t=+t)?t:e,findKey:L,global:N,isContextDefined:_,isSpecCompliantForm:function(t){return!!(t&&m(t.append)&&"FormData"===t[u]&&t[a])},toJSONObject:t=>{const e=new Array(10),n=(t,r)=>{if(w(t)){if(e.indexOf(t)>=0)return;if(y(t))return t;if(!("toJSON"in t)){e[r]=t;const o=p(t)?[]:{};return I(t,((t,e)=>{const i=n(t,r+1);!d(i)&&(o[e]=i)})),e[r]=void 0,o}}return t};return n(t,0)},isAsyncFn:$,isThenable:t=>t&&(w(t)||m(t))&&m(t.then)&&m(t.catch),setImmediate:q,asap:W,isIterable:t=>null!=t&&m(t[a])}},43325:function(t,e,n){"use strict";const r=n(39656).A.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]);e.A=t=>{const e={};let n,o,i;return t&&t.split("\n").forEach((function(t){i=t.indexOf(":"),n=t.substring(0,i).trim().toLowerCase(),o=t.substring(i+1).trim(),!n||e[n]&&r[n]||("set-cookie"===n?e[n]?e[n].push(o):e[n]=[o]:e[n]=e[n]?e[n]+", "+o:o)})),e}},44662:function(t,e,n){"use strict";n.d(e,{A:function(){return s}});var r=n(39656),o=n(7110);const i=t=>t instanceof o.A?{...t}:t;function s(t,e){e=e||{};const n={};function o(t,e,n,o){return r.A.isPlainObject(t)&&r.A.isPlainObject(e)?r.A.merge.call({caseless:o},t,e):r.A.isPlainObject(e)?r.A.merge({},e):r.A.isArray(e)?e.slice():e}function s(t,e,n,i){return r.A.isUndefined(e)?r.A.isUndefined(t)?void 0:o(void 0,t,0,i):o(t,e,0,i)}function a(t,e){if(!r.A.isUndefined(e))return o(void 0,e)}function u(t,e){return r.A.isUndefined(e)?r.A.isUndefined(t)?void 0:o(void 0,t):o(void 0,e)}function c(n,r,i){return i in e?o(n,r):i in t?o(void 0,n):void 0}const f={url:a,method:a,data:a,baseURL:u,transformRequest:u,transformResponse:u,paramsSerializer:u,timeout:u,timeoutMessage:u,withCredentials:u,withXSRFToken:u,adapter:u,responseType:u,xsrfCookieName:u,xsrfHeaderName:u,onUploadProgress:u,onDownloadProgress:u,decompress:u,maxContentLength:u,maxBodyLength:u,beforeRedirect:u,transport:u,httpAgent:u,httpsAgent:u,cancelToken:u,socketPath:u,responseEncoding:u,validateStatus:c,headers:(t,e,n)=>s(i(t),i(e),0,!0)};return r.A.forEach(Object.keys({...t,...e}),(function(o){const i=f[o]||s,a=i(t[o],e[o],o);r.A.isUndefined(a)&&i!==c||(n[o]=a)})),n}},48287:function(t,e,n){"use strict";var r=n(96763);const o=n(67526),i=n(251),s="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;e.hp=c,e.IS=50;const a=2147483647;function u(t){if(t>a)throw new RangeError('The value "'+t+'" is invalid for option "size"');const e=new Uint8Array(t);return Object.setPrototypeOf(e,c.prototype),e}function c(t,e,n){if("number"==typeof t){if("string"==typeof e)throw new TypeError('The "string" argument must be of type string. Received type number');return h(t)}return f(t,e,n)}function f(t,e,n){if("string"==typeof t)return function(t,e){if("string"==typeof e&&""!==e||(e="utf8"),!c.isEncoding(e))throw new TypeError("Unknown encoding: "+e);const n=0|A(t,e);let r=u(n);const o=r.write(t,e);return o!==n&&(r=r.slice(0,o)),r}(t,e);if(ArrayBuffer.isView(t))return function(t){if(X(t,Uint8Array)){const e=new Uint8Array(t);return d(e.buffer,e.byteOffset,e.byteLength)}return p(t)}(t);if(null==t)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(X(t,ArrayBuffer)||t&&X(t.buffer,ArrayBuffer))return d(t,e,n);if("undefined"!=typeof SharedArrayBuffer&&(X(t,SharedArrayBuffer)||t&&X(t.buffer,SharedArrayBuffer)))return d(t,e,n);if("number"==typeof t)throw new TypeError('The "value" argument must not be of type number. Received type number');const r=t.valueOf&&t.valueOf();if(null!=r&&r!==t)return c.from(r,e,n);const o=function(t){if(c.isBuffer(t)){const e=0|y(t.length),n=u(e);return 0===n.length||t.copy(n,0,0,e),n}return void 0!==t.length?"number"!=typeof t.length||Y(t.length)?u(0):p(t):"Buffer"===t.type&&Array.isArray(t.data)?p(t.data):void 0}(t);if(o)return o;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof t[Symbol.toPrimitive])return c.from(t[Symbol.toPrimitive]("string"),e,n);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}function l(t){if("number"!=typeof t)throw new TypeError('"size" argument must be of type number');if(t<0)throw new RangeError('The value "'+t+'" is invalid for option "size"')}function h(t){return l(t),u(t<0?0:0|y(t))}function p(t){const e=t.length<0?0:0|y(t.length),n=u(e);for(let r=0;r<e;r+=1)n[r]=255&t[r];return n}function d(t,e,n){if(e<0||t.byteLength<e)throw new RangeError('"offset" is outside of buffer bounds');if(t.byteLength<e+(n||0))throw new RangeError('"length" is outside of buffer bounds');let r;return r=void 0===e&&void 0===n?new Uint8Array(t):void 0===n?new Uint8Array(t,e):new Uint8Array(t,e,n),Object.setPrototypeOf(r,c.prototype),r}function y(t){if(t>=a)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a.toString(16)+" bytes");return 0|t}function A(t,e){if(c.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||X(t,ArrayBuffer))return t.byteLength;if("string"!=typeof t)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);const n=t.length,r=arguments.length>2&&!0===arguments[2];if(!r&&0===n)return 0;let o=!1;for(;;)switch(e){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return W(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return K(t).length;default:if(o)return r?-1:W(t).length;e=(""+e).toLowerCase(),o=!0}}function g(t,e,n){let r=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return I(this,e,n);case"utf8":case"utf-8":return T(this,e,n);case"ascii":return C(this,e,n);case"latin1":case"binary":return x(this,e,n);case"base64":return S(this,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return L(this,e,n);default:if(r)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),r=!0}}function m(t,e,n){const r=t[e];t[e]=t[n],t[n]=r}function b(t,e,n,r,o){if(0===t.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),Y(n=+n)&&(n=o?0:t.length-1),n<0&&(n=t.length+n),n>=t.length){if(o)return-1;n=t.length-1}else if(n<0){if(!o)return-1;n=0}if("string"==typeof e&&(e=c.from(e,r)),c.isBuffer(e))return 0===e.length?-1:w(t,e,n,r,o);if("number"==typeof e)return e&=255,"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(t,e,n):Uint8Array.prototype.lastIndexOf.call(t,e,n):w(t,[e],n,r,o);throw new TypeError("val must be string, number or Buffer")}function w(t,e,n,r,o){let i,s=1,a=t.length,u=e.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(t.length<2||e.length<2)return-1;s=2,a/=2,u/=2,n/=2}function c(t,e){return 1===s?t[e]:t.readUInt16BE(e*s)}if(o){let r=-1;for(i=n;i<a;i++)if(c(t,i)===c(e,-1===r?0:i-r)){if(-1===r&&(r=i),i-r+1===u)return r*s}else-1!==r&&(i-=i-r),r=-1}else for(n+u>a&&(n=a-u),i=n;i>=0;i--){let n=!0;for(let r=0;r<u;r++)if(c(t,i+r)!==c(e,r)){n=!1;break}if(n)return i}return-1}function E(t,e,n,r){n=Number(n)||0;const o=t.length-n;r?(r=Number(r))>o&&(r=o):r=o;const i=e.length;let s;for(r>i/2&&(r=i/2),s=0;s<r;++s){const r=parseInt(e.substr(2*s,2),16);if(Y(r))return s;t[n+s]=r}return s}function v(t,e,n,r){return G(W(e,t.length-n),t,n,r)}function R(t,e,n,r){return G(function(t){const e=[];for(let n=0;n<t.length;++n)e.push(255&t.charCodeAt(n));return e}(e),t,n,r)}function O(t,e,n,r){return G(K(e),t,n,r)}function B(t,e,n,r){return G(function(t,e){let n,r,o;const i=[];for(let s=0;s<t.length&&!((e-=2)<0);++s)n=t.charCodeAt(s),r=n>>8,o=n%256,i.push(o),i.push(r);return i}(e,t.length-n),t,n,r)}function S(t,e,n){return 0===e&&n===t.length?o.fromByteArray(t):o.fromByteArray(t.slice(e,n))}function T(t,e,n){n=Math.min(t.length,n);const r=[];let o=e;for(;o<n;){const e=t[o];let i=null,s=e>239?4:e>223?3:e>191?2:1;if(o+s<=n){let n,r,a,u;switch(s){case 1:e<128&&(i=e);break;case 2:n=t[o+1],128==(192&n)&&(u=(31&e)<<6|63&n,u>127&&(i=u));break;case 3:n=t[o+1],r=t[o+2],128==(192&n)&&128==(192&r)&&(u=(15&e)<<12|(63&n)<<6|63&r,u>2047&&(u<55296||u>57343)&&(i=u));break;case 4:n=t[o+1],r=t[o+2],a=t[o+3],128==(192&n)&&128==(192&r)&&128==(192&a)&&(u=(15&e)<<18|(63&n)<<12|(63&r)<<6|63&a,u>65535&&u<1114112&&(i=u))}}null===i?(i=65533,s=1):i>65535&&(i-=65536,r.push(i>>>10&1023|55296),i=56320|1023&i),r.push(i),o+=s}return function(t){const e=t.length;if(e<=U)return String.fromCharCode.apply(String,t);let n="",r=0;for(;r<e;)n+=String.fromCharCode.apply(String,t.slice(r,r+=U));return n}(r)}c.TYPED_ARRAY_SUPPORT=function(){try{const t=new Uint8Array(1),e={foo:function(){return 42}};return Object.setPrototypeOf(e,Uint8Array.prototype),Object.setPrototypeOf(t,e),42===t.foo()}catch(t){return!1}}(),c.TYPED_ARRAY_SUPPORT||void 0===r||"function"!=typeof r.error||r.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(c.prototype,"parent",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.buffer}}),Object.defineProperty(c.prototype,"offset",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.byteOffset}}),c.poolSize=8192,c.from=function(t,e,n){return f(t,e,n)},Object.setPrototypeOf(c.prototype,Uint8Array.prototype),Object.setPrototypeOf(c,Uint8Array),c.alloc=function(t,e,n){return function(t,e,n){return l(t),t<=0?u(t):void 0!==e?"string"==typeof n?u(t).fill(e,n):u(t).fill(e):u(t)}(t,e,n)},c.allocUnsafe=function(t){return h(t)},c.allocUnsafeSlow=function(t){return h(t)},c.isBuffer=function(t){return null!=t&&!0===t._isBuffer&&t!==c.prototype},c.compare=function(t,e){if(X(t,Uint8Array)&&(t=c.from(t,t.offset,t.byteLength)),X(e,Uint8Array)&&(e=c.from(e,e.offset,e.byteLength)),!c.isBuffer(t)||!c.isBuffer(e))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(t===e)return 0;let n=t.length,r=e.length;for(let o=0,i=Math.min(n,r);o<i;++o)if(t[o]!==e[o]){n=t[o],r=e[o];break}return n<r?-1:r<n?1:0},c.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},c.concat=function(t,e){if(!Array.isArray(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return c.alloc(0);let n;if(void 0===e)for(e=0,n=0;n<t.length;++n)e+=t[n].length;const r=c.allocUnsafe(e);let o=0;for(n=0;n<t.length;++n){let e=t[n];if(X(e,Uint8Array))o+e.length>r.length?(c.isBuffer(e)||(e=c.from(e)),e.copy(r,o)):Uint8Array.prototype.set.call(r,e,o);else{if(!c.isBuffer(e))throw new TypeError('"list" argument must be an Array of Buffers');e.copy(r,o)}o+=e.length}return r},c.byteLength=A,c.prototype._isBuffer=!0,c.prototype.swap16=function(){const t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let e=0;e<t;e+=2)m(this,e,e+1);return this},c.prototype.swap32=function(){const t=this.length;if(t%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let e=0;e<t;e+=4)m(this,e,e+3),m(this,e+1,e+2);return this},c.prototype.swap64=function(){const t=this.length;if(t%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let e=0;e<t;e+=8)m(this,e,e+7),m(this,e+1,e+6),m(this,e+2,e+5),m(this,e+3,e+4);return this},c.prototype.toString=function(){const t=this.length;return 0===t?"":0===arguments.length?T(this,0,t):g.apply(this,arguments)},c.prototype.toLocaleString=c.prototype.toString,c.prototype.equals=function(t){if(!c.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===c.compare(this,t)},c.prototype.inspect=function(){let t="";const n=e.IS;return t=this.toString("hex",0,n).replace(/(.{2})/g,"$1 ").trim(),this.length>n&&(t+=" ... "),"<Buffer "+t+">"},s&&(c.prototype[s]=c.prototype.inspect),c.prototype.compare=function(t,e,n,r,o){if(X(t,Uint8Array)&&(t=c.from(t,t.offset,t.byteLength)),!c.isBuffer(t))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(void 0===e&&(e=0),void 0===n&&(n=t?t.length:0),void 0===r&&(r=0),void 0===o&&(o=this.length),e<0||n>t.length||r<0||o>this.length)throw new RangeError("out of range index");if(r>=o&&e>=n)return 0;if(r>=o)return-1;if(e>=n)return 1;if(this===t)return 0;let i=(o>>>=0)-(r>>>=0),s=(n>>>=0)-(e>>>=0);const a=Math.min(i,s),u=this.slice(r,o),f=t.slice(e,n);for(let t=0;t<a;++t)if(u[t]!==f[t]){i=u[t],s=f[t];break}return i<s?-1:s<i?1:0},c.prototype.includes=function(t,e,n){return-1!==this.indexOf(t,e,n)},c.prototype.indexOf=function(t,e,n){return b(this,t,e,n,!0)},c.prototype.lastIndexOf=function(t,e,n){return b(this,t,e,n,!1)},c.prototype.write=function(t,e,n,r){if(void 0===e)r="utf8",n=this.length,e=0;else if(void 0===n&&"string"==typeof e)r=e,n=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e>>>=0,isFinite(n)?(n>>>=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}const o=this.length-e;if((void 0===n||n>o)&&(n=o),t.length>0&&(n<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");let i=!1;for(;;)switch(r){case"hex":return E(this,t,e,n);case"utf8":case"utf-8":return v(this,t,e,n);case"ascii":case"latin1":case"binary":return R(this,t,e,n);case"base64":return O(this,t,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return B(this,t,e,n);default:if(i)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),i=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const U=4096;function C(t,e,n){let r="";n=Math.min(t.length,n);for(let o=e;o<n;++o)r+=String.fromCharCode(127&t[o]);return r}function x(t,e,n){let r="";n=Math.min(t.length,n);for(let o=e;o<n;++o)r+=String.fromCharCode(t[o]);return r}function I(t,e,n){const r=t.length;(!e||e<0)&&(e=0),(!n||n<0||n>r)&&(n=r);let o="";for(let r=e;r<n;++r)o+=Q[t[r]];return o}function L(t,e,n){const r=t.slice(e,n);let o="";for(let t=0;t<r.length-1;t+=2)o+=String.fromCharCode(r[t]+256*r[t+1]);return o}function N(t,e,n){if(t%1!=0||t<0)throw new RangeError("offset is not uint");if(t+e>n)throw new RangeError("Trying to access beyond buffer length")}function _(t,e,n,r,o,i){if(!c.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>o||e<i)throw new RangeError('"value" argument is out of bounds');if(n+r>t.length)throw new RangeError("Index out of range")}function j(t,e,n,r,o){z(e,r,o,t,n,7);let i=Number(e&BigInt(4294967295));t[n++]=i,i>>=8,t[n++]=i,i>>=8,t[n++]=i,i>>=8,t[n++]=i;let s=Number(e>>BigInt(32)&BigInt(4294967295));return t[n++]=s,s>>=8,t[n++]=s,s>>=8,t[n++]=s,s>>=8,t[n++]=s,n}function P(t,e,n,r,o){z(e,r,o,t,n,7);let i=Number(e&BigInt(4294967295));t[n+7]=i,i>>=8,t[n+6]=i,i>>=8,t[n+5]=i,i>>=8,t[n+4]=i;let s=Number(e>>BigInt(32)&BigInt(4294967295));return t[n+3]=s,s>>=8,t[n+2]=s,s>>=8,t[n+1]=s,s>>=8,t[n]=s,n+8}function k(t,e,n,r,o,i){if(n+r>t.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function F(t,e,n,r,o){return e=+e,n>>>=0,o||k(t,0,n,4),i.write(t,e,n,r,23,4),n+4}function D(t,e,n,r,o){return e=+e,n>>>=0,o||k(t,0,n,8),i.write(t,e,n,r,52,8),n+8}c.prototype.slice=function(t,e){const n=this.length;(t=~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),(e=void 0===e?n:~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),e<t&&(e=t);const r=this.subarray(t,e);return Object.setPrototypeOf(r,c.prototype),r},c.prototype.readUintLE=c.prototype.readUIntLE=function(t,e,n){t>>>=0,e>>>=0,n||N(t,e,this.length);let r=this[t],o=1,i=0;for(;++i<e&&(o*=256);)r+=this[t+i]*o;return r},c.prototype.readUintBE=c.prototype.readUIntBE=function(t,e,n){t>>>=0,e>>>=0,n||N(t,e,this.length);let r=this[t+--e],o=1;for(;e>0&&(o*=256);)r+=this[t+--e]*o;return r},c.prototype.readUint8=c.prototype.readUInt8=function(t,e){return t>>>=0,e||N(t,1,this.length),this[t]},c.prototype.readUint16LE=c.prototype.readUInt16LE=function(t,e){return t>>>=0,e||N(t,2,this.length),this[t]|this[t+1]<<8},c.prototype.readUint16BE=c.prototype.readUInt16BE=function(t,e){return t>>>=0,e||N(t,2,this.length),this[t]<<8|this[t+1]},c.prototype.readUint32LE=c.prototype.readUInt32LE=function(t,e){return t>>>=0,e||N(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},c.prototype.readUint32BE=c.prototype.readUInt32BE=function(t,e){return t>>>=0,e||N(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},c.prototype.readBigUInt64LE=Z((function(t){H(t>>>=0,"offset");const e=this[t],n=this[t+7];void 0!==e&&void 0!==n||J(t,this.length-8);const r=e+256*this[++t]+65536*this[++t]+this[++t]*2**24,o=this[++t]+256*this[++t]+65536*this[++t]+n*2**24;return BigInt(r)+(BigInt(o)<<BigInt(32))})),c.prototype.readBigUInt64BE=Z((function(t){H(t>>>=0,"offset");const e=this[t],n=this[t+7];void 0!==e&&void 0!==n||J(t,this.length-8);const r=e*2**24+65536*this[++t]+256*this[++t]+this[++t],o=this[++t]*2**24+65536*this[++t]+256*this[++t]+n;return(BigInt(r)<<BigInt(32))+BigInt(o)})),c.prototype.readIntLE=function(t,e,n){t>>>=0,e>>>=0,n||N(t,e,this.length);let r=this[t],o=1,i=0;for(;++i<e&&(o*=256);)r+=this[t+i]*o;return o*=128,r>=o&&(r-=Math.pow(2,8*e)),r},c.prototype.readIntBE=function(t,e,n){t>>>=0,e>>>=0,n||N(t,e,this.length);let r=e,o=1,i=this[t+--r];for(;r>0&&(o*=256);)i+=this[t+--r]*o;return o*=128,i>=o&&(i-=Math.pow(2,8*e)),i},c.prototype.readInt8=function(t,e){return t>>>=0,e||N(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},c.prototype.readInt16LE=function(t,e){t>>>=0,e||N(t,2,this.length);const n=this[t]|this[t+1]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt16BE=function(t,e){t>>>=0,e||N(t,2,this.length);const n=this[t+1]|this[t]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt32LE=function(t,e){return t>>>=0,e||N(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},c.prototype.readInt32BE=function(t,e){return t>>>=0,e||N(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},c.prototype.readBigInt64LE=Z((function(t){H(t>>>=0,"offset");const e=this[t],n=this[t+7];void 0!==e&&void 0!==n||J(t,this.length-8);const r=this[t+4]+256*this[t+5]+65536*this[t+6]+(n<<24);return(BigInt(r)<<BigInt(32))+BigInt(e+256*this[++t]+65536*this[++t]+this[++t]*2**24)})),c.prototype.readBigInt64BE=Z((function(t){H(t>>>=0,"offset");const e=this[t],n=this[t+7];void 0!==e&&void 0!==n||J(t,this.length-8);const r=(e<<24)+65536*this[++t]+256*this[++t]+this[++t];return(BigInt(r)<<BigInt(32))+BigInt(this[++t]*2**24+65536*this[++t]+256*this[++t]+n)})),c.prototype.readFloatLE=function(t,e){return t>>>=0,e||N(t,4,this.length),i.read(this,t,!0,23,4)},c.prototype.readFloatBE=function(t,e){return t>>>=0,e||N(t,4,this.length),i.read(this,t,!1,23,4)},c.prototype.readDoubleLE=function(t,e){return t>>>=0,e||N(t,8,this.length),i.read(this,t,!0,52,8)},c.prototype.readDoubleBE=function(t,e){return t>>>=0,e||N(t,8,this.length),i.read(this,t,!1,52,8)},c.prototype.writeUintLE=c.prototype.writeUIntLE=function(t,e,n,r){t=+t,e>>>=0,n>>>=0,r||_(this,t,e,n,Math.pow(2,8*n)-1,0);let o=1,i=0;for(this[e]=255&t;++i<n&&(o*=256);)this[e+i]=t/o&255;return e+n},c.prototype.writeUintBE=c.prototype.writeUIntBE=function(t,e,n,r){t=+t,e>>>=0,n>>>=0,r||_(this,t,e,n,Math.pow(2,8*n)-1,0);let o=n-1,i=1;for(this[e+o]=255&t;--o>=0&&(i*=256);)this[e+o]=t/i&255;return e+n},c.prototype.writeUint8=c.prototype.writeUInt8=function(t,e,n){return t=+t,e>>>=0,n||_(this,t,e,1,255,0),this[e]=255&t,e+1},c.prototype.writeUint16LE=c.prototype.writeUInt16LE=function(t,e,n){return t=+t,e>>>=0,n||_(this,t,e,2,65535,0),this[e]=255&t,this[e+1]=t>>>8,e+2},c.prototype.writeUint16BE=c.prototype.writeUInt16BE=function(t,e,n){return t=+t,e>>>=0,n||_(this,t,e,2,65535,0),this[e]=t>>>8,this[e+1]=255&t,e+2},c.prototype.writeUint32LE=c.prototype.writeUInt32LE=function(t,e,n){return t=+t,e>>>=0,n||_(this,t,e,4,4294967295,0),this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t,e+4},c.prototype.writeUint32BE=c.prototype.writeUInt32BE=function(t,e,n){return t=+t,e>>>=0,n||_(this,t,e,4,4294967295,0),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},c.prototype.writeBigUInt64LE=Z((function(t,e=0){return j(this,t,e,BigInt(0),BigInt("0xffffffffffffffff"))})),c.prototype.writeBigUInt64BE=Z((function(t,e=0){return P(this,t,e,BigInt(0),BigInt("0xffffffffffffffff"))})),c.prototype.writeIntLE=function(t,e,n,r){if(t=+t,e>>>=0,!r){const r=Math.pow(2,8*n-1);_(this,t,e,n,r-1,-r)}let o=0,i=1,s=0;for(this[e]=255&t;++o<n&&(i*=256);)t<0&&0===s&&0!==this[e+o-1]&&(s=1),this[e+o]=(t/i|0)-s&255;return e+n},c.prototype.writeIntBE=function(t,e,n,r){if(t=+t,e>>>=0,!r){const r=Math.pow(2,8*n-1);_(this,t,e,n,r-1,-r)}let o=n-1,i=1,s=0;for(this[e+o]=255&t;--o>=0&&(i*=256);)t<0&&0===s&&0!==this[e+o+1]&&(s=1),this[e+o]=(t/i|0)-s&255;return e+n},c.prototype.writeInt8=function(t,e,n){return t=+t,e>>>=0,n||_(this,t,e,1,127,-128),t<0&&(t=255+t+1),this[e]=255&t,e+1},c.prototype.writeInt16LE=function(t,e,n){return t=+t,e>>>=0,n||_(this,t,e,2,32767,-32768),this[e]=255&t,this[e+1]=t>>>8,e+2},c.prototype.writeInt16BE=function(t,e,n){return t=+t,e>>>=0,n||_(this,t,e,2,32767,-32768),this[e]=t>>>8,this[e+1]=255&t,e+2},c.prototype.writeInt32LE=function(t,e,n){return t=+t,e>>>=0,n||_(this,t,e,4,2147483647,-2147483648),this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24,e+4},c.prototype.writeInt32BE=function(t,e,n){return t=+t,e>>>=0,n||_(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},c.prototype.writeBigInt64LE=Z((function(t,e=0){return j(this,t,e,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),c.prototype.writeBigInt64BE=Z((function(t,e=0){return P(this,t,e,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),c.prototype.writeFloatLE=function(t,e,n){return F(this,t,e,!0,n)},c.prototype.writeFloatBE=function(t,e,n){return F(this,t,e,!1,n)},c.prototype.writeDoubleLE=function(t,e,n){return D(this,t,e,!0,n)},c.prototype.writeDoubleBE=function(t,e,n){return D(this,t,e,!1,n)},c.prototype.copy=function(t,e,n,r){if(!c.isBuffer(t))throw new TypeError("argument should be a Buffer");if(n||(n=0),r||0===r||(r=this.length),e>=t.length&&(e=t.length),e||(e=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===t.length||0===this.length)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),t.length-e<r-n&&(r=t.length-e+n);const o=r-n;return this===t&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(e,n,r):Uint8Array.prototype.set.call(t,this.subarray(n,r),e),o},c.prototype.fill=function(t,e,n,r){if("string"==typeof t){if("string"==typeof e?(r=e,e=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!c.isEncoding(r))throw new TypeError("Unknown encoding: "+r);if(1===t.length){const e=t.charCodeAt(0);("utf8"===r&&e<128||"latin1"===r)&&(t=e)}}else"number"==typeof t?t&=255:"boolean"==typeof t&&(t=Number(t));if(e<0||this.length<e||this.length<n)throw new RangeError("Out of range index");if(n<=e)return this;let o;if(e>>>=0,n=void 0===n?this.length:n>>>0,t||(t=0),"number"==typeof t)for(o=e;o<n;++o)this[o]=t;else{const i=c.isBuffer(t)?t:c.from(t,r),s=i.length;if(0===s)throw new TypeError('The value "'+t+'" is invalid for argument "value"');for(o=0;o<n-e;++o)this[o+e]=i[o%s]}return this};const M={};function $(t,e,n){M[t]=class extends n{constructor(){super(),Object.defineProperty(this,"message",{value:e.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${t}]`,this.stack,delete this.name}get code(){return t}set code(t){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:t,writable:!0})}toString(){return`${this.name} [${t}]: ${this.message}`}}}function q(t){let e="",n=t.length;const r="-"===t[0]?1:0;for(;n>=r+4;n-=3)e=`_${t.slice(n-3,n)}${e}`;return`${t.slice(0,n)}${e}`}function z(t,e,n,r,o,i){if(t>n||t<e){const r="bigint"==typeof e?"n":"";let o;throw o=i>3?0===e||e===BigInt(0)?`>= 0${r} and < 2${r} ** ${8*(i+1)}${r}`:`>= -(2${r} ** ${8*(i+1)-1}${r}) and < 2 ** ${8*(i+1)-1}${r}`:`>= ${e}${r} and <= ${n}${r}`,new M.ERR_OUT_OF_RANGE("value",o,t)}!function(t,e,n){H(e,"offset"),void 0!==t[e]&&void 0!==t[e+n]||J(e,t.length-(n+1))}(r,o,i)}function H(t,e){if("number"!=typeof t)throw new M.ERR_INVALID_ARG_TYPE(e,"number",t)}function J(t,e,n){if(Math.floor(t)!==t)throw H(t,n),new M.ERR_OUT_OF_RANGE(n||"offset","an integer",t);if(e<0)throw new M.ERR_BUFFER_OUT_OF_BOUNDS;throw new M.ERR_OUT_OF_RANGE(n||"offset",`>= ${n?1:0} and <= ${e}`,t)}$("ERR_BUFFER_OUT_OF_BOUNDS",(function(t){return t?`${t} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"}),RangeError),$("ERR_INVALID_ARG_TYPE",(function(t,e){return`The "${t}" argument must be of type number. Received type ${typeof e}`}),TypeError),$("ERR_OUT_OF_RANGE",(function(t,e,n){let r=`The value of "${t}" is out of range.`,o=n;return Number.isInteger(n)&&Math.abs(n)>2**32?o=q(String(n)):"bigint"==typeof n&&(o=String(n),(n>BigInt(2)**BigInt(32)||n<-(BigInt(2)**BigInt(32)))&&(o=q(o)),o+="n"),r+=` It must be ${e}. Received ${o}`,r}),RangeError);const V=/[^+/0-9A-Za-z-_]/g;function W(t,e){let n;e=e||1/0;const r=t.length;let o=null;const i=[];for(let s=0;s<r;++s){if(n=t.charCodeAt(s),n>55295&&n<57344){if(!o){if(n>56319){(e-=3)>-1&&i.push(239,191,189);continue}if(s+1===r){(e-=3)>-1&&i.push(239,191,189);continue}o=n;continue}if(n<56320){(e-=3)>-1&&i.push(239,191,189),o=n;continue}n=65536+(o-55296<<10|n-56320)}else o&&(e-=3)>-1&&i.push(239,191,189);if(o=null,n<128){if((e-=1)<0)break;i.push(n)}else if(n<2048){if((e-=2)<0)break;i.push(n>>6|192,63&n|128)}else if(n<65536){if((e-=3)<0)break;i.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;i.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return i}function K(t){return o.toByteArray(function(t){if((t=(t=t.split("=")[0]).trim().replace(V,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function G(t,e,n,r){let o;for(o=0;o<r&&!(o+n>=e.length||o>=t.length);++o)e[o+n]=t[o];return o}function X(t,e){return t instanceof e||null!=t&&null!=t.constructor&&null!=t.constructor.name&&t.constructor.name===e.name}function Y(t){return t!=t}const Q=function(){const t="0123456789abcdef",e=new Array(256);for(let n=0;n<16;++n){const r=16*n;for(let o=0;o<16;++o)e[r+o]=t[n]+t[o]}return e}();function Z(t){return"undefined"==typeof BigInt?tt:t}function tt(){throw new Error("BigInt not supported")}},48683:function(t,e,n){"use strict";n.d(e,{A:function(){return f}});var r=n(19152),o=n(59575),i=n(6013),s=n(38458),a=n(7110),u=n(36263);function c(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new s.A(null,t)}function f(t){return c(t),t.headers=a.A.from(t.headers),t.data=r.A.call(t,t.transformRequest),-1!==["post","put","patch"].indexOf(t.method)&&t.headers.setContentType("application/x-www-form-urlencoded",!1),u.A.getAdapter(t.adapter||i.A.adapter,t)(t).then((function(e){return c(t),e.data=r.A.call(t,t.transformResponse,e),e.headers=a.A.from(e.headers),e}),(function(e){return(0,o.A)(e)||(c(t),e&&e.response&&(e.response.data=r.A.call(t,t.transformResponse,e.response),e.response.headers=a.A.from(e.response.headers))),Promise.reject(e)}))}},55579:function(t,e,n){"use strict";function r(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}n.d(e,{A:function(){return r}})},55978:function(t,e,n){"use strict";var r=n(39656),o=n(93967),i=n(17352),s=n(48683),a=n(44662),u=n(88262),c=n(13390),f=n(7110);const l=c.A.validators;class h{constructor(t){this.defaults=t||{},this.interceptors={request:new i.A,response:new i.A}}async request(t,e){try{return await this._request(t,e)}catch(t){if(t instanceof Error){let e={};Error.captureStackTrace?Error.captureStackTrace(e):e=new Error;const n=e.stack?e.stack.replace(/^.+\n/,""):"";try{t.stack?n&&!String(t.stack).endsWith(n.replace(/^.+\n.+\n/,""))&&(t.stack+="\n"+n):t.stack=n}catch(t){}}throw t}}_request(t,e){"string"==typeof t?(e=e||{}).url=t:e=t||{},e=(0,a.A)(this.defaults,e);const{transitional:n,paramsSerializer:o,headers:i}=e;void 0!==n&&c.A.assertOptions(n,{silentJSONParsing:l.transitional(l.boolean),forcedJSONParsing:l.transitional(l.boolean),clarifyTimeoutError:l.transitional(l.boolean)},!1),null!=o&&(r.A.isFunction(o)?e.paramsSerializer={serialize:o}:c.A.assertOptions(o,{encode:l.function,serialize:l.function},!0)),void 0!==e.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?e.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:e.allowAbsoluteUrls=!0),c.A.assertOptions(e,{baseUrl:l.spelling("baseURL"),withXsrfToken:l.spelling("withXSRFToken")},!0),e.method=(e.method||this.defaults.method||"get").toLowerCase();let u=i&&r.A.merge(i.common,i[e.method]);i&&r.A.forEach(["delete","get","head","post","put","patch","common"],(t=>{delete i[t]})),e.headers=f.A.concat(u,i);const h=[];let p=!0;this.interceptors.request.forEach((function(t){"function"==typeof t.runWhen&&!1===t.runWhen(e)||(p=p&&t.synchronous,h.unshift(t.fulfilled,t.rejected))}));const d=[];let y;this.interceptors.response.forEach((function(t){d.push(t.fulfilled,t.rejected)}));let A,g=0;if(!p){const t=[s.A.bind(this),void 0];for(t.unshift(...h),t.push(...d),A=t.length,y=Promise.resolve(e);g<A;)y=y.then(t[g++],t[g++]);return y}A=h.length;let m=e;for(;g<A;){const t=h[g++],e=h[g++];try{m=t(m)}catch(t){e.call(this,t);break}}try{y=s.A.call(this,m)}catch(t){return Promise.reject(t)}for(g=0,A=d.length;g<A;)y=y.then(d[g++],d[g++]);return y}getUri(t){t=(0,a.A)(this.defaults,t);const e=(0,u.A)(t.baseURL,t.url,t.allowAbsoluteUrls);return(0,o.A)(e,t.params,t.paramsSerializer)}}r.A.forEach(["delete","get","head","options"],(function(t){h.prototype[t]=function(e,n){return this.request((0,a.A)(n||{},{method:t,url:e,data:(n||{}).data}))}})),r.A.forEach(["post","put","patch"],(function(t){function e(e){return function(n,r,o){return this.request((0,a.A)(o||{},{method:t,headers:e?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}h.prototype[t]=e(),h.prototype[t+"Form"]=e(!0)})),e.A=h},56847:function(t,e,n){"use strict";var r=n(60139),o=n(98556),i=n(66501);e.A={isBrowser:!0,classes:{URLSearchParams:r.A,FormData:o.A,Blob:i.A},protocols:["http","https","file","blob","url","data"]}},57536:function(t,e,n){"use strict";var r=n(39656),o=n(12125),i=n(55978),s=n(44662),a=n(6013),u=n(77887),c=n(38458),f=n(64874),l=n(59575),h=n(89888),p=n(70665),d=n(74062),y=n(20605),A=n(68562),g=n(7110),m=n(36263),b=n(7693);const w=function t(e){const n=new i.A(e),a=(0,o.A)(i.A.prototype.request,n);return r.A.extend(a,i.A.prototype,n,{allOwnKeys:!0}),r.A.extend(a,n,null,{allOwnKeys:!0}),a.create=function(n){return t((0,s.A)(e,n))},a}(a.A);w.Axios=i.A,w.CanceledError=c.A,w.CancelToken=f.A,w.isCancel=l.A,w.VERSION=h.x,w.toFormData=p.A,w.AxiosError=d.A,w.Cancel=w.CanceledError,w.all=function(t){return Promise.all(t)},w.spread=y.A,w.isAxiosError=A.A,w.mergeConfig=s.A,w.AxiosHeaders=g.A,w.formToJSON=t=>(0,u.A)(r.A.isHTMLForm(t)?new FormData(t):t),w.getAdapter=m.A.getAdapter,w.HttpStatusCode=b.A,w.default=w,e.A=w},59575:function(t,e,n){"use strict";function r(t){return!(!t||!t.__CANCEL__)}n.d(e,{A:function(){return r}})},60139:function(t,e,n){"use strict";var r=n(95267);e.A="undefined"!=typeof URLSearchParams?URLSearchParams:r.A},63820:function(t,e,n){"use strict";var r=n(56847),o=n(92569);e.A={...o,...r.A}},63853:function(t,e,n){"use strict";n.d(e,{A:function(){return o}});var r=n(74062);function o(t,e,n){const o=n.config.validateStatus;n.status&&o&&!o(n.status)?e(new r.A("Request failed with status code "+n.status,[r.A.ERR_BAD_REQUEST,r.A.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):t(n)}},64874:function(t,e,n){"use strict";var r=n(38458);class o{constructor(t){if("function"!=typeof t)throw new TypeError("executor must be a function.");let e;this.promise=new Promise((function(t){e=t}));const n=this;this.promise.then((t=>{if(!n._listeners)return;let e=n._listeners.length;for(;e-- >0;)n._listeners[e](t);n._listeners=null})),this.promise.then=t=>{let e;const r=new Promise((t=>{n.subscribe(t),e=t})).then(t);return r.cancel=function(){n.unsubscribe(e)},r},t((function(t,o,i){n.reason||(n.reason=new r.A(t,o,i),e(n.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){this.reason?t(this.reason):this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const e=this._listeners.indexOf(t);-1!==e&&this._listeners.splice(e,1)}toAbortSignal(){const t=new AbortController,e=e=>{t.abort(e)};return this.subscribe(e),t.signal.unsubscribe=()=>this.unsubscribe(e),t.signal}static source(){let t;return{token:new o((function(e){t=e})),cancel:t}}}e.A=o},66501:function(t,e){"use strict";e.A="undefined"!=typeof Blob?Blob:null},67526:function(t,e){"use strict";e.byteLength=function(t){var e=a(t),n=e[0],r=e[1];return 3*(n+r)/4-r},e.toByteArray=function(t){var e,n,i=a(t),s=i[0],u=i[1],c=new o(function(t,e,n){return 3*(e+n)/4-n}(0,s,u)),f=0,l=u>0?s-4:s;for(n=0;n<l;n+=4)e=r[t.charCodeAt(n)]<<18|r[t.charCodeAt(n+1)]<<12|r[t.charCodeAt(n+2)]<<6|r[t.charCodeAt(n+3)],c[f++]=e>>16&255,c[f++]=e>>8&255,c[f++]=255&e;return 2===u&&(e=r[t.charCodeAt(n)]<<2|r[t.charCodeAt(n+1)]>>4,c[f++]=255&e),1===u&&(e=r[t.charCodeAt(n)]<<10|r[t.charCodeAt(n+1)]<<4|r[t.charCodeAt(n+2)]>>2,c[f++]=e>>8&255,c[f++]=255&e),c},e.fromByteArray=function(t){for(var e,r=t.length,o=r%3,i=[],s=16383,a=0,c=r-o;a<c;a+=s)i.push(u(t,a,a+s>c?c:a+s));return 1===o?(e=t[r-1],i.push(n[e>>2]+n[e<<4&63]+"==")):2===o&&(e=(t[r-2]<<8)+t[r-1],i.push(n[e>>10]+n[e>>4&63]+n[e<<2&63]+"=")),i.join("")};for(var n=[],r=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0;s<64;++s)n[s]=i[s],r[i.charCodeAt(s)]=s;function a(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=t.indexOf("=");return-1===n&&(n=e),[n,n===e?0:4-n%4]}function u(t,e,r){for(var o,i,s=[],a=e;a<r;a+=3)o=(t[a]<<16&16711680)+(t[a+1]<<8&65280)+(255&t[a+2]),s.push(n[(i=o)>>18&63]+n[i>>12&63]+n[i>>6&63]+n[63&i]);return s.join("")}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},68562:function(t,e,n){"use strict";n.d(e,{A:function(){return o}});var r=n(39656);function o(t){return r.A.isObject(t)&&!0===t.isAxiosError}},70665:function(t,e,n){"use strict";var r=n(39656),o=n(74062),i=n(73119),s=n(48287).hp;function a(t){return r.A.isPlainObject(t)||r.A.isArray(t)}function u(t){return r.A.endsWith(t,"[]")?t.slice(0,-2):t}function c(t,e,n){return t?t.concat(e).map((function(t,e){return t=u(t),!n&&e?"["+t+"]":t})).join(n?".":""):e}const f=r.A.toFlatObject(r.A,{},null,(function(t){return/^is[A-Z]/.test(t)}));e.A=function(t,e,n){if(!r.A.isObject(t))throw new TypeError("target must be an object");e=e||new(i.A||FormData);const l=(n=r.A.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(t,e){return!r.A.isUndefined(e[t])}))).metaTokens,h=n.visitor||g,p=n.dots,d=n.indexes,y=(n.Blob||"undefined"!=typeof Blob&&Blob)&&r.A.isSpecCompliantForm(e);if(!r.A.isFunction(h))throw new TypeError("visitor must be a function");function A(t){if(null===t)return"";if(r.A.isDate(t))return t.toISOString();if(r.A.isBoolean(t))return t.toString();if(!y&&r.A.isBlob(t))throw new o.A("Blob is not supported. Use a Buffer instead.");return r.A.isArrayBuffer(t)||r.A.isTypedArray(t)?y&&"function"==typeof Blob?new Blob([t]):s.from(t):t}function g(t,n,o){let i=t;if(t&&!o&&"object"==typeof t)if(r.A.endsWith(n,"{}"))n=l?n:n.slice(0,-2),t=JSON.stringify(t);else if(r.A.isArray(t)&&function(t){return r.A.isArray(t)&&!t.some(a)}(t)||(r.A.isFileList(t)||r.A.endsWith(n,"[]"))&&(i=r.A.toArray(t)))return n=u(n),i.forEach((function(t,o){!r.A.isUndefined(t)&&null!==t&&e.append(!0===d?c([n],o,p):null===d?n:n+"[]",A(t))})),!1;return!!a(t)||(e.append(c(o,n,p),A(t)),!1)}const m=[],b=Object.assign(f,{defaultVisitor:g,convertValue:A,isVisitable:a});if(!r.A.isObject(t))throw new TypeError("data must be an object");return function t(n,o){if(!r.A.isUndefined(n)){if(-1!==m.indexOf(n))throw Error("Circular reference detected in "+o.join("."));m.push(n),r.A.forEach(n,(function(n,i){!0===(!(r.A.isUndefined(n)||null===n)&&h.call(e,n,r.A.isString(i)?i.trim():i,o,b))&&t(n,o?o.concat(i):[i])})),m.pop()}}(t),e}},73119:function(t,e){"use strict";e.A=null},74062:function(t,e,n){"use strict";var r=n(39656);function o(t,e,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=t,this.name="AxiosError",e&&(this.code=e),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o,this.status=o.status?o.status:null)}r.A.inherits(o,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:r.A.toJSONObject(this.config),code:this.code,status:this.status}}});const i=o.prototype,s={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((t=>{s[t]={value:t}})),Object.defineProperties(o,s),Object.defineProperty(i,"isAxiosError",{value:!0}),o.from=(t,e,n,s,a,u)=>{const c=Object.create(i);r.A.toFlatObject(t,c,(function(t){return t!==Error.prototype}),(t=>"isAxiosError"!==t));const f=t&&t.message?t.message:"Error",l=null==e&&t?t.code:e;return o.call(c,f,l,n,s,a),t&&null==c.cause&&Object.defineProperty(c,"cause",{value:t,configurable:!0}),c.name=t&&t.name||"Error",u&&Object.assign(c,u),c},e.A=o},76787:function(t,e,n){"use strict";function r(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}n.d(e,{A:function(){return r}})},77837:function(t,e,n){"use strict";n.d(e,{C1:function(){return s},Vj:function(){return a},mM:function(){return u}});var r=n(93873),o=n(30066),i=n(39656);const s=(t,e,n=3)=>{let i=0;const s=(0,r.A)(50,250);return(0,o.A)((n=>{const r=n.loaded,o=n.lengthComputable?n.total:void 0,a=r-i,u=s(a);i=r,t({loaded:r,total:o,progress:o?r/o:void 0,bytes:a,rate:u||void 0,estimated:u&&o&&r<=o?(o-r)/u:void 0,event:n,lengthComputable:null!=o,[e?"download":"upload"]:!0})}),n)},a=(t,e)=>{const n=null!=t;return[r=>e[0]({lengthComputable:n,total:t,loaded:r}),e[1]]},u=t=>(...e)=>i.A.asap((()=>t(...e)))},77887:function(t,e,n){"use strict";var r=n(39656);e.A=function(t){function e(t,n,o,i){let s=t[i++];if("__proto__"===s)return!0;const a=Number.isFinite(+s),u=i>=t.length;return s=!s&&r.A.isArray(o)?o.length:s,u?(r.A.hasOwnProp(o,s)?o[s]=[o[s],n]:o[s]=n,!a):(o[s]&&r.A.isObject(o[s])||(o[s]=[]),e(t,n,o[s],i)&&r.A.isArray(o[s])&&(o[s]=function(t){const e={},n=Object.keys(t);let r;const o=n.length;let i;for(r=0;r<o;r++)i=n[r],e[i]=t[i];return e}(o[s])),!a)}if(r.A.isFormData(t)&&r.A.isFunction(t.entries)){const n={};return r.A.forEachEntry(t,((t,o)=>{e(function(t){return r.A.matchAll(/\w+|\[(\w*)]/g,t).map((t=>"[]"===t[0]?"":t[1]||t[0]))}(t),o,n,0)})),n}return null}},77960:function(t,e,n){"use strict";n.d(e,{J:function(){return b}});var r=n(63820),o=n(39656),i=n(74062),s=n(12723),a=n(1791),u=n(7110),c=n(77837),f=n(88382),l=n(63853);const{isFunction:h}=o.A,p=(({Request:t,Response:e})=>({Request:t,Response:e}))(o.A.global),{ReadableStream:d,TextEncoder:y}=o.A.global,A=(t,...e)=>{try{return!!t(...e)}catch(t){return!1}},g=t=>{t=o.A.merge.call({skipUndefined:!0},p,t);const{fetch:e,Request:n,Response:g}=t,m=e?h(e):"function"==typeof fetch,b=h(n),w=h(g);if(!m)return!1;const E=m&&h(d),v=m&&("function"==typeof y?(R=new y,t=>R.encode(t)):async t=>new Uint8Array(await new n(t).arrayBuffer()));var R;const O=b&&E&&A((()=>{let t=!1;const e=new n(r.A.origin,{body:new d,method:"POST",get duplex(){return t=!0,"half"}}).headers.has("Content-Type");return t&&!e})),B=w&&E&&A((()=>o.A.isReadableStream(new g("").body))),S={stream:B&&(t=>t.body)};m&&["text","arrayBuffer","blob","formData","stream"].forEach((t=>{!S[t]&&(S[t]=(e,n)=>{let r=e&&e[t];if(r)return r.call(e);throw new i.A(`Response type '${t}' is not supported`,i.A.ERR_NOT_SUPPORT,n)})}));return async t=>{let{url:h,method:p,data:d,signal:y,cancelToken:A,timeout:m,onDownloadProgress:w,onUploadProgress:E,responseType:R,headers:T,withCredentials:U="same-origin",fetchOptions:C}=(0,f.A)(t),x=e||fetch;R=R?(R+"").toLowerCase():"text";let I=(0,s.A)([y,A&&A.toAbortSignal()],m),L=null;const N=I&&I.unsubscribe&&(()=>{I.unsubscribe()});let _;try{if(E&&O&&"get"!==p&&"head"!==p&&0!==(_=await(async(t,e)=>{const i=o.A.toFiniteNumber(t.getContentLength());return null==i?(async t=>{if(null==t)return 0;if(o.A.isBlob(t))return t.size;if(o.A.isSpecCompliantForm(t)){const e=new n(r.A.origin,{method:"POST",body:t});return(await e.arrayBuffer()).byteLength}return o.A.isArrayBufferView(t)||o.A.isArrayBuffer(t)?t.byteLength:(o.A.isURLSearchParams(t)&&(t+=""),o.A.isString(t)?(await v(t)).byteLength:void 0)})(e):i})(T,d))){let t,e=new n(h,{method:"POST",body:d,duplex:"half"});if(o.A.isFormData(d)&&(t=e.headers.get("content-type"))&&T.setContentType(t),e.body){const[t,n]=(0,c.Vj)(_,(0,c.C1)((0,c.mM)(E)));d=(0,a.E9)(e.body,65536,t,n)}}o.A.isString(U)||(U=U?"include":"omit");const e=b&&"credentials"in n.prototype,i={...C,signal:I,method:p.toUpperCase(),headers:T.normalize().toJSON(),body:d,duplex:"half",credentials:e?U:void 0};L=b&&new n(h,i);let s=await(b?x(L,C):x(h,i));const f=B&&("stream"===R||"response"===R);if(B&&(w||f&&N)){const t={};["status","statusText","headers"].forEach((e=>{t[e]=s[e]}));const e=o.A.toFiniteNumber(s.headers.get("content-length")),[n,r]=w&&(0,c.Vj)(e,(0,c.C1)((0,c.mM)(w),!0))||[];s=new g((0,a.E9)(s.body,65536,n,(()=>{r&&r(),N&&N()})),t)}R=R||"text";let y=await S[o.A.findKey(S,R)||"text"](s,t);return!f&&N&&N(),await new Promise(((e,n)=>{(0,l.A)(e,n,{data:y,headers:u.A.from(s.headers),status:s.status,statusText:s.statusText,config:t,request:L})}))}catch(e){if(N&&N(),e&&"TypeError"===e.name&&/Load failed|fetch/i.test(e.message))throw Object.assign(new i.A("Network Error",i.A.ERR_NETWORK,t,L),{cause:e.cause||e});throw i.A.from(e,e&&e.code,t,L)}}},m=new Map,b=t=>{let e=t&&t.env||{};const{fetch:n,Request:r,Response:o}=e,i=[r,o,n];let s,a,u=i.length,c=m;for(;u--;)s=i[u],a=c.get(s),void 0===a&&c.set(s,a=u?new Map:g(e)),c=a;return a};b()},86305:function(t,e,n){"use strict";var r,o,i=n(63820);e.A=i.A.hasStandardBrowserEnv?(r=new URL(i.A.origin),o=i.A.navigator&&/(msie|trident)/i.test(i.A.navigator.userAgent),t=>(t=new URL(t,i.A.origin),r.protocol===t.protocol&&r.host===t.host&&(o||r.port===t.port))):()=>!0},88262:function(t,e,n){"use strict";n.d(e,{A:function(){return i}});var r=n(99034),o=n(76787);function i(t,e,n){let i=!(0,r.A)(e);return t&&(i||0==n)?(0,o.A)(t,e):e}},88382:function(t,e,n){"use strict";var r=n(63820),o=n(39656),i=n(86305),s=n(9887),a=n(88262),u=n(44662),c=n(7110),f=n(93967);e.A=t=>{const e=(0,u.A)({},t);let{data:n,withXSRFToken:l,xsrfHeaderName:h,xsrfCookieName:p,headers:d,auth:y}=e;if(e.headers=d=c.A.from(d),e.url=(0,f.A)((0,a.A)(e.baseURL,e.url,e.allowAbsoluteUrls),t.params,t.paramsSerializer),y&&d.set("Authorization","Basic "+btoa((y.username||"")+":"+(y.password?unescape(encodeURIComponent(y.password)):""))),o.A.isFormData(n))if(r.A.hasStandardBrowserEnv||r.A.hasStandardBrowserWebWorkerEnv)d.setContentType(void 0);else if(o.A.isFunction(n.getHeaders)){const t=n.getHeaders(),e=["content-type","content-length"];Object.entries(t).forEach((([t,n])=>{e.includes(t.toLowerCase())&&d.set(t,n)}))}if(r.A.hasStandardBrowserEnv&&(l&&o.A.isFunction(l)&&(l=l(e)),l||!1!==l&&(0,i.A)(e.url))){const t=h&&p&&s.A.read(p);t&&d.set(h,t)}return e}},89888:function(t,e,n){"use strict";n.d(e,{x:function(){return r}});const r="1.13.2"},92569:function(t,e,n){"use strict";n.r(e),n.d(e,{hasBrowserEnv:function(){return r},hasStandardBrowserEnv:function(){return i},hasStandardBrowserWebWorkerEnv:function(){return s},navigator:function(){return o},origin:function(){return a}});const r="undefined"!=typeof window&&"undefined"!=typeof document,o="object"==typeof navigator&&navigator||void 0,i=r&&(!o||["ReactNative","NativeScript","NS"].indexOf(o.product)<0),s="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,a=r&&window.location.href||"http://localhost"},93873:function(t,e){"use strict";e.A=function(t,e){t=t||10;const n=new Array(t),r=new Array(t);let o,i=0,s=0;return e=void 0!==e?e:1e3,function(a){const u=Date.now(),c=r[s];o||(o=u),n[i]=a,r[i]=u;let f=s,l=0;for(;f!==i;)l+=n[f++],f%=t;if(i=(i+1)%t,i===s&&(s=(s+1)%t),u-o<e)return;const h=c&&u-c;return h?Math.round(1e3*l/h):void 0}}},93967:function(t,e,n){"use strict";n.d(e,{A:function(){return s}});var r=n(39656),o=n(95267);function i(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function s(t,e,n){if(!e)return t;const s=n&&n.encode||i;r.A.isFunction(n)&&(n={serialize:n});const a=n&&n.serialize;let u;if(u=a?a(e,n):r.A.isURLSearchParams(e)?e.toString():new o.A(e,n).toString(s),u){const e=t.indexOf("#");-1!==e&&(t=t.slice(0,e)),t+=(-1===t.indexOf("?")?"?":"&")+u}return t}},95267:function(t,e,n){"use strict";var r=n(70665);function o(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,(function(t){return e[t]}))}function i(t,e){this._pairs=[],t&&(0,r.A)(t,this,e)}const s=i.prototype;s.append=function(t,e){this._pairs.push([t,e])},s.toString=function(t){const e=t?function(e){return t.call(this,e,o)}:o;return this._pairs.map((function(t){return e(t[0])+"="+e(t[1])}),"").join("&")},e.A=i},98556:function(t,e){"use strict";e.A="undefined"!=typeof FormData?FormData:null},99034:function(t,e,n){"use strict";function r(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}n.d(e,{A:function(){return r}})}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[8896],{1161:function(e,n,t){"use strict";var a=t(85072),u=t.n(a),l=t(97825),o=t.n(l),r=t(77659),i=t.n(r),s=t(55056),d=t.n(s),c=t(10540),v=t.n(c),f=t(41113),m=t.n(f),p=t(39939),b=t.n(p),_={};_.styleTagTransform=m(),_.setAttributes=d(),_.insert=i().bind(null,"head"),_.domAPI=o(),_.insertStyleElement=v(),u()(b(),_),b()&&b().locals&&b().locals},14988:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return u.a}});var a=t(81950),u=t.n(a),l={};for(var o in a)"default"!==o&&(l[o]=function(e){return a[e]}.bind(0,o));t.d(n,l)},39939:function(){},48093:function(e,n,t){"use strict";t(1161)},81950:function(e,n,t){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(n,"__esModule",{value:!0});var u=t(17527),l=t(17527),o={class:"vs-guest-selector-number-group","data-test":"vs-guest-selector-number-group"},r={class:"vs-guest-selector-number-group__label"},i={class:"vs-guest-selector-number-group__buttons justify-content-end"},s=["disabled"],d=["name","disabled"],c=t(17527),v=a(t(48836));n.default=(0,u.defineComponent)({__name:"GuestSelectorNumberGroup",props:{adultCount:{},childrenCount:{},count:{},disabled:{type:Boolean},id:{},infantCount:{},inputType:{},maxValue:{},minValue:{},name:{},rowName:{},rowLabel:{},unitRemoved:{type:Boolean}},emits:["changeHandler"],setup:function(e,n){var t=n.emit,a=e,u=t,f=(0,c.ref)(0),m=(0,c.ref)(!1),p=(0,c.ref)(a.name),b=function(){f.value>a.minValue&&(f.value--,m.value=!0,g("decrease"))},_=function(){f.value<a.maxValue&&(f.value++,m.value=!0,g("increase"))},g=function(e){u("changeHandler",a.name,f.value,e,a.id)};return(0,c.onMounted)((function(){m.value||(f.value=a.minValue),f.value<=a.maxValue&&(f.value=a.count),a.unitRemoved&&(a.name.includes("children")?(f.value=a.childrenCount,p.value=a.rowName+"children"):a.name.includes("infants")?(f.value=a.infantCount,p.value=a.rowName+"infants"):(f.value=a.adultCount,p.value=a.rowName+"a"))})),function(e,n){return(0,l.openBlock)(),(0,l.createElementBlock)("div",o,[(0,l.createElementVNode)("span",r,(0,l.toDisplayString)(e.rowLabel),1),(0,l.createElementVNode)("div",i,[(0,l.createVNode)(v.default,{class:"vs-guest-selector-number-group__button--remove",size:"sm",icon:"fa-regular fa-minus","icon-only":"",value:"-",onClick:(0,l.withModifiers)(b,["prevent"]),disabled:f.value===e.minValue},{default:(0,l.withCtx)((function(){return n[2]||(n[2]=[(0,l.createTextVNode)(" Remove ")])})),_:1,__:[2]},8,["disabled"]),(0,l.withDirectives)((0,l.createElementVNode)("input",{class:"vs-guest-selector-number-group__input",disabled:e.disabled,pattern:"[0-9]*",readonly:"",tabIndex:"-1",type:"text","onUpdate:modelValue":n[0]||(n[0]=function(e){return f.value=e})},null,8,s),[[l.vModelText,f.value]]),(0,l.createVNode)(v.default,{class:"vs-guest-selector-number-group__button--add",size:"sm",icon:"fa-regular fa-plus","icon-only":"",value:"+",onClick:(0,l.withModifiers)(_,["prevent"]),disabled:f.value===e.maxValue},{default:(0,l.withCtx)((function(){return n[3]||(n[3]=[(0,l.createTextVNode)(" Add ")])})),_:1,__:[3]},8,["disabled"]),(0,l.withDirectives)((0,l.createElementVNode)("input",{type:"hidden","onUpdate:modelValue":n[1]||(n[1]=function(e){return f.value=e}),name:(e.unitRemoved&&e.rowName,p.value),disabled:e.disabled},null,8,d),[[l.vModelText,f.value]])])])}}})},98896:function(e,n,t){"use strict";t.r(n);var a=t(14988),u={};for(var l in a)"default"!==l&&(u[l]=function(e){return a[e]}.bind(0,l));t.d(n,u),t(48093);const o=a.default;n.default=o}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[4249],{4249:function(e,t,a){"use strict";a.r(t);var s=a(95529),n=a(49937);a(10493);const i=(0,a(66262).A)(n.A,[["render",s.X]]);t.default=i},10493:function(e,t,a){"use strict";a(50881)},20729:function(e,t,a){"use strict";a.d(t,{X:function(){return f}});var s=a(20641),n=a(90033),i=a(53751),r={class:"vs-map-with-sidebar-panel__buttons d-lg-none"},l={key:0,class:"vs-map-with-sidebar-panel__back"},o={key:1,class:"vs-map-with-sidebar-panel__back"},c={class:"vs-map-with-sidebar-panel__close"},u={key:0,class:"vs-map-with-sidebar-panel__back d-none d-lg-block"},d={key:2,class:"vs-map-with-sidebar-panel__bottom-message"},p={class:"vs-map-with-sidebar-panel__list-container"},b={key:3,class:"vs-map-with-sidebar-panel__overlay"},g={key:0,class:"vs-map-with-sidebar-panel__overlay-box"},h={class:"vs-map-with-sidebar-panel__overlay-text"};function f(e,t,a,f,y,m){var v=(0,s.g2)("VsButton"),S=(0,s.g2)("VsHeading"),k=(0,s.g2)("VsMapWithSidebarSubcategory"),C=(0,s.g2)("VsMapWithSidebarControls"),w=(0,s.g2)("VsMapWithSidebarCategory"),_=(0,s.g2)("VsMapWithSidebarListItem"),L=(0,s.g2)("VsMapWithSidebarButtons"),F=(0,s.g2)("VsMapWithSidebarDetail");return(0,s.uX)(),(0,s.CE)("section",{"data-test":"vs-map-with-sidebar-panel",class:(0,n.normalizeClass)(["vs-map-with-sidebar-panel",m.panelClasses])},[(0,s.Lk)("div",{class:(0,n.normalizeClass)(["vs-map-with-sidebar-panel__header-section",m.headerClasses])},[(0,s.Lk)("div",r,[a.currentStage>1||a.selectedSubcategory?((0,s.uX)(),(0,s.CE)("div",l,[(0,s.bF)(v,{class:"vs-map-with-sidebar-panel_menu",icon:"vs-icon-control-menu",size:"sm",onClick:m.stageBack,"data-test":"vs-map-with-sidebar__menu-toggle",variant:"secondary"},{default:(0,s.k6)((function(){return[(0,s.RG)(e.$slots,"menu-btn-text")]})),_:3},8,["onClick"])])):(0,s.Q3)("",!0),1===a.currentStage||a.selectedSubcategory?((0,s.uX)(),(0,s.CE)("div",o,[(0,s.bF)(v,{"icon-only":"",icon:"fa-regular fa-arrow-left",size:"md",variant:"subtle",onClick:m.stageBack,"data-test":"vs-map-with-sidebar-panel--btn-back"},{default:(0,s.k6)((function(){return[(0,s.RG)(e.$slots,"back-btn-text")]})),_:3},8,["onClick"])])):(0,s.Q3)("",!0),(0,s.Lk)("div",c,[(0,s.bF)(v,{"icon-only":"",icon:"vs-icon-control-dismiss",size:"md",variant:"subtle",onClick:m.closePanel,"data-test":"vs-map-with-sidebar-panel--btn-close"},{default:(0,s.k6)((function(){return[(0,s.RG)(e.$slots,"close-side-panel-text")]})),_:3},8,["onClick"])])]),a.currentStage>0||a.selectedSubcategory?((0,s.uX)(),(0,s.CE)("div",u,[(0,s.bF)(v,{"icon-only":"",icon:"fa-regular fa-arrow-left",size:"md",variant:"subtle",onClick:m.stageBack,"data-test":"vs-map-with-sidebar-panel--btn-back"},{default:(0,s.k6)((function(){return[(0,s.RG)(e.$slots,"back-btn-text")]})),_:3},8,["onClick"])])):(0,s.Q3)("",!0),""!==m.currentHeading?((0,s.uX)(),(0,s.Wv)(S,{key:1,level:a.headingLevel,"heading-style":0===a.currentStage?"heading-m":"heading-xs",class:(0,n.normalizeClass)(["vs-map-with-sidebar-panel__heading text-center mt-200 mt-lg-0",2===a.currentStage?"d-none d-lg-block":""]),"data-test":"vs-map-with-sidebar-panel__heading"},{default:(0,s.k6)((function(){return[(0,s.eW)((0,n.toDisplayString)(m.currentHeading),1)]})),_:1},8,["level","heading-style","class"])):(0,s.Q3)("",!0),(0,s.Lk)("div",{class:(0,n.normalizeClass)(["vs-map-with-sidebar-panel__reset",a.currentStage<2?"d-lg-none":""])},[(0,s.bF)(v,{"icon-only":"",icon:"vs-icon-control-dismiss",size:"md",variant:"subtle",onClick:m.resetPanel,"data-test":"vs-map-with-sidebar-panel--btn-reset"},{default:(0,s.k6)((function(){return[(0,s.RG)(e.$slots,"reset-side-panel-text")]})),_:3},8,["onClick"])],2)],2),0===a.currentStage?((0,s.uX)(),(0,s.CE)(s.FK,{key:0},[null!==a.selectedSubcategory?((0,s.uX)(),(0,s.CE)(s.FK,{key:0},[(0,s.bF)(k,{data:m.selectedSubcategoryData[0].subCategory,"selected-sub-category":a.selectedSubcategory},null,8,["data","selected-sub-category"]),(0,s.bF)(C)],64)):((0,s.uX)(!0),(0,s.CE)(s.FK,{key:1},(0,s.pI)(m.filtersWithLocations,(function(e){return(0,s.uX)(),(0,s.Wv)(w,{key:e.id,"category-name":e.label,type:e.id,"has-sub-cat":m.subCatExists(e)},null,8,["category-name","type","has-sub-cat"])})),128)),null!==a.panelMessage?((0,s.uX)(),(0,s.CE)("div",d,[(0,s.Lk)("p",null,(0,n.toDisplayString)(a.panelMessage),1)])):(0,s.Q3)("",!0)],64)):(0,s.Q3)("",!0),1===a.currentStage?((0,s.uX)(),(0,s.CE)(s.FK,{key:1},[null!==a.selectedSubcategory?((0,s.uX)(),(0,s.CE)(s.FK,{key:0},[(0,s.Lk)("div",p,[((0,s.uX)(!0),(0,s.CE)(s.FK,null,(0,s.pI)(a.subcategoryLocations,(function(t,n){return(0,s.uX)(),(0,s.Wv)(_,{key:t.id,"item-data":t,"from-endpoint":!0,focussed:n===a.currentListItemFocus,onShowItemDetail:function(a){return e.showDetail(t)}},null,8,["item-data","focussed","onShowItemDetail"])})),128)),m.showLoadMore?((0,s.uX)(),(0,s.Wv)(v,{key:0,class:"vs-map-with-sidebar-panel__load-more","data-test":"vs-map-with-sidebar-panel__load-more",onClick:t[0]||(t[0]=function(e){return m.loadMorePlaces()}),onKeyup:t[1]||(t[1]=(0,i.withKeys)((function(e){return m.loadMorePlaces()}),["enter"]))},{default:(0,s.k6)((function(){return[(0,s.RG)(e.$slots,"load-more-text")]})),_:3})):(0,s.Q3)("",!0)]),(0,s.bF)(L,{"content-data":{},"filter-count":e.subCatFilterCount,onClearFilters:m.clearSubCatFilters},null,8,["filter-count","onClearFilters"])],64)):((0,s.uX)(!0),(0,s.CE)(s.FK,{key:1},(0,s.pI)(m.currentData,(function(t){return(0,s.uX)(),(0,s.CE)("div",{key:t.id},[void 0!==t.properties&&t.properties.category.id===a.selectedCategory?((0,s.uX)(),(0,s.Wv)(_,{key:0,"item-data":t,onShowItemDetail:function(a){return e.showDetail(t)}},null,8,["item-data","onShowItemDetail"])):(0,s.Q3)("",!0)])})),128))],64)):(0,s.Q3)("",!0),2===a.currentStage?((0,s.uX)(),(0,s.CE)(s.FK,{key:2},[(0,s.bF)(F,{"heading-level":m.detailHeadingLevel,"content-data":m.currentPlaceData[0]},null,8,["heading-level","content-data"]),(0,s.bF)(L,{"content-data":m.currentPlaceData[0]},null,8,["content-data"])],64)):(0,s.Q3)("",!0),null!==a.panelStatus?((0,s.uX)(),(0,s.CE)("div",b,[e.$slots["panel-loading-message"]&&"map-loading"!==a.panelStatus?((0,s.uX)(),(0,s.CE)("div",g,[(0,s.Lk)("p",h,[(0,s.RG)(e.$slots,"panel-loading-message")])])):(0,s.Q3)("",!0)])):(0,s.Q3)("",!0)],2)}},49937:function(e,t,a){"use strict";a.d(t,{A:function(){return s.A}});var s=a(93013)},50881:function(e,t,a){"use strict";var s=a(85072),n=a.n(s),i=a(97825),r=a.n(i),l=a(77659),o=a.n(l),c=a(55056),u=a.n(c),d=a(10540),p=a.n(d),b=a(41113),g=a.n(b),h=a(79903),f=a.n(h),y={};y.styleTagTransform=g(),y.setAttributes=u(),y.insert=o().bind(null,"head"),y.domAPI=r(),y.insertStyleElement=p(),n()(f(),y),f()&&f().locals&&f().locals},79903:function(){},93013:function(e,t,a){"use strict";var s=a(64467),n=a(48836),i=a(13838),r=a(10810),l=a(79920),o=a(31101),c=a(91213),u=a(22552),d=a(23198),p=a(83844),b=a(63055);function g(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,s)}return a}function h(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?g(Object(a),!0).forEach((function(t){(0,s.A)(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):g(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}var f=null;t.A={name:"VsMapWithSidebarPanel",status:"prototype",release:"0.0.1",components:{VsButton:n.default,VsMapWithSidebarCategory:o.default,VsMapWithSidebarSubcategory:c.default,VsHeading:i.default,VsMapWithSidebarListItem:u.default,VsMapWithSidebarDetail:d.default,VsMapWithSidebarButtons:p.default,VsMapWithSidebarControls:b.default},inject:["filters","filtersWithLocations","placesData","regions","mapId","focussedListItem"],props:{categoryHeading:{type:String,default:""},headingLevel:{type:String,default:"2"},selectedCategory:{type:String,default:""},selectedSubcategory:{type:String,default:null},currentStage:{type:Number,required:!0},selectedItem:{type:Object,default:null},hovered:{type:String,default:""},subcategoryLocations:{type:Array,default:null},currentEndpointData:{type:Array,default:function(){return[]}},panelStatus:{type:String,default:null},panelMessage:{type:String,default:null},totalPins:{type:Number,default:0},currentListItemFocus:{type:Number,default:0}},emits:["close-panel","load-more-places","set-stage","set-subcategory"],data:function(){return{placesLoaded:1}},computed:h(h({currentHeading:function(){var e="";if(null!==this.selectedSubcategory)e=this.selectedSubcategoryData[0].label;else switch(this.currentStage){case 0:e=this.categoryHeading;break;case 1:case 2:e=this.currentFilter.label}return e},currentData:function(){return"regions"===this.selectedCategory?this.regions:this.placesData},panelClasses:function(){var e="";return 2===this.currentStage&&(e+=" vs-map-with-sidebar-panel--small-padding"),e},headerClasses:function(){return 1===this.currentStage?"vs-map-with-sidebar-panel__header-section--with-spacer":2===this.currentStage?"vs-map-with-sidebar-panel__header-section--overlapped":""},currentFilter:function(){var e=this,t="";return this.filters.forEach((function(a){a.id===e.selectedCategory&&(t=a)})),t},currentPlaceData:function(){var e=this,t=this.placesData;return"regions"===this.selectedCategory&&(t=this.regions),this.currentEndpointData.length>0?this.refineEndpointData(this.currentEndpointData):t.filter((function(t){return!(void 0===t.properties||!e.selectedItem)&&t.properties.id===e.selectedItem.properties.id}))},selectedSubcategoryData:function(){var e=this;return this.selectedSubcategory?this.filters.filter((function(t){return t.id===e.selectedSubcategory})):[]}},(0,r.aH)(l.A,{subCatFilterCount:function(e){return e.activeSubcatFilters.length}})),{},{detailHeadingLevel:function(){return(parseInt(this.headingLevel,10)+1).toString()},showLoadMore:function(){return!(this.subcategoryLocations.length>=this.totalPins||0===this.subcategoryLocations.length)}}),watch:{currentFilter:function(){this.placesLoaded=1}},mounted:function(){f=(0,l.A)()},methods:{closePanel:function(){this.$emit("close-panel"),window.innerWidth>=1292&&2===this.currentStage&&this.$emit("set-subcategory",null)},stageBack:function(){if(this.selectedSubcategory&&0===this.currentStage)this.$emit("set-subcategory",null);else if(null!==this.selectedSubcategory&&null===this.subcategoryLocations)this.setStage(0);else{var e=this.currentStage-1;this.setStage(e)}},resetPanel:function(){f.setSelectedSubcat(null),this.setStage(0)},setStage:function(e){0===e&&(this.placesLoaded=1),this.$emit("set-stage",e)},subCatExists:function(e){return void 0!==e.subCategory&&e.subCategory.length>0},refineEndpointData:function(e){var t=[{isEndpoint:!0,properties:{category:e[0].category[0].id,id:e[0].id,image:e[0].images[0].mediaUrl,placeTitle:e[0].name,description:e[0].description,link:{label:e[0].productLink.label,link:e[0].productLink.link,type:e[0].productLink.type},website:{label:e[0].website.label,link:e[0].website.link,type:e[0].website.type},address:{shortAddress:""}}}];return void 0!==e[0].address&&(t[0].properties.address.shortAddress=e[0].address.shortAddress),t},clearSubCatFilters:function(){f.setActiveSubcatFilters([]),this.setStage(0)},loadMorePlaces:function(){this.placesLoaded+=1,this.$emit("load-more-places",this.placesLoaded)}}}},95529:function(e,t,a){"use strict";a.d(t,{X:function(){return s.X}});var s=a(20729)}}]);
|